/* FBG Haßberge – Redaktionsbereich */
:root {
  --fichte: #1d4a34;
  --fichte-hell: #2a6046;
  --turm: #e8873a;
  --blatt: #eef2eb;
  --sand: #f6efdf;
  --text: #1e2b23;
  --grau: #5b665e;
  --linie: #cfd8cb;
  --rot: #a3261b;
  --kopf: "Bahnschrift SemiCondensed", Bahnschrift, "DIN Alternate", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", "TeX Gyre Heros Cn", sans-serif;
  --lauf: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 var(--lauf); color: var(--text); background: #f5f7f3; }
a { color: var(--fichte); }
:focus-visible { outline: 3px solid var(--turm); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--kopf); font-stretch: 87.5%; font-weight: 600; color: var(--fichte); line-height: 1.2; }
h1 { font-size: 2rem; margin: 0; }
h2 { font-size: 1.4rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.15rem; }
img { max-width: 100%; height: auto; }

.a-kopf { background: var(--fichte); color: #fff; }
.a-kopf-innen { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.a-marke { color: #fff; text-decoration: none; font: 600 1.35rem var(--kopf); font-stretch: 87.5%; }
.a-marke span { font-weight: 400; color: #cfe0d3; }
.a-konto { display: flex; gap: 18px; align-items: center; font-size: .95rem; }
.a-konto a, .a-konto .a-link { color: #fff; }
.a-konto form { margin: 0; }
.a-nav { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 2px; }
.a-nav a { color: #e3ede6; text-decoration: none; padding: 9px 12px 11px; border-radius: 4px 4px 0 0; font-size: .95rem; }
.a-nav a:hover { background: var(--fichte-hell); color: #fff; }
.a-nav a[aria-current="page"] { background: #f5f7f3; color: var(--fichte); font-weight: 600; }

.a-haupt { max-width: 1180px; margin: 0 auto; padding: 24px 20px 120px; }
.a-bare .a-haupt { max-width: 440px; padding-top: 8vh; }

.a-titelzeile { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.a-titelaktionen { display: flex; gap: 14px; align-items: center; }
.a-zurueck { margin: -6px 0 18px; font-size: .95rem; }
.a-zurueck a::before { content: "‹ "; }

.a-meldung { padding: 10px 14px; border-radius: 4px; margin-bottom: 12px; border-left: 5px solid; }
.a-meldung-ok { background: #e3f1e6; border-color: #2e7d45; }
.a-meldung-fehler { background: #fbe7e4; border-color: var(--rot); }
.a-meldung-info { background: var(--sand); border-color: var(--turm); }
.a-info { background: #fff; border: 1px solid var(--linie); border-left: 4px solid var(--fichte); padding: 9px 14px; border-radius: 4px; font-size: .95rem; }
.a-klein { font-size: .9rem; color: var(--grau); }
.a-hinweis { display: block; color: var(--grau); font-size: .875rem; margin-top: 3px; }
.a-unsichtbar { position: absolute; left: -9999px; }

/* Knöpfe */
.a-knopf {
  display: inline-block; background: var(--fichte); color: #fff; border: 0; border-radius: 4px;
  padding: 10px 18px; font: 600 1rem var(--lauf); cursor: pointer; text-decoration: none;
}
.a-knopf:hover { background: var(--fichte-hell); color: #fff; }
.a-knopf:disabled { opacity: .7; cursor: wait; }
.a-knopf-zweit { background: #fff; color: var(--fichte); border: 1px solid var(--fichte); }
.a-knopf-zweit:hover { background: var(--blatt); color: var(--fichte); }
.a-knopf-gefahr { background: #fff; color: var(--rot); border: 1px solid var(--rot); }
.a-knopf-gefahr:hover { background: var(--rot); color: #fff; }
.a-knopf-breit { width: 100%; padding: 12px; margin-top: 6px; }
.a-link { background: none; border: 0; padding: 0; color: var(--fichte); text-decoration: underline; cursor: pointer; font: inherit; }
.a-gefahr { color: var(--rot); }
.a-mini { background: #fff; border: 1px solid var(--linie); border-radius: 3px; width: 32px; height: 30px; cursor: pointer; font-size: 1rem; color: var(--fichte); }
.a-mini:hover { border-color: var(--fichte); }

/* Formulare */
.a-form { background: #fff; border: 1px solid var(--linie); border-radius: 6px; padding: 20px 22px 4px; }
.a-form-loeschen { margin-top: 18px; text-align: right; }
.a-inline { display: inline; margin: 0; }
.a-feld { margin-bottom: 16px; min-width: 0; }
.a-feld > label { display: block; font-weight: 600; margin-bottom: 4px; }
.a-feld input[type=text], .a-feld input[type=email], .a-feld input[type=url], .a-feld input[type=date], .a-feld input[type=password],
.a-feld input[type=search], .a-feld input:not([type]), .a-feld select, .a-feld textarea, .a-bildzeile input[type=text], .a-dateizeile input[type=text], .a-suche input {
  width: 100%; font: inherit; padding: 8px 10px; border: 1px solid #b7c2b3; border-radius: 4px; background: #fff; color: var(--text);
}
.a-feld input[size] { width: auto; }
.a-feld-gross input { font-size: 1.2rem; padding: 10px 12px; }
.a-feld-check { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.a-feld-check input { width: 18px; height: 18px; }
.a-feld-check label { font-weight: 600; }
.a-feld-check .a-hinweis { flex-basis: 100%; margin-left: 26px; }
.a-feld-datei input { font-size: .95rem; }
.a-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 18px; align-items: start; }

.a-gruppe { border: 1px solid var(--linie); border-radius: 6px; padding: 12px 16px 4px; margin: 0 0 18px; }
.a-gruppe legend { font-weight: 700; padding: 0 6px; color: var(--fichte); }
.a-erweitert { margin: 0 0 16px; }
.a-erweitert summary { cursor: pointer; color: var(--grau); margin-bottom: 8px; }

.a-speicherleiste {
  position: sticky; bottom: 0; z-index: 5; background: rgba(255,255,255,.96); border-top: 1px solid var(--linie);
  margin: 18px -22px 0; padding: 12px 22px; display: flex; gap: 14px; align-items: center; border-radius: 0 0 6px 6px;
}

/* Editor */
.rte { border: 1px solid #b7c2b3; border-radius: 4px; background: #fff; }
.rte-leiste { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--blatt); border-bottom: 1px solid var(--linie); border-radius: 4px 4px 0 0; position: sticky; top: 0; z-index: 2; }
.rte-leiste button { background: #fff; border: 1px solid var(--linie); border-radius: 3px; padding: 4px 9px; font: .875rem var(--lauf); cursor: pointer; color: var(--text); }
.rte-leiste button:hover { border-color: var(--fichte); color: var(--fichte); }
.rte-feld { min-height: 220px; padding: 10px 14px; outline: none; max-width: none; line-height: 1.6; }
.rte-klein .rte-feld { min-height: 90px; }
.rte-feld:focus { box-shadow: inset 0 0 0 2px var(--turm); }
.rte-feld p { margin: 0 0 .8em; }
.rte-feld h3 { margin: .8em 0 .4em; }
.rte-feld table { border-collapse: collapse; }
.rte-feld td, .rte-feld th { border: 1px solid var(--linie); padding: 3px 8px; }
textarea.rte { font: .9rem/1.4 ui-monospace, Consolas, monospace; }

/* Listen mit Zeilen */
.a-bildliste, .a-dateiliste, .a-personen, .a-dls, .a-links { list-style: none; margin: 0 0 12px; padding: 0; }
.a-bildzeile, .a-dateizeile, .a-person, .a-dl, .a-linkzeile {
  display: grid; gap: 14px; align-items: start; padding: 10px; border: 1px solid var(--linie); border-radius: 4px; margin-bottom: 8px; background: #fff;
}
.a-bildzeile { grid-template-columns: 120px minmax(0, 1fr) auto; }
.a-bildzeile img { width: 120px; height: 90px; object-fit: cover; border-radius: 3px; }
.a-bildzeile label, .a-dateizeile label { font-weight: 600; font-size: .9rem; }
.a-dateizeile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
.a-person, .a-dl, .a-linkzeile { grid-template-columns: minmax(0, 1fr) auto; }
.a-person-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; }
.a-person-felder .a-feld, .a-dl-felder .a-feld { margin-bottom: 8px; }
.a-person-felder textarea { min-height: 44px; }
.a-dl-felder { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 14px; }
.a-dl-datei { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; align-items: start; background: var(--blatt); padding: 8px 10px 0; border-radius: 4px; margin-bottom: 8px; }
.a-dl-spalte .a-dateiname { margin: -8px 0 8px; }
.a-dl-spalte .a-feld > label { font-size: .9rem; }
.a-linkzeile { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: end; }
.a-zeilen-aktionen { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.a-schieben { display: flex; gap: 4px; }
.a-entfernen { font-size: .875rem; color: var(--rot); white-space: nowrap; cursor: pointer; }
.a-dateiname { font-size: .85rem; color: var(--grau); word-break: break-all; display: block; }
li:has(> .a-zeilen-aktionen input[name$="[remove]"]:checked), [data-zeile]:has(> .a-block-kopf input[name$="[remove]"]:checked) { opacity: .45; }
.a-bewegt { box-shadow: 0 0 0 3px var(--turm); transition: box-shadow .6s; }

.a-block { border: 1px solid var(--linie); border-radius: 6px; padding: 10px 16px 6px; margin: 0 0 16px; background: #fbfcfa; }
.a-block legend { font: 600 1.15rem var(--kopf); font-stretch: 87.5%; color: var(--fichte); padding: 0 6px; }
.a-block legend small { font: .85rem var(--lauf); color: var(--grau); }
.a-block-kopf { display: flex; justify-content: flex-end; gap: 16px; align-items: center; margin-bottom: 6px; }
.a-blockbild { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 0 18px; align-items: start; }
.a-blockbild-vorschau { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.a-blockbild-vorschau img { width: 120px; height: 90px; object-fit: cover; border-radius: 3px; }
.a-keinbild { width: 120px; height: 90px; border: 1px dashed var(--linie); border-radius: 3px; display: flex; align-items: center; justify-content: center; color: var(--grau); font-size: .85rem; }
.a-blockbild-felder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.a-hochladen { background: var(--sand); border-radius: 4px; padding: 10px 12px 2px; margin-bottom: 10px; }
.a-dl-liste > summary { cursor: pointer; font-weight: 600; margin: 4px 0 10px; color: var(--fichte); }
.a-startbild { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; }
.a-startbild img { width: 240px; height: 135px; object-fit: cover; border-radius: 4px; }

/* Tabellen & Übersicht */
.a-tabelle { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--linie); border-radius: 6px; overflow: hidden; }
.a-tabelle th, .a-tabelle td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #e3e8e0; vertical-align: top; }
.a-tabelle th { background: var(--blatt); font-size: .875rem; color: var(--grau); }
.a-tabelle tr:hover td { background: #fafcf9; }
.a-nowrap { white-space: nowrap; }
.a-rechts { text-align: right; white-space: nowrap; }
.a-status-aus { font-style: normal; font-size: .8rem; background: #eee; color: #555; padding: 1px 6px; border-radius: 3px; }
.a-suche { display: flex; gap: 8px; margin-bottom: 14px; max-width: 520px; }
.a-vergangen { margin-top: 22px; }
.a-vergangen summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }

.a-schnell { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 10px 0 8px; }
.a-kachel { display: block; background: #fff; border: 1px solid var(--linie); border-top: 4px solid var(--fichte); border-radius: 6px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.a-kachel:hover { border-color: var(--fichte); }
.a-kachel strong { display: block; font: 600 1.2rem var(--kopf); font-stretch: 87.5%; color: var(--fichte); }
.a-kachel span { font-size: .9rem; color: var(--grau); }
.a-zweispaltig { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 32px; }
.a-kurzliste { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--linie); border-radius: 6px; }
.a-kurzliste li { padding: 8px 12px; border-bottom: 1px solid #e3e8e0; }
.a-kurzliste li:last-child { border-bottom: 0; }
.a-kurzliste span { display: inline-block; min-width: 6.5em; color: var(--grau); font-size: .9rem; font-variant-numeric: tabular-nums; }
.a-hilfe { margin-top: 28px; background: #fff; border: 1px solid var(--linie); border-radius: 6px; padding: 10px 16px; }
.a-hilfe summary { cursor: pointer; font-weight: 600; }

.a-medien { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.a-medien li { background: #fff; border: 1px solid var(--linie); border-radius: 4px; padding: 6px; font-size: .85rem; }
.a-medien img { width: 100%; height: 120px; object-fit: cover; border-radius: 3px; display: block; margin-bottom: 4px; }
.a-medien small { display: block; color: var(--grau); }

/* Anmeldung */
.a-anmeldung { background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: 26px 28px; }
.a-anmeldung img { width: 220px; margin-bottom: 10px; }
.a-anmeldung h1 { font-size: 1.6rem; margin-bottom: 16px; }
.a-anmeldung .a-form, .a-anmeldung form { border: 0; padding: 0; background: none; }
.a-anmeldung pre { background: var(--blatt); padding: 10px; border-radius: 4px; white-space: pre-wrap; font-size: .85rem; }

@media (max-width: 700px) {
  .a-haupt { padding: 16px 12px 120px; }
  .a-form { padding: 14px 14px 4px; }
  .a-speicherleiste { margin: 18px -14px 0; padding: 10px 14px; }
  .a-bildzeile, .a-dateizeile, .a-linkzeile, .a-dl-felder, .a-dl-datei, .a-blockbild, .a-blockbild-felder, .a-startbild { grid-template-columns: minmax(0, 1fr); }
  .a-person, .a-dl { grid-template-columns: minmax(0, 1fr); }
  .a-zeilen-aktionen { flex-direction: row; justify-content: space-between; }
  .a-tabelle th:nth-child(3), .a-tabelle td:nth-child(3) { display: none; }
}
