/* EOTG Website v2.0, gemeinsame Stile für alle Seiten (Startseite, Impressum, Datenschutz, 404,
   Bestätigungsseite des Formulars ohne JavaScript)
   Gestaltung: Designvorschlag D. Altes Geld, modern gesetzt: Tannengrün, Kalkstein, Messing nur in feinen Linien.
   Voltaire als Leitsatz, Wortbildmarke unverändert in Weiß. */

/* 01 Basis-Stile */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
}

:root {
  --tanne: #0e2a22;     /* Grund: Kopfzeile, Hero, Kontakt */
  --tanne-tief: #0a211b;/* Fußzeile */
  --moos: #244b3e;      /* Linien auf Tanne */
  --kalk: #eef0ec;      /* heller Grund */
  --weiss: #ffffff;
  --tinte: #13211c;     /* Text auf Hell */
  --text: #2d3a35;      /* Fließtext auf Hell */
  --grau: #5b6762;      /* Nebentext auf Hell */
  --linie: #cdd3cb;     /* Linien auf Hell */
  --nebel: #a9b8b0;     /* Nebentext auf Tanne */
  --hell: #cdd8d2;      /* Fließtext auf Tanne */
  --messing: #b89a5e;   /* nur feine Linien, Fokus und Zustände */
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --rand: clamp(20px, 5vw, 72px);
  --kopf: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--kopf); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--kalk); color: var(--tinte); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--messing); outline-offset: 4px; }
abbr[title] { text-decoration: none; border-bottom: 1px dotted currentColor; cursor: help; }
h1, h2, h3, p { margin: 0; }
h2, h3 { font-family: var(--serif); font-weight: 350; font-optical-sizing: auto; letter-spacing: -.02em; text-wrap: balance; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 var(--rand); }

/* Link mit Unterstreichung, die beim Darüberfahren zurückläuft */
.u { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .35s cubic-bezier(.2, .7, .2, 1); }
.u:hover { background-size: 0% 1px; background-position: right bottom; }

.btn { display: inline-flex; align-items: center; gap: 14px; font: 600 .95rem/1 var(--sans); padding: 18px 26px; border-radius: 999px; text-decoration: none; border: 1px solid currentColor; cursor: pointer; transition: background .3s, color .3s, gap .3s; }
.btn::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .3s; }
.btn:hover { gap: 18px; }
.btn:hover::after { width: 26px; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-hell { background: var(--weiss); color: var(--tanne); border-color: var(--weiss); }
.btn-hell:hover { background: transparent; color: var(--weiss); }

/* 02 Kopfzeile: über dem Hero transparent, beim Scrollen und auf Unterseiten fest */
.kopf { position: fixed; inset: 0 0 auto 0; z-index: 20; color: var(--weiss); transition: background .4s, box-shadow .4s; }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--kopf); gap: 24px; }
.kopf-logo { display: block; }
.kopf-logo img { width: clamp(170px, 17vw, 232px); transition: width .4s; }
.kopf.fest { background: var(--tanne); box-shadow: 0 1px 0 var(--moos); }
.kopf.fest .kopf-logo img { width: clamp(150px, 13vw, 190px); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { font-size: .95rem; text-decoration: none; color: #dfe6e2; background: linear-gradient(var(--messing), var(--messing)) left bottom / 0% 1px no-repeat; padding-bottom: 3px; transition: background-size .3s, color .3s; }
.nav a:not(.btn):hover { color: var(--weiss); background-size: 100% 1px; }
.nav .btn { padding: 12px 20px; font-size: .9rem; }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; font-weight: 600; padding: 9px 16px; border: 1px solid currentColor; border-radius: 999px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav-liste { position: absolute; right: 0; top: calc(100% + 12px); background: var(--tanne); border: 1px solid var(--moos); min-width: 230px; padding: 10px 0; }
.mnav-liste a { display: block; padding: 11px 20px; text-decoration: none; }
.mnav-liste a:hover { color: var(--messing); }

/* 03 Hero: der Leitsatz ist die Bühne */
.hero { background: var(--tanne); color: var(--weiss); min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--kopf) + 64px) 0 clamp(48px, 6vw, 80px); }
.hero .wrap { width: 100%; }
.leitsatz { margin: 0; }
.leitsatz p { font: 300 clamp(3.1rem, 8.6vw, 9rem)/.98 var(--serif); font-optical-sizing: auto; letter-spacing: -.035em; max-width: 16ch; }
.leitsatz cite { display: block; font: italic 400 clamp(1.05rem, 1.4vw, 1.3rem)/1.4 var(--serif); color: var(--nebel); margin-top: clamp(20px, 2.4vw, 32px); }
.strich { height: 1px; background: var(--moos); margin: clamp(40px, 5vw, 64px) 0 clamp(32px, 4vw, 48px); position: relative; overflow: hidden; }
.strich::after { content: ""; position: absolute; inset: 0; background: var(--messing); transform-origin: left; transform: scaleX(.18); }
.hero-unten { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.hero h1 { font: 500 clamp(1.5rem, 2.2vw, 2rem)/1.25 var(--sans); letter-spacing: -.015em; margin-bottom: 14px; }
.hero .lead { color: var(--hell); max-width: 56ch; margin-bottom: 30px; }
.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
.fakten { list-style: none; margin: 0; padding: 0; font-size: .95rem; color: var(--hell); }
.fakten li { padding: 14px 0; border-top: 1px solid var(--moos); }
.fakten li:last-child { border-bottom: 1px solid var(--moos); }
.fakten strong { color: var(--weiss); font-weight: 600; }

/* Ladesequenz: Leitsatz Wort für Wort, dann Messinglinie, dann der Rest (einmalig) */
.js .leitsatz .w { display: inline-block; opacity: 0; transform: translateY(.32em); animation: wort .9s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(.25s + var(--i) * 85ms); }
.js .leitsatz cite { opacity: 0; animation: auf .9s ease 1.05s forwards; }
.js .hero-unten { opacity: 0; animation: auf .9s ease 1.35s forwards; }
.js .strich::after { transform: scaleX(0); animation: linie 1.4s cubic-bezier(.6, .05, .25, 1) 1s forwards; }
@keyframes wort { to { opacity: 1; transform: none; } }
@keyframes auf { to { opacity: 1; } }
@keyframes linie { to { transform: scaleX(.18); } }

/* Abschnitte auf Hell: Überschrift links (mitlaufend), Inhalt rechts */
.abschnitt { padding: clamp(96px, 11vw, 168px) 0; }
.abschnitt + .abschnitt { border-top: 1px solid #d6dbd4; }
.zweispaltig { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.seitenkopf { position: sticky; top: calc(var(--kopf) + 32px); }
.seitenkopf h2 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1.05; margin-bottom: 20px; }
.seitenkopf p { color: var(--grau); max-width: 34ch; }

/* 04 Grundsätze */
.grundsatz { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 64px); padding: 34px 0; border-top: 1px solid var(--linie); }
.grundsatz:last-child { border-bottom: 1px solid var(--linie); }
.grundsatz h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.15; }
.grundsatz p { color: var(--text); }

/* 05 Vorgehen: Die Schriftstärke wächst mit der Stufe */
.stufen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.stufe { border-top: 1px solid var(--tinte); padding-top: 22px; }
.stufe-wort { display: block; font: var(--w-ende) clamp(2.8rem, 4.6vw, 4.6rem)/1 var(--serif); letter-spacing: -.04em; margin-bottom: 26px; transition: font-weight 1.2s cubic-bezier(.3, .7, .2, 1); }
.js .stufen:not(.sichtbar) .stufe-wort { font-weight: 250; }
.stufe:nth-child(1) { --w-ende: 300; }
.stufe:nth-child(2) { --w-ende: 560; }
.stufe:nth-child(3) { --w-ende: 850; }
.stufe:nth-child(2) .stufe-wort { transition-delay: .18s; }
.stufe:nth-child(3) .stufe-wort { transition-delay: .36s; }
.stufe h3 { font: 600 1rem/1.4 var(--sans); letter-spacing: 0; margin-bottom: 6px; }
.stufe p { color: var(--text); }

/* 06 Produkte */
.produkte { display: grid; gap: 16px; }
.produkt { background: var(--weiss); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.produkt:hover { transform: translateY(-3px); }
.vittorio-logo { width: min(280px, 100%); }
.produkt h3 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 10px; }
.produkt p { color: var(--text); margin-bottom: 20px; }
.produkt-fuss { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; font-size: .95rem; }
.status { color: var(--grau); }
.produkt-offen { background: transparent; border: 1px solid var(--linie); }
.produkt-offen .gross { font: italic 300 clamp(2rem, 3vw, 2.8rem)/1.1 var(--serif); color: var(--grau); }

/* 07 Gründer: beide Spalten teilen dieselben Zeilen (kein Versatz) */
.gruender { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); column-gap: clamp(32px, 5vw, 80px); }
.person { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.person h3 { font-size: clamp(1.7rem, 2.3vw, 2.3rem); line-height: 1.1; align-self: end; }
@media (min-width: 701px) { .person h3 { white-space: nowrap; } }
.rolle { color: var(--grau); margin: 8px 0 20px; }
.person .bio { color: var(--text); margin-bottom: 24px; max-width: 46ch; }
.firma { border-top: 1px solid var(--linie); padding-top: 18px; }
.firma-name { font: 400 1.35rem/1.3 var(--serif); }
.firma .status { display: block; font-size: .95rem; margin-top: 2px; }
.person-kontakt { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; font-size: .95rem; font-weight: 600; }
.hinweis { margin-top: clamp(48px, 6vw, 80px); color: var(--grau); font-size: .95rem; }

/* 08 Kontakt und 09 Kontaktformular auf Tanne */
.kontakt-bereich { background: var(--tanne); color: var(--weiss); padding: clamp(96px, 11vw, 168px) 0; }
.kontakt-bereich h2 { font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1.04; margin-bottom: 22px; }
.kontakt-bereich .seitenkopf p { color: var(--hell); }
.anschrift { margin-top: 36px; font-size: .95rem; line-height: 1.7; }
.anschrift strong { color: var(--weiss); font-weight: 600; }
.formular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 32px; }
.feld { display: flex; flex-direction: column-reverse; gap: 8px; }
.feld-voll { grid-column: 1 / -1; }
.feld label { font-size: .9rem; color: var(--nebel); transition: color .3s; }
.feld input, .feld textarea { font: inherit; color: var(--weiss); background: transparent; border: 0; border-bottom: 1px solid var(--moos); padding: 10px 0; border-radius: 0; transition: border-color .3s; }
.feld textarea { min-height: 120px; resize: vertical; }
.feld input:focus, .feld textarea:focus { outline: none; border-bottom-color: var(--messing); }
.feld input:focus + label, .feld textarea:focus + label { color: var(--weiss); }
.zustimmung { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--hell); }
.zustimmung input { margin-top: 5px; width: 17px; height: 17px; flex: none; accent-color: var(--messing); }
.formular .btn { justify-self: start; }
.eotg-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.eotg-form-fehler { grid-column: 1 / -1; color: #f3c9b5; font-weight: 600; }
.eotg-form-fehler:empty { display: none; }
.eotg-form-danke { border-top: 1px solid var(--messing); padding-top: 26px; font: 300 clamp(1.6rem, 2.6vw, 2.2rem)/1.25 var(--serif); color: var(--weiss); outline: none; }

/* 10 Fußzeile */
.fuss { background: var(--tanne-tief); color: var(--hell); padding: clamp(72px, 8vw, 112px) 0 40px; font-size: .95rem; }
.fuss-logo { display: block; width: min(460px, 90%); margin-bottom: clamp(48px, 6vw, 80px); }
.fuss-logo img { width: 100%; }
.fuss-raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--moos); padding-top: 28px; }
.fuss-raster strong { display: block; color: var(--weiss); font-weight: 600; margin-bottom: 8px; }
.fuss-raster a { display: block; text-decoration: none; line-height: 1.9; width: fit-content; }
.fuss-raster a:hover { color: var(--weiss); text-decoration: underline; text-underline-offset: 3px; }
.fuss address { font-style: normal; line-height: 1.7; }
.fuss .klein { margin-top: 48px; color: var(--nebel); font-size: .875rem; }

/* Rechtsseiten, 404 und Bestätigungsseite */
.recht { padding: calc(var(--kopf) + clamp(64px, 8vw, 112px)) 0 clamp(96px, 10vw, 144px); }
.recht-text { max-width: 46rem; overflow-wrap: break-word; hyphens: auto; color: var(--text); }
.recht-text h1 { font: 350 clamp(2.4rem, 5vw, 4.2rem)/1.04 var(--serif); letter-spacing: -.025em; color: var(--tinte); margin-bottom: 44px; }
.recht-text h2 { font-size: 1.6rem; line-height: 1.25; color: var(--tinte); margin: 52px 0 12px; }
.recht-text p, .recht-text ul { margin: 0 0 16px; }
.recht-text ul { padding-left: 1.2em; }
.recht-text li { margin-bottom: 6px; }
.recht-text a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.recht-text .anbieter { font-size: 1.15rem; line-height: 1.6; color: var(--tinte); }
.recht-text .stand { color: var(--grau); margin-top: 48px; font-size: .95rem; }
.recht-text .hervor { border-left: 2px solid var(--messing); padding: 4px 0 4px 18px; }
.recht-text .verweis { font-weight: 600; }

@media (max-width: 1040px) {
  .nav { display: none; }
  .mnav { display: block; }
  .hero-unten, .zweispaltig, .produkt { grid-template-columns: 1fr; }
  .seitenkopf { position: static; }
  .fuss-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .stufen, .formular, .grundsatz { grid-template-columns: 1fr; }
  .grundsatz { gap: 8px; }
  .gruender { grid-template-columns: 1fr; }
  .person + .person { margin-top: 56px; }
  .fuss-raster { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .leitsatz .w, .js .leitsatz cite, .js .hero-unten { opacity: 1; transform: none; }
  .js .strich::after { transform: scaleX(.18); }
  .js .stufen:not(.sichtbar) .stufe-wort { font-weight: var(--w-ende); }
}
