/* ========================= 
   RESET & BASE 
   ========================= */ 
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
} 

:root { 
    --bg: #ffffff; 
    --text: #2d2d2d; 
    --primary: #111111; 
    --accent: #666666; 
    --font-heading: 'Outfit', sans-serif; 
    --font-body: 'Inter', sans-serif; 
} 

body { 
    font-family: var(--font-body); 
    background-color: var(--bg); 
    color: var(--text); 
    line-height: 1.8; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased; 
} 
/* ========================= 
   FONTS
   ========================= */ 
/* inter-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('./fonts/inter-v20-latin/inter-v20-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/inter-v20-latin/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  src: url('./fonts/outfit-v15-latin/outfit-v15-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/outfit-v15-latin/outfit-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  src: url('./fonts/outfit-v15-latin/outfit-v15-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/outfit-v15-latin/outfit-v15-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 900;
  src: url('./fonts/outfit-v15-latin/outfit-v15-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* ========================= 
   SITE HEADER (Fixed & Always Visible)
   ========================= */ 
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    display: flex;
    align-items: center;
    
    /* Active by default */
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

/* Desktop Header Layout */
.header-desktop { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 5%; 
    width: 100%;
    height: 100%;
}

.header-desktop .nav-left, 
.header-desktop .nav-right, 
.header-desktop .header-logo-container { flex: 1; }

.header-desktop .header-logo-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

/* --- LOGO: Force Visibility --- */
.header-logo-container img { 
    height: 35px; 
    width: auto; 
    display: block !important;
    opacity: 1 !important; /* Overrides any previous 0 opacity */
}

.header-desktop .nav-left { display: flex; justify-content: flex-start; gap: 1.5rem; }
.header-desktop .nav-right { display: flex; justify-content: flex-end; gap: 1.5rem; }

.header-desktop a { 
    color: rgba(255, 255, 255, 0.75); 
    text-decoration: none; 
    font-weight: 900; 
    font-size: 1rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    transition: 0.3s; 
}
.header-desktop a:hover { color: #fff; }

.nav-left a img {
    height: 18px; /* Matches the text scale */
    width: auto;
    display: inline-block;
    vertical-align: middle; /* Aligns with text like "Presse" */
    filter: brightness(0) invert(1); /* Makes black PNGs white */
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Mobile Header Layout */
.header-mobile { display: none; width: 100%; }

@media (max-width: 1024px) {
    .header-desktop { display: none; }
    .header-mobile { display: block; padding: 0 5%; }
    .mobile-top-bar { 
        display: flex; 
        justify-content: center; 
        align-items: center; 
        height: 70px; 
        position: relative; 
    }
    /* Mobile Logo Visibility */
    .header-mobile .header-logo-container img { 
        height: 25px !important;
        opacity: 1 !important; 
        display: block !important;
    }
    .burger-menu { 
        position: absolute; 
        right: 0; 
        display: flex; 
        flex-direction: column; 
        gap: 5px; 
        cursor: pointer;
    }
    .burger-menu span { width: 22px; height: 2px; background: white; transition: 0.3s; }
    .mobile-dropdown { 
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        display: none; 
        flex-direction: column; 
        padding: 2rem 0; 
        gap: 1.5rem; 
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .site-header.menu-open .mobile-dropdown { display: flex; }
    .mobile-dropdown a { color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 900; }

    /* Burger Animation */
    .site-header.menu-open .burger-menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .site-header.menu-open .burger-menu span:nth-child(2) { opacity: 0; }
    .site-header.menu-open .burger-menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ========================= 
   KONTAKT OVERLAY (3D Flip)
   ========================= */ 
#contact-overlay { position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.8); opacity: 0; visibility: hidden; transition: opacity 0.5s ease; z-index: 2000; }
#contact-overlay.active { opacity: 1; visibility: visible; }

#contact-box-wrapper { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    width: 500px; 
    aspect-ratio: 1.75 / 1; /* Standard business card ratio */
    transform-style: preserve-3d; 
    perspective: 1000px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
#contact-box, #contact-box-back { 
    position: absolute; 
    width: 100%; 
    height: 100%; /* Force height to match the wrapper's aspect ratio */
    backface-visibility: hidden; 
    box-shadow: 0 15px 50px rgba(0,0,0,0.5); 
    border-radius: 4px; /* Slight rounding looks more premium */
}#contact-box { background-color: #111; color: white; }
#contact-box-back { 
    background-color: white; 
    color: black; 
    transform: rotateY(180deg); 
    padding: 2.5rem; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; /* Vertically centers the text block */
    align-items: flex-start; /* Keeps text left-aligned as per your design */
    gap: 0.5rem; /* Tighter gap between contact lines for a cleaner look */
}
#contact-box-wrapper.fly-in { animation: flyInBoxWrapper 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards; }
@keyframes flyInBoxWrapper {
    0% { transform: translate(-150%, 150%) rotate(-25deg) rotateY(0deg); }
    100% { transform: translate(-50%, -50%) rotate(0deg) rotateY(0deg); }
}

#contact-box-wrapper.flip { animation: flipCard 0.8s ease forwards; }
@keyframes flipCard {
    0% { transform: translate(-50%, -50%) rotateY(0deg); }
    100% { transform: translate(-50%, -50%) rotateY(180deg); }
}
/* Restrict the logo size on the front of the contact card */
.contact-logo {
    max-width: 60%;  /* Adjust this percentage to your liking */
    height: auto;
    display: block;
    object-fit: contain;
}

/* Ensure the black box container is centering the logo correctly */
#contact-box {
    background-color: #111;
    color: white;
    padding: 2rem; /* Adds a safety margin so the logo can't touch the edges */
    display: flex;
    justify-content: center;
    align-items: center;
}



/* ========================= 
   FOOTER 
   ========================= */ 
.site-footer { background: #e0e0e0; border-top: 1px solid #ccc; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-image img { height: 300px; object-fit: cover; display: block; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; padding-right: 5%; gap: 1rem; }
.footer-socials { display: flex; gap: 1.5rem; }
.footer-socials a { text-decoration: none; color: rgb(0, 0, 0); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; }
.footer-copyright p { font-size: 0.8rem; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; color: rgb(0, 0, 0); }




/* ========================= 
   MOBILE (Up to 1024px) 
   ========================= */ 
@media (max-width: 1024px) { 

#contact-box-wrapper { 
        width: 90%; 
        max-width: 400px;
        aspect-ratio: 1.6 / 1; /* Slightly taller for mobile readability */
        margin: 0 auto; 
    }
    #contact-box-back {
        padding: 1.5rem;
    }
    .footer-content { flex-direction: column; }
    .footer-image img { height: auto; width: 100%; }
    .footer-right { align-items: center; padding: 2rem 0; }
}

/* ========================= 
   IMPRESSUM PAGE LAYOUT
   ========================= */ 

.impressum-page-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: 70px; /* Adjust for fixed header */
}

/* Left Side: Image */
.impressum-image-side {
    flex: 1;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow: hidden;
}

.impressum-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Side: Text Content */
.impressum-container {
    flex: 1;
    padding: 8% 10%;
    background-color: #f3f3f3;
    overflow-y: auto;
}

/* Font Application */
.impressum-container h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 3rem;
    color: var(--primary);
}

.impressum-section {
    margin-bottom: 2.5rem;
    font-family: 'Inter', sans-serif;
}

.impressum-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.impressum-section p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
}

.impressum-source {
    margin-top: 4rem;
    font-size: 0.75rem;
    opacity: 0.5;
    text-transform: uppercase;
}

/* ========================= 
   MOBILE ADJUSTMENTS (Impressum)
   ========================= */ 
@media (max-width: 1024px) { 
    .impressum-page-wrapper {
        flex-direction: column; /* Stack on mobile */
    }

    .impressum-image-side {
        height: 40vh; /* Fixed height for image on mobile */
        position: relative;
        top: 0;
    }

    .impressum-container {
        padding: 3rem 8%;
    }

    .impressum-container h1 {
        font-size: 2.5rem;
    }
}