/* Inter - Light (300) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/assets/fonts/inter-v13-latin-300.woff2') format('woff2');
}
/* Inter - Regular (400) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/inter-v13-latin-400.woff2') format('woff2');
}
/* Inter - Medium (500) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/inter-v13-latin-500.woff2') format('woff2');
}
/* Inter - SemiBold (600) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/inter-v13-latin-600.woff2') format('woff2');
}
/* Montserrat - SemiBold (600) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/montserrat-v26-latin-600.woff2') format('woff2');
}
/* Montserrat - Bold (700) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/montserrat-v26-latin-700.woff2') format('woff2');
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,body{
    width:100%;
    min-height:100%;
    font-family:'Inter',sans-serif;
    background:#0b0b0b;
    opacity:1;
    transition:opacity .4s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* FADE OUT */
body.fade-out{
    opacity:0;
}

.video-container,
.video-bg{
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
}

video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index: 1;
}

header.brand{
    position:absolute;
    top:40px;
    left:60px;
    z-index:10;
    display:flex;
    align-items:center;
    gap:15px;
}

header.brand img{
    height:52px;
    width:auto;
    object-fit:contain;
}

.brand-text{
    display:flex;
    flex-direction:column;
    line-height:1.1;
}

.brand-text .title{
    font-family:'Montserrat',sans-serif;
    font-size:1.4rem;
    letter-spacing:4px;
    font-weight:600;
    color:#fff;
}

.brand-text .domain{
    font-size:0.75rem;
    letter-spacing:2px;
    color:rgba(255,255,255,.6);
    margin-top:4px;
}

.card{
    position:absolute;
    right:7%;
    top:50%;
    transform:translateY(-50%);
    width:680px;
    padding:40px;
    border-radius:24px;
    background:rgba(80,80,80,.22);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,.15);
    color:white;
    z-index:5;
    transition: filter 0.4s ease, opacity 0.4s ease;
}

.card h1{
    font-size:2rem;
    margin-bottom:10px;
    font-family:'Montserrat',sans-serif;
    line-height: 1.2;
    font-weight: 525;
    font-synthesis: none;
}

.card h2{
    font-size:1rem;
    font-weight:330;
    color:#d0d0d0;
    margin-bottom:25px;
    line-height:1.6;
    font-synthesis: none;
}

.card h3{
    font-size: 1rem;
    font-weight: 300;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.card p{
    line-height:1.8;
    margin-bottom:20px;
}

.card ul{
    list-style:none;
    margin-bottom:25px;
}

.card ul li{
    padding:8px 0;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.card.card-wide h1{
    font-size: 1.4rem;
    font-weight: 525;
}

.mail {
    font-weight: 600;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;    
    margin: 16px 0;
}

.qr {
    font-weight: 600;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;    
    margin: 16px 0;
}

.contact {
    font-weight: 600;
    color: white;
    display: flex;
    justify-content: flex-start;
    align-items: center;    
    margin: 16px 0;
}

@media(max-width: 900px) {
    .mail img, .qr img, .contact img {
        max-width: 60% !important;
        height: auto;
    }
}

.mini-banner{
    display:block;
    width:100%;
    height:3px;
    margin:25px 0 10px 0;
    opacity:0.85;
    filter:drop-shadow(0 0 6px rgba(255,255,255,.08));
}

.footer-links{
    margin-top:15px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
}

.footer-links a{
    color:rgba(255,255,255,.7);
    font-size:12px;
    text-decoration:none;
    cursor:pointer;
}

.footer-links a:hover{
    color:#fff;
}

.page-fade{
    position:fixed;
    inset:0;
    background:rgba(10,10,10,1);
    z-index:9999;
    pointer-events:none;
    opacity:1;
    transition: opacity .55s ease;
}

body.loaded .page-fade{
    opacity:0;
}

.spa-layer{
    position:fixed;
    inset:0;
    z-index:10000;
    display:flex;
    justify-content:center;
    align-items:center;
    background:rgba(10,10,10,0);
    opacity:0;
    pointer-events:none;
    transition: opacity .4s ease, background-color .4s ease, backdrop-filter .4s ease;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.spa-layer.active{
    opacity:1;
    pointer-events:auto;
    background:rgba(10,10,10,.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.spa-content{
    width:90%;
    max-width:520px;
    max-height:85vh;
    overflow-y:auto;
    border-radius:24px;
    background:rgba(40,40,40,.6);
    backdrop-filter:blur(25px);
    -webkit-backdrop-filter:blur(25px);
    border:1px solid rgba(255,255,255,.15);
    padding:40px;
    color:#fff;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.spa-layer.active .spa-content {
    opacity: 1;
    transform: scale(1);
}

/* Desktop Fixation */
@media(min-width: 901px) {
    html, body {
        overflow: hidden;
        height: 100%;
    }
}

@media(max-width:900px){
    header.brand{
        position: relative;
        top: 0;
        left: 0;
        padding: 25px 20px 10px 20px;
        gap:10px;
    }
    header.brand img{
        height:40px;
    }
    .brand-text .title{
        font-size:1rem;
        letter-spacing:2px;
    }
    .brand-text .domain{
        font-size:0.65rem;
    }
    .card{
        position: relative;
        width: calc(100% - 40px);
        left: 0; right: 0; top: 0; bottom: 0;
        margin: 15px auto 40px auto;
        transform: none;
        padding: 25px;
    }
}

@media(max-width:600px){
    .card{
        backdrop-filter:blur(22px);
        background:rgba(60,60,60,.28);
    }
    .card h1 { font-size: 1.6rem; }
    .card h2 { font-size: 0.9rem; }
    .card p, .card ul li { font-size: 0.9rem; line-height: 1.6; }
}

.spa-layer[data-active-page="datenschutz.html"] .spa-content {
    max-width: 750px; 
}

.card.card-wide {
    width: 1000px;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.05);
}

.card-top-right {
    position: absolute;
    top: 40px;
    right: 30px;
    width: 180px;
    height: auto;
    opacity: 0.85;    
    pointer-events: none;
}

@media(max-width: 900px) {
    .card-top-right {
        top: 25px;
        right: 35px;
        width: 85px;
        opacity: 0.9;
    }
}

.card.card-wide::-webkit-scrollbar,
.spa-content::-webkit-scrollbar {
    width: 8px;
}

.card.card-wide::-webkit-scrollbar-track,
.spa-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03); 
    border-radius: 10px;
}

.card.card-wide::-webkit-scrollbar-thumb,
.spa-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card.card-wide::-webkit-scrollbar-thumb:hover,
.spa-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   CANVAS ASCII TERMINAL ARCHITECTURE
   ========================================================================== */
#hidden-terminal {
    display: none; 
    position: fixed; 
    top: 5%; 
    left: 5%; 
    width: 90%; 
    height: 90%; 
    background: #090909; 
    z-index: 10000; 
    border: 1px solid #444; 
    border-radius: 12px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.85); 
    box-sizing: border-box; 
    font-family: 'Courier New', monospace;
    overflow: hidden;
}

.terminal-top-bar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-bottom: 1px solid #222; 
    padding: 12px 20px; 
    background: #111; 
    color: #888; 
    font-size: 13px; 
    user-select: none;
}

#close-terminal-btn {
    background: none; 
    border: none; 
    color: #888; 
    cursor: pointer; 
    font-weight: bold; 
    font-size: 15px;
    transition: color 0.2s ease;
}

#close-terminal-btn:hover {
    color: #ff4444;
}

.terminal-canvas-container {
    position: relative; 
    width: 100%; 
    height: calc(100% - 43px); 
    background: #090909; 
    padding: 10px;
}


#terminal-canvas {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#terminal-hidden-input {
    position: absolute; 
    top: 0; 
    left: 0; 
    opacity: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1;
    pointer-events: none;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) rgba(255,255,255,0.05);
}

/* Chrome / Edge */
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
}

*::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.35);
}
.background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
