/* ============================================================
   foto.semir.at – Stil
   Hell, ruhig, bildbetont.
   Schriften: Outfit (Überschriften) + Manrope (Text), lokal in /fonts/.
   ============================================================ */

@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-v15-latin-regular.woff2') format('woff2');
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-v15-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-v15-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-v20-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-v20-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-v20-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --papier: #FBFAF7;        /* warmes Weiß wie im Logo */
  --tinte:  #202427;        /* Anthrazit aus dem Logo */
  --grau:   #6E7378;        /* Meta-Texte */
  --linie:  #E7E4DE;        /* feine Trennungen */
  --akzent: #E8691D;        /* Orange aus dem Logo */
  --gruen: #59733F;      /* Blattgrün als zweiter Akzent */
  --schrift-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --schrift-text: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: 1rem;
  line-height: 1.55;
}

a { color: var(--akzent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* ---------- Kopfzeile (Marke + Menü) ---------- */

.kopfzeile {
  background: var(--papier);
  border-bottom: 1px solid var(--linie);
}

.kopfzeile-innen {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--schrift-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--tinte);
  letter-spacing: 0.01em;
}
.marke:hover { text-decoration: none; }

.menue {
  display: flex;
  gap: 1.4rem;
  font-size: 0.92rem;
}
.menue a { color: var(--grau); }
.menue a:hover { color: var(--akzent); text-decoration: none; }
.menue a[aria-current="page"] {
  color: var(--tinte);
  font-weight: 600;
  border-bottom: 2px solid var(--gruen);
  padding-bottom: 2px;
}

/* ---------- Kopf ---------- */

.kopf {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1rem 1.5rem;
}

.kopf-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;   /* Knopf steht direkt neben "Alle Galerien" */
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

/* Einheitlicher Pillen-Knopf – gleiche Formensprache wie in der Großansicht */
.pille[hidden] { display: none; }

.pille {
  font-family: var(--schrift-text);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  padding: 0.45rem 1.05rem;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: transparent;
  color: var(--tinte);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.pille:hover { border-color: var(--akzent); color: var(--akzent); text-decoration: none; }
.pille:active { transform: scale(0.97); }

.pille svg {
  width: 16px; height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pille-primaer {
  background: var(--akzent);
  border-color: var(--akzent);
  color: #fff;
}
.pille-primaer:hover { background: #F07E38; border-color: #F07E38; color: #fff; }

.kopf h1 {
  font-family: var(--schrift-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--akzent);
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.3rem;
}

.meta, .dachzeile {
  color: var(--grau);
  font-size: 0.9rem;
  margin: 0;
}

.dachzeile {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.kopf-start { padding-top: 3.5rem; padding-bottom: 2.5rem; }
.kopf-start h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.untertitel {
  max-width: 34rem;
  color: var(--grau);
  font-size: 1.05rem;
  margin: 0.8rem 0 0;
}

/* ---------- Karten (Startseite) ---------- */

main { max-width: 1200px; margin: 0 auto; padding: 0 1rem 3rem; }

.karten {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.karte { display: block; color: inherit; }
.karte:hover { text-decoration: none; }

.karte img, .karte-platzhalter {
  display: block;
  width: 100%;
  aspect-ratio: 730 / 750;
  object-fit: cover;
  border-radius: 6px;
  background: var(--linie);
}

.karte-gesperrt { position: relative; display: block; border-radius: 6px; background: var(--linie); }
.karte-gesperrt img { opacity: 0.5; }
.karte-gesperrt svg {
  position: absolute; top: 50%; left: 50%;
  width: 2rem; height: 2rem; margin: -1rem 0 0 -1rem;
  fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.8;
}

.karte-text { display: block; padding: 0.6rem 0.15rem 0; }
.karte-text strong {
  font-weight: 600;
  font-size: 0.98rem;
  color: #606060;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.karte img { transition: filter 0.2s ease; }
.karte:hover img { filter: brightness(0.55); }
.karte:hover .karte-text strong { color: var(--akzent); }
.karte-meta { display: block; color: var(--grau); font-size: 0.85rem; margin-top: 0.1rem; }

/* ---------- Galerie-Raster (3:2, Kontaktbogen) ---------- */

/* Reihenlayout: Fotos laufen strikt in Dateireihenfolge von links nach rechts.
   Alle Bilder einer Reihe sind gleich hoch, die Breite ergibt sich aus dem
   Seitenverhältnis – es wird NICHTS beschnitten. */
.raster {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  --reihenhoehe: 260px;
}

.raster li {
  margin: 0;
  height: var(--reihenhoehe);
  flex: 0 0 auto;
  width: calc(var(--reihenhoehe) * 3 / 2);  /* Startwert, JS setzt die echte Breite */
}

@media (max-width: 900px) { .raster { --reihenhoehe: 200px; gap: 12px; } }
@media (max-width: 480px) { .raster { --reihenhoehe: 150px; gap: 8px; } }

.kachel { display: block; width: 100%; height: 100%; }

.kachel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;    /* vollständiges Bild, kein Beschnitt */
  border-radius: 4px;
  background: var(--linie);
}


.kachel:focus-visible img { outline: 2px solid var(--akzent); outline-offset: 1px; }

.leer { color: var(--grau); padding: 3rem 0; text-align: center; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(18, 19, 21, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lb-buehne {
  margin: 0;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-buehne img {
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  border-radius: 6px;
  user-select: none;
  -webkit-user-drag: none;
}

/* Kopfbereich: Zähler links, Schließen rechts */
.lb-kopf {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 51;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  pointer-events: none;
}
.lb-kopf > * { pointer-events: auto; }

.lb-zaehler {
  font-family: var(--schrift-text);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  white-space: nowrap;
}

/* Runde Glas-Knöpfe (Schließen, Pfeile) */
.lb-rund {
  z-index: 51;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.lb-rund:hover { background: rgba(255, 255, 255, 0.2); }
.lb-rund:active { transform: scale(0.94); }

.lb-rund svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pfeile: hochgezogene Pillen – größere Trefferfläche als runde Knöpfe */
.lb-pfeil {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 6.5rem;
  border-radius: 999px;
}
.lb-pfeil:active { transform: translateY(-50%) scale(0.96); }
.lb-pfeil svg { width: 24px; height: 24px; }
.lb-zurueck { left: 1rem; }
.lb-vor { right: 1rem; }

/* Fußbereich: schwebende Leiste statt Balken */
.lb-fuss {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 51;
  display: flex;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

.lb-leiste {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.lb-knopf {
  font-family: var(--schrift-text);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.lb-knopf:hover { background: rgba(255, 255, 255, 0.14); color: #fff; text-decoration: none; }

.lb-knopf svg {
  width: 17px; height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lb-knopf-primaer {
  background: var(--akzent);
  color: #fff;
}
.lb-knopf-primaer:hover { background: #F07E38; color: #fff; }

@media (max-width: 600px) {
  .lb-pfeil { display: none; }              /* am Handy: wischen */
  .lb-buehne img { max-height: calc(100vh - 7.5rem); }
  .lb-knopf { font-size: 0.8rem; padding: 0.5rem 0.85rem; }
}

@media (max-width: 380px) {
  .lb-knopf .lbl { display: none; }         /* sehr schmal: nur Symbole */
  .lb-knopf { padding: 0.6rem; }
}

/* ---------- Fuß ---------- */

.fuss {
  border-top: 1px solid var(--linie);
  margin-top: 2rem;
}
.fuss p {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 1rem;
  color: var(--grau);
  font-size: 0.85rem;
}
.fuss a { color: var(--grau); }
.fuss a:hover { color: var(--akzent); }

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: no-preference) {
  .kachel img, .karte img { transition: opacity 0.25s ease; }
  .lightbox { animation: lbEin 0.18s ease; }
  @keyframes lbEin { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Textseiten (Nutzung, Kontakt, Impressum) ---------- */

.textseite { max-width: 720px; }

.textseite h2 {
  font-family: var(--schrift-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 2rem 0 0.5rem;
}
.textseite h3 {
  font-family: var(--schrift-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 1.6rem 0 0.4rem;
}
.textseite blockquote {
  margin: 0.8rem 0;
  padding: 0.6rem 1rem;
  border-left: 3px solid var(--akzent);
  background: rgba(232, 105, 29, 0.07);
  border-radius: 0 6px 6px 0;
}
.textseite hr {
  border: none;
  border-top: 1px solid var(--linie);
  margin: 2.5rem 0;
}

.kontakt-block { margin-top: 0.5rem; margin-bottom: 2.2rem; }
.kontakt-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--grau);
  margin: 0 0 0.6rem;
}
.mail-knopf {
  font: inherit;
  font-size: 1.05rem;
  color: var(--akzent);
  background: none;
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  cursor: pointer;
}
.mail-knopf:hover { border-color: var(--akzent); }
.mail-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--akzent);
}
.kontakt-hinweis { color: var(--grau); font-size: 0.85rem; margin-top: 0.7rem; }

/* ---------- Statistik-Einwilligung (Banner) ---------- */

.consent {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 60;
  width: min(680px, calc(100vw - 2rem));
  background: var(--tinte);
  color: #EAF0F5;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  box-shadow: 0 8px 30px rgba(20, 22, 24, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
  justify-content: space-between;
}

.consent-text { margin: 0; font-size: 0.88rem; line-height: 1.5; flex: 1 1 340px; }
.consent-text a { color: var(--gruen); text-decoration: underline; }

.consent-knoepfe { display: flex; gap: 0.6rem; }

.consent-ja, .consent-nein {
  font: inherit;
  font-size: 0.88rem;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  border: 1px solid transparent;
}
.consent-ja { background: var(--akzent); color: #fff; font-weight: 600; }
.consent-ja:hover { background: #F07E38; }
.consent-nein { background: none; color: #EAF0F5; border-color: rgba(234, 240, 245, 0.45); }
.consent-nein:hover { border-color: #EAF0F5; }

.marke-logo { display: block; width: 256px; height: auto; }
@media (max-width: 480px) { .marke-logo { width: 180px; } }
.marke-zusatz { color: var(--grau); font-size: 0.95rem; margin-left: 0.6rem; }

/* ---------- Kontakt-Leiste (dezent, ganz oben) ---------- */

.kontakt-leiste {
  border-bottom: 1px solid var(--linie);
  background: rgba(232, 105, 29, 0.07);
}
.kontakt-leiste p {
  margin: 0;
  color: var(--grau);
  font-size: 0.85rem;
}
.kontakt-leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.55rem 1rem;
}
@media (min-width: 1240px) {
  .kontakt-leiste { padding-left: calc((100vw - 1200px) / 2 + 1rem); padding-right: calc((100vw - 1200px) / 2 + 1rem); }
}

.mail-knopf-klein {
  font: inherit;
  font-size: 0.82rem;
  color: var(--akzent);
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}
.mail-knopf-klein:hover { border-color: var(--akzent); }
.mail-knopf-klein.mail-sichtbar { font-weight: 600; }
.mail-knopf-klein.mail-kopiert {
  background: var(--akzent);
  color: #fff;
  border-color: var(--akzent);
}

.hinweis-hobby {
  max-width: 40rem;
  color: var(--grau);
  font-size: 0.92rem;
  margin: 0 0 1.6rem;
  padding: 0.8rem 1rem;
  background: rgba(232, 105, 29, 0.07);
  border-left: 3px solid var(--akzent);
  border-radius: 0 6px 6px 0;
}

/* ---------- Verwaltung & Formulare ---------- */

.verwaltung { max-width: 900px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.verwaltung h1 { font-family: var(--schrift-display); font-weight: 500; font-size: 1.7rem; margin: 0 0 1rem; color: var(--akzent); }
.verwaltung h2 { font-family: var(--schrift-display); font-weight: 500; font-size: 1.2rem; margin: 2rem 0 0.5rem; }

.v-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }

.formular { display: grid; gap: 0.9rem; max-width: 480px; }
.formular label { display: grid; gap: 0.3rem; font-size: 0.9rem; color: var(--grau); }
.formular select {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: #fff;
  color: var(--tinte);
}
.formular select:focus { outline: 2px solid var(--akzent); border-color: var(--akzent); }

.formular input {
  font: inherit; padding: 0.55rem 0.7rem;
  border: 1px solid var(--linie); border-radius: 8px;
  background: #fff; color: var(--tinte);
}
.formular input:focus { outline: 2px solid var(--akzent); border-color: var(--akzent); }
.formular button, .knopf {
  font: inherit; font-weight: 600;
  background: var(--akzent); color: #fff;
  border: none; border-radius: 999px;
  padding: 0.55rem 1.3rem; cursor: pointer;
  justify-self: start; text-decoration: none; display: inline-block;
}
.formular button:hover, .knopf:hover { filter: brightness(1.1); text-decoration: none; }

.knopf-leise {
  font: inherit; font-size: 0.82rem;
  background: none; color: var(--tinte);
  border: 1px solid var(--linie); border-radius: 999px;
  padding: 0.3rem 0.8rem; cursor: pointer; text-decoration: none; display: inline-block;
}
.knopf-leise:hover { border-color: var(--akzent); color: var(--akzent); text-decoration: none; }
.knopf-leise.gefahr:hover { border-color: #B4372F; color: #B4372F; }

.inline-form { display: inline; }

.v-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.v-zeile {
  border: 1px solid var(--linie); border-radius: 10px;
  padding: 0.8rem 1rem; background: #fff;
  display: grid; gap: 0.6rem;
}
.v-zeile.verborgen { opacity: 0.6; }
.v-info { display: grid; gap: 0.15rem; }
.v-url { color: var(--akzent); word-break: break-all; }
.v-aktionen { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.klein { font-size: 0.83rem; color: var(--grau); }

.hinweis { padding: 0.7rem 1rem; border-radius: 8px; font-size: 0.9rem; }
.hinweis.ok { background: rgba(46, 125, 50, 0.1); color: #2E7D32; }
.hinweis.fehler { background: rgba(180, 55, 47, 0.1); color: #B4372F; }

.tf-raster {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px;
}
.tf-bild { padding: 0; border: 3px solid transparent; border-radius: 8px; background: none; cursor: pointer; }
.tf-bild img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 5px; }
.tf-bild.gewaehlt { border-color: var(--akzent); }
.tf-bild:hover { border-color: var(--gruen); }

/* Kontakt-Button (große Variante): Zustände */
.mail-knopf.mail-sichtbar { font-weight: 600; }
.mail-knopf.mail-kopiert { background: var(--akzent); color: #fff; border-color: var(--akzent); }

/* Knöpfe in der dunklen Kopfzeile (z.B. Abmelden) */
.kopfzeile .knopf-leise {
  color: var(--tinte);
  border-color: var(--linie);
}
.kopfzeile .knopf-leise:hover {
  color: var(--akzent);
  border-color: var(--akzent);
}

/* ---------- Fokuspunkt-Wahl ---------- */

.fokus-wahl { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1rem 0 1.5rem; }

.fokus-bild-halter { position: relative; max-width: 420px; cursor: crosshair; }
.fokus-bild-halter img { display: block; width: 100%; height: auto; border-radius: 8px; }

.fokus-marker {
  position: absolute;
  width: 26px; height: 26px;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--akzent), 0 2px 8px rgba(0,0,0,0.35);
  pointer-events: none;
}

.fokus-vorschau img {
  display: block;
  width: 292px;
  aspect-ratio: 730 / 750;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--linie);
}

/* Speichern-Hinweis in der Lightbox (Rückfallmodus) */
.lb-hinweis {
  position: fixed;
  bottom: 5.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 52;
  margin: 0;
  padding: 0.6rem 1.1rem;
  background: var(--akzent);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.4;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  max-width: min(30rem, calc(100vw - 2rem));
  text-align: center;
}

/* ---------- Galerie-Ende ---------- */
.galerie-ende {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
  color: var(--grau);
}
.galerie-ende p { margin: 0 0 0.8rem; font-size: 0.9rem; }


/* Social-Icons im Menü */
.menue .insta,
.menue .tiktok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.menue .insta { color: #C13584; }   /* Instagram-Pink, dezent statt Farbverlauf */
.menue .insta:hover {
  color: #A32A6D;
  background: rgba(193, 53, 132, 0.10);
}
.menue .tiktok { color: var(--tinte); }
.menue .tiktok:hover {
  color: #000;
  background: rgba(32, 36, 39, 0.08);
}
.menue .insta svg,
.menue .tiktok svg { display: block; width: 19px; height: 19px; }

/* ---------- Burger-Menü (schmale Bildschirme) ---------- */

.burger {
  display: none;
  background: none;
  border: none;
  color: var(--tinte);
  padding: 0.4rem;
  cursor: pointer;
}
.burger:hover { color: var(--akzent); }
.burger svg { display: block; }

@media (max-width: 760px) {
  .kopfzeile-innen { position: relative; }
  .burger { display: block; }

  .menue {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    flex-direction: column;
    gap: 0;
    background: var(--papier);
    border-bottom: 1px solid var(--linie);
    box-shadow: 0 10px 24px rgba(20, 22, 24, 0.12);
    padding: 0.4rem 0;
  }
  .menue.offen { display: flex; }

  .menue a {
    padding: 0.85rem 1.2rem;
    font-size: 1rem;
  }
  .menue a[aria-current="page"] {
    border-bottom: none;
    border-left: 3px solid var(--gruen);
    padding-left: calc(1.2rem - 3px);
  }
  .menue .insta,
  .menue .tiktok {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    padding: 0.85rem 1.2rem;
    gap: 0.6rem;
    justify-content: flex-start;
  }
  .menue .insta::after { content: 'Instagram'; font-size: 1rem; }
  .menue .tiktok::after { content: 'TikTok'; font-size: 1rem; }
  .menue .insta svg,
  .menue .tiktok svg { width: 20px; height: 20px; }
  .menue .insta:hover { background: none; color: #A32A6D; }
  .menue .tiktok:hover { background: none; color: #000; }
}

/* ---------- Download-Statistik in der Verwaltung ---------- */

.stat-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.stat-bild { margin: 0; }
.stat-bild img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: var(--linie);
}
.stat-bild figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding-top: 0.35rem;
}
.stat-bild figcaption { padding-top: 0.2rem; }
.stat-bild figcaption strong { color: var(--tinte); font-size: 0.95rem; }
.stat-bild figcaption strong.dl { color: var(--akzent); }
.stat-bild figcaption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Kategorien-Verwaltung */
.v-kopf-knoepfe { display: flex; align-items: center; gap: 0.5rem; }
.formular label.wahl {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  color: var(--tinte);
}
.formular label.wahl input { width: auto; }

/* ---------- Hinweis für In-App-Browser (Instagram & Co.) ---------- */

.inapp-leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: var(--akzent);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
}
.inapp-leiste button {
  font: inherit;
  font-weight: 600;
  color: var(--akzent);
  background: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.lb-hinweis { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.hinweis-knopf {
  font: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--akzent);
  background: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  cursor: pointer;
}

/* ---------- Komplett-Download ---------- */

.alles-formular[hidden] { display: none; }   /* sonst gewinnt display:grid gegen das hidden-Attribut */

.alles-formular {
  display: grid;
  gap: 0.6rem;
  max-width: 24rem;
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  background: rgba(232, 105, 29, 0.07);
  border-left: 3px solid var(--akzent);
  border-radius: 0 8px 8px 0;
}
.alles-formular label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  color: var(--grau);
}
.alles-formular input {
  font: inherit;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: #fff;
  color: var(--tinte);
}
.alles-formular input:focus { outline: 2px solid var(--akzent); border-color: var(--akzent); }
.alles-formular button { justify-self: start; }
.alles-formular .klein { margin: 0; }
.alles-fehler { margin: 0; color: #B4372F; font-size: 0.88rem; }
