/* ==========================================================================
   AETHER_GRID - Zentrales Stylesheet
   Gilt für: index.html, projekte.html, impressum.html, datenschutz.html, ueber-uns.html
   ========================================================================== */

/* ==========================================================================
   LOKALE FONTS
   Statt Google Fonts CDN, aus Datenschutzgründen (LG München I, Az. 3 O 17493/20)
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-v20-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-v20-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/plus-jakarta-sans-v12-latin-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-main: #0B0F19;
    --bg-section: #161F30;
    --accent-primary: #00E5FF;
    --accent-cta: #FF9100;
    --text-main: #FFFFFF;
    --text-secondary: #94A3B8;
    --font-headings: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ==========================================================================
   HEADER & NAVIGATION (alle Seiten)
   ========================================================================== */
header {
    background-color: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0; left: 0; width: 100%; z-index: 1000;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
header .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }

.logo-img { height: 130px; width: auto; mix-blend-mode: screen; display: block; margin-top: -40px; margin-bottom: -40px; }
.logo-link { display: inline-block; transition: opacity 0.2s ease; }
.logo-link:hover { opacity: 0.85; }

nav { display: flex; align-items: center; }
nav a { color: var(--text-secondary); text-decoration: none; margin-left: 30px; font-weight: 500; transition: color 0.3s; }
nav a:hover { color: var(--accent-primary); }
nav a.active { color: var(--accent-primary); }

/* Hamburger-Button, nur mobil sichtbar */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   BUTTONS (alle Seiten)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.3s;
    cursor: pointer;
}
.btn-primary { background-color: var(--accent-cta); color: #0B0F19; }
.btn-primary:hover { transform: translateY(-2px); background-color: #e68200; }
.btn-outline {
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    background: transparent;
}
.btn-outline:hover { transform: translateY(-2px); background: rgba(0, 229, 255, 0.08); }

/* ==========================================================================
   FOOTER (alle Seiten)
   ========================================================================== */
footer {
    background-color: #060910;
    padding: 40px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}
.footer-links { margin-top: 15px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; margin: 0 15px; }
.footer-links a:hover { color: var(--text-main); }

/* ==========================================================================
   STARTSEITE (index.html)
   ========================================================================== */
.hero {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 60vh;
    background: linear-gradient(180deg, rgba(11,15,25,0.6) 0%, rgba(11,15,25,1) 100%), url('images/herobg.jpeg') no-repeat center center/cover;
}
.hero-content { max-width: 700px; }

h1 {
    font-family: var(--font-headings);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero h1 span { color: var(--accent-primary); }

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.section { padding: 80px 0; }
.section-title {
    font-family: var(--font-headings);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.card {
    background-color: var(--bg-section);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.05);
    transition: transform 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(0, 229, 255, 0.3); }
.card-img { width: 100%; height: 200px; display: block; object-fit: cover; background-color: #000; }
.card-body { padding: 25px; }
.card-title { font-family: var(--font-headings); font-size: 1.25rem; margin-bottom: 15px; color: var(--text-main); }
.card-text { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; }
.card-tags { font-size: 0.85rem; color: var(--accent-primary); font-weight: 500; }

.bg-alt { background-color: var(--bg-section); }
.services-list { max-width: 800px; margin: 0 auto; }
.service-item { padding: 20px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
.service-item h3 { font-family: var(--font-headings); color: var(--accent-primary); margin-bottom: 8px; }

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-section);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.05);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; margin-bottom: 8px; color: var(--text-secondary); }
.form-control {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-main);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}
.form-control:focus { outline: none; border-color: var(--accent-primary); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ==========================================================================
   RECHTLICHE SEITEN (impressum.html, datenschutz.html)
   ========================================================================== */
.legal-section { padding: 60px 0; flex: 1; }
.legal-box { background-color: var(--bg-section); padding: 40px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.05); }
.legal-box h1 { font-family: var(--font-headings); font-size: 2.5rem; font-weight: 800; margin-bottom: 20px; color: var(--text-main); }
.legal-box h2 { font-family: var(--font-headings); font-size: 1.4rem; color: var(--accent-primary); margin-top: 30px; margin-bottom: 10px; border-bottom: 1px solid rgba(148, 163, 184, 0.1); padding-bottom: 5px; }
.legal-box h3 { font-family: var(--font-headings); font-size: 1.1rem; color: var(--text-main); margin-top: 20px; margin-bottom: 5px; }
.legal-box p { color: var(--text-secondary); margin-bottom: 15px; font-size: 0.95rem; }
.legal-box ul { color: var(--text-secondary); margin-left: 20px; margin-bottom: 15px; font-size: 0.95rem; }
.legal-box a { color: var(--accent-primary); text-decoration: underline; }

.social-container { margin-top: 30px; border-left: 2px solid var(--accent-primary); padding-left: 16px; }
.social-title { color: var(--text-main); font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.social-list { list-style: none; color: var(--text-secondary); font-size: 0.95rem; }
.social-list li { margin-bottom: 6px; }
.social-list strong { color: #E2E8F0; }

/* ==========================================================================
   KI-TRANSPARENZ-HINWEIS
   ========================================================================== */
.ai-disclosure-note {
    margin-top: 22px;
    max-width: 640px;
    border-left: 2px solid var(--accent-primary);
    background: rgba(0, 229, 255, 0.05);
    padding: 14px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    border-radius: 0 6px 6px 0;
}
.ai-disclosure-note a { color: var(--accent-primary); text-decoration: underline; }

/* ==========================================================================
   PORTFOLIO (projekte.html)
   ========================================================================== */
.showcase { margin-bottom: 80px; padding: 20px; border: 1px solid rgba(148, 163, 184, 0.1); border-radius: 12px; }
.showcase img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 20px; }
.showcase h2 { font-family: var(--font-headings); font-size: 2.5rem; margin-bottom: 15px; color: var(--accent-primary); }

/* ==========================================================================
   ÜBER UNS (ueber-uns.html)
   ========================================================================== */
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--accent-primary);
    text-transform: uppercase;
    margin-bottom: 18px;
}

.about-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(11,15,25,0.35) 0%, rgba(11,15,25,0.85) 65%, rgba(11,15,25,1) 100%), url('images/ueberuns-hero.jpg') no-repeat center 20%/cover;
    padding: 60px 0 70px;
}
.about-hero h1 {
    font-family: var(--font-headings);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    max-width: 800px;
    margin-bottom: 22px;
}
.about-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 640px;
}

/* Intro-Audio-Player */
.intro-audio { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.audio-toggle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: #0B0F19;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.audio-toggle:hover { transform: scale(1.06); box-shadow: 0 0 25px rgba(0, 229, 255, 0.6); }
.audio-toggle svg { width: 20px; height: 20px; }
.audio-toggle .icon-pause { display: none; }
.audio-toggle.is-playing .icon-play { display: none; }
.audio-toggle.is-playing .icon-pause { display: block; }

.audio-meta { display: flex; flex-direction: column; gap: 6px; }
.audio-label { font-size: 0.85rem; color: var(--text-secondary); letter-spacing: 0.5px; }
.waveform { display: flex; align-items: center; gap: 3px; height: 26px; }
.waveform span {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: var(--accent-primary);
    opacity: 0.55;
    transform: scaleY(0.35);
    transform-origin: center;
    animation: wave 1.1s ease-in-out infinite;
    animation-play-state: paused;
}
.waveform.is-playing span { opacity: 1; animation-play-state: running; }
@keyframes wave {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

.audio-transcript {
    margin-top: 22px;
    max-width: 600px;
    border-left: 2px solid var(--accent-primary);
    background: rgba(0, 229, 255, 0.05);
    padding: 14px 20px;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Story-Sektionen */
.story { padding: 100px 0; }
.story-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-row.reverse .story-media { order: 2; }
.story-row.reverse .story-copy { order: 1; }

.story-media {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.08);
    aspect-ratio: 4 / 5;
}
.story-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.story-copy .eyebrow { margin-bottom: 14px; }
.story-copy h2 { font-family: var(--font-headings); font-size: 2.1rem; font-weight: 800; margin-bottom: 20px; }
.story-copy p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 16px; }
.story-copy ul { margin-top: 20px; list-style: none; }
.story-copy ul li { color: var(--text-secondary); padding-left: 26px; position: relative; margin-bottom: 10px; }
.story-copy ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
}
.story-copy a.inline-link { color: var(--accent-primary); text-decoration: none; }
.story-copy a.inline-link:hover { text-decoration: underline; }

.about-cta {
    position: relative;
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(11,15,25,0.55) 0%, rgba(11,15,25,0.9) 100%), url('images/ueberuns-cta.jpg') no-repeat center center/cover;
}
.about-cta h2 { font-family: var(--font-headings); font-size: 2.3rem; font-weight: 800; margin-bottom: 18px; }
.about-cta p { color: var(--text-secondary); font-size: 1.1rem; max-width: 560px; margin: 0 auto 36px; }
.cta-buttons { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   RESPONSIVE / MOBILE
   ========================================================================== */
@media (max-width: 900px) {
    .story-row { grid-template-columns: 1fr; }
    .story-row.reverse .story-media { order: 1; }
    .story-row.reverse .story-copy { order: 2; }
    .story-media { aspect-ratio: 16 / 10; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    .about-hero h1 { font-size: 2.1rem; }
    .contact-form { padding: 25px; }
    .legal-box { padding: 25px; }
    .story { padding: 70px 0; }

    .nav-toggle { display: flex; }

    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        background-color: rgba(11, 15, 25, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
        padding: 10px 20px 20px;
        transform: translateY(-130%);
        opacity: 0;
        transition: transform 0.25s ease, opacity 0.25s ease;
        pointer-events: none;
    }
    nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    nav a {
        margin-left: 0;
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    }
}
