/* =========================================================
   Alina Nerlich – Stylesheet
   Editorial-Stil · mobile first · Schriften lokal (DSGVO)
   ========================================================= */

@font-face { font-family: "Instrument Serif"; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }

/* ---------- Farben ---------- */
:root {
  --bg: #f3f1ee;          /* warmes Hellgrau */
  --bg-alt: #e9e6e1;      /* abgesetzte Abschnitte */
  --text: #2b2523;        /* Fließtext, fast schwarz */
  --muted: #5c5350;       /* Nebentext */
  --ink: #bf3014;         /* Koralle – Akzentfarbe */
  --line: rgba(43, 37, 35, .18);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: 20px;
}
/* Saisonale Akzentfarbe (gesetzt von assets/js/season.js) */
:root[data-saison="herbst"]    { --ink: #bf3014; }  /* Rostrot */
:root[data-saison="winter"]    { --ink: #1f5b45; }  /* Dunkelgrün */
:root[data-saison="fruehling"] { --ink: #14735c; }  /* Mintgrün */
:root[data-saison="sommer"]    { --ink: #c2185b; }  /* Pink */
:root { --ink-soft: color-mix(in srgb, var(--ink) 14%, #fff); }

@media (min-width: 720px) { :root { --pad: 32px; } }

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1.125rem; line-height: 1.5; letter-spacing: -0.005em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 10; background: var(--text); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { padding: 0 var(--pad); max-width: 1280px; margin: 0 auto; }
.italic { font-family: var(--serif); font-style: italic; letter-spacing: 0; }
.accent { color: var(--ink); }

/* ---------- Kopfzeile ---------- */
.top { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.top nav ul { display: flex; gap: 18px; font-size: 1.05rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top nav .hide-sm { display: none; }
.top nav .nav-cta { color: var(--ink); }
@media (min-width: 900px) { .top nav ul { font-size: 1.2rem; gap: 24px; } .top nav .hide-sm { display: list-item; } }
.tagline { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin: 10px 0 0; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding-bottom: 72px; }
.display {
  font-family: var(--serif); text-transform: uppercase; line-height: .86; letter-spacing: -0.01em;
  font-size: clamp(3rem, 18vw, 14rem); margin: 32px 0 0; position: relative; z-index: 2;
}
.display > span, .display > a > span { display: block; }
.display .italic { color: var(--ink); }
.hero__grid { display: grid; gap: 40px; margin-top: 32px; }
.hero__text { font-size: clamp(1.2rem, 1.8vw, 1.5rem); max-width: 26em; }
.hero__photo { margin: 0; }
.hero__photo img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; object-position: 50% 20%; }
.caption { margin-top: 12px; }
.caption strong { display: block; font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.4rem); text-transform: uppercase; line-height: 1; }
.caption .italic { font-size: clamp(1.4rem, 2.2vw, 2rem); color: var(--muted); }
@media (min-width: 900px) {
  .hero .display { font-size: 11.6vw; }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 4vw; margin-top: 0; }
  .hero__photo { margin-top: -6vw; position: relative; z-index: 1; }
  .hero__text { align-self: end; padding-bottom: 6vw; }
}
@media (min-width: 1280px) { .hero .display { font-size: 9.2rem; } .hero__photo { margin-top: -77px; } .hero__text { padding-bottom: 77px; } }

.cta-link { display: inline-flex; gap: 10px; align-items: baseline; font-size: clamp(1.3rem, 2vw, 1.7rem); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 4px; margin-top: 12px; color: var(--ink); transition: gap .2s; }
.cta-link:hover { gap: 16px; }

/* ---------- Abschnitte ---------- */
.section { padding: 80px 0; }
@media (min-width: 900px) { .section { padding: 128px 0; } }
.section--alt { background: var(--bg-alt); }
.section-title { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 48px; display: inline-block; color: var(--ink); line-height: 1.1; }
.section-title--line { border-bottom: 1px solid currentColor; }
.lead { font-size: clamp(1.2rem, 1.8vw, 1.5rem); max-width: 30em; }
.split { display: grid; gap: 8px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4vw; } }

/* Probleme */
.pains li { display: grid; gap: 6px; padding: 24px 0; border-top: 1px solid var(--line); }
.pains li:last-child { border-bottom: 1px solid var(--line); }
.pains strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.05; }
.pains span { color: var(--muted); }
.pains small { color: var(--ink); font-size: .9rem; }
@media (min-width: 900px) { .pains li { grid-template-columns: 60px 1fr; column-gap: 16px; } .pains span { grid-column: 2; } }

/* Leistungen */
.big-list { margin: 0 0 72px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; line-height: .98; font-size: clamp(2.4rem, 7vw, 5.6rem); color: var(--ink); }
.wide-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 45%; margin-bottom: 72px; }
@media (min-width: 900px) { .wide-photo { aspect-ratio: 21 / 9; margin-bottom: 96px; } }
.services { display: grid; gap: 48px; }
@media (min-width: 900px) { .services { grid-template-columns: 1fr 1fr; gap: 56px 6vw; } }
.service__num { display: block; font-size: 1.6rem; color: var(--ink); margin-bottom: 6px; }
.service h3 { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.05; margin-bottom: 10px; color: var(--ink); }
.service p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 28em; margin: 0; }
.extra { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.extra strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; }
@media (min-width: 900px) { .extra { grid-template-columns: 1fr 1fr; gap: 6vw; align-items: baseline; } }

/* Beispielprojekte */
.cases { display: grid; gap: 56px; margin-top: 56px; }
@media (min-width: 900px) {
  /* Alle Boxen teilen sich dieselben Zeilen: Kategorie, Titel, Text und Ergebnis stehen jeweils auf einer Höhe */
  .cases { grid-template-columns: repeat(3, 1fr); column-gap: 4vw; row-gap: 0; }
  .case { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .case dl { align-content: start; }
}
.case { border-top: 1px solid var(--text); padding-top: 18px; }
.case__tag { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.case h3 { font-family: var(--serif); font-size: clamp(1.8rem, 2.4vw, 2.2rem); line-height: 1.1; margin-bottom: 20px; }
.case dl { margin: 0; display: grid; gap: 14px; }
.case dt { font-family: var(--serif); font-style: italic; font-size: 1.25rem; }
.case dd { margin: 0; color: var(--muted); font-size: 1rem; }
.case__result { margin-top: 24px; font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.2; color: var(--ink); }
.offer-note { margin-top: 72px; font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.15; max-width: 22em; }

/* Ablauf */
.rows li { display: grid; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows small { font-size: .9rem; color: var(--ink); }
.rows strong { font-weight: 400; font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; }
.rows span { font-size: 1.05rem; align-self: center; }
@media (min-width: 900px) { .rows li { grid-template-columns: 120px 1fr; align-items: baseline; padding: 22px 0; } .rows span { grid-column: 2; } }

/* Über mich */
.about { display: grid; gap: 40px; }
.about__photo { width: 100%; max-width: 560px; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; } }
.about-text p { font-size: clamp(1.2rem, 1.8vw, 1.5rem); max-width: 30em; }
.about-text p:last-child { margin-bottom: 0; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.15; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.8rem; line-height: 1; color: var(--ink); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--ink); }
.faq__answer { padding: 0 0 28px; max-width: 40em; font-size: 1.1rem; }
.faq__answer p:last-child { margin: 0; }

/* Abschluss */
.end { padding: 96px 0 40px; }
.end .display { font-size: clamp(3rem, 13vw, 13rem); margin: 0 0 28px; }
.end .display a { text-decoration: none; }
.end .display a:hover .italic { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 10px; }
.end__mark svg { width: 64px; height: auto; margin-bottom: 24px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 96px; font-size: .95rem; color: var(--muted); }
.foot ul { display: flex; gap: 20px; }
.foot a { text-underline-offset: 3px; }

/* ---------- Rechtstexte ---------- */
.legal { padding: 64px 0 96px; }
.legal .wrap > * { max-width: 760px; }
.legal h1 { font-family: var(--serif); text-transform: uppercase; font-size: clamp(3rem, 10vw, 6.5rem); line-height: .9; margin-bottom: 40px; }
.legal h2 { font-family: var(--serif); font-style: italic; font-size: 1.9rem; margin: 48px 0 12px; color: var(--ink); }
.legal p { font-size: 1.05rem; }
.placeholder { border: 1px dashed var(--ink); padding: 16px 20px; }
.back-link { display: inline-block; margin-bottom: 40px; color: var(--ink); text-underline-offset: 4px; }

/* Community-Illustration */
.showcase { }
.showcase__figure { margin: 0; }
.mock { width: 100%; height: auto; display: block; overflow: visible; }
.mock text { font-family: var(--sans); fill: var(--text); }
.mock .m-serif { font-family: var(--serif); }
.mock .m-xxs { font-size: 10px; }
.mock .m-xs { font-size: 12px; }
.mock .m-s { font-size: 14px; }
.mock .m-m { font-size: 16px; }
.mock .m-l { font-size: 22px; }
.mock .m-xl { font-size: 38px; }
.mock .m-bold { font-weight: 600; }
.mock .m-caps { letter-spacing: .1em; }
.mock .m-muted { fill: #7a706b; }
.mock .m-ink { fill: var(--ink); }
.mock .m-white { fill: #fff; }
.showcase__caption { margin-top: 24px; font-size: .95rem; color: var(--muted); }
.alt-contact { margin-top: 16px; font-size: 1.05rem; color: var(--muted); }
.alt-contact a { color: var(--text); text-underline-offset: 3px; }

/* Illustration folgt der Saisonfarbe */
.mock .fi { fill: var(--ink); }
.mock .si { stroke: var(--ink); }
.mock .ft { fill: var(--ink-soft); }
