/* ==========================================================================
   OTAKO WEBSITE KIT — site.css
   Eine Datei für die ganze Seite. Nichts anderes wird gebraucht.
   Farben werden NICHT hier geändert, sondern in themes/farben-<projekt>.css,
   die nach dieser Datei geladen wird.
   ========================================================================== */

/* --- 1. Design-Tokens ---------------------------------------------------- */
:root {
  /* Farben (Standard = Otako Stories, warm/erdig) */
  --farbe-text:        #1c1a17;
  --farbe-text-leise:  #5b544c;
  --farbe-hintergrund: #fbf9f6;
  --farbe-flaeche:     #ffffff;
  --farbe-rand:        #e6e0d7;
  --farbe-akzent:      #9a4a22;
  --farbe-akzent-dunkel:#7a3818;
  --farbe-akzent-leise:#f3e7df;

  /* Schrift */
  --schrift-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-titel: "Fraunces", Georgia, "Times New Roman", serif;

  /* Maße */
  --breite: 1120px;
  --breite-text: 68ch;
  --radius: 14px;
  --radius-klein: 8px;
  --schatten: 0 1px 2px rgba(28,26,23,.06), 0 8px 24px rgba(28,26,23,.06);
  --luft: clamp(3.5rem, 8vw, 6.5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="hell"]) {
    --farbe-text:        #f2efe9;
    --farbe-text-leise:  #b3aca1;
    --farbe-hintergrund: #16140f;
    --farbe-flaeche:     #201d17;
    --farbe-rand:        #37322a;
    --farbe-akzent:      #e3956a;
    --farbe-akzent-dunkel:#f0b18d;
    --farbe-akzent-leise:#2c231c;
    --schatten: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}
:root[data-theme="dunkel"] {
  --farbe-text:        #f2efe9;
  --farbe-text-leise:  #b3aca1;
  --farbe-hintergrund: #16140f;
  --farbe-flaeche:     #201d17;
  --farbe-rand:        #37322a;
  --farbe-akzent:      #e3956a;
  --farbe-akzent-dunkel:#f0b18d;
  --farbe-akzent-leise:#2c231c;
}

/* --- 2. Grundlagen ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: clamp(1.02rem, .3vw + 1rem, 1.12rem);
  line-height: 1.65;
  color: var(--farbe-text);
  background: var(--farbe-hintergrund);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--schrift-titel);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
p  { margin: 0 0 1.1em; max-width: var(--breite-text); text-wrap: pretty; }
a  { color: var(--farbe-akzent); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--farbe-akzent-dunkel); }
img, video { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--farbe-akzent); outline-offset: 3px; border-radius: 4px; }

.nur-screenreader {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprung-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--farbe-akzent); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--radius-klein); transition: top .15s;
}
.sprung-link:focus { top: 1rem; color: #fff; }

/* --- 3. Layout ----------------------------------------------------------- */
.huelle { width: min(100% - 2rem, var(--breite)); margin-inline: auto; }
@media (min-width: 48em) { .huelle { width: min(100% - 4rem, var(--breite)); } }

section { padding-block: var(--luft); }
section.schmal { padding-block: calc(var(--luft) * .6); }
.flaeche { background: var(--farbe-flaeche); }
.flaeche-akzent { background: var(--farbe-akzent-leise); }

.raster { display: grid; gap: 1.5rem; }
@media (min-width: 40em) { .raster.zwei   { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em) { .raster.drei   { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 60em) { .raster.vier   { grid-template-columns: repeat(4, 1fr); } }

.titel-block { max-width: var(--breite-text); margin-bottom: 2.5rem; }
.titel-block .vorzeile {
  font-family: var(--schrift-text); font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--farbe-akzent);
  margin: 0 0 .7rem;
}
.gross { font-size: 1.15em; color: var(--farbe-text-leise); }

/* --- 4. Kopf und Navigation ---------------------------------------------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--farbe-hintergrund) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--farbe-rand);
}
.kopf .huelle {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem;
}
.marke {
  font-family: var(--schrift-titel); font-size: 1.35rem; font-weight: 600;
  color: var(--farbe-text); text-decoration: none; letter-spacing: -.02em;
}
.marke:hover { color: var(--farbe-text); }
.navigation ul {
  display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0;
  align-items: center; font-size: .97rem;
}
.navigation a { color: var(--farbe-text); text-decoration: none; padding-block: .4rem; }
.navigation a:hover, .navigation a[aria-current="page"] {
  color: var(--farbe-akzent); text-decoration: underline;
}
.menue-knopf {
  display: none; background: none; border: 1px solid var(--farbe-rand);
  border-radius: var(--radius-klein); padding: .55rem .8rem; cursor: pointer;
  color: var(--farbe-text); font: inherit; font-size: .9rem;
}
@media (max-width: 52em) {
  .menue-knopf { display: block; }
  .navigation {
    position: absolute; inset: 100% 0 auto 0; display: none;
    background: var(--farbe-flaeche); border-bottom: 1px solid var(--farbe-rand);
    padding: 1rem 1.5rem 1.5rem;
  }
  .navigation.offen { display: block; }
  .navigation ul { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .navigation a { display: block; padding: .7rem 0; width: 100%; }
}

/* --- 5. Hero ------------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero .huelle { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60em) {
  .hero.mit-bild .huelle { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
}
.hero h1 { margin-bottom: .4em; }
.hero .unterzeile { font-size: 1.2rem; color: var(--farbe-text-leise); max-width: 46ch; }
.hero-bild { border-radius: var(--radius); box-shadow: var(--schatten); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* --- 6. Knöpfe ----------------------------------------------------------- */
.knopf-reihe { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.knopf {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--farbe-akzent); color: #fff; text-decoration: none;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 2px solid var(--farbe-akzent); cursor: pointer; font-family: inherit;
  transition: transform .12s ease, background-color .12s ease;
}
.knopf:hover { background: var(--farbe-akzent-dunkel); border-color: var(--farbe-akzent-dunkel); color: #fff; transform: translateY(-1px); }
.knopf.leise { background: transparent; color: var(--farbe-akzent); }
.knopf.leise:hover { background: var(--farbe-akzent-leise); color: var(--farbe-akzent-dunkel); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="hell"]) .knopf { color: #16140f; } :root:not([data-theme="hell"]) .knopf:hover { color: #16140f; } }

/* --- 7. Karten, Zahlen, Zitate ------------------------------------------- */
.karte {
  background: var(--farbe-flaeche); border: 1px solid var(--farbe-rand);
  border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--schatten);
}
.karte h3 { margin-bottom: .4em; }
.karte p:last-child { margin-bottom: 0; }
.karte .symbol { font-size: 1.6rem; line-height: 1; margin-bottom: .9rem; display: block; }
a.karte { text-decoration: none; color: inherit; display: block; transition: transform .12s ease; }
a.karte:hover { transform: translateY(-2px); border-color: var(--farbe-akzent); color: inherit; }

.zahlen { display: grid; gap: 2rem; text-align: center; }
@media (min-width: 40em) { .zahlen { grid-template-columns: repeat(3, 1fr); } }
.zahl { font-family: var(--schrift-titel); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--farbe-akzent); line-height: 1; }
.zahl + p { color: var(--farbe-text-leise); margin: .5rem auto 0; max-width: 22ch; }

.zitat {
  border-left: 3px solid var(--farbe-akzent); padding-left: 1.5rem;
  font-family: var(--schrift-titel); font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.4; margin: 0; max-width: 40ch;
}
.zitat footer { font-family: var(--schrift-text); font-size: .95rem; color: var(--farbe-text-leise); margin-top: 1rem; }

/* --- 8. Formular --------------------------------------------------------- */
.formular { display: grid; gap: 1.1rem; max-width: 34rem; }
.feld { display: grid; gap: .35rem; }
.feld label { font-weight: 600; font-size: .95rem; }
.feld input, .feld textarea, .feld select {
  font: inherit; font-size: 1rem; color: var(--farbe-text);
  background: var(--farbe-flaeche); border: 1px solid var(--farbe-rand);
  border-radius: var(--radius-klein); padding: .8rem .9rem; width: 100%;
}
.feld textarea { min-height: 9rem; resize: vertical; }
.feld .hinweis { font-size: .85rem; color: var(--farbe-text-leise); }
.zustimmung { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.zustimmung input { width: 1.1rem; height: 1.1rem; margin-top: .25rem; flex: none; }

/* --- 9. Fuß -------------------------------------------------------------- */
.fuss {
  border-top: 1px solid var(--farbe-rand); padding-block: 3rem 2rem;
  font-size: .93rem; color: var(--farbe-text-leise);
}
.fuss .huelle { display: grid; gap: 2rem; }
@media (min-width: 48em) { .fuss .huelle { grid-template-columns: 1.4fr 1fr 1fr; } }
.fuss h3 { font-family: var(--schrift-text); font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--farbe-text); margin-bottom: .9rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.fuss a { color: var(--farbe-text-leise); }
.fuss a:hover { color: var(--farbe-akzent); }
.fuss-zeile { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--farbe-rand); font-size: .87rem; }

/* --- 10. Fließtext-Seiten (Impressum, Datenschutz, Blog) ------------------ */
.text-seite { max-width: var(--breite-text); }
.text-seite h2 { margin-top: 2.2em; }
.text-seite ul, .text-seite ol { max-width: var(--breite-text); padding-left: 1.3em; }
.text-seite li { margin-bottom: .4em; }

/* --- 11. Sprachumschalter ------------------------------------------------ */
.sprachen { display: flex; gap: .4rem; font-size: .85rem; }
.sprachen a {
  text-decoration: none; padding: .25rem .55rem; border-radius: var(--radius-klein);
  border: 1px solid var(--farbe-rand); color: var(--farbe-text-leise);
}
.sprachen a[aria-current="true"] { background: var(--farbe-akzent); border-color: var(--farbe-akzent); color: #fff; }

/* --- 12. Druck ----------------------------------------------------------- */
@media print {
  .kopf, .fuss, .knopf-reihe, .sprung-link { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
}

/* --- Seiten-eigene Ergänzung (otako-stories) ------------------------------ */
/* Die Fußzeile hat hier vier Spalten statt drei. */
@media (min-width: 48em) {
  .fuss .huelle { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
/* Ankerziele nicht unter der klebenden Kopfzeile verstecken */
[id] { scroll-margin-top: 6rem; }


/* Anfrage-Liste auf der Kontaktseite */
.anfrage-liste { margin: 1.2rem 0; padding-left: 1.3rem; display: grid; gap: .55rem; }
.anfrage-liste li { line-height: 1.5; }
.anfrage-liste li::marker { color: var(--farbe-akzent); font-weight: 600; }
