/* ============================================================
   01 | DESIGNVARIABLEN UND GRUNDLAGEN
   Farben, Schriftarten, Seitenbreite und allgemeine Abstände
   ============================================================ */

:root {
    --bg: #f3f1ea;
    --paper: #e9e8df;
    --ink: #18221c;
    --muted: #687269;
    --dark: #101713;
    --green: #a2b894;
    --line: rgba(24, 34, 28, .15);
    --serif: "DM Serif Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
    --container: 1340px;
    --section-space: clamp(88px, 10vw, 154px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--green); color: var(--dark); }
:focus-visible { outline: 2px solid #c2d8ae; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.035em; }
h1 em, h2 em { color: var(--green); font-weight: 400; }

.container { width: min(calc(100% - 104px), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.skip-link { position: absolute; z-index: 1200; top: -80px; left: 15px; padding: 12px 20px; background: #fff; color: #000; }
.skip-link:focus { top: 15px; }

/* ============================================================
   02 | NAVIGATION, LOGO UND MENÜBUTTON
   Desktop Header fährt beim Scrollen nach rechts weg.
   Auf dem Smartphone öffnet derselbe Button das mobile Menü.
   ============================================================ */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    padding-inline: max(52px, calc((100% - var(--container)) / 2));
    padding-right: max(105px, calc((100% - var(--container)) / 2 + 75px));
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    background: rgba(20, 29, 24, .9);
    backdrop-filter: blur(12px);
    transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}
.site-header.is-collapsed { transform: translateX(100%); }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { font-family: var(--serif); font-size: 44px; line-height: .8; letter-spacing: -.08em; }
.brand-mark span, .footer-brand span { color: var(--green); }
.brand-text { font-size: 13px; font-weight: 700; letter-spacing: .15em; line-height: 1.1; }
.brand-text small { display: block; margin-top: 5px; font-size: 9px; font-weight: 500; letter-spacing: .32em; color: rgba(255, 255, 255, .68); }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 42px); font-size: 13px; font-weight: 600; }
.main-nav > a:not(.nav-contact) { transition: color .2s; }
.main-nav > a:hover { color: var(--green); }
.nav-contact { display: flex; align-items: center; gap: 20px; padding: 13px 19px; border: 1px solid rgba(255, 255, 255, .5); transition: background .2s, color .2s; }
.nav-contact:hover { color: var(--dark); background: #fff; }

.header-expand {
    position: fixed;
    top: 16px;
    right: 24px;
    z-index: 1100;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    background: #17251e;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background .3s ease;
}
.header-expand:hover { background: #344c3d; }

/* ============================================================
   03 | TITELSEITE / HERO
   ============================================================ */

.hero { position: relative; display: flex; align-items: center; height: 810px; min-height: min(900px, 100svh); color: #fff; background: #17231e; overflow: hidden; }
.hero-image { position: absolute; inset: 0; background: url("assets/Titelbild.JPG") center / cover no-repeat; transform: scale(1.03); animation: hero-enter 2s ease-out both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,16,13,.89), rgba(10,20,15,.65) 42%, rgba(9,22,17,.1)), linear-gradient(0deg,rgba(4,11,8,.58),transparent 40%); }
.hero-content { position: relative; z-index: 1; padding-top: 68px; }
.hero-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: #dee8d9; margin-bottom: 26px; }
.eyebrow-line { width: 28px; height: 1px; background: var(--green); }
.eyebrow-dot { opacity: .55; }
.hero h1 { font-family: var(--serif); font-size: clamp(76px, 9vw, 144px); font-weight: 400; line-height: .96; margin-bottom: 30px; }
.hero-intro { font-size: clamp(15px, 1.45vw, 18px); max-width: 430px; line-height: 1.65; color: rgba(255, 255, 255, .82); }
@keyframes hero-enter { from { transform: scale(1.14); opacity: .5; } to { transform: scale(1.03); opacity: 1; } }

/* ============================================================
   04 | GEMEINSAME ÜBERSCHRIFTEN UND LINKS
   ============================================================ */

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 54px; }
.section-heading h2, .about-content h2, .contact-inner h2 { font-family: var(--serif); font-size: clamp(49px, 6.4vw, 96px); font-weight: 400; line-height: 1.04; margin: 16px 0 0; }
.section-heading h2 em, .about-content h2 em { color: #718b72; }
.heading-intro { max-width: 330px; margin: 0 0 8px; font-size: 15px; color: var(--muted); line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: 20px; margin: 35px 0; padding-bottom: 9px; font-size: 13px; font-weight: 700; transition: color .2s; }
.text-link:hover { color: #6c8563; }
.text-link span, .button span { font-size: 18px; font-weight: 400; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 36px; min-height: 56px; padding: 16px 23px; border: 0; font-size: 13px; font-weight: 700; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-3px); }

/* ============================================================
   05 | PROJEKTGALERIE, FILTER UND MASONRY SPALTEN
   ============================================================ */

.work-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 23px; margin-bottom: 30px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-button { cursor: pointer; padding: 10px 17px; color: var(--muted); background: transparent; border: 1px solid transparent; font-size: 12px; font-weight: 700; transition: .2s; }
.filter-button:hover { border-color: #9da99c; color: var(--ink); }
.filter-button.is-active { color: #fff; background: var(--dark); opacity: .85; }
.filter-button span { font-size: 12px; margin-left: 4px; opacity: .7; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 38px); align-items: start; }
.project-column { display: flex; flex-direction: column; min-width: 0; gap: clamp(30px, 4vw, 52px); }
.project-card { display: block; width: 100%; height: auto; margin: 0; padding: 0; text-align: left; background: transparent; color: inherit; border: 0; cursor: pointer; }
.project-image { position: relative; width: 100%; overflow: hidden; background: #344a3d; }
.project-image img { display: block; width: 100%; height: auto; object-fit: contain; transition: transform .45s ease, filter .3s ease; }
.project-card:hover .project-image img { transform: scale(1.025); filter: brightness(.86); }
.project-icon { position: absolute; right: 18px; top: 18px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.85); color: #fff; background: rgba(10,23,15,.28); backdrop-filter: blur(5px); font-size: 19px; transition: background .2s; }
.project-card:hover .project-icon { background: var(--green); color: #152019; }
.project-video-label { position: absolute; bottom: 16px; left: 16px; padding: 8px 12px; font-size: 11px; font-weight: 700; letter-spacing: .07em; color: #fff; background: rgba(12,23,17,.75); }
.project-details { display: flex; justify-content: space-between; align-items: start; gap: 15px; padding-top: 18px; }
.project-details h3 { font-family: var(--serif); font-size: clamp(23px, 2.35vw, 35px); font-weight: 400; margin-bottom: 7px; line-height: 1.12; }
.project-details p { margin: 0; color: var(--muted); font-size: 13px; }
.project-year { font-size: 11px; color: var(--muted); white-space: nowrap; padding-top: 7px; }

/* ============================================================
   06 | PHILOSOPHIE / ZITAT
   ============================================================ */

.statement-section { background: #19271f; color: #fff; overflow: hidden; }
.statement-inner { min-height: 360px; padding-block: 68px; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; }
.statement-spark { color: var(--green); font-size: 27px; margin-bottom: 24px; }
.statement-inner p { font-family: var(--serif); font-size: clamp(28px, 3.7vw, 55px); line-height: 1.22; margin-bottom: 28px; }
.statement-inner em { color: var(--green); }
.statement-caption { font-size: 10px; color: rgba(255,255,255,.5); font-weight: 700; letter-spacing: .2em; }

/* ============================================================
   07 | ÜBER MICH: PORTRÄT UND VORSTELLUNG
   ============================================================ */

.about-section { padding-block: clamp(90px, 11vw, 160px); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(50px, 7vw, 130px); }
.about-image-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.about-portrait { width: min(100%, 480px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #dce2d9; border: 1px solid #748e77; box-shadow: 0 0 0 1px #576d5a, 0 0 0 2px #748e77; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform .7s ease; }
.about-portrait:hover img { transform: scale(1.06); }
.about-content { max-width: 610px; }
.about-content .eyebrow { margin-bottom: 26px; }
.about-content h2 { font-size: clamp(46px, 5vw, 76px); line-height: 1.08; margin-bottom: 35px; }
.about-content > p:not(.eyebrow) { color: #626d63; font-size: 15px; line-height: 1.9; max-width: 525px; margin-bottom: 22px; }
.about-content > p strong { color: var(--ink); }
.about-content .about-intro { font-size: 17px; line-height: 1.8; }
.about-divider { width: 100%; height: 1px; background: #d6d8d0; margin-top: 32px; }

/* ============================================================
   08 | ÜBER MICH: LEIDENSCHAFT UND VISION
   Zwei gleich hohe Karten mit versetzter Scrollanimation.
   ============================================================ */

.about-v2-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 30px; margin-top: 35px; }
.about-v2-passion { min-width: 0; padding: clamp(30px, 4vw, 55px); background: #e5e9df; color: var(--ink); }
.about-card-content { width: 100%; }
.about-v2-cards .eyebrow { color: #496949; font-size: 16px; font-weight: 700; letter-spacing: .18em; margin-bottom: 25px; }
.about-v2-passion-bottom { border-top: 1px solid #cbd2c7; padding-top: 25px; }
.about-v2-passion-bottom p { max-width: none; margin: 0; font-size: 15px; line-height: 1.9; color: #626d63; }

/* ============================================================
   09 | LEISTUNGEN
   ============================================================ */

.services-section { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.service-card { position: relative; display: flex; flex-direction: column; min-height: 295px; padding: 30px 35px 20px 0; }
.service-card + .service-card { border-left: 1px solid var(--line); padding-left: 35px; }
.service-number { color: #718b72; font-size: 12px; font-weight: 700; }
.service-icon { position: absolute; right: 40px; top: 23px; font-size: 27px; color: #718b72; }
.service-card h3 { font-family: var(--serif); font-weight: 400; font-size: 40px; margin: 54px 0 12px; }
.service-card p { font-size: 14px; line-height: 1.75; max-width: 330px; color: var(--muted); }
.service-meta { margin-top: auto; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #728875; }

/* ============================================================
   10 | KONTAKT UND HINTERGRUNDSCHRIFT
   ============================================================ */

.contact-section { position: relative; min-height: 650px; background: url("assets/Endbild.jpg") center / cover no-repeat; color: #fff; overflow: hidden; }
.contact-inner { position: relative; z-index: 1; padding-block: clamp(95px, 11vw, 160px); }
.contact-inner .eyebrow { color: #a8b8a9; }
.contact-inner h2 { font-size: clamp(70px, 10vw, 145px); margin-bottom: 20px; }
.contact-inner h2 em { color: var(--green); }
.contact-inner > p:not(.eyebrow) { max-width: 490px; line-height: 1.75; font-size: 16px; color: #b9c6b9; }
.button-contact { background: var(--green); color: var(--dark); margin-top: 22px; }
.button-contact:hover { background: #c3d6b4; }
.contact-decoration { position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); width: max-content; font-size: clamp(30px, 10vw, 210px); color: rgba(205,231,194,.035); font-weight: 700; white-space: nowrap; line-height: 1; pointer-events: none; }


.contact-section {
    position: relative;
    isolation: isolate;
}

/* Halbtransparenter Farbverlauf */
.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background: linear-gradient(
        90deg,
        rgba(10, 20, 14, 0.85) 0%,
        rgba(10, 20, 14, 0.65) 35%,
        rgba(10, 20, 14, 0.15) 70%,
        transparent 100%
    );

    pointer-events: none;
}

/* Text und Button über dem Farbverlauf */
.contact-inner {
    position: relative;
    z-index: 1;
}

/* ============================================================
   11 | FOOTER UND SOCIAL MEDIA ICONS
   ============================================================ */

.site-footer { background: #0d150f; color: #fff; }
.footer-inner { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding-block: 40px; }
.footer-brand { font-family: var(--serif); font-size: 26px; }
.footer-inner p { font-size: 12px; margin: 10px 0 0; color: #94a094; }
.footer-right { display: flex; flex-direction: column; align-items: end; gap: 20px; font-size: 11px; color: #aeb9ad; }
.footer-right a { color: #fff; transition: color .3s ease; }
.footer-right a:hover { color: var(--green); }
.footer-socials { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; color: #aeb9ad; font-size: 24px; transition: color .3s ease, transform .3s ease; }
.footer-socials a:hover { color: var(--green); transform: translateY(-3px); }

/* ============================================================
   12 | PROJEKTDETAILS, VIDEO UND ZUSÄTZLICHE BILDER
   ============================================================ */

.project-dialog { width: min(900px, calc(100% - 36px)); max-height: min(90vh, 1000px); overflow-y: auto; border: 1px solid #425747; background: var(--bg); color: var(--ink); padding: 0; box-shadow: 0 22px 80px #0009; }
.project-dialog::backdrop { background: rgba(6,12,8,.82); backdrop-filter: blur(6px); }
.dialog-content { position: relative; }
#dialog-image { display: block; width: auto; max-width: 100%; max-height: 70vh; height: auto; margin-inline: auto; object-fit: contain; }
#dialog-video { display: block; width: 100%; max-height: 70vh; height: auto; object-fit: contain; background: #000; }
.dialog-close { position: sticky; top: 15px; z-index: 100; display: flex; align-items: center; justify-content: center; width: 43px; height: 43px; margin: 15px 15px -58px auto; border: none; background: #f6f5ee; color: #18221c; font-size: 28px; cursor: pointer; transition: background 0.3s ease; }

.dialog-close:hover {
    background: #a2b894;
}
.dialog-close:hover { background: var(--green); }
.dialog-info { padding: clamp(26px, 4vw, 52px); }
.dialog-info .eyebrow { color: #718b72; }
.dialog-info h2 { font-family: var(--serif); font-size: clamp(36px, 5vw, 64px); font-weight: 400; margin: 10px 0 14px; }
.dialog-info > p:not(.eyebrow) { color: var(--muted); line-height: 1.8; font-size: 15px; }
.dialog-meta { display: flex; flex-wrap: wrap; gap: 25px; border-top: 1px solid var(--line); padding-top: 17px; margin-top: 26px; color: var(--muted); font-size: 12px; }
.dialog-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 25px; }
.dialog-gallery img { display: block; width: 100%; height: auto; object-fit: contain; }

/* ============================================================
   13 | SCROLLANIMATIONEN
   Alle reveal Elemente erscheinen beim Scrollen erneut.
   Die zweite About Karte folgt mit 300 ms Verzögerung.
   ============================================================ */

.js-enabled .reveal { opacity: 0; transform: translateY(25px); transition: opacity .7s ease, transform .7s ease; }
.js-enabled .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js-enabled .about-card-first { transition-delay: 0s; }
.js-enabled .about-card-second { transition-delay: .3s; }

/* ============================================================
   14 | RESPONSIVE: TABLET
   ============================================================ */

@media (max-width: 1024px) {
    .container { width: min(calc(100% - 64px), var(--container)); }
    .site-header { padding-left: 32px; padding-right: 95px; }
    .main-nav { gap: 20px; }
    .hero { min-height: 760px; }
    .hero h1 { font-size: clamp(72px, 10vw, 112px); }
    .about-layout { gap: 48px; }
    .service-card { padding-right: 24px; }
    .service-card + .service-card { padding-left: 24px; }
    .service-card h3 { font-size: 33px; }
}

@media (max-width: 900px) {
    .about-layout { grid-template-columns: 1fr; gap: 55px; }
    .about-portrait { width: min(100%, 380px); }
    .about-content { max-width: 650px; }
}

/* ============================================================
   15 | RESPONSIVE: SMARTPHONE UND MOBILE NAVIGATION
   ============================================================ */

@media (max-width: 760px) {
    :root { --section-space: 85px; }
    .container { width: calc(100% - 40px); }
    .site-header { height: 74px; padding-inline: 20px 83px; }
    .brand-mark { font-size: 39px; }
    .brand-text { font-size: 11px; }
    .header-expand { top: 12px; right: 12px; width: 46px; height: 46px; }
    .site-header.mobile-open { transform: translateX(0); }
    .main-nav { display: none; position: fixed; top: 74px; right: 0; left: 0; height: calc(100dvh - 74px); background: #111c15; padding: 38px 34px 40px; align-items: stretch; flex-direction: column; gap: 23px; font-size: 23px; overflow-y: auto; }
    .main-nav.is-open { display: flex; }
    .nav-contact { margin-top: 15px; width: fit-content; font-size: 16px; }

    .hero { height: 760px; min-height: 670px; max-height: 870px; }
    .hero-image { background-position: 60% center; }
    .hero-shade { background: linear-gradient(90deg,rgba(9,16,12,.83),rgba(9,16,12,.28)),linear-gradient(0deg,rgba(5,15,9,.54),transparent 55%); }
    .hero-content { padding-top: 45px; }
    .hero h1 { font-size: clamp(59px, 11vw, 84px); }
    .hero-intro { max-width: 340px; }

    .section-heading { display: block; margin-bottom: 37px; }
    .section-heading h2, .about-content h2 { font-size: clamp(48px, 9vw, 66px); }
    .heading-intro { margin-top: 24px; max-width: 490px; }
    .filters { gap: 4px; }
    .filter-button { padding: 9px 11px; font-size: 11px; }
    .project-grid { gap: 16px; }
    .project-details h3 { font-size: 24px; }
    .project-details p { font-size: 11px; }
    .project-year { display: none; }
    .project-icon { width: 34px; height: 34px; right: 10px; top: 10px; }

    .about-section { padding-block: 75px; }
    .about-v2-cards { gap: 20px; }
    .about-v2-passion { padding: 30px 25px; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 230px; padding: 27px 0; }
    .service-card + .service-card { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
    .service-card h3 { margin-top: 27px; }
    .contact-section { min-height: auto; }
    .contact-inner h2 { font-size: clamp(61px, 13vw, 95px); }
    .footer-inner { align-items: flex-start; }
}

@media (max-width: 620px) {
    .project-grid { display: flex; flex-direction: column; gap: 30px; }
    .project-column { display: contents; }
    .project-card { order: var(--project-order); }
    .about-v2-cards { grid-template-columns: 1fr; }
    .js-enabled .about-card-second { transition-delay: 0s; }
    .dialog-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .about-portrait { width: min(100%, 300px); }
    .about-content h2 { font-size: clamp(42px, 10vw, 60px); }
    .about-content > p:not(.eyebrow) { font-size: 14px; }
    .footer-socials { gap: 18px; }
}

@media (max-width: 420px) {
    .hero { min-height: 685px; height: 95svh; }
    .hero-eyebrow { gap: 7px; font-size: 9px; }
    .hero h1 { font-size: clamp(50px, 12.1vw, 66px); }
    .footer-inner { flex-direction: column; gap: 30px; text-align: center; grid-template-columns: 1fr; justify-items: center;}
    .footer-right { align-items: center; justify-self: center;}
}


@media (max-width: 768px) {
    .contact-section::before {
        background: linear-gradient(
            90deg,
            rgba(10, 20, 14, 0.88) 0%,
            rgba(10, 20, 14, 0.65) 100%
        );
    }
}


/* ============================================================
   16 | BARRIEREFREIHEIT: REDUZIERTE ANIMATIONEN
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .js-enabled .reveal { opacity: 1; transform: none; }
}
