/* AgroAktiv Angebote. Quelle: pve2026:/root/angebote */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --tinte: #17211b;
  --acker: #1f3527;
  --gelb: #f5c800;
  --gelb-hell: #ffd92e;
  --flaeche: #f1f3ed;
  --weiss: #ffffff;
  --linie: #dce1d5;
  --rand: #c5ccbd;
  --grau: #56635a;
  --gruen: #24583a;
  --rot: #b3261e;
  --titel: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; font: 400 1rem/1.55 var(--text); color: var(--tinte); background: var(--flaeche); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-bottom: 4rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen); text-underline-offset: .18em; }
a:hover { color: var(--tinte); }
h1, h2, h3 { font-family: var(--titel); line-height: 1.15; letter-spacing: -.015em; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: -999px; top: .5rem; background: var(--gelb); color: var(--tinte); padding: .6rem 1rem; border-radius: 8px; z-index: 100; font-weight: 600; }
.sprung:focus { left: .5rem; }

.rahmen { width: min(100% - 2rem, 76rem); margin-inline: auto; }
.rahmen.mittel { width: min(100% - 2rem, 52rem); }
.rahmen.schmal { width: min(100% - 2rem, 27rem); padding-top: 3rem; }
.rahmen.schmal-breit { width: min(100% - 2rem, 36rem); }

/* ---------- Kopf ---------- */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 40; }
.kopf-in { display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem; }
.marke { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--tinte); flex-shrink: 0; }
.marke img { width: 36px; height: 36px; }
.marke-text { font: 500 1.12rem/1 var(--titel); letter-spacing: -.01em; }
.marke-text b { font-weight: 800; box-shadow: inset 0 -.42em 0 var(--gelb); padding-inline: .08em; }
.suche { flex: 1; display: flex; max-width: 36rem; margin-inline: auto; background: var(--flaeche); border: 1.5px solid transparent; border-radius: 999px; }
.suche:focus-within { border-color: var(--tinte); background: var(--weiss); }
.suche input { flex: 1; min-width: 0; border: 0; background: none; padding: .62rem 0 .62rem 1.1rem; outline: none; }
.suche input::placeholder { color: var(--grau); }
.suche button { border: 0; background: var(--tinte); color: var(--weiss); width: 2.5rem; height: 2.5rem; margin: .2rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.suche button:hover { background: var(--gruen); }
.kopf-nav { flex-shrink: 0; }
.kopf-link { color: var(--tinte); font-weight: 600; text-decoration: none; }
.kopf-link:hover { text-decoration: underline; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: 600 1rem/1.2 var(--text); padding: .74rem 1.2rem; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; color: var(--tinte); text-align: center; }
.knopf-gelb { background: var(--gelb); }
.knopf-gelb:hover { background: var(--gelb-hell); color: var(--tinte); }
.knopf-hell { background: var(--weiss); border-color: var(--rand); }
.knopf-hell:hover { border-color: var(--tinte); color: var(--tinte); }
.knopf-rot { background: var(--rot); color: var(--weiss); }
.knopf-klein { padding: .42rem .7rem; font-size: .875rem; border-radius: 8px; }
.knopf-breit { width: 100%; }
.knopf[disabled] { opacity: .6; cursor: progress; }
.link-knopf { background: none; border: 0; padding: 0; color: var(--gruen); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ---------- Bühne ---------- */
.buehne { background-color: var(--acker); color: var(--weiss);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 320' preserveAspectRatio='xMaxYMid slice'%3E%3Cg stroke='%23ffffff' stroke-opacity='.075' stroke-width='2.5' fill='none'%3E%3Cpath d='M640-70-500 320M640-70-340 320M640-70-180 320M640-70-20 320M640-70 140 320M640-70 300 320M640-70 460 320M640-70 620 320M640-70 780 320M640-70 940 320M640-70 1100 320M640-70 1260 320M640-70 1420 320M640-70 1580 320M640-70 1740 320'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover; background-position: right center; }
.buehne-in { padding-block: clamp(2rem, 5vw, 3.75rem); }
.buehne h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; max-width: 18ch; }
.buehne p { margin: 1rem 0 0; max-width: 56ch; font-size: 1.08rem; color: #dfe6dc; }
.buehne .krumen { margin: 0 0 .75rem; font-size: .95rem; }
.buehne .krumen a { color: var(--gelb); }
.buehne :focus-visible { outline-color: var(--gelb); }

/* ---------- Kategorien, Leiste ---------- */
.kats { display: flex; gap: .5rem; overflow-x: auto; padding: 1.25rem 0 .25rem; scrollbar-width: thin; }
.kat { flex-shrink: 0; display: inline-flex; gap: .45rem; align-items: baseline; padding: .5rem .9rem; border-radius: 999px; background: var(--weiss); border: 1.5px solid var(--linie); color: var(--tinte); text-decoration: none; font-weight: 500; font-size: .95rem; }
.kat span { color: var(--grau); font-size: .85rem; }
.kat:hover { border-color: var(--tinte); }
.kat.ist-aktiv { background: var(--tinte); border-color: var(--tinte); color: var(--weiss); }
.kat.ist-aktiv span { color: var(--gelb); }
.leiste { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 0 1rem; }
.leiste-zahl { margin: 0; }
.leiste-zahl a { margin-left: .5rem; }
.sortierung { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.sortierung label { color: var(--grau); }
.sortierung select { border: 1.5px solid var(--rand); border-radius: 8px; padding: .4rem .6rem; background: var(--weiss); }

/* ---------- Karten ---------- */
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 1.1rem; }
.karte { display: flex; flex-direction: column; height: 100%; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--tinte); }
.karte:hover { border-color: var(--tinte); color: var(--tinte); }
.karte-bild { position: relative; aspect-ratio: 4 / 3; background: #e4e8de; }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; }
.ohne-bild { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .4rem; color: #8b968b; font-size: .875rem; }
.karte-text { padding: 0 .95rem .95rem; display: flex; flex-direction: column; flex: 1; }
.karte-text .ohrmarke { align-self: flex-start; margin-top: -1.05rem; position: relative; }
.karte h2 { font: 600 1.02rem/1.3 var(--text); letter-spacing: 0; margin: .6rem 0 .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.karte-meta { margin: auto 0 0; display: flex; justify-content: space-between; gap: .75rem; color: var(--grau); font-size: .875rem; }
.karte-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.karte-meta time { flex-shrink: 0; }

/* Preis als Ohrmarke: gelbes Schild mit Lochung */
.ohrmarke { display: inline-block; font: 700 1.08rem/1 var(--titel); color: var(--tinte); padding: .52em .75em .52em 1.6em; border-radius: .42em;
  background: radial-gradient(circle at .82em 50%, var(--weiss) 0 .25em, rgba(23,33,27,.28) .26em .31em, transparent .32em) var(--gelb); box-shadow: 0 1px 0 rgba(23,33,27,.18); white-space: nowrap; }
.ohrmarke-gross { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }

.stempel { position: absolute; left: .7rem; top: .7rem; background: var(--tinte); color: var(--weiss); font-weight: 600; font-size: .82rem; padding: .28rem .6rem; border-radius: 6px; }
.stempel-weg { background: var(--rot); }
.bildzahl { position: absolute; right: .6rem; bottom: .6rem; background: rgba(23,33,27,.78); color: var(--weiss); font-size: .8rem; font-weight: 500; padding: .2rem .55rem; border-radius: 999px; }
.karte .bildzahl::after { content: " Fotos"; }

.seiten { display: flex; justify-content: center; align-items: center; gap: 1rem; padding-top: 2rem; color: var(--grau); }
.leer { text-align: center; padding: clamp(3rem, 9vw, 6rem) 1rem; max-width: 34rem; margin-inline: auto; }
.leer h1, .leer h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .75rem; }
.leer p { color: var(--grau); }
.leer form { display: inline; }

/* ---------- Hinweise ---------- */
.hinweis { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 10px; font-weight: 500; }
.hinweis-ok { background: #dff0e2; color: #17502a; }
.hinweis-info { background: #fff3bf; color: #4d3d00; }
.hinweis-fehler { background: #fbe3e1; color: #8c1d18; }
.hinweis a { color: inherit; font-weight: 600; margin-left: .35rem; }

/* ---------- Anzeige ---------- */
.krumen { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .92rem; color: var(--grau); margin: 1.25rem 0 1rem; }
.anzeige { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(19.5rem, 1fr); gap: 2rem; align-items: start; }
.anzeige-rechts { display: grid; gap: 1rem; }
@media (min-height: 60rem) and (min-width: 56.01rem) { .anzeige-rechts { position: sticky; top: 5.25rem; } }
.galerie-haupt { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: #0f1611; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.galerie-haupt img { width: 100%; height: 100%; object-fit: contain; }
.galerie-leer { background: #e4e8de; cursor: default; }
.galerie-leiste { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.galerie-leiste button { padding: 0; border: 0; background: #e4e8de; border-radius: 8px; overflow: hidden; width: 5.6rem; aspect-ratio: 4 / 3; cursor: pointer; opacity: .72; }
.galerie-leiste button:hover, .galerie-leiste button.ist-aktiv { opacity: 1; }
.galerie-leiste button.ist-aktiv { box-shadow: 0 0 0 3px var(--gelb), 0 0 0 4.5px var(--tinte); }
.galerie-leiste img { width: 100%; height: 100%; object-fit: cover; }
.anzeige-kopf { padding: 0 0 1.25rem; }
.anzeige-kopf h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -.025em; }
.preiszeile { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin: .9rem 0 .8rem; }
.mwst { color: var(--grau); }
.anzeige-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--grau); font-size: .95rem; margin: 0; }
.anzeige-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.block { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--linie); }
.block h2, .kasten h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: .9rem; }
.beschreibung { max-width: 68ch; font-size: 1.04rem; line-height: 1.65; overflow-wrap: anywhere; }
.fakten { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .9rem 1.5rem; }
.fakten dt { color: var(--grau); font-size: .875rem; }
.fakten dd { margin: 0; font-weight: 600; }
.mehr { margin-top: 3rem; }
.kasten { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.3rem; }
.anbieter-name { font-weight: 600; font-size: 1.08rem; margin: 0; }
.anbieter-ort { color: var(--grau); margin: .1rem 0 0; }
.anbieter .knopf { margin-top: 1rem; }
.mobil-kontakt { display: none; }

/* ---------- Formulare ---------- */
.formular { display: grid; gap: 1rem; }
.feld { display: grid; gap: .35rem; min-width: 0; }
.feld label, .haken { font-weight: 600; font-size: .94rem; }
.feld input, .feld select, .feld textarea { width: 100%; border: 1.5px solid var(--rand); border-radius: 10px; padding: .68rem .8rem; background: var(--weiss); }
.feld textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 3px solid var(--gelb); outline-offset: 0; border-color: var(--tinte); }
.feld input[disabled] { background: var(--flaeche); color: var(--grau); }
.feld [aria-invalid="true"] { border-color: var(--rot); }
.feld-reihe { display: flex; gap: 1rem; flex-wrap: wrap; }
.feld-reihe .feld { flex: 1 1 11rem; }
.feld-reihe .feld-kurz { flex: 0 0 7rem; }
.feld-hilfe { margin: 0; color: var(--grau); font-size: .875rem; font-weight: 400; }
.feld-fehler { display: none; margin: 0; color: var(--rot); font-size: .875rem; font-weight: 500; }
.feld-fehler.ist-da { display: block; }
.freiwillig { color: var(--grau); font-weight: 400; font-size: .85rem; font-family: var(--text); letter-spacing: 0; }
.feld-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.haken { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; line-height: 1.45; cursor: pointer; }
.haken input { width: 1.2rem; height: 1.2rem; margin: .12rem 0 0; accent-color: var(--tinte); flex-shrink: 0; }
.formular-meldung { margin: 0; color: var(--rot); font-weight: 500; }
.formular-meldung:empty { display: none; }
.klein { font-size: .9rem; color: var(--grau); margin: 0; }
.unter { color: var(--grau); margin: .5rem 0 1.25rem; }
.rahmen.schmal h1 { font-size: 2rem; }
.rahmen.schmal > .klein { margin-top: 1rem; text-align: center; }
.wahl { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.wahl label { cursor: pointer; }
.wahl input { position: absolute; opacity: 0; }
.wahl span { display: block; padding: .55rem .95rem; border: 1.5px solid var(--rand); border-radius: 999px; font-weight: 500; }
.wahl input:checked + span { background: var(--tinte); border-color: var(--tinte); color: var(--weiss); }
.wahl input:focus-visible + span { outline: 3px solid var(--gelb); outline-offset: 2px; }

/* Captcha */
.captcha { display: flex; align-items: center; gap: .85rem; border: 1.5px solid var(--rand); border-radius: 10px; padding: .75rem .85rem; background: var(--flaeche); }
.captcha-feld { width: 1.9rem; height: 1.9rem; flex-shrink: 0; border: 2px solid var(--grau); border-radius: 7px; background: var(--weiss); cursor: pointer; padding: 0; display: grid; place-items: center; }
.captcha-haken { display: none; }
.captcha[data-zustand="rechnet"] .captcha-feld { border-color: transparent; background: none; cursor: progress; }
.captcha[data-zustand="rechnet"] .captcha-haken { display: block; width: 1.5rem; height: 1.5rem; border: 3px solid var(--rand); border-top-color: var(--tinte); border-radius: 50%; animation: dreh .8s linear infinite; }
.captcha[data-zustand="fertig"] .captcha-feld { background: var(--gelb); border-color: var(--tinte); cursor: default; }
.captcha[data-zustand="fertig"] .captcha-haken { display: block; width: .5rem; height: .95rem; border: solid var(--tinte); border-width: 0 3px 3px 0; transform: translateY(-.1rem) rotate(45deg); }
.captcha-worte { display: grid; font-weight: 600; line-height: 1.3; }
.captcha-worte small { font-weight: 400; color: var(--grau); font-size: .82rem; }
@keyframes dreh { to { transform: rotate(360deg); } }
.gesendet { text-align: center; padding: 1rem 0 .5rem; outline: none; }
.gesendet svg { margin-inline: auto; }
.gesendet h3 { font-size: 1.35rem; margin: .8rem 0 .4rem; }
.gesendet p { color: var(--grau); margin: 0; }

/* ---------- Lichtkasten ---------- */
.lichtkasten { position: fixed; inset: 0; z-index: 90; background: rgba(9, 13, 10, .95); display: grid; place-items: center; }
.lichtkasten img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.lichtkasten button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: var(--weiss); width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.9rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lichtkasten button:hover { background: var(--gelb); color: var(--tinte); }
.lichtkasten :focus-visible { outline-color: var(--gelb); }
.lk-zu { top: 1rem; right: 1rem; }
.lk-zurueck { left: 1rem; top: 50%; transform: translateY(-50%); }
.lk-weiter { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Konto ---------- */
.konto-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; border-bottom: 1px solid var(--linie); margin-top: .5rem; }
.konto-nav a { padding: 1rem 0 .8rem; color: var(--grau); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
.konto-nav a:hover { color: var(--tinte); }
.konto-nav a.ist-aktiv { color: var(--tinte); border-bottom-color: var(--gelb); }
.konto-nav form { margin-left: auto; }
.zaehler { background: var(--gelb); color: var(--tinte); border-radius: 999px; padding: .05rem .5rem; font-size: .8rem; }
.konto-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.75rem 0 1rem; }
.konto-kopf h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.ist-konto .kasten { margin-bottom: 1rem; }
.meine { display: grid; gap: .75rem; margin-top: 1rem; }
.meine-zeile { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .5rem 1rem; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: .8rem; align-items: start; }
.meine-bild { display: block; aspect-ratio: 4 / 3; background: #e4e8de; border-radius: 8px; overflow: hidden; grid-row: span 2; }
.meine-bild img { width: 100%; height: 100%; object-fit: cover; }
.meine-text h2 { font: 600 1.08rem/1.3 var(--text); letter-spacing: 0; }
.meine-text h2 a { color: var(--tinte); text-decoration: none; }
.meine-text h2 a:hover { text-decoration: underline; }
.meine-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; color: var(--grau); font-size: .9rem; margin: .4rem 0 0; }
.meine-aktionen, .status-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: flex-start; }
.status { display: inline-block; padding: .12rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; font-family: var(--text); letter-spacing: 0; vertical-align: middle; }
.status-entwurf { background: #e6e9e1; color: #444f47; }
.status-aktiv { background: #dff0e2; color: #17502a; }
.status-reserviert { background: #fff3bf; color: #5c4900; }
.status-verkauft { background: #ececec; color: #4d4d4d; }
.loeschen { position: relative; }
.loeschen summary { list-style: none; cursor: pointer; }
.loeschen summary::-webkit-details-marker { display: none; }
.loeschen > div { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 5; width: 16rem; background: var(--weiss); border: 1.5px solid var(--tinte); border-radius: 10px; padding: .9rem; }
.loeschen > div p { font-size: .9rem; margin-bottom: .7rem; }
.fotos-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .6rem; margin: 1rem 0; }
.fotos-liste:empty { display: none; }
.fotos-liste li { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #e4e8de; cursor: grab; }
.fotos-liste li.zieht { opacity: .4; }
.fotos-liste li:first-child::before { content: "Titelbild"; position: absolute; left: .35rem; top: .35rem; background: var(--gelb); color: var(--tinte); font-size: .72rem; font-weight: 700; padding: .12rem .4rem; border-radius: 5px; z-index: 1; }
.fotos-liste img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.fotos-knoepfe { position: absolute; right: .3rem; bottom: .3rem; display: flex; gap: .25rem; }
.fotos-knoepfe button { width: 1.75rem; height: 1.75rem; border: 0; border-radius: 6px; background: rgba(23,33,27,.82); color: var(--weiss); cursor: pointer; font-size: 1.05rem; line-height: 1; padding: 0; }
.fotos-knoepfe button:hover { background: var(--gelb); color: var(--tinte); }
.fotos-wahl { display: grid; justify-items: center; gap: .15rem; text-align: center; border: 2px dashed var(--rand); border-radius: var(--radius); padding: 1.6rem 1rem; cursor: pointer; color: var(--grau); }
.fotos-wahl strong { color: var(--tinte); }
.fotos-wahl:hover, .fotos.ist-ziel .fotos-wahl, .fotos-wahl:focus-within { border-color: var(--tinte); background: var(--flaeche); }
.fotos-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fotos-status { margin: .6rem 0 0; font-size: .9rem; color: var(--grau); min-height: 1.4em; }
.fotos-status.ist-fehler { color: var(--rot); font-weight: 500; }
.speichern { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; position: sticky; bottom: 0; background: var(--flaeche); padding: .9rem 0; border-top: 1px solid var(--linie); }
.speichern-zurueck { margin-left: auto; }
.anfragen { display: grid; gap: 0; }
.anfragen header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.anfragen header h2 { font: 600 1.1rem/1.3 var(--text); letter-spacing: 0; margin: 0; }
.anfragen time { color: var(--grau); font-size: .9rem; flex-shrink: 0; }
.anfragen .ist-neu { border-color: var(--tinte); }
.anfrage-zu { color: var(--grau); font-size: .92rem; margin: .15rem 0 .8rem; }
.anfrage-text { max-width: 68ch; overflow-wrap: anywhere; }
.anfragen footer { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: center; font-size: .92rem; }
.anfragen footer form { margin-left: auto; }
.zeilen li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--linie); }
.zeilen li:first-child { border-top: 0; padding-top: 0; }
.zeilen small { display: block; color: var(--grau); font-size: .875rem; }

/* ---------- Fuß ---------- */
.fuss { background: var(--tinte); color: #c9d2c8; font-size: .95rem; }
.fuss-in { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: 2.25rem; }
.fuss p { margin: 0; max-width: 30rem; }
.fuss strong { color: var(--weiss); font-family: var(--titel); font-size: 1.05rem; }
.fuss ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-content: flex-start; }
.fuss a { color: var(--weiss); }
.fuss a:hover { color: var(--gelb); }
.fuss :focus-visible { outline-color: var(--gelb); }

/* ---------- Schmal ---------- */
@media (max-width: 56rem) {
  .anzeige { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .anzeige-rechts { position: static; }
  .mobil-kontakt { display: flex; position: fixed; left: 1rem; right: 1rem; bottom: .9rem; z-index: 30; box-shadow: 0 6px 20px rgba(23,33,27,.3); }
  body:has(.mobil-kontakt) .fuss { padding-bottom: 4.5rem; }
}
@media (max-width: 40rem) {
  .kopf { position: static; }
  .kopf-in { flex-wrap: wrap; gap: .5rem 1rem; padding-block: .6rem; }
  .suche { order: 3; flex-basis: 100%; max-width: none; }
  .kopf-nav { margin-left: auto; }
  .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .karte-text { padding: 0 .7rem .75rem; }
  .karte h2 { font-size: .95rem; }
  .karte .ohrmarke { font-size: .95rem; }
  .karte-meta { flex-direction: column; gap: 0; font-size: .82rem; }
  .meine-zeile { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .meine-bild { grid-row: auto; }
  .meine-aktionen { grid-column: 1 / -1; }
  .loeschen > div { right: auto; left: 0; }
  html { scroll-padding-top: 8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .captcha[data-zustand="rechnet"] .captcha-haken { animation-duration: 2.4s; }
}
@media print {
  .kopf, .fuss, .anzeige-rechts, .mobil-kontakt, .mehr, .galerie-leiste { display: none; }
  body { background: #fff; }
}

/* Abstände in Formular-Kästen */
.formular .kasten, .formular.kasten { display: grid; gap: 1rem; }
.formular .kasten > h2, .formular.kasten > h2 { margin-bottom: -.15rem; }
.formular.kasten > .knopf, .formular .kasten > .knopf { justify-self: start; }
.formular.kasten > .knopf-breit { justify-self: stretch; }
