/* ==========================================================
   Kilic Immobilien — Design "Hoflicht"
   Abend auf dem Hof: dunkle Bühne, warmes Fensterlicht-Gold.
   Fraunces (Serife, warm) + Instrument Sans (Labels/Text).
   WICHTIG: CSS versteckt keine Inhalte — alle Animations-
   Startzustände setzt GSAP im JS (gsap.set). Ohne JS oder mit
   reduced-motion ist die Seite vollständig statisch lesbar.
   ========================================================== */

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/fraunces.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/instrument-sans.woff2') format('woff2');
}

:root {
    /* Farben exakt aus dem Firmenlogo: tiefes Tannengrün + Gold */
    --nacht: #0b241a;
    --torf: #10301f;
    --putz: #ece7da;
    --putz-schwach: rgba(236, 231, 218, .55);
    --gold: #c9a24b;
    --gold-hell: #e9cf92;
    --linie: rgba(201, 162, 75, .22);
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Instrument Sans', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--nacht);
    color: var(--putz);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); }
::selection { background: var(--gold); color: var(--nacht); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Fraunces ist eine Variable Font mit optischer Größe (opsz):
   hohe Werte = feine, elegante Hairline-Serifen für Display-Größen */
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 480;
    font-variation-settings: 'opsz' 144;
    line-height: 1.06;
    letter-spacing: .005em;
}
h2 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
em { font-style: italic; color: var(--gold-hell); font-weight: 430; }

.vorzeile {
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.knopf {
    display: inline-block;
    font-family: var(--sans);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--putz);
    border: 1px solid var(--linie);
    padding: .95rem 2rem;
    border-radius: 999px;
    transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.knopf:hover { border-color: var(--gold); color: var(--gold); }
.knopf-gold { background: var(--gold); border-color: var(--gold); color: var(--nacht); }
.knopf-gold:hover { background: #f0b74e; color: var(--nacht); }

/* ---------- Kopfzeile ---------- */

.kopf {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem clamp(1.4rem, 4vw, 3.5rem);
    mix-blend-mode: normal;
    background: linear-gradient(rgba(22, 25, 20, .85), transparent);
}

.marke {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: var(--gold);
    text-decoration: none;
}
.marke-signet { width: 40px; height: 30px; flex-shrink: 0; }
.marke-text {
    font-family: var(--serif);
    font-size: 1.3rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
    display: flex;
    flex-direction: column;
    gap: .28rem;
}
.marke-text span {
    font-family: var(--sans);
    font-size: .56rem;
    font-weight: 500;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--putz-schwach);
}

.kopf-nav { display: flex; gap: 1.8rem; }
.kopf-nav a {
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--putz-schwach);
    transition: color .25s ease;
}
.kopf-nav a:hover { color: var(--gold); }

/* Hamburger-Menü: nur auf schmalen Bildschirmen sichtbar (siehe Mobil-Block) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 1.5px;
    margin: 0 auto;
    background: var(--gold);
    transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.offen span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.offen span:nth-child(2) { opacity: 0; }
.nav-toggle.offen span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Szene 1: Hero ---------- */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh; /* iOS: reagiert nicht auf die ein-/ausblendende Adressleiste */
    display: flex;
    align-items: flex-end;
    padding: 0 clamp(1.4rem, 4vw, 3.5rem) 12vh;
    overflow: hidden;
}

.hero-bild { position: absolute; inset: 0; z-index: -1; }
.hero-bild img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 35%;
    filter: brightness(.5) saturate(.75);
}
.hero-bild::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(rgba(22,25,20,.25) 0%, rgba(22,25,20,.35) 55%, var(--nacht) 100%);
}

.hero-inhalt { max-width: 880px; }

.hero h1 {
    font-size: clamp(3.4rem, 10vw, 8.5rem);
    letter-spacing: -.01em;
    margin-bottom: 1.4rem;
}
.hero h1 .zeile { display: block; }

.hero-satz {
    max-width: 520px;
    color: rgba(236, 231, 218, .88); /* auf Foto: heller als das übliche Sekundärgrau */
    font-size: 1.05rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: 3rem;
}
.stat {
    padding: .2rem 2.4rem .2rem 0;
    margin-right: 2.4rem;
    border-right: 1px solid var(--linie);
}
.stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.stat-zahl {
    display: block;
    font-family: var(--serif);
    font-size: 2.2rem;
    line-height: 1.1;
    color: var(--gold);
}
.stat-text {
    font-size: .64rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--putz-schwach);
}

.scroll-wink {
    position: absolute;
    right: clamp(1.4rem, 4vw, 3.5rem);
    bottom: 12vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
    font-size: .64rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: rgba(236, 231, 218, .8);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
    writing-mode: vertical-rl;
}
.scroll-wink span {
    width: 1px; height: 56px;
    background: linear-gradient(var(--gold), transparent);
}

/* ---------- Szene 2: Manifest ---------- */

.manifest {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18vh clamp(1.4rem, 6vw, 6rem);
}

.manifest-text {
    max-width: 1050px;
    font-family: var(--serif);
    font-weight: 440;
    font-variation-settings: 'opsz' 80;
    font-size: clamp(1.7rem, 3.6vw, 3.2rem);
    line-height: 1.4;
    text-align: center;
}
.manifest-text .wort { display: inline-block; }

/* ---------- Szene 3: Verwandlung (Signatur) ---------- */

.verwandlung { position: relative; }

.verwandlung-buehne {
    position: relative;
    height: 100vh;
    height: 100svh; /* iOS: reagiert nicht auf die ein-/ausblendende Adressleiste */
    overflow: hidden;
}

.wandel-bild { position: absolute; inset: 0; }
.wandel-bild img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* Vorher: Tagesfoto kalt und müde gestimmt */
.wandel-vorher img { filter: grayscale(.8) brightness(.58) contrast(1.02); }
/* Nachher: echtes Abendfoto — nur sanft veredelt; liegt oben, wird per clip-path aufgezogen */
.wandel-nachher { z-index: 2; }
.wandel-nachher img { filter: brightness(.98) saturate(1.1) contrast(1.03); }
.wandel-nachher::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(15deg, rgba(201,162,75,.14), transparent 50%);
}

/* Lesbarkeits-Abblendung hinter dem Titelblock — unabhängig davon, ob
   gerade das helle "Nachher"- oder das dunkle "Vorher"-Foto sichtbar ist */
.wandel-scrim {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 46%;
    z-index: 2;
    background: linear-gradient(to top, rgba(8, 20, 13, .82) 0%, rgba(8, 20, 13, .5) 45%, transparent 100%);
    pointer-events: none;
}

.wandel-etikett {
    position: absolute;
    top: 14vh;
    z-index: 3;
    font-size: .7rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    padding: .55rem 1.1rem;
    border: 1px solid var(--linie);
    border-radius: 999px;
    background: rgba(22, 25, 20, .55);
    backdrop-filter: blur(4px);
}
.etikett-vorher { left: clamp(1.4rem, 4vw, 3.5rem); }
.etikett-nachher { right: clamp(1.4rem, 4vw, 3.5rem); color: var(--gold); border-color: rgba(227,166,59,.5); }

.wandel-titel {
    position: absolute;
    left: 0; right: 0; bottom: 10vh;
    z-index: 3;
    text-align: center;
    padding: 0 clamp(1.4rem, 4vw, 3.5rem);
}
.wandel-titel h2 { text-shadow: 0 2px 18px rgba(0, 0, 0, .4); }

/* Zweite Verwandlung: Neubau (Rohbau kalt -> fertig, wächst von unten) */
.verwandlung-neubau .wandel-vorher img { filter: grayscale(.65) brightness(.6) contrast(1.02); }
.verwandlung-neubau .wandel-nachher img { filter: brightness(.85) saturate(1.05); }
.verwandlung-neubau .wandel-bild img { object-position: center 40%; }
.verwandlung-neubau .etikett-vorher { top: auto; bottom: 26vh; }
.verwandlung-neubau .etikett-nachher { top: 14vh; }
.wandel-titel p {
    max-width: 520px;
    margin: 1rem auto 0;
    color: rgba(236, 231, 218, .88); /* deutlich heller als putz-schwach — sitzt auf Fotos, nicht auf dunkler Fläche */
    font-size: .98rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}

/* ---------- Szene 4: Leistungen (elegante Zeilen) ---------- */

.leistungen {
    padding: 18vh clamp(1.4rem, 6vw, 7rem);
    max-width: 1240px;
    margin: 0 auto;
}
.leistungen-kopf { margin-bottom: 4.5rem; }

.leistung-zeile {
    display: grid;
    grid-template-columns: minmax(260px, .9fr) 1.1fr;
    gap: 1.2rem 4rem;
    align-items: start;
    padding: 2.4rem 0;
    border-top: 1px solid var(--linie);
    transition: background .3s ease;
}
.leistung-zeile:last-child { border-bottom: 1px solid var(--linie); }
.leistung-zeile h3 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    transition: color .3s ease;
}
.leistung-zeile:hover h3 { color: var(--gold-hell); }
.leistung-zeile p { color: var(--putz-schwach); max-width: 560px; }

/* ---------- Szene 4: Objekte ---------- */

.objekte { padding: 16vh 0 0; overflow: hidden; }

.objekte-kopf { padding: 0 clamp(1.4rem, 4vw, 3.5rem) 4rem; }
.objekte-kopf h2 em { font-size: .45em; vertical-align: middle; color: var(--putz-schwach); }

.objekte-spur {
    display: flex;
    gap: clamp(1.2rem, 2.5vw, 2.4rem);
    padding: 0 clamp(1.4rem, 4vw, 3.5rem) 14vh;
    width: max-content;
}

.objekt {
    width: min(66vw, 560px);
    flex-shrink: 0;
    background: var(--torf);
    border: 1px solid var(--linie);
    border-radius: 6px;
    overflow: hidden;
}
.objekt img { height: 340px; width: 100%; object-fit: cover; filter: brightness(.85) saturate(.95); }
.objekt-daten { padding: 1.6rem 1.8rem 1.9rem; }
.objekt h3 { font-size: 1.7rem; margin-bottom: .5rem; }
.objekt-fakten { color: var(--putz-schwach); font-size: .92rem; margin-bottom: 1rem; }
.objekt-status {
    display: inline-block;
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding: .4rem .9rem;
    border-radius: 999px;
    border: 1px solid var(--linie);
    color: var(--putz-schwach);
}
.objekt-status.frei { border-color: rgba(227,166,59,.6); color: var(--gold); }

.objekt-cta {
    display: flex;
    align-items: center;
    background: transparent;
    border-style: dashed;
}
.objekt-cta .knopf { margin-top: .4rem; }

/* ---------- Szene: Industriedächer ---------- */

.industrie {
    padding: 14vh clamp(1.4rem, 4vw, 3.5rem);
    border-top: 1px solid var(--linie);
}
.industrie-inhalt {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
.industrie-bild img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--linie);
    filter: brightness(.8) saturate(.9);
}
.industrie-bild figcaption {
    margin-top: .8rem;
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--putz-schwach);
}
.industrie-text h2 { margin-bottom: 1.4rem; }
.industrie-text p { color: var(--putz-schwach); margin-bottom: 1.2rem; max-width: 520px; }
.industrie-text .knopf { margin-top: .6rem; }

/* ---------- Szene: Über uns / Geschichte ---------- */

.ueberuns {
    padding: 16vh clamp(1.4rem, 4vw, 3.5rem);
    border-top: 1px solid var(--linie);
}
.ueberuns-inhalt {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
.ueberuns-text h2 { margin-bottom: 1.6rem; }
.ueberuns-text p { color: var(--putz-schwach); margin-bottom: 1.2rem; max-width: 600px; }

/* Editorial-Raster: Bad hochkant links über zwei Reihen,
   zwei Zimmer rechts, ein breites Zimmer unten drüber */
.ueberuns-bilder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
    position: sticky;
    top: 10vh;
}
.ueberuns-bilder figure { margin: 0; }
.ueberuns-bilder img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--linie);
    filter: brightness(.92);
}
.ueberuns-bilder .bild-hoch { grid-row: span 2; }
.ueberuns-bilder .bild-hoch img { aspect-ratio: auto; }
.ueberuns-bilder .bild-breit { grid-column: 1 / -1; }
.ueberuns-bilder .bild-breit img { aspect-ratio: 21 / 9; }
.bilder-zeile {
    grid-column: 1 / -1;
    margin-top: .3rem;
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--putz-schwach);
}

/* ---------- Szene 6: Kontakt ---------- */

.kontakt {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12vh clamp(1.4rem, 4vw, 3.5rem) 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 108%, rgba(227, 166, 59, .22), transparent 70%),
        var(--nacht);
}
.kontakt h2 { font-size: clamp(2.8rem, 6.5vw, 5.2rem); margin-bottom: 1.2rem; }
.kontakt-satz { max-width: 460px; color: var(--putz-schwach); margin-bottom: 2.4rem; }
.kontakt-wege { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 1.6rem; }

/* ---------- Kontaktformular ---------- */

.kontakt-formular {
    width: min(640px, 100%);
    text-align: left;
}
.formular-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.feld { margin-bottom: 1.1rem; }
.feld label {
    display: block;
    font-size: .64rem;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--putz-schwach);
    margin-bottom: .45rem;
}
.feld input,
.feld textarea {
    width: 100%;
    font-family: var(--sans);
    font-size: .98rem;
    color: var(--putz);
    background: rgba(236, 231, 218, .05);
    border: 1px solid var(--linie);
    border-radius: 6px;
    padding: .85rem 1rem;
    transition: border-color .25s ease, background .25s ease;
}
.feld input:focus,
.feld textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(236, 231, 218, .08);
}
.kontakt-formular .knopf { border: none; cursor: pointer; font-size: .8rem; }
/* Honigtopf: unsichtbar für Menschen, sichtbar für Spam-Bots */
.feld-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fuss {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    padding: 6vh 0 1.6rem;
    font-size: .74rem;
    color: var(--putz-schwach);
    border-top: 1px solid var(--linie);
}
.fuss-claim {
    font-family: var(--serif);
    font-style: italic;
    font-size: .95rem;
    color: var(--gold);
}

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */

.rechtsseite .kopf { position: static; background: none; }

.rechtstext {
    max-width: 780px;
    margin: 0 auto;
    padding: 8vh clamp(1.4rem, 4vw, 3.5rem) 12vh;
}
.rechtstext h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin-bottom: 2.4rem;
}
.rechtstext h2 {
    font-size: 1.35rem;
    margin: 2.4rem 0 .7rem;
    color: var(--gold-hell);
}
.rechtstext p { color: var(--putz-schwach); margin-bottom: 1rem; }
.rechtstext strong { color: var(--putz); font-weight: 600; }
.rechtstext-zurueck { margin-top: 3rem; }

.fuss-rechtsseite {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 clamp(1.4rem, 4vw, 3.5rem) 2rem;
    border-top: 1px solid var(--linie);
    padding-top: 1.4rem;
}
.fuss a { color: var(--putz-schwach); }
.fuss a:hover { color: var(--gold); }

/* ---------- Mobil ---------- */

@media (max-width: 900px) {
    .kopf {
        padding: .9rem 1.2rem;
        background: linear-gradient(rgba(11, 36, 26, .92), rgba(11, 36, 26, .55) 70%, transparent);
    }
    .marke { font-size: 1.05rem; white-space: nowrap; }

    /* Elegantes Drei-Striche-Menü statt gequetschter Nav-Zeile */
    .nav-toggle { display: flex; }

    .kopf-nav {
        position: fixed;
        inset: 0 0 auto 0;
        z-index: 99;
        flex-direction: column;
        gap: 0;
        padding: 6.2rem 1.6rem 2rem;
        background: var(--nacht);
        border-bottom: 1px solid var(--linie);
        box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
        transform: translateY(-100%);
        opacity: 0;
        transition: transform .35s ease, opacity .3s ease;
    }
    .kopf-nav.offen { transform: translateY(0); opacity: 1; }
    .kopf-nav a {
        font-family: var(--serif);
        font-size: 1.5rem;
        letter-spacing: .01em;
        text-transform: none;
        color: var(--putz);
        padding: .85rem 0;
        border-bottom: 1px solid var(--linie);
    }
    .kopf-nav a:last-child { border-bottom: none; }
    .kopf-nav a:hover { color: var(--gold); }

    .hero { align-items: center; padding-bottom: 0; }
    .scroll-wink { display: none; }

    /* Objekte: statt horizontaler Fahrt vertikal stapeln */
    .objekte-spur { flex-direction: column; width: auto; }
    .objekt { width: 100%; }
    .objekt img { height: 240px; }

    .wandel-titel { bottom: 6vh; }
    .fuss { flex-direction: column; align-items: center; text-align: center; }

    .hero-stats { gap: 1.1rem 0; margin-top: 2.2rem; }
    .stat { padding-right: 1.2rem; margin-right: 1.2rem; }
    .stat-zahl { font-size: 1.6rem; }

    .leistungen { padding: 12vh 1.4rem; }
    .leistung-zeile { grid-template-columns: 1fr; gap: .6rem; padding: 1.8rem 0; }

    .ueberuns { padding: 10vh 1.4rem; }
    .ueberuns-inhalt { grid-template-columns: 1fr; }
    .ueberuns-bilder { position: static; }

    .industrie { padding: 10vh 1.4rem; }
    .industrie-inhalt { grid-template-columns: 1fr; }

    .formular-reihe { grid-template-columns: 1fr; gap: 0; }

    .verwandlung-neubau .etikett-vorher { bottom: 22vh; }

    .marke-signet { width: 32px; height: 24px; }
    .marke-text { font-size: 1.05rem; }
}

/* ---------- Reduzierte Bewegung: alles statisch, alles sichtbar ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
