/*
 * debus f/oto — Designvorschlag → Neos Implementation
 * Globales Stylesheet für Site & Content-Elemente (Hero, Chapter, ApertureIndex, Contact, Header, Footer)
 */

:root {
    --ink: #1E1C19;          /* warm near-black, Body */
    --ink-2: #262320;        /* leicht angehobenes Schwarz */
    --header: #2C2A26;       /* Kopfbalken (bleibt dunkel) */
    --stone: #E7E3DA;        /* warmer Stein, helle Flächen (Index) */
    --stone-2: #DAD5C9;
    --sage: #8FA68E;         /* Markenfarbe aus dem Logo */
    --sage-bright: #A8BFA2;  /* Hover / aktiv / Akzent auf Dunkel */
    --sage-deep: #62795F;    /* Sage auf hellem Grund */
    --cream: #ECE8E0;        /* Primärtext auf Dunkel */
    --ash: #999487;          /* Sekundärtext */
    --hair: rgba(143, 166, 142, .45);
    --maxw: 1240px;
}

/* ---------- GLOBALE BASIS ---------- */
html.df {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html.df { scroll-behavior: auto; }
}
body.df {
    background: var(--ink);
    color: var(--cream);
    font-family: 'Mulish', system-ui, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    margin: 0;
}
body.df a { color: inherit; text-decoration: none; }
/* Links bekommen nie ein Hover-Underline, auch nicht innerhalb von
 * Tailwind-`.prose`-Wrappern, die default-mäßig underline setzen. */
body.df a:hover,
body.df a:focus {
    text-decoration: none !important;
}
body.df ::selection { background: var(--sage); color: var(--ink); }
body.df :focus-visible { outline: 2px solid var(--sage-bright); outline-offset: 3px; }
body.df * { box-sizing: border-box; }

/* Main reset im DF-Modus: Tailwind-`.content`-Container voll aufmachen,
 * damit die DebusFoto-Sektionen ihre eigenen Container-Breiten zentriert
 * setzen können (Hero / *-inner). */
body.df.df-full-content main.content,
body.df.df-full-content main.content.prose {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--cream);
    display: block;
}
body.df.df-full-content main.content > *,
body.df.df-full-content main.content.prose > * {
    max-width: none;
}
body.df.df-full-content main.content.prose :where(p, h1, h2, h3, h4, h5, h6, a, ul, ol, li, blockquote) {
    color: inherit;
}
/* Tailwind-`.prose` setzt eigene Farben über --tw-prose-body, --tw-prose-bold
 * und --tw-prose-headings. Im DF-Modus sollen Fließtext, Bold-Text und alle
 * Überschriften die Primärfarbe (Cream) verwenden statt der dunklen
 * Prose-Default-Farben. */
body.df main.content.prose,
body.df main.content.prose :where(p, strong, b, h1, h2, h3, h4, h5, h6) {
    color: var(--cream);
}

/* ---------- KOPFBALKEN ---------- */
.df-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header);
    border-bottom: 1px solid rgba(143, 166, 142, .18);
}
.df-header .df-bar {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.df-logo {
    display: flex;
    align-items: center;
    line-height: 1;
    text-decoration: none;
}
.df-logo img {
    display: block;
    height: 48px;
    width: auto;
}
.df-nav { margin-left: auto; }
.df-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    margin: 0;
    padding: 0;
}
body.df .df-nav a {
    color: #c9c5bc;
    background: transparent;
    font-size: .74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: 8px 12px;
    position: relative;
    transition: color .25s, background .25s;
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
}
body.df .df-nav a .df-fstop {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    color: var(--sage);
    margin-right: .45em;
    letter-spacing: 0;
}
body.df .df-nav a:hover { color: #fff; }
body.df .df-nav a.is-active {
    background: var(--sage);
    color: var(--ink);
}
body.df .df-nav a.is-active .df-fstop { color: var(--ink); }
.df-menu-btn {
    display: none;
    background: none;
    border: 0;
    color: #c9c5bc;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---------- ANNOTATION-BANNER ---------- */
.df-note {
    background: var(--ink-2);
    border-bottom: 1px solid rgba(143, 166, 142, .18);
    text-align: center;
    padding: 11px 20px;
    font-family: 'Space Mono', monospace;
    font-size: .7rem;
    letter-spacing: .08em;
    color: var(--ash);
}
.df-note b { color: var(--sage-bright); font-weight: 700; }

/* ---------- HERO ---------- */
.df-hero {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 120px 32px 96px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 64px;
    align-items: center;
}
.df-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 28px;
}
.df-hero h1,
.df-hero .df-h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(2.6rem, 5.4vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -.01em;
    color: var(--cream);
    margin: 0 0 30px;
}
.df-hero h1 em,
.df-hero .df-h1 em { font-style: italic; color: var(--sage-bright); }
.df-hero p.df-lead {
    max-width: 42ch;
    color: var(--ash);
    font-size: 1.02rem;
    margin: 0 0 38px;
}
.df-cta-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}
.df-btn {
    font-family: 'Mulish', sans-serif;
    font-weight: 600;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    padding: 14px 26px;
    border: 1px solid var(--sage);
    color: var(--cream);
    transition: background .3s, color .3s;
    display: inline-block;
    background: transparent;
    cursor: pointer;
}
.df-btn:hover { background: var(--sage); color: var(--ink); }
.df-btn.df-ghost { border-color: rgba(236, 232, 224, .25); }
.df-btn.df-ghost:hover {
    border-color: var(--sage);
    background: transparent;
    color: var(--sage-bright);
}

/* ---------- BILD-RAHMEN ---------- */
.df-frame { position: relative; margin: 0; }
.df-frame .df-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid rgba(143, 166, 142, .22);
    display: flex;
    align-items: center;
    justify-content: center;
}
.df-frame .df-img.df-wide { aspect-ratio: 3 / 2; }
.df-frame .df-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.df-img.df-tone-food {
    background: radial-gradient(120% 90% at 70% 20%, #3a3128 0%, #231f1a 55%, #171410 100%);
}
.df-img.df-tone-portrait {
    background: radial-gradient(120% 100% at 35% 25%, #2c2f2b 0%, #201f1c 55%, #141513 100%);
}
.df-img.df-tone-book {
    background: radial-gradient(120% 100% at 60% 30%, #34302a 0%, #211e1a 60%, #15120f 100%);
}
.df-aperture { width: 84px; height: 84px; opacity: .5; }
.df-frame figcaption {
    font-family: 'Space Mono', monospace;
    font-size: .68rem;
    letter-spacing: .04em;
    color: var(--ash);
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.df-frame figcaption .df-exif { color: var(--sage-deep); }

/* ---------- KAPITEL ---------- */
.df-chapter {
    padding: 96px 0;
    border-top: 1px solid rgba(143, 166, 142, .12);
}
.df-chapter-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
}
.df-chapter-head { display: flex; justify-content: flex-end; }
.df-chapter-head .df-num { text-align: right; }
.df-chapter.df-reverse .df-chapter-head { justify-content: flex-start; }
.df-chapter.df-reverse .df-chapter-head .df-num { text-align: left; }
.df-chapter-head .df-label {
    font-family: 'Space Mono', monospace;
    font-size: .74rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--sage);
    display: block;
    margin-bottom: 6px;
}
.df-chapter-head .df-big {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: .98;
    color: var(--cream);
}
.df-rule {
    height: 1px;
    background: var(--hair);
    margin: 28px 0 64px;
    width: 100%;
}
.df-chapter-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.df-chapter.df-reverse .df-chapter-body { direction: rtl; }
.df-chapter.df-reverse .df-chapter-body > * { direction: ltr; }
.df-chapter-text h2,
.df-chapter-text .df-h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--cream);
    margin: 0 0 24px;
}
.df-chapter-text p {
    color: var(--ash);
    max-width: 46ch;
    margin: 0 0 18px;
    font-size: 1.02rem;
}
.df-chapter-text .df-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-family: 'Mulish', sans-serif;
    font-weight: 600;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--sage-bright);
}
.df-chapter-text .df-more::after {
    content: "→";
    transition: transform .25s;
}
.df-chapter-text .df-more:hover::after { transform: translateX(6px); }
.df-pullquote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--cream);
    border-left: 2px solid var(--sage);
    padding-left: 22px;
    margin: 0 0 26px;
    max-width: 44ch;
}

/* ---------- BLENDEN-INDEX ---------- */
.df-index {
    background: var(--stone);
    color: var(--ink);
    padding: 90px 0;
}
.df-index-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
}
.df-index .df-kick {
    font-family: 'Space Mono', monospace;
    font-size: .72rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--sage-deep);
    margin: 0 0 10px;
}
.df-index h3,
.df-index .df-h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--ink);
    margin: 0 0 48px;
    max-width: 24ch;
}
.df-scale {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid rgba(35, 33, 29, .16);
}
.df-stop {
    padding: 30px 24px 34px;
    border-right: 1px solid rgba(35, 33, 29, .12);
    position: relative;
    transition: background .3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.df-stop:last-child { border-right: 0; }
.df-stop:hover { background: rgba(143, 166, 142, .16); }
.df-stop .df-f {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    color: var(--sage-deep);
    margin-bottom: 14px;
    display: block;
}
.df-scale .df-stop:nth-child(2) .df-f { opacity: .9; }
.df-scale .df-stop:nth-child(3) .df-f { opacity: .78; }
.df-scale .df-stop:nth-child(4) .df-f { opacity: .66; }
.df-stop .df-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    color: var(--ink);
    margin-bottom: 8px;
    display: block;
}
.df-stop .df-desc {
    font-size: .86rem;
    color: var(--ash);
    max-width: 24ch;
    display: block;
}

/* ---------- KONTAKT ---------- */
.df-contact { padding: 110px 0 60px; }
.df-contact-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
}
.df-contact .df-big {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.02;
    color: var(--cream);
    margin: 0 0 36px;
    max-width: 16ch;
}
.df-contact .df-big em { font-style: italic; color: var(--sage-bright); }
.df-meta {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 48px;
    border-top: 1px solid rgba(143, 166, 142, .18);
    padding-top: 34px;
    margin-top: 60px;
}
.df-meta .df-col span.df-label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 10px;
}
.df-meta .df-col a,
.df-meta .df-col p {
    color: var(--cream);
    font-size: .96rem;
    line-height: 1.7;
    margin: 0;
}
.df-meta .df-col a:hover { color: var(--sage-bright); }

/* ---------- FOOTER ---------- */
.df-footer .df-legal {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 34px 0px;
    border-top: 1px solid rgba(236, 232, 224, .08);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: .74rem;
    color: var(--ash);
    font-family: 'Mulish', sans-serif;
}
.df-footer .df-legal a { color: var(--ash); }
.df-footer .df-legal a:hover { color: var(--sage-bright); }

/* ---------- BLOG CARDS ---------- */
.df-cards-section {
    padding: 96px 0;
    border-top: 1px solid rgba(143, 166, 142, .12);
}
.df-cards-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
}
.df-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.df-card {
    background: var(--ink-2);
    border: 1px solid rgba(143, 166, 142, .18);
    transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease;
    overflow: hidden;
}
.df-card:hover {
    border-color: var(--sage);
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .35);
}
.df-card-link,
.df-card-link:hover,
.df-card-link:focus,
body.df .df-card a,
body.df .df-card a:hover,
body.df .df-card a:focus {
    text-decoration: none;
}
.df-card-link {
    display: block;
    color: inherit;
}
.df-card-image {
    margin: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.df-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.df-card:hover .df-card-image img { transform: scale(1.04); }
.df-card-body { padding: 28px 28px 32px; }
.df-card-date {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--sage-bright);
    margin-bottom: 14px;
}
.df-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 1.55rem;
    line-height: 1.2;
    color: var(--cream);
    margin: 0 0 14px;
}
.df-card-excerpt {
    color: var(--ash);
    font-size: .95rem;
    line-height: 1.6;
    margin: 0 0 18px;
}
.df-card-author {
    font-family: 'Space Mono', monospace;
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sage-bright);
    margin: 0 0 20px;
}
.df-card .df-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Mulish', sans-serif;
    font-weight: 600;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--sage-bright);
}
.df-card .df-more::after {
    content: "→";
    transition: transform .25s;
}
.df-card:hover .df-more::after { transform: translateX(6px); }

/* ---------- COOKIE-BANNER ---------- */
.df-cookie {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 100;
    background: var(--header);
    border-top: 1px solid rgba(143, 166, 142, .28);
    padding: 22px 0;
    box-shadow: 0 -12px 32px rgba(35, 33, 29, .18);
    animation: df-cookie-slide-up .5s ease both;
}
.df-cookie[hidden] { display: none; }
.df-cookie-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}
.df-cookie-text {
    color: #c9c5bc;
    font-size: .92rem;
    line-height: 1.6;
    margin: 0;
}
.df-cookie-text strong {
    display: inline-block;
    margin-right: .35em;
    color: var(--cream);
    font-weight: 600;
}
body.df .df-cookie-text a {
    color: var(--sage-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(168, 191, 162, .5);
    transition: text-decoration-color .25s;
}
body.df .df-cookie-text a:hover {
    text-decoration-color: var(--sage-bright);
}
.df-cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.df-cookie-actions .df-btn {
    padding: 12px 22px;
    font-size: .72rem;
    cursor: pointer;
    background: transparent;
    color: var(--cream);
}
.df-cookie-actions .df-btn:hover {
    background: var(--sage);
    color: var(--ink);
}
.df-cookie-actions .df-btn.df-ghost {
    border-color: rgba(243, 240, 233, .25);
}
.df-cookie-actions .df-btn.df-ghost:hover {
    border-color: var(--sage);
    background: transparent;
    color: var(--sage-bright);
}
@keyframes df-cookie-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

@media (max-width: 720px) {
    .df-cookie { padding: 18px 0; }
    .df-cookie-inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 20px;
    }
    .df-cookie-actions { width: 100%; }
    .df-cookie-actions .df-btn { flex: 1; text-align: center; }
}

/* ---------- SCROLL-REVEAL ---------- */
.df-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s ease, transform .8s ease;
}
.df-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .df-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- RESPONSIV ---------- */
@media (max-width: 920px) {
    .df-nav { display: none; }
    .df-menu-btn { display: block; }
    .df-hero { grid-template-columns: 1fr; gap: 48px; padding-top: 80px; }
    .df-frame .df-img { aspect-ratio: 3 / 2; }
    .df-chapter-body { grid-template-columns: 1fr; gap: 40px; }
    .df-chapter.df-reverse .df-chapter-body { direction: ltr; }
    .df-scale { grid-template-columns: 1fr 1fr; }
    .df-scale .df-stop:nth-child(2n) { border-right: 0; }
    .df-meta { grid-template-columns: 1fr; gap: 28px; }
    .df-cards { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 520px) {
    .df-header .df-bar { padding: 16px 20px; }
    .df-logo img { height: 40px; }
    .df-hero,
    .df-chapter-inner,
    .df-index-inner,
    .df-contact-inner,
    .df-cards-inner { padding-left: 20px; padding-right: 20px; }
    .df-cards { grid-template-columns: 1fr; gap: 20px; }
    .df-cards-section { padding: 64px 0; }
    .df-scale { grid-template-columns: 1fr; }
    .df-scale .df-stop {
        border-right: 0;
        border-bottom: 1px solid rgba(35, 33, 29, .12);
    }
}
