/* ==========================================================================
   ÖTK Langenlois – Theme auf Basis von Pico CSS v2
   Nur Pico-Variablen und wenige eigene Komponenten.
   ========================================================================== */

:root {
  /* Markenfarbe aus dem bisherigen Auftritt (#109AEA) */
  --oetk-blau: #109aea;
  --oetk-blau-dunkel: #0b74b3;
  --oetk-blau-hell: #e7f4fd;
  --oetk-fels: #3d4a54;
  --oetk-dunkel: #313131;
  --oetk-dunkler: #212121;
  --oetk-gruen: #c9db92;
  --oetk-orange: #e67a22;
  --oetk-orange-dunkel: #c45f14;

  --pico-font-family-sans-serif: Helvetica, 'Helvetica Neue', Arial, sans-serif;
  --pico-font-family: var(--pico-font-family-sans-serif);
  --pico-font-size: 100%;
  --oetk-schrift: 'Nunito', system-ui, sans-serif;
  --pico-border-radius: 0.5rem;
  --pico-typography-spacing-vertical: 1.25rem;

  /* Grundabstand zwischen den Inhaltsabschnitten */
  --oetk-abschnitt: clamp(2.5rem, 4vw, 4rem);
}

.container {
  max-width: 1200px;
  padding-inline: 1.5rem;
}

/* Pico-Primärfarbe auf das ÖTK-Blau umstellen.
   Die Seite läuft bewusst nur in der hellen Variante (data-theme="light"),
   weil das blaue Logo und die Fotos darauf abgestimmt sind. */
[data-theme='light'] {
  --pico-primary: var(--oetk-blau-dunkel);
  --pico-primary-background: var(--oetk-blau);
  --pico-primary-border: var(--oetk-blau);
  --pico-primary-underline: rgba(16, 154, 234, 0.5);
  --pico-primary-hover: #095a8c;
  --pico-primary-hover-background: var(--oetk-blau-dunkel);
  --pico-primary-hover-border: var(--oetk-blau-dunkel);
  --pico-primary-hover-underline: var(--oetk-blau-dunkel);
  --pico-primary-focus: rgba(16, 154, 234, 0.4);
  --pico-primary-inverse: #fff;
  --pico-muted-border-color: rgb(179 185 197);
}

h1, h2, h3, h4, h5, h6,
.site-header,
button,
[role='button'],
.lead {
  font-family: var(--oetk-schrift);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.45;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 { font-weight: 600; }

/* --------------------------------------------------------------------------
   Sprunglinks
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--pico-primary-background);
  color: var(--pico-primary-inverse);
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Kopfbereich und Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--oetk-blau);
  box-shadow: 0 1px 6px rgb(0 0 0 / 15%);
}

.site-header > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-block: 0.5rem;
}

.brand { order: 1; }
.mainnav { order: 2; }
.header-treff { order: 3; }
.nav-toggle { order: 4; }

.site-header a { color: #fff; }

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 3.5rem;
  width: auto;
  padding: 0.2rem;
  background: #fff;
  border-radius: 0.6rem;
}

.nav-toggle {
  display: none;
  margin: 0 0 0 auto;
  padding: 0.4rem 0.7rem;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 60%);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
}

.mainnav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Pico gibt jedem nav-li Innenabstand – das sprengt hier die Kopfzeile */
.mainnav li { padding: 0; }

.mainnav > ul > li > a {
  display: inline-flex;
  align-items: center;
  height: auto;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border: 0;
  border-radius: var(--pico-border-radius);
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.mainnav .has-sub > a { padding-right: 0.5rem; }

.mainnav .has-sub > a::after {
  content: '';
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  margin-inline-start: 0.4rem;
  border-right: 0.12rem solid currentColor;
  border-bottom: 0.12rem solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
}

.mainnav > ul > li > a:hover,
.mainnav > ul > li > a[aria-current='page'],
.mainnav .has-sub:hover > a,
.mainnav .has-sub:focus-within > a,
.mainnav .has-sub[data-aktiv] > a {
  background: rgb(255 255 255 / 18%);
  border: 0;
  color: #fff;
}

.mainnav .has-sub { position: relative; }

.mainnav .has-sub > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 15rem;
  padding: 0.4rem;
  border-radius: var(--pico-border-radius);
  background: var(--pico-background-color);
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 18%);
}

/* Lücke zwischen Titel und Klappmenü schließen, damit Hover nicht abbricht */
.mainnav .has-sub > ul::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.4rem;
}

.mainnav .has-sub:hover > ul,
.mainnav .has-sub:focus-within > ul {
  display: block;
}

.mainnav .has-sub > ul li { display: block; width: auto; padding: 0; }

.mainnav .has-sub > ul li a {
  display: block;
  margin: 0;
  padding: 0.55rem 1rem;
  font-size: 1.05rem;
  border-radius: calc(var(--pico-border-radius) - 0.15rem);
  color: var(--pico-color);
  text-decoration: none;
}

.mainnav .has-sub > ul li a:hover,
.mainnav .has-sub > ul li a[aria-current='page'] {
  background: var(--oetk-blau-hell);
  color: var(--oetk-blau-dunkel);
}

.site-header .header-treff {
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: var(--pico-border-radius);
  background: rgb(255 255 255 / 12%);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .header-treff:hover,
.site-header .header-treff:focus {
  background: #fff;
  border-color: #fff;
  color: var(--oetk-blau-dunkel);
}

.site-header .header-treff:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.site-header .header-treff-heute {
  background: var(--oetk-gruen);
  border-color: var(--oetk-gruen);
  color: var(--oetk-dunkler);
}

.site-header .header-treff-heute:hover,
.site-header .header-treff-heute:focus {
  background: #b5c97e;
  border-color: #b5c97e;
  color: var(--oetk-dunkler);
}

.site-header .header-treff-heute:focus-visible {
  outline-color: var(--oetk-gruen);
}

.header-treff-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.header-treff-zeit {
  display: block;
  font-weight: 700;
}

@media (max-width: 1199px) {
  .site-header > .container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 0.6rem;
    align-items: center;
  }

  .brand { grid-column: 1; grid-row: 1; }

  .site-header .header-treff {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: stretch;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 0.3rem 0.65rem;
    max-width: 100%;
    text-align: center;
    font-size: 0.78rem;
  }

  .header-treff-label { font-size: 0.65rem; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 3;
    grid-row: 1;
    align-self: stretch;
    margin: 0;
    justify-self: end;
    padding: 0.3rem 0.65rem;
    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: var(--pico-border-radius);
    font-size: 1.15rem;
  }

  .mainnav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .mainnav.is-open { display: block; }

  .mainnav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 0.5rem;
  }

  .mainnav .has-sub > ul {
    display: block;
    position: static;
    min-width: 0;
    margin: 0 0 0.35rem 0.85rem;
    padding: 0.15rem 0;
    background: transparent;
    box-shadow: none;
  }

  .mainnav .has-sub > ul::before { content: none; }

  .mainnav .has-sub > ul li a {
    color: #fff;
  }

  .mainnav .has-sub > ul li a:hover,
  .mainnav .has-sub > ul li a[aria-current='page'] {
    background: rgb(255 255 255 / 18%);
    color: #fff;
  }

  .mainnav .cta-mobile { display: block; }
}

@media (min-width: 1200px) {
  .mainnav .cta-mobile { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(70vh, 34rem);
  margin-bottom: 3rem;
  overflow: hidden;
  background: var(--oetk-fels);
  color: #fff;
}

.hero-bild {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Startseite: die Karten sitzen direkt unter dem Hero-Abstand */
.hero + #inhalt {
  padding-top: 0;
}

.hero + #inhalt > .block:first-child {
  margin-top: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgb(0 0 0 / 65%), rgb(0 0 0 / 15%) 60%);
}

.hero > .container {
  position: relative;
  z-index: 2;
  padding-block: 2.5rem 3rem;
}

.hero-box { max-width: 42rem; }

.hero h1 {
  margin-bottom: 0.25rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.hero p.hero-sub {
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 600;
}

.hero p { color: rgb(255 255 255 / 92%); }

.hero .hero-text > :last-child { margin-bottom: 1.5rem; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-ctas a[role='button'] {
  margin: 0;
  width: auto;
}

.hero-ctas a.hero-cta-orange {
  background-color: var(--oetk-orange);
  border-color: var(--oetk-orange);
  color: #fff;
}

.hero-ctas a.hero-cta-orange:hover,
.hero-ctas a.hero-cta-orange:active,
.hero-ctas a.hero-cta-orange:focus {
  background-color: var(--oetk-orange-dunkel);
  border-color: var(--oetk-orange-dunkel);
  color: #fff;
}

/* Unterseiten-Hero sitzt im Container und bricht auf die volle Fensterbreite aus */
main.container:has(> .hero-seite:first-child) {
  padding-top: 0;
}

.hero-seite {
  width: 100vw;
  max-width: 100vw;
  margin-top: 0;
  margin-inline: calc(50% - 50vw);
}

.brotkrumen {
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}

nav.brotkrumen ul {
  margin: 0;
  gap: 0;
}

.brotkrumen li {
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.brotkrumen a {
  margin: 0;
  padding: 0;
}

.brotkrumen a:hover,
.brotkrumen a:active {
  --pico-color: var(--pico-primary);
  --pico-text-decoration: none;
  color: var(--pico-primary);
  text-decoration: none;
}

.brotkrumen li:not(:last-child)::after {
  content: "/";
  margin-inline: 0.4rem;
  opacity: 0.55;
}

.hero .brotkrumen a,
.hero .brotkrumen li {
  color: rgb(255 255 255 / 88%);
}

.hero .brotkrumen a:hover,
.hero .brotkrumen a:active {
  --pico-color: rgb(255 255 255 / 88%);
  color: rgb(255 255 255 / 88%);
}

.hero .lead {
  max-width: 40rem;
  color: rgb(255 255 255 / 92%);
}

/* Seitenkopf ohne Bild */
.page-head {
  padding-block: 2.5rem 1rem;
}

.page-head .lead {
  color: var(--pico-muted-color);
}

/* --------------------------------------------------------------------------
   Inhaltsblöcke
   -------------------------------------------------------------------------- */

/* Fließtext und Überschriften bleiben schmaler als der Seitenrahmen
   und links im Rahmen. Text mit Bild, Galerie und Karten nutzen die volle Breite. */
#inhalt > :is(
  .page-head,
  h1, h2, h3, h4, h5, h6,
  p, ul, ol, blockquote,
  figure,
  .hinweis,
  hr
),
#inhalt > .block:not(.textbild):not(.galerie):not(.hero):not(.start-kontakt-termine):not(:has(.cards)):not(:has(.galerie)):not(:has(.team)):not(:has(.kalender-blatt)) {
  max-width: 800px;
}

#inhalt > .block:has(.cards) > :is(h2, h3, p),
#inhalt > .block:has(.galerie) > :is(h2, h3, p) {
  max-width: 800px;
}

/* Luft zwischen den Inhaltsabschnitten; kleine Bausteine wie Buttons und
   Hinweise bleiben enger am umgebenden Text. */
.block { margin-block: var(--oetk-abschnitt); }

p.block,
.block.hinweis { margin-block: var(--pico-block-spacing-vertical); }

/* Vollbreites Textbild: Abstand kommt vom Seitenkopf und dem Folgeblock. */
.block.textbild.bild-darunter { margin-block: 0 1rem; }

#inhalt > section.block:not(.hinweis):not(.textbild):not(:has(.cards)):not(:has(.faq)):not(:has(.icon-list)):not(:has(+ hr)):not(:last-child) + * {
  margin-top: calc(var(--oetk-abschnitt) / 2);
}

#inhalt > hr {
  margin-block: 3rem;
}

#inhalt > :has(+ hr) {
  margin-bottom: 0;
}

#inhalt > hr + * {
  margin-top: 0;
}

/* Mindestbreiten in px, damit Picos größere Wurzelschrift auf breiten
   Bildschirmen nicht ungewollt Spalten wegnimmt. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

/* Spaltenzahl aus dem Panel, nicht nur eine Mindestbreite */
.cards.spalten-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.spalten-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.spalten-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .cards.spalten-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .cards,
  .cards.spalten-2,
  .cards.spalten-3,
  .cards.spalten-4 { grid-template-columns: 1fr; }
}

/* Ohne Spaltenwahl: Karten untereinander, Bild links, Text rechts */
.cards.untereinander {
  max-width: 800px;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.cards.untereinander > article {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
}

.cards.untereinander > article:not(:has(> img, > a:first-child img, > .karte-platzhalter)) {
  grid-template-columns: 1fr;
}

.cards.untereinander > article > img,
.cards.untereinander > article > a:first-child,
.cards.untereinander > article > a:first-child img,
.cards.untereinander > article > .karte-platzhalter {
  width: 100%;
  height: 100%;
  min-height: 9rem;
  aspect-ratio: auto;
  object-fit: cover;
}

@media (max-width: 560px) {
  .cards.untereinander > article {
    grid-template-columns: 1fr;
  }

  .cards.untereinander > article > img,
  .cards.untereinander > article > a:first-child,
  .cards.untereinander > article > a:first-child img {
    height: auto;
    aspect-ratio: 3 / 2;
  }
}

.cards > article {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-color: rgb(33 33 33 / 14%);
  box-shadow: 0 0.45rem 1.35rem rgb(33 33 33 / 12%);
}

.cards > article > a:first-child {
  display: block;
  line-height: 0;
}

.karte-platzhalter {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  width: 100%;
  background: var(--oetk-blau);
  color: #fff;
}

.karte-platzhalter .icon {
  width: 3.25rem;
  height: 3.25rem;
}

.cards > article > a.karte-platzhalter {
  display: flex;
  line-height: normal;
}

.cards > article > img,
.cards > article > a:first-child img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.cards > article > .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  padding: 1.25rem;
}

.cards > article h3 { margin: 0; }

.cards > article .bericht-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
  margin: 0;
}

.karte-label {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--oetk-orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.karte-label-bericht {
  background: var(--oetk-gruen);
  color: var(--oetk-dunkler);
}

/* Link sitzt unten bündig, Text bleibt oben */
.cards > article .card-body > a[role='button'] {
  align-self: flex-start;
  width: auto;
  margin-top: auto;
  background: var(--oetk-gruen);
  border-color: var(--oetk-gruen);
  color: var(--oetk-dunkler);
  text-decoration: none;
}

.cards > article .card-body > a[role='button']:hover,
.cards > article .card-body > a[role='button']:active,
.cards > article .card-body > a[role='button']:focus {
  background: #b5c97e;
  border-color: #b5c97e;
  color: var(--oetk-dunkler);
}

/* Text mit Bild */
.textbild {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}

.textbild figure { margin: 0; }

.textbild img,
#inhalt > figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--pico-border-radius);
}

.textbild.bild-links .textbild-bild { order: -1; }
.textbild.bild-rechts .textbild-bild { order: 2; }

.textbild.bild-darunter {
  grid-template-columns: 1fr;
}

.textbild.bild-darunter .textbild-bild { order: -1; }

/* Bild-Block: data-ratio setzt das Seitenverhältnis */
figure[data-ratio] > img,
figure[data-ratio] > a > img {
  width: 100%;
  object-fit: contain;
}

figure[data-crop] > img,
figure[data-crop] > a > img {
  object-fit: cover;
}

figure[data-ratio='1/1'] > img,
figure[data-ratio='1/1'] > a > img { aspect-ratio: 1 / 1; }

figure[data-ratio='16/9'] > img,
figure[data-ratio='16/9'] > a > img { aspect-ratio: 16 / 9; }

figure[data-ratio='10/8'] > img,
figure[data-ratio='10/8'] > a > img { aspect-ratio: 10 / 8; }

figure[data-ratio='21/9'] > img,
figure[data-ratio='21/9'] > a > img { aspect-ratio: 21 / 9; }

figure[data-ratio='7/5'] > img,
figure[data-ratio='7/5'] > a > img { aspect-ratio: 7 / 5; }

figure[data-ratio='4/3'] > img,
figure[data-ratio='4/3'] > a > img { aspect-ratio: 4 / 3; }

figure[data-ratio='5/3'] > img,
figure[data-ratio='5/3'] > a > img { aspect-ratio: 5 / 3; }

figure[data-ratio='3/2'] > img,
figure[data-ratio='3/2'] > a > img { aspect-ratio: 3 / 2; }

figure[data-ratio='3/1'] > img,
figure[data-ratio='3/1'] > a > img { aspect-ratio: 3 / 1; }

.textbild > div > :first-child { margin-top: 0; }
.textbild > div > :last-child { margin-bottom: 0; }

/* Tabelle */
.tabelle {
  max-width: 800px;
}

.tabelle-scroll {
  overflow-x: auto;
}

.tabelle table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
}

.tabelle th,
.tabelle td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--pico-muted-border-color);
  text-align: left;
  vertical-align: top;
}

.tabelle th {
  font-family: var(--oetk-schrift);
  font-weight: 700;
  background: var(--oetk-blau-hell);
}

.tabelle :is(th, td):first-child {
  width: 1%;
  white-space: nowrap;
}

.tabelle :is(th, td):last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tabelle tr:last-child td { border-bottom: 0; }

.tabelle :is(th, td) > :first-child { margin-top: 0; }
.tabelle :is(th, td) > :last-child { margin-bottom: 0; }

/* Icon-Liste / Call to Action */
.icon-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
}

.icon-list > li {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--oetk-blau-hell);
  border-radius: var(--pico-border-radius);
}


.icon-list .icon {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--pico-primary);
}

.icon-list h3 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.icon-list p { margin-bottom: 0; }

/* Galerie */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.galerie figure { margin: 0; }

.galerie img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--pico-border-radius);
}

.galerie a,
a.js-bild {
  display: block;
  cursor: zoom-in;
}

/* Bildbetrachter über der Galerie */
.bildviewer {
  background: rgb(0 0 0 / 92%);
  color: #fff;
}

.bildviewer::backdrop {
  background: transparent;
}

.bildviewer figure {
  margin: 0;
  max-width: min(1100px, 84vw);
}

.bildviewer img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.bildviewer figcaption {
  margin-top: 0.75rem;
  text-align: center;
  color: rgb(255 255 255 / 88%);
}

.bildviewer-stand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  margin: 0;
  text-align: center;
  color: rgb(255 255 255 / 75%);
  font-size: 0.9rem;
}

.bildviewer button {
  position: absolute;
  z-index: 1;
  width: auto;
  margin: 0;
  padding: 0.2rem 0.7rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.75rem;
  line-height: 1;
  box-shadow: none;
}

.bildviewer button:hover,
.bildviewer button:focus,
.bildviewer button:active {
  background: transparent;
  border: 0;
  color: #fff;
  box-shadow: none;
}

.bildviewer-schliessen {
  top: 0.4rem;
  right: 0.6rem;
  font-size: 2.2rem;
}

.bildviewer-zurueck { left: 0.4rem; top: 50%; transform: translateY(-50%); }
.bildviewer-vor { right: 0.4rem; top: 50%; transform: translateY(-50%); }

/* Accordion (FAQ) */
details.faq {
  padding: 0.5rem 1rem;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  margin-bottom: 0.75rem;
}

details.faq summary {
  font-family: var(--oetk-schrift);
  font-weight: 600;
  line-height: 1.35;
}

details.faq > div { padding-top: 0.25rem; }

details.faq > div > :last-child { margin-bottom: 0; }

.block:has(.faq-mehr) details.faq:last-of-type { margin-bottom: 0; }

.faq-mehr { margin-top: 0.85rem; }

/* --------------------------------------------------------------------------
   Termine
   -------------------------------------------------------------------------- */

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

.termine > li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--pico-muted-border-color);
}

.termine > li:last-child { border-bottom: 0; }

.termin-datum {
  flex: 0 0 7rem;
  font-weight: 700;
  color: var(--pico-primary);
  font-variant-numeric: tabular-nums;
}

.termin-titel { font-weight: 600; }

.termin-zeit,
.termin-ort {
  display: block;
  font-size: 0.9rem;
  color: var(--pico-muted-color);
}

.termin-monat {
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
  text-transform: none;
}

.termine-leer { color: var(--pico-muted-color); }

/* Monatsansicht */
.kalender-monat + .kalender-monat { margin-top: var(--oetk-abschnitt); }

h2.termin-monat {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.kalender-blatt {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  overflow: hidden;
  background: var(--pico-background-color);
}

.kalender-wochentag,
.kalender-tag {
  min-width: 0;
  padding: 0.4rem 0.45rem;
  border-right: 1px solid var(--pico-muted-border-color);
  border-bottom: 1px solid var(--pico-muted-border-color);
}

.kalender-wochentag:nth-child(7n),
.kalender-tag:nth-child(7n) { border-right: 0; }

.kalender-blatt > :nth-last-child(-n+7) { border-bottom: 0; }

.kalender-wochentag {
  background: var(--pico-card-sectioning-background-color, rgb(0 0 0 / 3%));
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pico-muted-color);
}

.kalender-tag {
  min-height: 6.5rem;
  background: var(--pico-background-color);
}

.kalender-tag.ausserhalb {
  background: rgb(0 0 0 / 2.5%);
  color: var(--pico-muted-color);
}

.kalender-tag.heute {
  background: var(--oetk-blau-hell);
  box-shadow: inset 0 0 0 2px var(--oetk-blau);
}

.kalender-zahl {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.kalender-tag.heute .kalender-zahl { color: var(--oetk-blau-dunkel); }

.kalender-termine {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kalender-termine li {
  margin: 0;
  padding: 0.15rem 0.3rem;
  border-radius: 0.25rem;
  background: rgb(16 154 234 / 12%);
  list-style: none;
  font-size: 0.75rem;
  line-height: 1.25;
}

.kalender-termine li.klettertreff {
  background: var(--oetk-gruen);
  color: var(--oetk-dunkler);
}

.kalender-zeit {
  display: block;
  margin-right: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--oetk-blau-dunkel);
}

.kalender-termine li.klettertreff .kalender-zeit {
  color: var(--oetk-dunkler);
}

.kalender-titel { font-weight: 600; }

@media (max-width: 799px) {
  .kalender-tag { min-height: 4.5rem; padding: 0.25rem 0.2rem; }

  .kalender-wochentag { font-size: 0.7rem; padding: 0.3rem 0.15rem; }

  .kalender-termine li {
    padding: 0.1rem 0.2rem;
    font-size: 0.62rem;
    overflow-wrap: anywhere;
  }
}

/* Startseite: Formular links, Termine rechts */
.start-spalten {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: start;
}

#kontaktformular { scroll-margin-top: 5.5rem; }

.start-spalten > section > h2 { margin-top: 0; }

.start-berichte-mehr { margin-top: 1.5rem; }

.kontaktformular.kompakt button { width: auto; }

@media (min-width: 800px) {
  #inhalt form :is(button, [type='submit']) {
    width: auto;
  }

  #inhalt form :is(button, [type='submit']) + :is(button, [type='submit']) {
    margin-left: 0.75rem;
  }
}

@media (max-width: 799px) {
  .start-spalten { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Zitat
   -------------------------------------------------------------------------- */

blockquote.zitat {
  position: relative;
  margin-block: 2rem;
  margin-inline: 0;
  padding: 1.6rem 0 0.15rem 3.1rem;
  border: 0;
  background: none;
  color: var(--oetk-dunkel);
}

blockquote.zitat::before {
  content: "„";
  position: absolute;
  top: 0.55rem;
  left: 0;
  font-family: var(--oetk-schrift);
  font-size: 4.25rem;
  font-weight: 700;
  line-height: 0.75;
  color: var(--oetk-blau);
  pointer-events: none;
}

blockquote.zitat .zitat-text {
  font-family: var(--oetk-schrift);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.4;
}

blockquote.zitat .zitat-text > :last-child {
  margin-bottom: 0;
}

blockquote.zitat footer {
  margin-top: 0.7rem;
  color: var(--oetk-fels);
  font-size: 0.95rem;
}

blockquote.zitat cite {
  font-style: normal;
  font-weight: 600;
}

blockquote.zitat cite::before {
  content: "— ";
}

/* --------------------------------------------------------------------------
   Berichte
   -------------------------------------------------------------------------- */

.bericht-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
  color: var(--pico-muted-color);
  font-size: 0.95rem;
}

#inhalt > .bericht-cover {
  margin: 0 0 clamp(2.75rem, 5vw, 4.5rem);
}

#inhalt > .bericht-cover-schmal { max-width: 800px; }
#inhalt > .bericht-cover-voll { max-width: none; }

.bericht-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--pico-border-radius);
}

/* Weiterlesen-Liste unter dem Beitrag: schmaler, ruhiger, klar abgesetzt */
.bericht-weitere {
  max-width: 800px;
  margin-top: calc(var(--oetk-abschnitt) * 1.25);
  padding-top: var(--oetk-abschnitt);
  border-top: 1px solid var(--pico-muted-border-color);
}

.bericht-weitere > h2 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pico-muted-color);
}

.bericht-weitere .cards > article {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.bericht-weitere .cards.untereinander > article > a:first-child img,
.bericht-weitere .cards.untereinander > article > .karte-platzhalter {
  border-radius: var(--pico-border-radius);
}

.bericht-weitere .cards > article > .card-body {
  padding: 0.15rem 0 0.15rem 1rem;
  gap: 0.35rem;
}

.bericht-weitere .cards > article h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.bericht-weitere .cards > article h3 a {
  text-decoration: none;
}

.bericht-weitere .cards > article h3 a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */

.team {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

@media (max-width: 900px) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .team { grid-template-columns: 1fr; }
}

.team-karte {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0 1.25rem 1.5rem;
  overflow: hidden;
  background: #fff;
  border: 0;
  box-shadow: 0 0.45rem 1.35rem rgb(33 33 33 / 12%);
  text-align: center;
}

.team-foto {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: calc(100% + 2.5rem);
  min-height: 5.25rem;
  margin: 0 -1.25rem 0.25rem;
  padding: 1.35rem 1rem 0;
  background: var(--oetk-blau);
}

.team-foto img,
.team-initialen {
  width: 6.5rem;
  height: 6.5rem;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0.35rem 1rem rgb(33 33 33 / 18%);
  transform: translateY(1.15rem);
}

.team-foto img {
  object-fit: cover;
}

.team-initialen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--oetk-blau-dunkel);
  font-family: var(--oetk-schrift);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.team-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.team-karte h3 {
  margin: 1.45rem 0 0.4rem;
  font-size: 1.15rem;
}

.team-funktion {
  display: inline-block;
  margin: 0;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  background: var(--oetk-gruen);
  color: var(--oetk-dunkler);
  font-size: 0.75rem;
  font-weight: 700;
}

.team-text {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--pico-muted-color);
  text-align: left;
}

.team-text > :last-child { margin-bottom: 0; }

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

.site-footer {
  margin-top: clamp(3rem, 5vw, 5rem);
  padding-block: 3rem 1rem;
  background: var(--oetk-blau);
  color: #fff;
  --pico-color: #fff;
  --pico-h1-color: #fff;
  --pico-h2-color: #fff;
  --pico-h3-color: #fff;
  --pico-muted-color: rgb(255 255 255 / 85%);
  --pico-primary: #fff;
  --pico-primary-hover: #fff;
  --pico-primary-underline: rgb(255 255 255 / 55%);
  --pico-primary-hover-underline: #fff;
  --pico-underline: rgb(255 255 255 / 55%);
}

.site-footer :where(p, h2, h3, span, li, small) {
  color: #fff;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 55%);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-skip-ink: none;
}

.site-footer a:is(:hover, :focus-visible) {
  color: #fff;
  text-decoration-color: #fff;
}

.site-footer .sponsoren a {
  text-decoration: none;
}

.site-footer h2 {
  font-size: 1.1rem;
}

.footer-spalten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

@media (max-width: 800px) {
  .footer-spalten {
    grid-template-columns: 1fr;
  }
}

.footer-spalten ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-spalten li { margin-bottom: 0.3rem; }

.footer-rechtliches {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 30%);
  font-size: 0.9rem;
}

.sponsoren {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0;
  padding-bottom: 2rem;
}

.sponsoren img {
  height: 3rem;
  width: auto;
  background: #fff;
  padding: 0.2rem;
  border-radius: 0.4rem;
}

.newsletter-form {
  display: grid;
  gap: 0.65rem;
}

.newsletter-form label {
  margin: 0;
}

.site-footer .newsletter-form input {
  background: rgb(255 255 255 / 12%);
  border-color: rgb(255 255 255 / 35%);
  color: #fff;
  margin-bottom: 0;
}

.site-footer .newsletter-form input::placeholder {
  color: rgb(255 255 255 / 65%);
}

.site-footer .newsletter-form button {
  background: #fff;
  border-color: #fff;
  color: var(--oetk-blau-dunkel);
  width: fit-content;
}

.site-footer .newsletter-form button:is(:hover, :focus-visible) {
  background: rgb(255 255 255 / 90%);
  border-color: rgb(255 255 255 / 90%);
  color: var(--oetk-blau-dunkel);
}

.newsletter-ok,
.newsletter-fehler {
  font-size: 0.85rem;
  margin: 0;
}

.newsletter-fehler {
  color: #fff;
}

.newsletter-whatsapp {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Formulare und Hilfsklassen
   -------------------------------------------------------------------------- */

.hinweis {
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--pico-primary);
  background: var(--oetk-blau-hell);
  border-radius: var(--pico-border-radius);
}


.hinweis.fehler {
  border-left-color: var(--pico-del-color);
  background: rgb(200 40 40 / 8%);
}

.kurs-start {
  max-width: 40rem;
  margin-top: 1.25rem;
}

.kurs-start h2 {
  margin-bottom: 1.25rem;
}

.kurs-start li + li {
  margin-top: 0.65rem;
}

.kurs-zurueck {
  margin-top: 1.5rem;
}

.kurskarte {
  max-width: 36rem;
  margin: 0 0 1rem;
  padding: 1.15rem 1.3rem 1.3rem;
  background: #fff;
  border: 1px solid rgb(33 33 33 / 14%);
  border-radius: var(--pico-border-radius);
  box-shadow: none;
}

.kurskarte h4 {
  margin: 0 0 0.45rem;
}

.kurskarte p:last-of-type {
  margin-bottom: 0.9rem;
}

.kurskarte a[role='button'] {
  margin: 0;
  background: var(--oetk-gruen);
  border-color: var(--oetk-gruen);
  color: var(--oetk-dunkler);
}

.kurskarte a[role='button']:hover,
.kurskarte a[role='button']:active,
.kurskarte a[role='button']:focus {
  background: #b5c97e;
  border-color: #b5c97e;
  color: var(--oetk-dunkler);
}

.kurs-plaetze-frei {
  font-weight: 700;
  color: #5a7d22;
}

.kurs-plaetze-warte {
  font-weight: 700;
  color: var(--pico-del-color);
}

.honeypot,
.uniform__potty {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.uniform-errors { margin: 0; }

.uniform-errors__item + .uniform-errors__item { margin-top: 0.35rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
