/* ==========================================================================
   fotos-braun.de – Stylesheet
   Eine einzige Datei, keine Abhängigkeiten, keine externen Schriften.
   Farben und Abstände lassen sich unten bei :root zentral ändern.
   ========================================================================== */

/* Farben aus dem bestehenden Auftritt übernommen:
   #1f7093 ist die Buttonfarbe der alten Seite und zugleich die Hauptfarbe
   im Logo. Textgrau #444 wie bisher. */
:root {
  --tinte:        #333333;
  --tinte-leise:  #6a7076;
  --akzent:       #1f7093;
  --akzent-dunkel:#175a76;
  --linie:        #e0e5e9;
  --flaeche:      #f4f8fa;
  --dunkel:       #1f7093;   /* Fußbereich: Petrol im Vollton */
  --weiss:        #ffffff;
  --breite:       1080px;
  --radius:       6px;
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--weiss);
}

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.2; font-weight: 600; letter-spacing: .01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.8em 0 .5em; }

p { margin: 0 0 1.1em; }

a { color: var(--akzent-dunkel); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--tinte); }

img { max-width: 100%; height: auto; }

.muted, .meta { color: var(--tinte-leise); font-size: .93rem; }

.skip {
  position: absolute; left: -9999px;
  background: var(--tinte); color: #fff; padding: .6em 1em; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* --- Obere Leiste ---------------------------------------------------------
   Schmaler Petrol-Balken über dem Kopfbereich: Telefonnummer links,
   soziale Netzwerke rechts. Scrollt mit, bleibt also nicht stehen. */

.topbar {
  background: var(--akzent);
  color: #fff;
  font-size: .88rem;
  position: sticky; top: 0; z-index: 61;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: .8rem; min-height: 42px; flex-wrap: wrap;
}

.topbar-tel {
  display: inline-flex; align-items: center; gap: .5em;
  color: #fff; text-decoration: none; font-weight: 600;
  padding: .45em 0;
}
.topbar-tel:hover { color: #fff; text-decoration: underline; }
.topbar-tel svg { flex: none; opacity: .85; }

.topbar-social { display: flex; gap: .35rem; flex-wrap: wrap; }
.soc {
  display: inline-block; text-decoration: none;
  color: #fff; font-weight: 600; font-size: .82rem;
  letter-spacing: .02em;
  padding: .4em .85em; border-radius: 999px;
  background: rgba(0,0,0,.15);   /* dunkler als der Balken: heller Text
                                    bleibt dadurch gut lesbar */
  transition: background-color .15s, color .15s;
}
.soc:hover, .soc:focus-visible { color: #fff; }
/* Markenfarben beim Überfahren.
   Instagram hat keine einzelne Farbe, sondern einen Verlauf – hier die
   offiziellen Markentöne Pink/Magenta/Violett. Facebook und WhatsApp jeweils
   der dunklere der offiziellen Töne, damit weiße Schrift lesbar bleibt. */
.soc-facebook:hover,  .soc-facebook:focus-visible  { background: #1863d4; }
.soc-whatsapp:hover,  .soc-whatsapp:focus-visible  { background: #128c7e; }
.soc-instagram:hover, .soc-instagram:focus-visible {
  background: linear-gradient(135deg, #e1306c 0%, #c13584 45%, #833ab4 100%);
}

/* Am Handy bleibt die Leiste einzeilig, damit sie beim Scrollen stehen
   bleiben kann, ohne zu viel Bildschirm zu belegen. */
@media (max-width: 700px) {
  .topbar-inner { flex-wrap: nowrap; gap: .5rem; min-height: 40px; }
  .topbar-tel { font-size: .82rem; gap: .35em; padding: .3em 0; }
  .topbar-social { flex-wrap: nowrap; gap: .3rem; }
  .soc { font-size: .72rem; padding: .34em .6em; }
}

/* Damit die Leiste einzeilig bleibt, darf die Nummer nicht umbrechen
   und nichts darf gestaucht werden. */
@media (max-width: 700px) {
  .topbar-tel { white-space: nowrap; flex: none; }
  .topbar-social { flex: none; }
}

/* Normale Handybreiten: alles etwas kleiner, Nummer bleibt lesbar. */
@media (max-width: 430px) {
  .topbar-tel { font-size: .78rem; }
  .soc { font-size: .66rem; padding: .32em .5em; letter-spacing: 0; }
}

/* Sehr schmale Geräte: die Telefonnummer wird zum reinen Hörersymbol,
   der Anruf-Klick bleibt erhalten (das Ziel steht im aria-label). */
@media (max-width: 345px) {
  .topbar-tel span { position: absolute; width: 1px; height: 1px;
                     overflow: hidden; clip-path: inset(50%); }
}

/* --- Kopfbereich ---------------------------------------------------------- */

/* Leiste und Menü bleiben beim Scrollen stehen. Das Menü rastet genau
   unterhalb der 42 Pixel hohen Leiste ein. */
.site-header {
  border-bottom: 1px solid var(--linie);
  background: var(--weiss);
  position: sticky; top: 42px; z-index: 60;
}

/* Am Handy ist die Leiste 40 Pixel hoch, das Menü rastet entsprechend
   höher ein. Beide bleiben beim Scrollen stehen. */
@media (max-width: 700px) {
  .site-header { top: 40px; }
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 78px; flex-wrap: wrap;
}
.brand img { display: block; max-height: 48px; width: auto; }

/* Am Handy schmalerer Kopf: Leiste und Menüzeile bleiben beide stehen,
   sollen aber zusammen wenig Bildschirm belegen. Das Logo wird kleiner,
   damit Logo und Menüknopf in eine Zeile passen.
   Achtung: flex-wrap muss "wrap" bleiben, sonst kann sich das
   aufgeklappte Menü nicht unter die Zeile legen. */
@media (max-width: 700px) {
  .header-inner { min-height: 62px; gap: .6rem; }
  .brand img { max-height: 34px; }
}

.site-nav ul {
  list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none; color: var(--tinte);
  font-size: .87rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .4em 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--akzent-dunkel); border-bottom-color: var(--akzent);
}

.nav-toggle, .nav-toggle-label { display: none; }

/* Text, den nur Screenreader vorlesen. Er ist unsichtbar und belegt
   keinen Platz, gibt dem Menüknopf aber seinen Namen. */
.nur-vorlesen {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

@media (max-width: 860px) {
  /* Das Kontrollkästchen bleibt unsichtbar, muss aber mit der Tastatur
     erreichbar sein - sonst lässt sich das Menü nur mit der Maus öffnen. */
  .nav-toggle {
    display: block; position: absolute;
    width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .nav-toggle-label {
    display: block; cursor: pointer; padding: 10px; margin-left: auto;
  }
  .nav-toggle-label .nav-balken {
    display: block; width: 26px; height: 2px; background: var(--tinte); margin: 5px 0;
  }
  .nav-toggle:focus-visible + .nav-toggle-label {
    outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 4px;
  }
  .site-nav { flex-basis: 100%; display: none; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding-bottom: 1rem; }
  .site-nav li { border-top: 1px solid var(--linie); }
  .site-nav a { display: block; padding: .85em 0; border-bottom: 0; }
}

/* --- Startseite ----------------------------------------------------------- */

.hero {
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
}
.hero-bild { margin: 0; }
.hero-bild img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(31,112,147,.16);
}
.hero-bild figcaption {
  margin-top: .8em; font-size: .88rem; line-height: 1.5;
  color: var(--tinte-leise);
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-bild { order: -1; }
  .hero-bild figcaption { display: none; }
}
.kicker {
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .8rem; font-weight: 600; color: var(--akzent);
  margin-bottom: .8em;
}
.hero h1 { margin-bottom: .4em; }
.lead { font-size: 1.15rem; max-width: 46ch; color: var(--tinte-leise); }
.hero-btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8em; }

.btn {
  display: inline-block; text-decoration: none;
  background: var(--akzent); color: #fff;
  padding: .85em 1.6em; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem;
  border: 2px solid var(--akzent); cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); color: #fff; }
.btn-sek { background: transparent; color: var(--akzent-dunkel); }
.btn-sek:hover { background: var(--akzent-dunkel); color: #fff; }

.karten {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  padding-top: 3.5rem; padding-bottom: 3.5rem;
}
.karte {
  border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; background: var(--weiss);
}
.karte h2 { margin-top: 0; font-size: 1.25rem; }
.preis { font-size: 1.9rem; font-weight: 700; color: var(--akzent); margin: 0 0 .5em; }
.preis span { font-size: .9rem; vertical-align: super; font-weight: 400; }

.weiter { font-weight: 600; text-decoration: none; }
.weiter::after { content: " →"; }
.weiter:hover { text-decoration: underline; }

.band { background: var(--flaeche); padding: 3.2rem 0; border-block: 1px solid var(--linie); }
.band h2 { margin-top: 0; }
.band p { max-width: 62ch; }

/* --- Neuigkeiten auf der Startseite --------------------------------------- */

.neuigkeiten-home { padding: 3.6rem 20px 1rem; }

.abschnitt-kopf {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--linie); padding-bottom: .9rem;
}
.abschnitt-kopf h2 { margin: 0; }

.news-karten {
  display: grid; gap: 1.6rem; margin-top: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.news-karte {
  border: 1px solid var(--linie); border-radius: var(--radius);
  background: var(--weiss); overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.news-karte:hover {
  border-color: var(--akzent); transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(31,112,147,.12);
}
.news-karte a {
  display: block; padding: 1.8rem 1.6rem;
  text-decoration: none; color: inherit; height: 100%;
}
.news-karte time {
  display: inline-block;
  font-size: .76rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--akzent);
  background: #eaf3f8; padding: .3em .7em; border-radius: 999px;
}
.news-karte h2, .news-karte h3 {
  margin: .9em 0 .5em; font-size: 1.25rem; line-height: 1.3;
  font-weight: 600; color: var(--tinte);
}
.news-karte p { color: var(--tinte-leise); font-size: 1rem; margin-bottom: 1.1em; }
.karte-mehr { font-weight: 600; font-size: .92rem; color: var(--akzent-dunkel); }
.karte-mehr::after { content: " →"; }
.news-karte:hover .karte-mehr { text-decoration: underline; }
.fussnote { color: var(--tinte-leise); font-size: .85rem; padding-bottom: 3rem; }

/* --- Textseiten ----------------------------------------------------------- */

.prose { padding: 3rem 20px 4rem; max-width: 780px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose h2:first-of-type { margin-top: 1.4em; }
/* Tabellen: waagerecht scrollbar, damit sie am Handy nicht überlaufen */
.tabelle-scroll {
  margin: 1.6em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}
.tabelle-block { margin: 1.6em 0; }
.tabelle-block .tabelle-scroll { margin: 0; }
.tabelle-scroll table { margin: 0; width: 100%; }
.tabelle-block.viele-spalten .tabelle-scroll table { min-width: 460px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: .7em .6em; border-bottom: 1px solid var(--linie); vertical-align: top; }
.prose th {
  font-weight: 700; color: #fff; background: var(--akzent);
  border-bottom-color: var(--akzent);
}
.prose thead th:first-child { border-top-left-radius: var(--radius); }
.prose thead th:last-child  { border-top-right-radius: var(--radius); }
.prose tbody tr:nth-child(even) { background: #f7fafc; }
@media (max-width: 620px) {
  .tabelle-block.viele-spalten::before {
    content: "Zum Vergleichen seitlich wischen →";
    display: block; font-size: .87rem; color: var(--tinte-leise);
    margin-bottom: .5em;
  }
  .tabelle-scroll table { font-size: .9rem; }
  .tabelle-scroll th, .tabelle-scroll td { padding: .6em .5em; }
}
.prose hr { border: 0; border-top: 1px solid var(--linie); margin: 2.5em 0; }
.prose blockquote {
  margin: 1.6em 0; padding: .3em 0 .3em 1.2em;
  border-left: 3px solid var(--akzent); color: var(--tinte-leise);
}
.prose img { border-radius: var(--radius); box-shadow: 0 10px 26px rgba(31,112,147,.14); margin: 1.8em 0; }
.zurueck { margin-top: 3em; }
.news-uebersicht { padding-bottom: 3.5rem; }
.news-uebersicht .news-karten { margin-top: .5rem; }

/* --- Hinweiskasten -------------------------------------------------------- */

.hinweis {
  background: #eef5f9; border: 1px solid #c8dde8; border-left: 4px solid var(--akzent);
  border-radius: var(--radius); padding: 1.3rem 1.4rem; margin: 2em 0;
}
.hinweis h3 { margin: 0 0 .6em; }
.hinweis > :last-child { margin-bottom: 0; }

/* --- Schrittliste --------------------------------------------------------- */

.schritte ol { counter-reset: schritt; list-style: none; padding-left: 0; }
.schritte li {
  counter-increment: schritt; position: relative;
  padding-left: 2.6rem; margin-bottom: .8em;
}
.schritte li::before {
  content: counter(schritt);
  position: absolute; left: 0; top: .1em;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--akzent); color: #fff;
  display: grid; place-items: center;
  font-size: .85rem; font-weight: 700;
}

/* --- Terminkalender ------------------------------------------------------- */

.kalender { margin: 2.2em 0; }
.kalender-platzhalter {
  border: 1px dashed var(--linie); border-radius: var(--radius);
  background: var(--flaeche); padding: 2rem 1.6rem; text-align: center;
}
.kalender-platzhalter h3 { margin-top: 0; }
.kalender-platzhalter p { max-width: 54ch; margin-left: auto; margin-right: auto; }
.kalender-platzhalter .btn { margin: .6em 0 1.2em; }
.kalender iframe { width: 100%; border: 0; }

/* --- Neuigkeiten ---------------------------------------------------------- */

.news-liste { list-style: none; padding: 0; margin: 2.5em 0 0; }
.news-liste li { border-top: 1px solid var(--linie); padding: 1.8em 0; }
.news-liste time { color: var(--tinte-leise); font-size: .87rem; text-transform: uppercase; letter-spacing: .05em; }
.news-liste h2, .news-liste h3 { margin: .3em 0 .5em; font-size: 1.3rem; }
.news-liste h3 { font-size: 1.1rem; }
.news-liste a { text-decoration: none; color: var(--tinte); }
.news-liste a:hover { color: var(--akzent-dunkel); text-decoration: underline; }
.news-liste .weiter { color: var(--akzent-dunkel); }
.news-liste.kompakt li { padding: 1.1em 0; }

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

.site-footer {
  background: var(--dunkel); color: #e2edf3;
  padding: 3.2rem 0 1.5rem; margin-top: 4rem;
  font-size: .95rem;
}
.footer-grid {
  display: grid; gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.site-footer h2 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .13em;
  color: #fff; margin: 0 0 .9em;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .muted { color: inherit; }   /* dunklerer Ton wäre auf dem
                                              Petrol zu kontrastarm */
.social a { margin-right: 1.1rem; }

.footer-bottom {
  margin-top: 2.8rem; padding-top: 1.4rem;
  border-top: 1px solid #4a90ae; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: .8rem;
  font-size: .87rem; color: #e2edf3;
}
.footer-bottom p { margin: 0; }
.footer-bottom nav a { margin-left: 1.4rem; }
@media (max-width: 600px) {
  .footer-bottom nav a { margin: 0 1.4rem 0 0; display: inline-block; }
}

/* --- Druck ---------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .kalender, .hero-btns { display: none; }
  body { font-size: 11pt; }
}

/* --- Handy-Feinschliff ----------------------------------------------------
   Größere Abstände zwischen Links im Fußbereich, damit man sie mit dem Daumen
   sicher trifft, und etwas größere Mindestschrift. */
@media (max-width: 700px) {
  .site-footer p { line-height: 2.1; }
  .site-footer a { display: inline-block; padding: .15em 0; }
  .social a { margin-right: 1.6rem; }
  .footer-bottom { font-size: .92rem; }
  .fussnote { font-size: .9rem; }
  .muted, .meta { font-size: .95rem; }
}

/* --- Kontaktseite ---------------------------------------------------------
   Drei gleichwertige Kontaktwege als Karten, darunter Adresse und Studiobild. */

.kontakt-kopf { padding-bottom: .5rem; }

.kontakt-wege {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  padding-top: 1rem; padding-bottom: 3.5rem;
  align-items: start;
}

.kontaktkarte {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; background: var(--weiss); height: 100%;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
a.kontaktkarte:hover {
  border-color: var(--akzent); transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(31,112,147,.12); color: inherit;
}
.kk-symbol {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: #eaf3f8; color: var(--akzent);
}
.kontaktkarte h2 { margin: .9em 0 .35em; font-size: 1.2rem; }
.kk-gross {
  font-size: 1.2rem; font-weight: 700; color: var(--akzent);
  margin-bottom: .5em; word-break: break-word;
}
.kk-mail { font-size: 1.02rem; }
.kk-klein { color: var(--tinte-leise); font-size: .95rem; margin-bottom: 0; }
.kontaktkarte-wa .btn { margin: 1.1em 0 0; }

.kk-qr { margin: 1.4rem 0 0; }
.kk-qr img {
  width: 150px; height: auto; display: block;
  border: 1px solid var(--linie); border-radius: var(--radius); padding: 6px;
  background: #fff;
}
.kk-qr figcaption { font-size: .85rem; color: var(--tinte-leise); margin-top: .5em; }
/* Am Handy scannt niemand einen Code vom eigenen Bildschirm */
@media (max-width: 700px) { .kk-qr { display: none; } }

.kontakt-ort { margin-top: 0; }
.ort-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
}
.ort-inner h2 { margin-top: 0; }
.adresse { font-size: 1.08rem; line-height: 1.8; }
.ort-bild { margin: 0; }
.ort-bild img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); box-shadow: 0 14px 34px rgba(31,112,147,.16);
}
@media (max-width: 860px) {
  .ort-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- Einleitungsblock mit Porträt ----------------------------------------- */

.intro-block {
  display: grid; grid-template-columns: 1.3fr .7fr;
  gap: clamp(1.8rem, 4vw, 3rem); align-items: start;
  margin: 0 0 2.5em;
}
.intro-text > :first-child { margin-top: 0; }
.intro-text > :last-child { margin-bottom: 0; }
.intro-text p { font-size: 1.12rem; line-height: 1.7; }
.intro-bild { margin: 0; }
.intro-bild img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(31,112,147,.16);
}
.intro-bild figcaption {
  margin-top: .6em; font-size: .87rem; color: var(--tinte-leise);
}
@media (max-width: 700px) {
  .intro-block { grid-template-columns: 1fr; }
  .intro-bild { order: -1; max-width: 260px; }
}

/* --- Aufforderungsblock --------------------------------------------------- */

.cta {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 2rem 1.8rem; margin: 2.8em 0 1em;
  text-align: center;
}
.cta h3 { margin-top: 0; }
.cta p { color: var(--tinte-leise); max-width: 48ch; margin-inline: auto; }
.cta .btn { margin-top: .6em; }

/* --- Bildergalerie (Shortcode "galerie") ---------------------------------- */
.galerie {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 1.8em 0 .8em;
}
.galerie img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  background: var(--flaeche);
}
.galerie-bu {
  font-size: .92rem;
  color: var(--tinte-leise);
  margin: 0 0 2.2em;
}
@media (min-width: 700px) {
  .galerie { gap: 18px; }
}

/* --- Blättergalerie (Shortcode "karussell") ------------------------------- */
.karussell { --kr-hoehe: 320px; margin: 1.8em 0 2.4em; }

.kr-buehne { position: relative; }

.kr-spur {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  height: var(--kr-hoehe);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--radius);
  background: var(--flaeche);
}
.kr-spur::-webkit-scrollbar { display: none; }
.kr-spur:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }

.kr-spur li {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
}
.kr-spur li::before { content: none; }
.kr-spur img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.kr-pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--linie);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--tinte);
  cursor: pointer;
  padding: 0;
  transition: background .15s, color .15s;
}
.kr-aktiv .kr-pfeil { display: flex; }
.kr-pfeil:hover { background: var(--akzent); color: #fff; border-color: var(--akzent); }
.kr-pfeil:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.kr-zurueck { left: 10px; }
.kr-vor { right: 10px; }

.kr-punkte { display: flex; justify-content: center; gap: 7px; margin-top: .9em; }
.kr-punkte span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--linie);
  transition: background .2s;
}
.kr-punkte span.ist-an { background: var(--akzent); }

.karussell figcaption {
  font-size: .92rem;
  color: var(--tinte-leise);
  text-align: center;
  margin-top: .8em;
}

@media (min-width: 700px) {
  .karussell { --kr-hoehe: 460px; }
  /* Bühne schmaler als die Textspalte: weniger leere Fläche neben dem Bild */
  .kr-buehne { max-width: 540px; margin-inline: auto; }
  .kr-zurueck { left: -8px; }
  .kr-vor { right: -8px; }
}
