/* ============================================================================
   lienzlernt — Stylesheet
   Marke: Pinie / Papier / Sonnengold, Ausrichtung "Sonnenstadt Lienz".
   Struktur folgt dem Prototyp (docs/active/2026-07-31-lienzlernt/lienzlernt.html),
   die Optik nicht mehr: Display-Schrift ist Bricolage Grotesque.

   HARTE RANDBEDINGUNG: die öffentlichen Seiten laufen ohne JavaScript, die CSP
   ist enforcing (script-src 'self'). Alles hier kommt ohne Skript aus — das
   mobile Menü ist ein Checkbox-Hack, keine Zeile JS.
   ============================================================================ */

/* --- Schriften, self-hosted (kein CDN, font-src 'self') ------------------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --paper: #F7F6F1;
  --paper-2: #FEFDFB;
  --ink: #1E2A26;
  --ink-soft: #4A574F;
  --pine: #1F4A3D;
  --pine-dark: #163A2F;
  --sage: #7A9182;
  --sage-line: #D5DCD3;
  --amber: #F2C14E;
  --amber-soft: #F7D98A;
  --amber-wash: #FDF3DA;
  --danger: #A6483C;
  --shadow: 0 1px 2px rgba(30,42,38,.06), 0 8px 28px rgba(30,42,38,.07);
  --shadow-lift: 0 2px 4px rgba(30,42,38,.07), 0 14px 38px rgba(30,42,38,.10);
  --radius: 14px;
  --content-max: 1040px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Sticky Footer über Layout, nicht über position:fixed — ein fixierter Footer
   würde bei langen Seiten Inhalt verdecken. */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

/* EIN zentraler Container für Kopf, Inhalt und Fuß — die Ausrichtung darf zwischen
   Hero, Kartenraster, Förder-Streifen und Footer nicht springen. */
.wrap { max-width: var(--content-max); margin-inline: auto; padding: 0 24px; width: 100%; }
.wrap-wide { max-width: 1120px; margin-inline: auto; padding: 0 24px; width: 100%; }

/* Fließtext bekommt trotzdem eine lesbare Zeilenlänge — 1040px Mengentext wären
   eine Zumutung. Der Kasten bleibt zentriert im breiten Container. */
.prose { max-width: 72ch; margin-inline: auto; }

a { color: var(--pine); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* Signatur: Sonnen-Marker. Bewusst kräftiger als im Prototyp. */
.mark {
  background: linear-gradient(100deg,
    rgba(242,193,78,0) 0.5%,
    rgba(242,193,78,.95) 3%,
    rgba(242,193,78,.85) 96%,
    rgba(242,193,78,0) 99.5%);
  padding: 0 .12em .06em;
  border-radius: .14em;
}

/* ============================== NAVBAR ==================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247,246,241,.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--sage-line);
}
/* EINE Zeile: Marke links, Links rechts, vertikal mittig. KEIN flex-wrap auf dem
   Desktop — genau das hatte die Links vorher in eine zweite Reihe geschoben. */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  flex-wrap: nowrap;
}
.brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  letter-spacing: -.02em; color: var(--pine); text-decoration: none;
  line-height: 1; white-space: nowrap;
}
.wordmark .mark { color: var(--pine); }
.region {
  font-size: 11.5px; color: var(--sage); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--ink-soft); text-decoration: none;
  padding: 9px 13px; border-radius: 9px; white-space: nowrap;
  transition: background .14s, color .14s;
}
.nav-links a:hover { background: var(--amber-wash); color: var(--pine); }
/* Aktiver Punkt dezent: Pinie plus eine ruhige Fläche, kein Rahmen, kein Fettdruck. */
.nav-links a.is-active { color: var(--pine); background: rgba(31,74,61,.08); }

/* Mobiles Menü: versteckte Checkbox steuert das Panel. Kein JavaScript.
   Die Checkbox bleibt fokussierbar (nicht display:none), damit sie per Tab
   erreichbar und mit Leertaste schaltbar ist. */
.nav-toggle {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.nav-burger {
  display: none;
  margin-left: auto;
  cursor: pointer;
  padding: 9px 11px;
  border: 1.5px solid var(--sage-line);
  border-radius: 10px;
  background: var(--paper-2);
  line-height: 0;
}
.nav-burger span {
  display: block; width: 20px; height: 2px; background: var(--pine);
  border-radius: 2px;
}
.nav-burger span + span { margin-top: 4px; }
.nav-toggle:focus-visible ~ .nav-burger { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Der Burger greift AUSSCHLIESSLICH unterhalb dieses Breakpoints. Oberhalb sind die
   Links immer sichtbar und horizontal — die Regeln hier stehen bewusst nur im
   Media-Query, damit sie die Desktop-Ausrichtung nicht überschreiben können. */
@media (max-width: 860px) {
  .navbar { gap: 10px; flex-wrap: wrap; }
  .region { display: none; }
  .nav-burger { display: block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 6px 0 4px;
    padding-top: 10px;
    border-top: 1px solid var(--sage-line);
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a { padding: 12px 12px; font-size: 16px; }
}

/* ================================ HERO ==================================== */
.hero { padding: 48px 0 8px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 6.6vw, 58px);
  line-height: 1.04; letter-spacing: -.03em; color: var(--ink);
  /* Breit genug, dass die Zeile nicht nach drei Wörtern umbricht, aber nicht so
     breit, dass das Auge den Zeilenanfang sucht. */
  max-width: 24ch;
}
.hero p { margin-top: 16px; font-size: 19.5px; color: var(--ink-soft); max-width: 60ch; }
.hero .eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 12px; display: block;
}

/* ============================== PFAD-KARTEN =============================== */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0 10px; }
@media (max-width: 560px) { .paths { grid-template-columns: 1fr; } }
.path {
  background: var(--paper-2);
  border: 1px solid var(--sage-line);
  border-radius: var(--radius);
  padding: 22px 20px; text-align: left; cursor: pointer; font: inherit; color: inherit;
  box-shadow: var(--shadow);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  position: relative; overflow: hidden;
}
/* Sonnenkante: schmaler Goldstreifen oben, wird beim Hover breiter. */
.path::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-soft));
  transition: height .16s ease;
}
.path:hover { transform: translateY(-3px); border-color: var(--sage); box-shadow: var(--shadow-lift); }
.path:hover::before { height: 6px; }
.path .k { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--pine); }
.path .d { font-size: 15px; color: var(--ink-soft); }
.path .arrow { margin-top: 8px; font-weight: 600; color: var(--pine); font-size: 15px; }

/* ============================== INFO-STREIFEN ============================= */
.strip {
  margin: 22px 0; padding: 16px 18px;
  background: var(--amber-wash);
  border-left: 3px solid var(--amber);
  border-radius: 10px; font-size: 15px; color: var(--ink-soft);
}
.strip b { color: var(--pine); }
.strip a { color: var(--pine); font-weight: 600; }

/* ================================ PANEL =================================== */
.panel { display: block; padding: 4px 0 28px; animation: rise .3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }

/* ============================== WIZARD ==================================== */
.stepbar { display: flex; align-items: center; gap: 8px; margin: 20px 0 24px; font-size: 13px; color: var(--sage); }
.stepbar .dot {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--sage-line); font-size: 12px; font-weight: 600; color: var(--sage);
  flex-shrink: 0;
}
.stepbar .dot.on { background: var(--pine); border-color: var(--pine); color: #fff; }
.stepbar .dot.done { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.stepbar .seg { flex: 1; height: 1.5px; background: var(--sage-line); }

.q h2 { font-family: var(--font-display); font-weight: 600; font-size: 25px; letter-spacing: -.02em; margin-bottom: 4px; }
.q .hint { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--paper-2); border: 1.5px solid var(--sage-line); border-radius: 999px;
  padding: 10px 18px; font: inherit; font-size: 15.5px; cursor: pointer; color: var(--ink);
  transition: border-color .14s, background .14s, color .14s;
  text-decoration: none; display: inline-block;
}
.chip:hover { border-color: var(--amber); background: var(--amber-wash); }
.chip-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-radio:checked + .chip { background: var(--pine); border-color: var(--pine); color: #fff; }
.chip-radio:focus-visible + .chip { outline: 3px solid var(--amber); outline-offset: 2px; }

.navrow { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; }
.btn {
  font: inherit; font-size: 15.5px; font-weight: 600; border-radius: 10px; padding: 11px 22px;
  cursor: pointer; border: 1.5px solid transparent; text-decoration: none; display: inline-block;
}
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-dark); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--sage-line); }
.btn-ghost:hover { border-color: var(--sage); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: rgba(166,72,60,.08); }

/* ============================== ERGEBNISSE ================================ */
.rescount { font-size: 15px; color: var(--ink-soft); margin: 6px 0 18px; }
.card {
  background: var(--paper-2); border: 1px solid var(--sage-line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.card .top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.badge {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  background: var(--amber); color: var(--ink); padding: 4px 9px; border-radius: 6px; white-space: nowrap;
}
.badge-muted { background: rgba(122,145,130,.25); color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.tag { font-size: 12.5px; color: var(--pine); background: rgba(31,74,61,.08); padding: 3px 9px; border-radius: 6px; }
.card .note { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }
.contact { display: flex; flex-wrap: wrap; gap: 10px; }
.contact a {
  font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--pine);
  border: 1.5px solid var(--sage-line); border-radius: 9px; padding: 8px 14px;
  transition: border-color .14s, background .14s;
}
.contact a:hover { border-color: var(--amber); background: var(--amber-wash); }

/* Kontaktzeilen auf der Karte: Typ als Beschriftung, der ECHTE Wert als Link.
   Auf schmalen Schirmen bricht die Zeile, der Wert bleibt vollständig lesbar. */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.contact-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.contact-type {
  min-width: 74px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--sage);
}
.contact-line a { color: var(--pine); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-line a:hover { text-decoration: underline; }
.empty { padding: 26px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--sage-line); border-radius: var(--radius); }
.empty b { color: var(--ink); display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 19px; }

.consent { font-size: 13.5px; background: rgba(122,145,130,.1); padding: 14px 16px; border-radius: 10px; margin: 16px 0; }

/* ============================== FORMULARE ================================= */
/* Öffentliche Formulare bekommen eine eigene Breite: 1040px breite Eingabefelder
   wären im breiten Container unbedienbar. Der Admin-Bereich ist davon nicht
   betroffen, seine Formulare liegen in .wrap-wide und nicht in .panel. */
.panel > form { max-width: 680px; }
.form-field { margin-top: 16px; }
.form-field label { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; font-weight: 600; }
.form-field input[type=text], .form-field input[type=email], .form-field input[type=tel],
.form-field input[type=url], .form-field input[type=number], .form-field input[type=password],
.form-field input[type=date], .form-field select, .form-field textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper-2); border: 1.5px solid var(--sage-line); border-radius: 10px;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-hint { font-size: 13px; color: var(--sage); margin-top: 5px; }
.field-error { color: var(--danger); font-size: 13.5px; margin-top: 5px; }
.checkgrid { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 4px; }
.checkgrid label { display: inline-flex; align-items: center; gap: 7px; font-weight: 400; color: var(--ink); margin: 0; }
/* Honigtopf — außerhalb des Sichtfelds, nie display:none (das überspringen Bots) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.flash { padding: 13px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 15px; }
.flash-ok { background: rgba(31,74,61,.09); color: var(--pine); border-left: 3px solid var(--pine); }
.flash-err { background: rgba(166,72,60,.09); color: var(--danger); border-left: 3px solid var(--danger); }

/* ============================== FLIESSTEXT ================================ */
.prose h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px,5vw,36px); letter-spacing: -.02em; margin-bottom: 18px; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 28px 0 8px; color: var(--pine); }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--pine); }
.prose b { color: var(--ink); }

/* ================================ FOOTER ================================== */
/* Dolomiten-Band: ein Motiv, gedeckt. Das Inline-SVG sitzt direkt über dem
   Footer und schließt die Seite ab. */
.ridge { display: block; width: 100%; height: 64px; margin-top: 8px; }
.ridge path { fill: var(--sage-line); }
.ridge .peak-back { fill: rgba(122,145,130,.35); }

.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--sage-line);
  padding: 26px 0 34px;
  font-size: 13.5px;
  color: var(--sage);
}
.site-footer a { color: var(--sage); text-decoration: none; }
.site-footer a:hover { color: var(--pine); text-decoration: underline; }
.footlinks { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.footlinks a { padding: 2px 0; }

/* Absendersignatur ganz unten, durch einen feinen Strich abgesetzt. */
.footer-studio {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--sage-line);
}
.studio-sig {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--sage); text-decoration: none;
}
/* Entsättigt statt eingefärbt: eine CSS-Maske wäre echtes Pinie, würde das Logo
   aber bei fehlender Unterstützung KOMPLETT verschwinden lassen. Ein <img> mit
   Filter rendert immer — im Zweifel lieber gedeckt als unsichtbar. */
.studio-sig img {
  height: 22px; width: auto; display: block;
  filter: grayscale(1) opacity(.55);
  transition: filter .16s ease;
}
.studio-sig:hover img { filter: grayscale(1) opacity(.9); }
.studio-sig:hover span { color: var(--pine); text-decoration: underline; }

/* ================================= ADMIN ================================== */
.admin-nav {
  display: flex; gap: 1.1rem; align-items: baseline; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--sage-line); margin-bottom: 16px;
}
.admin-nav strong { font-family: var(--font-display); color: var(--pine); }
.admin-nav a { color: var(--pine); text-decoration: none; font-weight: 600; font-size: 15px; }
.admin-nav a:hover { text-decoration: underline; }
.admin-user { margin-left: auto; color: var(--sage); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.admin-crumbs { font-size: 13.5px; color: var(--sage); margin-bottom: 20px; }
.admin-crumbs a { color: var(--pine); text-decoration: none; }
.admin-crumbs .sep { margin: 0 8px; opacity: .5; }
.admin-page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 27px; letter-spacing: -.02em; }
table.admin-table { width: 100%; border-collapse: collapse; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; }
table.admin-table th, table.admin-table td { padding: 11px 13px; border-bottom: 1px solid var(--sage-line); text-align: left; vertical-align: middle; }
table.admin-table th { color: var(--sage); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
table.admin-table tr:last-child td { border-bottom: none; }
form.inline-form { display: inline; }
.admin-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.btn-sm { font-size: 14px; padding: 7px 13px; border-radius: 8px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Filterleiste über der Anbieterliste — reines GET-Formular, kein JavaScript. */
.admin-filter {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  background: var(--paper-2); border: 1px solid var(--sage-line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 14px;
}
.filter-field { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.filter-field label { font-size: 12px; font-weight: 600; color: var(--sage); text-transform: uppercase; letter-spacing: .05em; }
.filter-field input, .filter-field select {
  padding: 8px 10px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper-2); border: 1.5px solid var(--sage-line); border-radius: 9px;
}
.filter-grow { flex: 1 1 220px; }
.filter-actions { display: flex; gap: 8px; align-items: center; }

/* Anbietertabelle: Name darf umbrechen, Aktionen bleiben vollständig sichtbar. */
.admin-table-providers { table-layout: auto; min-width: 780px; }
.admin-table-providers .col-num { width: 1%; white-space: nowrap; text-align: right; }
.admin-table-providers .col-narrow { width: 1%; white-space: nowrap; }
.admin-table-providers .col-actions { width: 1%; white-space: nowrap; }
.admin-table-providers .col-name { min-width: 220px; }
.admin-table-providers .col-name a { word-break: break-word; }
.row-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.row-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }

/* Kontaktzeile im Admin-Formular */
.contact-row { display: grid; grid-template-columns: 180px 1fr; gap: 12px; margin-bottom: 10px; }
@media (max-width: 640px) { .contact-row { grid-template-columns: 1fr; } }
