/* ==========================================================================
   online-gottesdienste.ch: Stylesheet
   Basis sind die Design-Tokens aus tokens.css (Quelle: cd/tokens.css).
   Schrift: Plus Jakarta Sans (variable, selbst gehostet unter fonts/).
   ========================================================================== */

@import url("tokens.css");

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  background: var(--hintergrund);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #d1eead; }

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--akzent-text); }
a:hover { text-decoration-thickness: 2px; }

.muted { color: var(--muted); }

/* Klassen mit display (z. B. .chip) ueberschreiben sonst das hidden-Attribut */
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--akzent-text);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Icons (Sprite icons.svg) ---------- */

.icon {
  width: 1.05em;
  height: 1.05em;
  display: inline-block;
  vertical-align: -0.16em;
  flex: none;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rahmen);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
}

.marke-name {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.marke-icon {
  width: 22px;
  height: 22px;
  color: var(--akzent);
}

.badge-pilot {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--akzent);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}

.untertitel {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: var(--fs-1);
}

.site-nav {
  display: flex;
  gap: 2px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  text-decoration: none;
  font-size: var(--fs-2);
  font-weight: 500;
  padding: 8px 12px;
  border-bottom: 3px solid transparent;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}

.site-nav a .icon { color: var(--muted); transition: color var(--dur-1) var(--ease); }

.site-nav a:hover { color: var(--akzent-text); }
.site-nav a:hover .icon { color: var(--akzent-text); }

.site-nav a.aktiv {
  border-bottom-color: var(--akzent);
  font-weight: 700;
}

.site-nav a.aktiv .icon { color: var(--akzent-text); }

/* ---------- Grundstruktur ---------- */

main .wrap, main.wrap { padding-top: 8px; }

/* Sektionskarten nur auf den Inhaltsseiten, die Shorts-Slides im Feed
   sind ebenfalls section-Elemente und duerfen diese Optik nicht erben. */
main.wrap > section {
  background: var(--surface);
  border: 1px solid var(--rahmen);
  border-radius: var(--radius-l);
  box-shadow: var(--schatten-1);
  padding: 22px 24px;
  margin: 20px 0;
  scroll-margin-top: 90px;
  animation: einblenden var(--dur-3) var(--ease-out) both;
}

@keyframes einblenden {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  margin: 0 0 16px;
  font-size: var(--fs-5);
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2 .icon { width: 1em; height: 1em; color: var(--muted); }
h2 .icon.icon-live { color: var(--live); }

h3 {
  margin: 0 0 4px;
  font-size: var(--fs-4);
  font-weight: 700;
  letter-spacing: -0.005em;
}

.yt-link {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.yt-link .icon { width: 0.95em; height: 0.95em; }

.daten-fehler {
  background: var(--fehler-bg);
  border: 1px solid var(--fehler-rahmen);
  color: var(--fehler-text);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.daten-fehler-karte {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--akzent);
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--fs-2);
  line-height: 1.3;
  text-decoration: none;
  border: 1px solid var(--akzent);
  border-radius: var(--radius-s);
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease),
    transform var(--dur-1) var(--ease);
}

.btn .icon { width: 1em; height: 1em; }

.btn:hover {
  background: var(--akzent-hover);
  border-color: var(--akzent-hover);
}

.btn:active { transform: translateY(1px); }

.btn[disabled] { opacity: 0.55; cursor: default; }

.btn.zweit {
  background: var(--surface);
  color: var(--akzent-text);
  border-color: var(--rahmen-stark);
}

.btn.zweit:hover {
  background: var(--akzent-hell);
  border-color: var(--akzent-text);
}

/* ---------- Chips und Umschalter ---------- */

.chip,
.umschalter button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--rahmen-stark);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 6px 15px;
  font-family: var(--font);
  font-size: var(--fs-2);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease);
}

.chip:hover,
.umschalter button:hover {
  border-color: var(--akzent-text);
  color: var(--akzent-text);
}

.chip.aktiv,
.umschalter button.aktiv {
  background: var(--akzent);
  border-color: var(--akzent);
  color: var(--text);
  font-weight: 700;
}

.chip.aktiv:hover,
.umschalter button.aktiv:hover { color: var(--text); }

.chip .icon, .umschalter button .icon { width: 1em; height: 1em; }

.umschalter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

/* ---------- Badges und Tags ---------- */

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--live);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 3px 10px 3px 9px;
  margin-bottom: 6px;
}

.badge-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: puls 1.6s var(--ease) infinite;
}

@keyframes puls {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.badge-live.klein { margin: 0 0 0 6px; padding: 2px 8px 2px 7px; font-size: 0.68rem; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  margin-left: 6px;
  color: #fff;
  vertical-align: middle;
}

.tag.feg { background: var(--feg); }
.tag.viva { background: var(--viva); }
.tag.icf { background: var(--icf); }
.tag.andere { background: var(--andere); }

/* ---------- Jetzt live ---------- */

.live-karten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.live-karte {
  border: 1px solid var(--rahmen);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}

.live-karte:hover {
  transform: translateY(-2px);
  box-shadow: var(--schatten-2);
}

.live-karte iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.live-karte .live-karte-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.live-leer-links a { font-weight: 600; }

.meta-zeile {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-zeile .icon { color: var(--muted); }

/* ---------- Demnächst ---------- */

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.karte-klein {
  border: 1px solid var(--rahmen);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}

.karte-klein:hover {
  transform: translateY(-2px);
  box-shadow: var(--schatten-2);
}

.karte-klein .wann {
  font-weight: 700;
  color: var(--akzent-text);
  display: flex;
  align-items: center;
  gap: 7px;
}

.karte-klein .thema { font-style: italic; }

.karte-klein .aktionen { margin-top: 10px; }

/* ---------- Karte ---------- */

#map {
  height: 460px;
  border-radius: var(--radius);
  border: 1px solid var(--rahmen);
}

.legende {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.legende li { display: flex; align-items: center; gap: 6px; }

.legende .punkt {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(35, 39, 46, 0.35);
}

.pin {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(35, 39, 46, 0.45);
}

.popup-aktionen { margin-top: 8px; }
.popup-aktionen .btn { margin: 0 6px 6px 0; padding: 5px 12px; font-size: 0.85rem; }

/* ---------- Verzeichnis / Filter ---------- */

.filter { margin-bottom: 12px; }

.chips-titel {
  font-size: var(--fs-1);
  color: var(--muted);
  margin-right: 2px;
}

.filter-details > summary {
  display: none;
  list-style: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-2);
  border: 1px solid var(--rahmen-stark);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  margin-bottom: 12px;
  width: max-content;
  transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}

.filter-details > summary::-webkit-details-marker { display: none; }

.filter-details > summary:hover { border-color: var(--akzent-text); color: var(--akzent-text); }

.filter-details > summary .chev { transition: transform var(--dur-2) var(--ease); }
.filter-details[open] > summary .chev { transform: rotate(180deg); }

.filter-zeile {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.filter label {
  display: flex;
  flex-direction: column;
  font-size: var(--fs-1);
  font-weight: 500;
  color: var(--muted);
  gap: 4px;
}

.filter select, .filter input[type="search"] {
  font-family: var(--font);
  font-size: var(--fs-2);
  font-weight: 400;
  padding: 8px 10px;
  border: 1px solid var(--rahmen-stark);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--dur-1) var(--ease);
}

.filter select:hover, .filter input[type="search"]:hover { border-color: var(--akzent-text); }
.filter select:focus, .filter input[type="search"]:focus { border-color: var(--akzent-text); outline: none; }

.f-suche { flex: 1; min-width: 200px; }

.input-mit-icon {
  display: block;
  position: relative;
}

.input-mit-icon .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.input-mit-icon input { width: 100%; }

.filter .input-mit-icon input[type="search"] { padding-left: 34px; }

.treffer-zahl {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 4px 0 10px;
}

.kirchen-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kirchen-liste li {
  border-top: 1px solid var(--rahmen);
  padding: 12px 4px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
}

.kirchen-liste .zeile-name { font-weight: 600; }

.kirchen-liste .zeile-meta {
  grid-column: 1;
  font-size: 0.88rem;
  color: var(--muted);
}

.kirchen-liste .zeile-aktionen {
  grid-column: 2;
  grid-row: 1 / span 2;
  white-space: nowrap;
}

.kirchen-liste .zeile-aktionen .btn { padding: 6px 12px; font-size: 0.85rem; margin-left: 6px; }

/* ---------- FAQ ---------- */

#faq details {
  border-top: 1px solid var(--rahmen);
  padding: 6px 2px 10px;
}

#faq details:last-of-type { border-bottom: 1px solid var(--rahmen); }

#faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
}

#faq summary::-webkit-details-marker { display: none; }

#faq summary .chev {
  color: var(--muted);
  transition: transform var(--dur-2) var(--ease);
}

#faq details[open] summary .chev { transform: rotate(180deg); }

#faq details p { margin: 6px 0 10px; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 28px;
  padding: 22px 0 40px;
  border-top: 1px solid var(--rahmen);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Archiv: Video-Karten ---------- */

.video-karten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.video-karte {
  border: 1px solid var(--rahmen);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}

.video-karte:hover {
  transform: translateY(-2px);
  box-shadow: var(--schatten-2);
}

.video-karte .thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: var(--surface-dunkel);
  cursor: pointer;
}

.video-karte .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-karte .thumb .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(20, 23, 27, 0.72);
  display: grid;
  place-items: center;
  transition: background-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}

.video-karte .thumb .play .icon {
  width: 22px;
  height: 22px;
  color: #fff;
  transform: translateX(1px);
  transition: color var(--dur-2) var(--ease);
}

.video-karte .thumb:hover .play,
.video-karte .thumb:focus-visible .play { background: var(--akzent); }

.video-karte .thumb:hover .play .icon,
.video-karte .thumb:focus-visible .play .icon { color: var(--text); }

.video-karte iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: var(--surface-dunkel);
}

.video-karte-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.video-karte-body h3 {
  font-size: 0.97rem;
  line-height: 1.35;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.mini-chip {
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--akzent-hell);
  color: var(--akzent-text);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
}

.mehr-laden {
  text-align: center;
  margin: 18px 0 4px;
}

/* ---------- Skeleton-Ladeflaechen ---------- */

.skel { pointer-events: none; }

.skel:hover { transform: none; box-shadow: none; }

.skel-balken, .skel-bild {
  background: linear-gradient(90deg, var(--skel-a) 25%, var(--skel-b) 50%, var(--skel-a) 75%);
  background-size: 200% 100%;
  animation: schimmer 1.3s linear infinite;
}

.skel-balken {
  height: 12px;
  border-radius: var(--radius-pill);
  margin: 5px 0;
}

.skel-bild {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

@keyframes schimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ---------- Shorts-Feed ---------- */

.shorts-seite { background: var(--surface-dunkel); }

.shorts-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(20, 23, 27, 0.78);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
}

.shorts-topbar h1 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shorts-topbar .badge-pilot { font-size: 0.6rem; padding: 2px 8px; }

.shorts-topbar .site-nav a {
  color: #d8dde3;
  font-size: 0.88rem;
  padding: 6px 10px;
}

.shorts-topbar .site-nav a .icon { color: #9aa3ad; }

.shorts-topbar .site-nav a:hover { color: var(--akzent); }
.shorts-topbar .site-nav a:hover .icon { color: var(--akzent); }

.shorts-topbar .site-nav a.aktiv {
  color: #fff;
  border-bottom-color: var(--akzent);
}

.shorts-topbar .site-nav a.aktiv .icon { color: var(--akzent); }

.shorts-feed {
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

@media (prefers-reduced-motion: no-preference) {
  .shorts-feed { scroll-behavior: smooth; }
}

.short-slide {
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
}

.short-buehne {
  position: relative;
  aspect-ratio: 9 / 16;
  height: min(100%, calc(100dvh - 24px));
  max-width: 96vw;
  background: #000;
  border-radius: var(--radius-l);
  overflow: hidden;
}

.short-buehne .thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}

.short-buehne .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.short-buehne .thumb .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(20, 23, 27, 0.72);
  display: grid;
  place-items: center;
  transition: background-color var(--dur-2) var(--ease);
}

.short-buehne .thumb .play .icon {
  width: 26px;
  height: 26px;
  color: #fff;
  transform: translateX(2px);
  transition: color var(--dur-2) var(--ease);
}

.short-buehne .thumb:hover .play,
.short-buehne .thumb:focus-visible .play { background: var(--akzent); }

.short-buehne .thumb:hover .play .icon,
.short-buehne .thumb:focus-visible .play .icon { color: var(--text); }

.short-buehne iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.short-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 14px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: #fff;
  pointer-events: none;
}

.short-overlay a { pointer-events: auto; }

.short-overlay h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  display: block;
}

.short-overlay .short-meta {
  font-size: 0.85rem;
  color: #d8dde3;
}

.short-overlay .short-meta .kirche-link {
  color: #fff;
  font-weight: 600;
}

.short-overlay .short-meta .kirche-link:hover { color: var(--akzent); }

.short-overlay .short-thema {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
}

.short-overlay .yt-link {
  display: inline-flex;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--akzent);
}

.shorts-hinweis {
  color: #d8dde3;
  padding: 120px 20px;
  text-align: center;
}

.shorts-sentinel { height: 2px; }

/* ---------- Avatar (Kirchen-Logos) ---------- */

.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--hintergrund);
  border: 1px solid var(--rahmen);
}

.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  flex: none;
  user-select: none;
}

.avatar-24 { width: 24px; height: 24px; font-size: 0.6rem; }
.avatar-32 { width: 32px; height: 32px; font-size: 0.72rem; }
.avatar-40 { width: 40px; height: 40px; font-size: 0.85rem; }
.avatar-64 { width: 64px; height: 64px; font-size: 1.25rem; }

/* Interner Link auf die Kirchen-Detailseite: sieht aus wie Text,
   erst Hover faerbt ihn als Link. */
.kirche-link {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.kirche-link:hover {
  color: var(--akzent-text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Karten-Popup: Kopf mit Logo und verlinktem Namen */
.popup-kopf {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.popup-kopf .kirche-link { font-weight: 700; }

/* ---------- Umkreis-Gruppe (Startseite) ---------- */

.umkreis-gruppe { align-items: flex-end; }

.umkreis-gruppe .chip { margin-bottom: 1px; }

.umkreis-gruppe .input-mit-icon input { width: 240px; max-width: 62vw; }

#umkreis-fehler { font-size: var(--fs-1); align-self: center; }

/* ---------- Kirchen-Detailseite ---------- */

.zurueck-zeile { margin: 14px 0 0; }

.zurueck-zeile a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-2);
  font-weight: 600;
  text-decoration: none;
}

.zurueck-zeile a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.kopf-kirche {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.kopf-kirche .kopf-text { flex: 1; min-width: 240px; }

.kopf-kirche h2 { margin-bottom: 6px; }

.kopf-aktionen {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hinweis-box {
  background: var(--hintergrund);
  border: 1px solid var(--rahmen);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: var(--fs-2);
  margin-top: 12px;
}

.hinweis-box .icon { margin-right: 6px; color: var(--muted); }

.kopf-kirche .badge-live { margin-bottom: 0; }

/* Shorts-Reihe auf der Detailseite: horizontale 9:16-Teaser */
.shorts-reihe {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.short-teaser { flex: none; width: 130px; }

.short-teaser .thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-dunkel);
  cursor: pointer;
}

.short-teaser .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.short-teaser .thumb .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(20, 23, 27, 0.72);
  display: grid;
  place-items: center;
  transition: background-color var(--dur-2) var(--ease);
}

.short-teaser .thumb .play .icon {
  width: 18px;
  height: 18px;
  color: #fff;
  transform: translateX(1px);
}

.short-teaser .thumb:hover .play,
.short-teaser .thumb:focus-visible .play { background: var(--akzent); }

.short-teaser .thumb:hover .play .icon,
.short-teaser .thumb:focus-visible .play .icon { color: var(--text); }

.short-teaser iframe {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: var(--radius);
  display: block;
  background: var(--surface-dunkel);
}

.short-teaser .short-titel {
  font-size: var(--fs-1);
  color: var(--muted);
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Archiv-Karten: Kirchenzeile mit Logo und Link.
   Kein gap auf der Zeile, damit der Orts-Text direkt am Namen klebt;
   der Abstand zwischen Logo und Name steckt in .kirche-link. */
.kirche-zeile {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.kirche-zeile .kirche-link { font-weight: 600; }

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .header-innen { flex-direction: column; align-items: flex-start; }
  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .filter-details > summary { display: inline-flex; }
  main.wrap > section { padding: 16px 14px; margin: 14px 0; }
  #map { height: 340px; }
  .kirchen-liste li { grid-template-columns: 1fr; }
  .kirchen-liste .zeile-aktionen {
    grid-column: 1;
    grid-row: auto;
    margin-top: 8px;
  }
  .kirchen-liste .zeile-aktionen .btn { margin: 0 6px 0 0; }
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  main.wrap > section { animation: none; }
  .badge-live::before { animation: none; }
  .skel-balken, .skel-bild { animation: none; }
  .live-karte:hover, .video-karte:hover, .karte-klein:hover { transform: none; }
  .filter-details > summary .chev,
  #faq summary .chev { transition: none; }
}
