/* Kauf- und Lizenzbedingungen von masterbach (seit 24.11.2026). Gleiche Bühne wie /changes/, hell und dunkel. */
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/inter-600.woff2") format("woff2"); }

:root {
  --bg: #f5f4f0; --flaeche: #ffffff; --text: #1c1b19; --text2: #5b5850; --linie: #dcd8ce;
  --akzent: #b8460b; --akzent-zart: #fbe8dc; --gut: #177a3c; --gut-zart: #e3f3e8; --grau-zart: #ecebe6;
  --buehne: #0d0b0a; --buehne-text: #f6f0e8; --buehne-leise: #c3b8ab; --glut: #fb8a46; --glut-hell: #ffc49e; --glut-tief: #b8460b;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111; --flaeche: #1b1b1d; --text: #f1efea; --text2: #aaa69d; --linie: #333337;
    --akzent: #fb8a46; --akzent-zart: #3a2416; --gut: #6fd39a; --gut-zart: #16301f; --grau-zart: #26262a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: clip; }
a { color: var(--akzent); text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--glut); outline-offset: 2px; border-radius: 3px; }
.innen { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Kopf als dunkle Bühne */
.kopf { position: relative; isolation: isolate; padding: 22px 0 46px; color: var(--buehne-text);
  background: radial-gradient(50% 80% at 85% 10%, rgba(251, 138, 70, .25), transparent 70%),
    radial-gradient(45% 70% at 0% 100%, rgba(184, 70, 11, .3), transparent 70%), var(--buehne); }
.kopf a { color: var(--glut-hell); }
.marke { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--buehne-text) !important; text-decoration: none; }
.marke-spur, .marke-bogen, .marke-welle { fill: none; stroke-linecap: round; }
.marke-spur { stroke: rgba(255, 255, 255, .16); stroke-width: 6; }
.marke-bogen { stroke: url(#marke-verlauf); stroke-width: 6; }
.marke-welle { stroke: var(--buehne-text); stroke-width: 5; }
.marke-verlauf-a { stop-color: #9a3a08; }
.marke-verlauf-b { stop-color: #d96d27; }
.marke-wort { font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 1.45rem; letter-spacing: -.035em; line-height: 1; }
.marke-wort b { font-weight: 600; color: var(--glut); }
.oberzeile { margin: 34px 0 .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--glut); }
h1 { margin: 0; font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: clamp(2rem, 1.2rem + 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 { background: linear-gradient(100deg, #fff 30%, var(--glut-hell) 70%, var(--glut)); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.lead { margin: 1rem 0 .6rem; max-width: 36rem; color: var(--buehne-leise); font-size: 1.08rem; }
.stand { margin: 0; color: var(--buehne-leise); font-size: .88rem; }
.fassung { margin: .35rem 0 0; color: var(--buehne-leise); font-size: .88rem; max-width: 62ch; }
.fassung a { color: var(--glut-hell); }

main.innen { padding-top: 28px; padding-bottom: 24px; }
h2 { margin: 0 0 10px; font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 1.25rem; letter-spacing: -.015em; }

/* Inhalt: nummerierte Abschnitte als Karten */
.inhalt { list-style: none; margin: 0 0 22px; padding: 14px 18px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); columns: 2 16rem; column-gap: 28px; }
.inhalt li { padding: 3px 0; break-inside: avoid; }
.abschnitt { margin: 0 0 18px; padding: 18px 20px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); scroll-margin-top: 16px; }
.abschnitt h2 { font-size: 1.12rem; }
.abschnitt p, .abschnitt ul { margin: 0 0 10px; }
.abschnitt p:last-child, .abschnitt ul:last-child { margin-bottom: 0; }
.abschnitt ul { padding-left: 1.2rem; }
.abschnitt li { margin: 4px 0; }
.abschnitt strong { font-weight: 650; }
.produkt { display: grid; gap: 2px; }
.kurz { margin: 0 0 22px; padding: 16px 18px; border: 1px solid var(--linie); border-left: 4px solid var(--akzent); border-radius: 12px; background: var(--flaeche); }
.kurz h2 { font-size: 1.05rem; margin-bottom: 6px; }
.kurz ul { margin: 0; padding-left: 1.2rem; color: var(--text2); }

.fuss { padding-bottom: 40px; color: var(--text2); font-size: .9rem; }
.fuss p { margin: 0; padding-top: 16px; border-top: 1px solid var(--linie); }

@media (max-width: 520px) {
  .kopf { padding-bottom: 36px; }
  .oberzeile { margin-top: 24px; }
  .abschnitt { padding: 14px 14px; }
}

/* Menü von masterbach (25.11.2026): Knopf im dunklen Kopf, Tafel klappt darunter auf. Gilt auf der Startseite
   (stil.css) und auf den Info- und Bedingungsseiten (seite.css, bedingungen.css). */
.menue { position: relative; flex: none; margin-left: 8px; }
.menue-knopf { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--buehne-linie, rgba(255, 255, 255, .13));
  border-radius: 999px; color: var(--buehne-text); font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; list-style: none; user-select: none; }
.menue-knopf::-webkit-details-marker { display: none; }
.menue-knopf::marker { content: ""; }
.menue-knopf:hover, .menue[open] > .menue-knopf { border-color: var(--glut); color: var(--glut-hell); }
.menue-knopf:focus-visible { outline: 3px solid var(--glut-hell); outline-offset: 2px; }
.menue-symbol { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menue[open] .menue-symbol path { d: path("M6 6l12 12M18 6L6 18"); }
.menue-tafel { position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; width: min(310px, calc(100vw - 32px)); max-height: calc(100vh - 96px); overflow-y: auto;
  padding: 8px; border: 1px solid var(--buehne-linie, rgba(255, 255, 255, .13)); border-radius: 14px; background: var(--buehne-flaeche, #18130f);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45); color: var(--buehne-text); text-align: left; }
.menue-tafel ul { list-style: none; margin: 0; padding: 0; }
.menue-tafel a { display: flex; align-items: center; min-height: 44px; padding: .45rem .8rem; border-radius: 10px; color: var(--buehne-text) !important;
  font-size: .95rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.menue-tafel a:hover { background: rgba(251, 138, 70, .14); color: var(--glut-hell) !important; }
.menue-tafel a:focus-visible { outline: 3px solid var(--glut-hell); outline-offset: -3px; }
.menue-tafel a[aria-current="page"] { color: var(--glut-hell) !important; box-shadow: inset 3px 0 0 var(--glut); }
/* Symbole vor den Hauptpunkten (25.11.2026): gleiche Linienzeichnung wie auf den Info-Seiten */
.menue-tafel .menue-sym { flex: none; width: 18px; height: 18px; margin-right: 12px; fill: none; stroke: var(--glut); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.menue-tafel a:hover .menue-sym, .menue-tafel a[aria-current="page"] .menue-sym { opacity: 1; stroke: var(--glut-hell); }
.menue-tafel a[aria-current="page"] { background: rgba(251, 138, 70, .1); }
.menue-gruppe { margin: 10px 0 2px; padding: 0 .8rem; color: var(--buehne-leise); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.menue-sprachen { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 4px !important; }
.menue-sprachen a { min-height: 44px; padding: .3rem .7rem; border: 1px solid var(--buehne-linie, rgba(255, 255, 255, .13)); border-radius: 999px; font-size: .82rem; }
.menue-sprachen a[aria-current="page"] { border-color: var(--glut); box-shadow: none; }
.menue-klein { display: flex; flex-wrap: wrap; gap: 0 2px; margin-top: 8px !important; padding-top: 6px !important; border-top: 1px solid var(--buehne-linie, rgba(255, 255, 255, .13)); }
.menue-klein a { min-height: 44px; color: var(--buehne-leise) !important; font-size: .82rem; font-weight: 500; }

/* Info- und Bedingungsseiten: Marke links, Menü rechts in der ersten Zeile des Kopfs */
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body > .kopf { z-index: 5; }

/* Startseite: Menü rechts aussen; auf schmalen Bildschirmen in der ersten Zeile neben Marke und Lizenz */
.kopf-innen > .marke + .kopf-nav { margin-left: auto; }
@media (max-width: 620px) {
  /* Erste Zeile: Marke, Lizenz, Menü als Symbol; die Tafel öffnet über die ganze Kopfbreite */
  .kopf-innen { position: relative; }
  .kopf-innen > .menue { position: static; order: 1; margin-left: auto; }
  .kopf-innen > .kopf-lizenz ~ .menue { margin-left: 8px; }
  .kopf-innen > .kopf-nav { order: 2; width: 100%; margin-left: 0; flex-wrap: nowrap; justify-content: space-between; }
  .kopf-innen > .kopf-nav .sprachwahl { position: static; }
  .kopf-innen > .kopf-nav .sprachwahl-liste { top: calc(100% - 2px); left: auto; right: 16px; }
  .kopf-innen > .menue .menue-knopf { justify-content: center; min-width: 44px; padding: 0 .6rem; }
  .kopf-innen > .menue .menue-wort { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .kopf-innen > .menue .menue-tafel { top: calc(100% - 2px); left: 16px; right: 16px; width: auto; }
}
@media (max-width: 359px) {
  /* Sehr schmale Handys: Lizenz nur als Schlüssel (der Name bleibt für Screenreader) */
  .kopf-innen > .kopf-lizenz { padding: 0 .7rem; }
  .kopf-innen > .kopf-lizenz #kopf-lizenz-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 380px) {
  .kopf-zeile .menue-knopf { padding: 0 .7rem; }
}

/* Sprachwahl im Kopf der Startseite: Knopf mit Kürzel, Liste klappt darunter auf */
.sprachwahl { position: relative; flex: none; }
.sprachwahl-knopf { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; min-width: 44px; padding: 0 .75rem; border: 1px solid var(--buehne-linie, rgba(255, 255, 255, .13));
  border-radius: 999px; color: var(--buehne-text); font-size: .82rem; font-weight: 700; letter-spacing: .04em; cursor: pointer; list-style: none; user-select: none; }
.sprachwahl-knopf::-webkit-details-marker { display: none; }
.sprachwahl-knopf::marker { content: ""; }
.sprachwahl-knopf:hover, .sprachwahl[open] > .sprachwahl-knopf { border-color: var(--glut); color: var(--glut-hell); }
.sprachwahl-knopf:focus-visible { outline: 3px solid var(--glut-hell); outline-offset: 2px; }
.sprachwahl-symbol { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sprachwahl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprachwahl-liste { position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; min-width: 170px; margin: 0; padding: 6px; list-style: none;
  border: 1px solid var(--buehne-linie, rgba(255, 255, 255, .13)); border-radius: 14px; background: var(--buehne-flaeche, #18130f); box-shadow: 0 18px 48px rgba(0, 0, 0, .45); }
.kopf .sprachwahl-liste .kopf-link { display: flex; align-items: center; min-height: 44px; padding: .4rem .8rem; border: 0; border-radius: 10px; font-size: .95rem; white-space: nowrap; }
.kopf .sprachwahl-liste .kopf-link:hover { background: rgba(251, 138, 70, .14); }
.kopf .sprachwahl-liste .kopf-link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--glut); }
/* Die alte Kurzform der Sprachleiste (nur Kürzel auf schmalen Handys) gilt in der Klappe nicht */
.kopf .sprachwahl-liste .kopf-link[hreflang] { justify-content: flex-start; min-width: 0; padding: .4rem .8rem; font-size: .95rem; }
.kopf .sprachwahl-liste .kopf-link[hreflang]::before { content: none; }

/* Weiterführende Links in der Startseite */
.mehr-link { margin: 10px 0 0; font-weight: 600; }
.mehr-link a { display: inline-flex; align-items: center; min-height: 44px; }
.mehr-link a::after { content: " →"; }

@media print { .menue { display: none; } }
/* Ende Menü */
