/* Design wie das Tourismus.one-/Tourism.one-Portal (Version 2027, Variante C „Tourismus-Look“, config/brand.php):
   heller warmer Grund, weiße Flächen, dunkle Kopfleiste mit grünem Titelfeld, Pillen-Knöpfe, Seitenkopf als Bergband.
   Schrift Montserrat (wenn installiert), sonst Systemschrift – keine externen Fonts (Regel data.tourism.one). */
:root {
  --bg: #F7F4EF;            /* --f-bg */
  --bg-2: #FFFFFF;          /* --f-surface */
  --linie: #E7E1D8;         /* --f-border */
  --text: #1A1A1A;          /* --f-text-1 */
  --text-leise: #4A4A4A;    /* --f-text-2 */
  --gruen: #3E8400;         /* brand strong (Text, Ränder) */
  --gruen-hell: #356F00;    /* brand primary_hover (Links) */
  --titel-grund: #53A800;   /* brand title_bg */
  --pille: #8DC63F;         /* brand pill */
  --leiste: #1A1A1A;        /* dunkle Navigationsleiste */
  --auf-gruen: #1A1A1A;
  --fehler: #C50F1F;
  --platzhalter: #B26A00;
  --radius: 10px;
  --radius-lg: 12px;
  --schatten: 0 1px 2px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.05);
  --band: #7E9A86 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 300' preserveAspectRatio='none'%3E%3Cpolygon fill='%235E7A68' points='0,190 280,70 520,150 800,30 1060,130 1280,60 1600,160 1600,300 0,300'/%3E%3Cpolygon fill='%2346604F' points='0,240 400,170 720,230 1120,160 1600,220 1600,300 0,300'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  --titel: "Montserrat", Arial, "Segoe UI", system-ui, sans-serif;
  --fliess: "Montserrat", Arial, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1A1A; --bg-2: #242424; --linie: rgba(255, 255, 255, 0.10);
    --text: #FFFFFF; --text-leise: #BDBDBD; --gruen: #8DC63F; --gruen-hell: #A6D46A;
    --fehler: #FF8A80; --platzhalter: #FBBD00; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--fliess); font-size: 1rem; line-height: 1.6; }
h1, h2, h3 { font-family: var(--titel); line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.75rem, 3vw + 1rem, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.3rem, 1.5vw + 1rem, 1.8rem); font-weight: 700; }
h3 { font-size: 1.1rem; color: var(--gruen); }
h4 { font-family: var(--titel); font-size: 1rem; margin: 0 0 0.5em; }
code, pre { font-family: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace; font-size: 0.92em; }
a { color: var(--gruen-hell); }
:focus-visible { outline: 3px solid var(--pille); outline-offset: 2px; }

.rahmen { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.rahmen--schmal { max-width: 640px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: var(--bg-2); color: var(--text); padding: 8px 12px; z-index: 10; }

.entwurf { background: #FFF4CE; border-bottom: 1px solid #FDE7B8; color: #1A1A1A; font-size: 0.9rem; padding: 8px 0; }

/* Kopf: dunkle Leiste, Titelfeld in Markengrün mit Wortmarke wie im Portal */
.kopf { background: var(--leiste); color: #E6E6E6; }
.kopf__innen { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 0 16px; min-height: 60px; padding-left: 0; }
.marke {
  display: flex; align-items: center; gap: 10px; background: var(--titel-grund); color: #FFFFFF; text-decoration: none;
  padding: 0 22px; font-family: var(--titel); font-size: 20px; letter-spacing: 0.04em; font-weight: 400; white-space: nowrap; line-height: 1;
}
.marke b { font-weight: 700; }
.marke .marke__zusatz { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; padding: 4px 8px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 999px; }
.kopf nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 0; }
.menue, .sprachen { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menue a, .sprachen a { display: inline-block; padding: 7px 14px; border-radius: 20px; color: #E6E6E6; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.sprachen a { padding: 7px 10px; font-size: 0.85rem; color: #9A9A9A; }
.menue a:hover, .sprachen a:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
.menue a[aria-current="page"] { background: var(--pille); color: #1A1A1A; font-weight: 700; }
.sprachen a[aria-current="page"] { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
.kopf .knopf--zweit { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.5); min-height: 38px; padding: 6px 16px; }
.kopf .knopf--zweit:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }

/* Knöpfe als Pillen, Primär in Markenfarbe mit dunkler Schrift */
.knopf {
  display: inline-block; min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--pille);
  background: var(--pille); color: #1A1A1A; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.knopf:hover { filter: brightness(0.94); }
.knopf--zweit { background: transparent; color: var(--text); border-color: var(--linie); }
.knopf--zweit:hover { background: var(--bg-2); color: var(--text); filter: none; border-color: var(--gruen); }
.knopf:disabled { opacity: 0.6; cursor: wait; }

/* Seitenkopf als Bergband wie im Portal */
.held { padding: 56px 0 72px; background: var(--band); color: #FFFFFF; }
.held h1, .held a:not(.knopf) { color: #FFFFFF; }
.held__text { font-size: 1.15rem; color: rgba(255, 255, 255, 0.92); max-width: 40em; }
.held code { color: #FFFFFF; }
.held__aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.held .knopf--zweit { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.75); }
.held .knopf--zweit:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }

.abschnitt { padding: 48px 0; }
.abschnitt--hell { background: var(--bg-2); }

.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.karte { background: var(--bg-2); border: 1px solid var(--linie); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--schatten); }
.abschnitt--hell .karte { background: var(--bg); }
.karte h3 { margin: 0 0 0.4em; color: var(--text); font-size: 1.05rem; }
.karte p { margin: 0 0 0.6em; color: var(--text-leise); }
.karte p:last-child { margin-bottom: 0; }
.modus { display: inline-block; padding: 2px 8px; border: 1px solid var(--gruen); border-radius: 6px; color: var(--gruen-hell); }
.beispiele strong { color: var(--text); }
.einleitung { color: var(--text-leise); max-width: 46em; }

.schritte { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; padding-left: 1.25em; }
.schritte p { margin: 0; color: var(--text-leise); }

.feld { margin-bottom: 16px; }
.feld select {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid #8a8a8a; border-radius: 6px;
}
.feld label { display: block; font-weight: 600; margin-bottom: 4px; }
.feld input, .feld textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid #8a8a8a; border-radius: 6px;
}
.feld [aria-invalid="true"] { border-color: var(--fehler); border-width: 2px; }
.feld--versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fehler { color: var(--fehler); margin: 4px 0 0; font-size: 0.95rem; }
.hinweis { color: var(--text-leise); font-size: 0.95rem; }
.status { min-height: 1.6em; margin-top: 12px; }

.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 0 0 16px; }
.kennzahl { display: flex; flex-direction: column-reverse; justify-content: flex-end; background: var(--bg); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px; }
.kennzahl dt { color: var(--text-leise); font-size: 0.95rem; }
.kennzahl dd { margin: 0; font-family: var(--titel); font-size: 2rem; font-weight: 700; color: var(--gruen-hell); line-height: 1.2; }
.namen { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.namen li { border: 1px solid var(--linie); border-radius: 999px; padding: 4px 12px; color: var(--text-leise); font-size: 0.95rem; }

.filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; max-width: 560px; }
.quellenliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; list-style: none; margin: 16px 0 0; padding: 0; }
.quelle { background: var(--bg); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px; min-width: 0; overflow-wrap: anywhere; }
.quelle__kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.quelle h3 { margin: 0; }
.quelle dl { margin: 0; }
.quelle dl div { display: grid; grid-template-columns: 9em 1fr; gap: 0 8px; padding: 2px 0; }
.quelle dt { color: var(--text-leise); }
.quelle dd { margin: 0; }
.abzeichen { border: 1px solid var(--gruen); border-radius: 6px; padding: 0 8px; font-size: 0.9rem; font-weight: 600; color: var(--gruen-hell); white-space: nowrap; }

.endpunkte { margin: 16px 0 24px; }
.endpunkte div { display: grid; grid-template-columns: minmax(0, 22em) 1fr; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--linie); }
.endpunkte div:last-child { border-bottom: 1px solid var(--linie); }
.endpunkte dt, .endpunkte dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
pre { background: var(--bg); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px; margin: 8px 0 16px; overflow-x: auto; max-width: 100%; }
.abschnitt--hell pre { background: var(--bg); }
.werkzeuge { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 8px; }
.liste-code { list-style: none; margin: 0; padding: 0; }
.liste-code li { padding: 2px 0; }

.platzhalter { outline: 1px dashed var(--platzhalter); outline-offset: 2px; color: var(--platzhalter); }
.platzhalter::before { content: attr(data-label) ": "; font-weight: 700; }

.fuss { border-top: 1px solid var(--linie); padding: 24px 0; color: var(--text-leise); }
.fuss__innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.fuss p { margin: 0; }
.fuss nav { display: flex; gap: 16px; }

@media (max-width: 640px) {
  .kopf nav { width: 100%; }
  .endpunkte div { grid-template-columns: 1fr; }
  .quelle dl div { grid-template-columns: 1fr; }
  .quelle dt { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Laravel-Fassung: Daten ansehen */
.tabelle-rahmen { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--linie); }
.tabelle td { color: var(--text-leise); overflow-wrap: anywhere; }
.karte + .karte { margin-top: 16px; }
.karte h3 a { color: var(--text); }
.held .einleitung { color: rgba(255, 255, 255, 0.92); }
.tabelle td:first-child, .tabelle td:nth-child(3), .tabelle td:nth-child(4), .tabelle td:nth-child(5) { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 640px) { .marke { padding: 12px 16px; font-size: 18px; } .kopf__innen { padding-right: 0; } .kopf nav { padding: 8px 16px; } }
