/* ==========================================================================
   Freibergsdorfer Hammer – Stylesheet
   Gestaltung: Entwurf 4 („Kombination“), überarbeitet
   Schrift: Crimson Pro (lokal) – Fließtext Light, Menü/Buttons Regular, Überschriften Medium
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Schriften (alle lokal, SIL Open Font License, siehe fonts/)
   -------------------------------------------------------------------------- */
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/crimson-pro-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/crimson-pro-latin-ext-300-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Crimson Pro"; font-style: italic; font-weight: 300; font-display: swap;
  src: url("../fonts/crimson-pro-latin-300-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Crimson Pro"; font-style: italic; font-weight: 300; font-display: swap;
  src: url("../fonts/crimson-pro-latin-ext-300-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/crimson-pro-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/crimson-pro-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/crimson-pro-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/crimson-pro-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }



/* --------------------------------------------------------------------------
   2. Farben und Maße
   -------------------------------------------------------------------------- */
:root {
  --dunkel: #4C3A34;          /* Dunkelbraun */
  --hell: #A37B61;            /* Hellbraun */
  --weiss: #FFFFFF;
  --hell-text: #85604B;       /* Hellbraun, dunkler für Schrift auf Weiß und Sand (Kontrast mind. 4,5:1) */
  --sand: #F3ECE5;            /* sehr helle Tönung für Flächen */
  --linie: rgba(163,123,97,.5);

  --schrift: "Crimson Pro", Georgia, "Times New Roman", serif;
  /* Schrift-Skala: überall dieselben Größen verwenden */
  --gr-h1: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem);
  --gr-h2: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  --gr-h3: clamp(1.5rem, 1.25rem + .8vw, 1.85rem);   /* mind. 24px: hellbraune Überschriften gelten so als große Schrift (Kontrast 3:1) */
  --gr-klein: .88em;
  --breite: 66rem;
  --rand: clamp(1.25rem, 5vw, 4rem);
  --abstand: clamp(3rem, 6vw, 5rem);
  /* Abstand vom Fensterrand bis zum Inhaltsbereich (für Fotos, die bis an den Rand reichen) */
  --aussen: calc((100vw - min(100vw - 2 * var(--rand), var(--breite))) / 2);

  /* Prägung der Kreise wie in Designelemente/Halbkreise_Hammer.png */
  --praegung: inset 0 0 0 1px rgba(0,0,0,.18), inset 0 0 14px rgba(0,0,0,.38), 0 4px 12px rgba(0,0,0,.18);
  --schatten: 0 12px 30px -14px rgba(76,58,52,.5);
}


/* --------------------------------------------------------------------------
   3. Grundlagen
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-weight: 300;
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3rem);
  line-height: 1.45;
  color: var(--dunkel);
  background: var(--weiss);
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 500; line-height: 1.12; color: var(--hell); margin: 0 0 .45em; text-wrap: balance; hyphens: manual; overflow-wrap: break-word; }
h1 { font-size: var(--gr-h1); hyphens: manual; }
h2 { font-size: var(--gr-h2); }
h3, .zwischen-titel { font-size: var(--gr-h3); }
.zwischen-titel { margin-top: 1.4em; }
p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 500; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; text-decoration-color: var(--hell); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--dunkel); outline-offset: 3px; }
/* auf dunklen Flächen und Fotos: weißer Fokus-Rahmen */
.abschnitt--dunkel :focus-visible, .kopfbild :focus-visible { outline-color: var(--weiss); }
address { font-style: normal; }

.wrap { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.wrap--schmal { width: min(100% - 2 * var(--rand), 50rem); margin-inline: auto; }
.linie { border: 0; border-top: 1px solid var(--linie); margin: 0 0 1.5rem; }
.einleitung { font-size: 1em; }

.skip-link { position: absolute; left: 1rem; top: -10rem; z-index: 100; display: flex; align-items: center; min-height: 2.75rem; padding: .5rem 1rem; background: var(--weiss); }
.skip-link:focus { top: 1rem; }

@keyframes rein { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }


/* --------------------------------------------------------------------------
   4. Kopfbereich: Foto mit Bogenkante, Navigation darunter
   -------------------------------------------------------------------------- */
.site-header { position: relative; }

.kopfbild { position: relative; isolation: isolate; }
.kopfbild__foto { position: relative; overflow: hidden; height: clamp(19rem, 50svh, 32rem); clip-path: ellipse(115% 100% at 50% 0); }
.kopfbild--start .kopfbild__foto { height: clamp(26rem, 66svh, 42rem); }
.kopfbild__foto img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; object-position: 50% 45%; will-change: transform; }
.kopfbild__foto::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(30,22,18,.18), rgba(30,22,18,.55) 80%), linear-gradient(180deg, rgba(30,22,18,.3), transparent 30%); }

/* Logo oben links (Unterseiten) */
.site-logo { position: absolute; z-index: 2; left: var(--rand); top: 1rem; }
.site-logo img { width: clamp(3.5rem, 6vw, 4.75rem); filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); transition: transform .4s; }
.site-logo:hover img { transform: rotate(-8deg); }

/* Seitentitel der Unterseiten mittig im Kopfbild */
.kopfbild__titel { margin: 0; text-align: center; color: var(--weiss); font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4.4rem); text-shadow: 0 3px 20px rgba(0,0,0,.55); }
.kopfbild__unterzeile { display: block; }
.kopfbild__zusatz { display: block; margin-top: .45em; font-weight: 400; font-size: clamp(1.1rem, .95rem + .8vw, 1.6rem); letter-spacing: .02em; text-wrap: balance; }
@media (max-width: 26rem) { .kopfbild__titel { font-size: 2.1rem; } }
@media (max-width: 22rem) { .kopfbild__titel { hyphens: auto; } }
/* Kalender-Titel nie trennen; auf schmalen Handys Schrift so begrenzen, dass „Veranstaltungen“ in eine Zeile passt */
.kopfbild__titel [data-kalender-titel] { hyphens: manual; }
@media (max-width: 26rem) { .kopfbild__titel:has([data-kalender-titel]) { font-size: min(2.1rem, calc((100vw - 2 * var(--rand)) / 7.2)); } }

/* Startseite: Kennzeile, Wortmarke, Slogan, Logo und nächster Termin mittig im Bild */
.kopfbild__text { position: absolute; z-index: 2; inset: 0 var(--rand) 12%; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--weiss); }
.kopfbild--start .kopfbild__text { inset: 0 var(--rand) 6%; padding-top: clamp(1.25rem, 6svh, 3.5rem); }   /* Startseite: Inhalt etwas tiefer im Bild */
@media (max-width: 40rem) { .kopfbild--start .kopfbild__text { inset-block-end: 10%; padding-top: 1.5rem; } }
.kopfbild__marke { margin: .1em 0 0; line-height: 0; }
.kopfbild__marke img { width: clamp(15rem, 9rem + 24vw, 31rem); height: auto; filter: drop-shadow(0 4px 16px rgba(0,0,0,.55)); }
.kopfbild__slogan { font-weight: 400; font-size: clamp(1.3rem, 1.05rem + 1.1vw, 2rem); margin: .35em 0 0; text-shadow: 0 2px 12px rgba(0,0,0,.6);  text-wrap: balance; }
.kopfbild__logo { display: block; margin-top: clamp(.9rem, 2.2vh, 1.5rem); padding: 0; border-radius: 50%; background: var(--weiss); box-shadow: 0 0 0 .5px rgba(255,255,255,.95), 0 6px 18px rgba(0,0,0,.35); transition: transform .4s; }
.kopfbild__logo--oben { margin: 0 0 clamp(.75rem, 2vh, 1.25rem); }
.kopfbild--start .kopfbild__logo { margin: 0 0 clamp(.75rem, 2vh, 1.25rem); }
.kopfbild--start .kopfbild__logo img { width: clamp(5.75rem, min(10.5vw, 15svh), 8.75rem); }   /* bei niedrigen Bildschirmen kleiner, damit oben nichts abgeschnitten wird */
.kopfbild__logo--oben img { width: clamp(4.25rem, 7vw, 6rem) !important; }
.kopfbild__logo:hover { transform: rotate(-6deg); }
.kopfbild__logo img { width: clamp(6rem, 11vw, 9rem); }
.kopfbild__text > * { animation: rein .9s .15s cubic-bezier(.2,.7,.2,1) both; }
.kopfbild__text > :nth-child(2) { animation-delay: .3s; }
.kopfbild__text > :nth-child(3) { animation-delay: .42s; }
.kopfbild__text > :nth-child(4) { animation-delay: .55s; }
.kopfbild__text > :nth-child(5) { animation-delay: .75s; }

/* Hinweis auf den nächsten Termin (wird aus termine.js gefüllt) */
.kopfbild__termin { margin: clamp(.9rem, 2.4vh, 1.5rem) 0 0; font-size: clamp(1.15rem, 1rem + .55vw, 1.5rem); line-height: 1.3; text-shadow: 0 2px 10px rgba(0,0,0,.65); }
.kopfbild__termin a { padding-block: .3rem; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .15rem .55rem; color: var(--weiss); text-decoration: none; }
.kopfbild__termin-dach { flex-basis: 100%; text-transform: uppercase; letter-spacing: .14em; font-size: max(.78em, .875rem); font-weight: 400; opacity: .85; }
.kopfbild__termin-titel { font-weight: 400; padding-bottom: .1em; border-bottom: 1px solid rgba(255,255,255,.55); transition: border-color .25s; }
.kopfbild__termin-datum::before { content: "· "; }
.kopfbild__termin a::after { content: "→"; transition: transform .25s; }
.kopfbild__termin a:hover .kopfbild__termin-titel { border-color: var(--weiss); }
.kopfbild__termin a:hover::after { transform: translateX(.25em); }
.kopfbild__termin a:focus-visible { outline: 2px solid var(--weiss); outline-offset: 4px; }

/* Handy: Startbild etwas niedriger, damit darunter schon der Inhalt anschneidet */
@media (max-width: 40rem) {
  .kopfbild--start .kopfbild__foto { height: clamp(26.5rem, 56svh, 34rem); }
  .navleiste { padding-top: 1rem; }
  .site-header:has(.kopfbild--start) + main > .abschnitt:first-child { padding-top: 1.5rem; }
  .site-header:has(.kopfbild--start) + main > .abschnitt:first-child .seitenkreis__foto { margin-bottom: 1.5rem; }
}

/* Navigation unter dem Bild */
.navleiste { position: relative; z-index: 4; display: flex; justify-content: center; padding: 1.5rem var(--rand) .25rem; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 2.25rem; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .45rem 0; text-decoration: none; text-transform: uppercase; letter-spacing: .07em; font-weight: 400; font-size: 1.1rem; background: linear-gradient(var(--hell), var(--hell)) 50% 100% / 0 2px no-repeat; transition: background-size .3s, color .2s; }
.site-nav a:hover { background-size: 100% 2px; }
.site-nav a[aria-current="page"] { color: var(--hell-text); background-size: 100% 2px; }
/* Menü-Knopf auf Handy und Tablet: drei Striche, geöffnet ein × */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-left: -.575rem; padding: 0; border: 0; background: none; color: var(--dunkel); cursor: pointer; }
.nav-toggle__striche, .nav-toggle__striche::before, .nav-toggle__striche::after { display: block; width: 1.6rem; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, background-color .2s; }
.nav-toggle__striche { position: relative; }
.nav-toggle__striche::before, .nav-toggle__striche::after { content: ""; position: absolute; left: 0; }
.nav-toggle__striche::before { top: -.5rem; }
.nav-toggle__striche::after { top: .5rem; }
.nav-toggle[aria-expanded="true"] .nav-toggle__striche { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__striche::before { transform: translateY(.5rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__striche::after { transform: translateY(-.5rem) rotate(-45deg); }
.nav-toggle:hover { color: var(--hell); }

/* Handy und Tablet: Menü einklappen (nur wenn JavaScript läuft, sonst bleibt es sichtbar) */
@media (max-width: 64rem) {
  .js .navleiste { justify-content: flex-start; }
  .js .nav-toggle { display: flex; }
  .js .site-nav { display: none; position: absolute; inset: 100% 0 auto; background: var(--weiss); padding: 0 var(--rand) 1.5rem; box-shadow: 0 20px 30px -20px rgba(76,58,52,.35); }
  .js.nav-offen .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: .8rem 0; border-top: 1px solid var(--sand); background: none; font-size: 1.15rem; }
  .site-nav a[aria-current="page"] { text-decoration: underline 2px var(--hell); text-underline-offset: .35em; }
}


/* --------------------------------------------------------------------------
   5. Abschnitte und Fotos
   -------------------------------------------------------------------------- */
main { display: block; }
/* <picture> liefert WebP mit JPG/PNG als Ersatz; für das Layout zählt nur das Bild darin */
picture { display: contents; }
/* <source> ist sonst ein eigenes Element im Raster und verschiebt die Spalten */
picture > source { display: none; }
.abschnitt { position: relative; isolation: isolate; padding-block: var(--abstand); }
.abschnitt--anschluss { padding-top: 0; }
.abschnitt--hell { background: var(--sand); }
.abschnitt--dunkel { background: var(--dunkel); color: var(--weiss); }
.abschnitt--dunkel h2, .abschnitt--dunkel h3 { color: #E0CBB7; }
.abschnitt--dunkel a { color: var(--weiss); }
.abschnitt--dunkel .linie { border-color: rgba(224,203,183,.4); }
.abschnitt--dunkel .button { background: var(--hell); }
.abschnitt--dunkel .button:hover { background: var(--weiss); color: var(--dunkel); }
.abschnitt--dunkel .button--dezent, .abschnitt--dunkel .button--dezent:hover { background: none; color: #E0CBB7; border-color: #E0CBB7; }
.abschnitt--dunkel .kennzahlen > div { background: rgba(255,255,255,.06); border: 1px solid rgba(224,203,183,.3); }
.abschnitt--dunkel .kennzahlen dd { color: #E0CBB7; }

/* Zwei Spalten: Text und Bild */
.zwei-spalten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 50rem) {
  .zwei-spalten { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .zwei-spalten--bild-links { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .zwei-spalten--bild-links > :last-child { order: -1; }
}

/* Foto als Halbkreis (Kuppel, gerade Kante unten) */
.foto-halbkreis { width: 100%; aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; overflow: hidden; }
.foto-halbkreis img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.foto-halbkreis:hover img { transform: scale(1.03); }
.foto-halbkreis--boden { border-bottom: 3px solid var(--hell); }

/* Foto als Halbkreis, der vom Seitenrand hereinragt (gerade Kante am Fensterrand) */
.seitenkreis { --breite-kreis: clamp(11rem, 24vw, 19rem); position: relative; }
.seitenkreis--klein { --breite-kreis: clamp(9rem, 17vw, 13.5rem); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.seitenkreis--luftig { padding-block: var(--abstand); }
.seitenkreis__foto { width: min(100% - 2 * var(--rand), 28rem); aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; overflow: hidden; margin: 0 auto 2rem; }
.seitenkreis__foto img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 50rem) {
  .seitenkreis { min-height: calc(var(--breite-kreis) * 2); display: grid; align-items: center; }
  .seitenkreis__foto { position: absolute; top: 50%; transform: translateY(-50%); width: var(--breite-kreis); aspect-ratio: 1 / 2; margin: 0; }
  .seitenkreis--links .seitenkreis__foto { left: 0; border-radius: 0 999px 999px 0; }
  .seitenkreis--rechts .seitenkreis__foto { right: 0; border-radius: 999px 0 0 999px; }
  .seitenkreis--links .seitenkreis__text { padding-left: max(0px, var(--breite-kreis) + 3rem - var(--aussen)); }
  .seitenkreis--rechts .seitenkreis__text { padding-right: max(0px, var(--breite-kreis) + 3rem - var(--aussen)); }
}
.seitenkreis__foto img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.seitenkreis__foto:hover img { transform: scale(1.03); }

/* Foto im Kreis */
.foto-kreis { width: min(100%, 22rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: var(--schatten); }
.foto-kreis img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.foto-kreis:hover img { transform: scale(1.03); }

/* Breites Foto mit gewölbter Oberkante */
.bogenbild { overflow: hidden; clip-path: ellipse(85% 100% at 50% 100%); aspect-ratio: 16 / 7; margin-top: 2.25rem; }
.bogenbild img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.bogenbild:hover img { transform: scale(1.03); }
@media (max-width: 40rem) { .bogenbild { aspect-ratio: 4 / 3; } }

/* Bildausschnitte */
.ausschnitt-oben { object-position: 50% 25% !important; }
.ausschnitt-mitte { object-position: 50% 45% !important; }
.ausschnitt-hammer { object-position: 50% 38% !important; }
.ausschnitt-tief { object-position: 50% 78% !important; }

/* Zier-Element: zwei überlappende Kreise wie im Brand Board, als ruhiger Trenner */
.ornament { display: flex; justify-content: center; margin: 0 auto 1.75rem; }
.ornament::before, .ornament::after { content: ""; width: 1.6rem; aspect-ratio: 1; border-radius: 50%; box-shadow: var(--praegung); }
.ornament::before { background: var(--dunkel); position: relative; z-index: 1; }
.ornament::after { background: var(--hell); margin-left: -.55rem; }

.trenner { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; }
.trenner::before, .trenner::after { content: ""; flex: 1; border-top: 1px solid var(--linie); }
.trenner .ornament { margin: 0; }

/* Zentrierter Abschnitt mit größerem Text */
.mittig { text-align: center; }


/* Karte auf heller Fläche */
.karte { background: var(--sand); border-radius: 1.5rem; padding: clamp(1.75rem, 4vw, 3rem); }
.karte--rahmen { background: var(--weiss); border: 1px solid var(--linie); }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: .6em; min-height: 3rem; padding: .7rem 1.6rem; border: 0; border-radius: 999px; background: var(--dunkel); color: var(--weiss); font: inherit; font-weight: 400; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.button::after { content: "→"; transition: transform .2s; }
.button:hover { background: var(--hell); transform: translateY(-2px); }
.button:hover::after { transform: translateX(3px); }
.button:active { transform: translateY(0) scale(.98); }
.button[disabled] { opacity: .6; cursor: progress; }
/* feine Linie, Großbuchstaben wie das Menü */
/* dezent: nur Text mit Pfeil und feiner Unterstreichung */
.button--dezent { min-height: 2.75rem; padding: .4rem 0; border-radius: 0; background: none; color: var(--hell-text); border-bottom: 1px solid var(--hell); }
.button--dezent:hover { background: none; color: var(--dunkel); border-color: var(--dunkel); transform: none; }


/* --------------------------------------------------------------------------
   6. Veranstaltungen (werden von js/main.js aus js/termine.js erzeugt)
   -------------------------------------------------------------------------- */
.termin { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem clamp(2.5rem, 6vw, 5rem); align-items: center; margin: .5rem 0 2rem; }
@media (min-width: 50rem) {
  .termin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .termin__bild, .termin__bildrahmen { order: 2; }
}
.termin__bild { width: min(100%, 24rem); justify-self: center; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: var(--schatten); }
.termin__titel { font-size: var(--gr-h3); color: var(--dunkel); margin-bottom: .25em; }
.termin__datum, .termin__zeit { color: var(--hell-text); font-weight: 400; margin: 0; }
.termin__zeit { margin-bottom: .8em; }

.termine-leer { font-style: italic; }

/* Foto mit Label „Auch spannend für Kinder“ am Rand */
.termin__bildrahmen { position: relative; justify-self: center; width: min(100%, 24rem); }
.termin__bildrahmen .termin__bild { width: 100%; }
.termin__bildrahmen .label-kinder { position: absolute; left: -4%; bottom: 0; width: 40%; }
/* Handy: Fotokreise im Kalender etwas kleiner */
@media (max-width: 49.99rem) { .termin__bild, .termin__bildrahmen { width: min(75%, 18rem); } .termin__bildrahmen .termin__bild { width: 100%; } }
.termin .dachzeile { margin-bottom: .35em; }

.label-kinder { display: block; width: 7.5rem; transition: transform .3s; }
.label-kinder:hover { transform: rotate(-6deg) scale(1.04); }
.label-kinder img { width: 100%; }

/* Veranstaltungskalender: Liste, Bilder abwechselnd links und rechts */
.termine { display: grid; gap: 0; }
.termine .termin { margin: 0; }
.termine .trenner { margin: clamp(2rem, 5vw, 3.25rem) 0; }
.termine .termin__titel { font-size: var(--gr-h2); color: var(--hell); margin-bottom: .2em; }
.termine .termin__datum { color: var(--hell-text); }
@media (min-width: 50rem) { .termine .termin:nth-of-type(even) .termin__bild { order: -1; } }
/* Eintritt dezent vom Text abgesetzt */
.termin__eintritt { margin-top: 1rem; padding-top: .6rem; border-top: 1px solid var(--linie); font-size: var(--gr-klein); color: #6E5A50; max-width: 26rem; }

/* Öffnungstage */
.oeffnungstage { list-style: none; padding: 0; margin: 1.25rem 0; }


/* --------------------------------------------------------------------------
   7. Nebenangebot „Dem Hammerschmied über die Schulter geschaut“ – ruhig, weiß
   -------------------------------------------------------------------------- */

.dachzeile { margin-bottom: .3em; color: var(--hell-text); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.nebenangebot .oeffnungstage { max-width: 34rem; margin: 1.5rem 0 1rem; border-top: 1px solid var(--linie); }
.nebenangebot .oeffnungstage li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1.5rem; padding: .5rem 0; border-bottom: 1px solid var(--linie); }
.nebenangebot .oeffnungstage time { font-weight: 400; }
.nebenangebot .oeffnungstage__trenner { display: none; }
.nebenangebot .oeffnungstage__zeit { color: var(--hell-text); }
/* Handy: Uhrzeit immer unter dem Datum, damit alle Zeilen gleich aussehen */
@media (max-width: 40rem) { .nebenangebot .oeffnungstage li { flex-direction: column; gap: 0; } }
.nebenangebot__frei { font-weight: 500; color: var(--hell-text); }
.nebenangebot .hinweis { font-size: var(--gr-klein); color: #6E5A50; margin-top: 1.25rem; }
/* Nebenangebot auf Dunkelbraun (Veranstaltungskalender) */
.abschnitt--dunkel .dachzeile, .abschnitt--dunkel .nebenangebot__frei, .abschnitt--dunkel .oeffnungstage__zeit { color: #E0CBB7; }
.abschnitt--dunkel .hinweis { color: rgba(255,255,255,.82); }
.abschnitt--dunkel .oeffnungstage, .abschnitt--dunkel .oeffnungstage li { border-color: rgba(224,203,183,.35); }


/* --------------------------------------------------------------------------
   8. Seitenbausteine: Preise, Zeittafel, Kennzahlen, Kinder, Flyer
   -------------------------------------------------------------------------- */
.preise { max-width: 44rem; margin-inline: auto; }
.preistabelle { width: 100%; border-collapse: collapse; margin: .5rem 0 1.25rem; }
.preistabelle th, .preistabelle td { padding: .7rem 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.preistabelle th { text-align: left; font-weight: 300; padding-right: 1.5rem; }
.preistabelle td { text-align: right; font-weight: 500; white-space: nowrap; color: var(--hell-text); }
.hinweis { font-style: italic; font-size: var(--gr-klein); }

.zeittafel { list-style: none; margin: 2rem 0 0; padding: 0; }
.zeittafel li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--linie); }
.zeittafel li:first-child { border-top: 1px solid var(--linie); }
.zeittafel__jahr { color: var(--hell-text); font-weight: 500; }

.spalten-text { columns: 2 22rem; column-gap: clamp(2rem, 5vw, 4rem); }
.spalten-text p { break-inside: avoid; }

.kennzahlen { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin: 0; }
.kennzahlen > div { padding: 1rem 1.2rem; background: var(--weiss); border-radius: .75rem; }
.kennzahlen dt { font-size: 1em; }
.kennzahlen dd { margin: .15rem 0 0; font-size: 1.35em; font-weight: 500; color: var(--hell-text); }

.kinder-einleitung { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 46rem) { .kinder-einleitung { grid-template-columns: minmax(0, 1fr) auto; } }
.kinder-einleitung .label-kinder { width: 9rem; justify-self: center; }

/* Karte mit rundem Foto, das über den Rand ragt (Kita/Hort/Schule) */
.karte-foto { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 3rem; align-items: center; }
.karte-foto .foto-kreis { justify-self: center; width: min(100%, 18rem); }
@media (min-width: 50rem) {
  .karte-foto { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .karte-foto .foto-kreis { width: min(100%, 21rem); margin-block: -4.5rem; }
}

.flyer { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 46rem) { .flyer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.flyer a { display: block; border-radius: .5rem; overflow: hidden; box-shadow: var(--schatten); transition: transform .3s; }
.flyer a:hover { transform: translateY(-3px); }


/* --------------------------------------------------------------------------
   9. Kontakt und Formular
   -------------------------------------------------------------------------- */
.kontakt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem 4rem; }
@media (min-width: 75rem) { .kontakt { grid-template-columns: minmax(17rem, 1fr) minmax(0, 1.7fr); } }
.kontakt__daten a[href^="mailto:"] { overflow-wrap: anywhere; }
.kontakt__daten strong { color: var(--hell-text); }


.formular { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.formular__hinweis { font-size: var(--gr-klein); font-style: italic; }
.feld label { display: block; margin-bottom: .25rem; font-weight: 400; }
.feld input[type="text"], .feld input[type="email"], .feld input[type="tel"], .feld textarea {
  width: 100%; font: inherit; padding: .6rem .85rem; border: 1px solid var(--hell-text); border-radius: .5rem; background: var(--weiss); color: inherit;
}
.feld input:focus, .feld textarea:focus { outline: 2px solid var(--dunkel); outline-offset: 1px; border-color: var(--dunkel); }
/* Feld mit Fehler: dickerer roter Rand, die Meldung oben nennt das Feld */
.feld input[aria-invalid="true"], .feld textarea[aria-invalid="true"] { border: 2px solid #A0503C; }
.feld textarea { resize: vertical; min-height: 10rem; }
.feld--checkbox label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: start; margin: 0; padding-block: .35rem; font-weight: 300; cursor: pointer; }
.feld--checkbox input { width: 1.5rem; height: 1.5rem; margin: .1rem 0 0; accent-color: var(--dunkel); cursor: pointer; }
/* Spamschutz-Feld: für Menschen unsichtbar */
.feld--versteckt { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.meldung { padding: 1rem 1.25rem; margin-bottom: 1.5rem; border-radius: .75rem; }
.meldung--erfolg { background: var(--sand); border-left: 4px solid var(--hell); }
.meldung--fehler { background: #F6E3DE; border-left: 4px solid #A0503C; }
/* ohne JavaScript: Meldung über die Adresse #gesendet bzw. #fehler zeigen */
.meldung:target { display: block; }


/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: var(--sand); padding: 3rem 0 1.5rem; }
.site-footer::before, .site-footer::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; box-shadow: var(--praegung); }
.site-footer::before { width: 11rem; aspect-ratio: 1; right: -4rem; bottom: -6rem; background: var(--dunkel); }
.site-footer::after { width: 8rem; aspect-ratio: 1; right: 4.5rem; bottom: -5.5rem; background: var(--hell); z-index: -2; }
.footer__verein { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 2.5rem; align-items: center; }
@media (min-width: 40rem) { .footer__verein { grid-template-columns: auto minmax(0, 1fr); } }
.footer__verein > picture > img, .footer__verein > img { width: clamp(7rem, 12vw, 9rem); }
.footer__name { margin: 0 0 .1em; }
.footer__kontakt { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem 3rem; }
@media (min-width: 50rem) { .footer__kontakt { grid-template-columns: auto auto; justify-content: start; } }
.footer__kontakt p, .footer__kontakt address { margin: 0; }
.footer__kontakt a { white-space: nowrap; }
/* Telefon und E-Mail: am Desktop mit Wort, auf dem Handy mit Symbol (Wort bleibt für Screenreader) */
.footer__weg { display: block; }
.footer__icon { display: none; width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: var(--hell-text); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.footer__unten { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2rem; margin-top: 2.25rem; padding-top: 1.1rem; border-top: 1px solid var(--linie); font-size: .85rem; color: #6E5A50; }
.footer__unten p { margin: 0; display: flex; align-items: center; gap: .6rem; }
.footer__unten img { height: 1.6rem; width: auto; opacity: .85; }
.footer__rechtliches { display: flex; gap: 1.25rem; }
.footer__credits { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .6rem 2rem; margin-left: auto; }
.footer__rechtliches a { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (max-width: 40rem) { .footer__credits { margin-left: 0; justify-content: flex-start; } }


/* --------------------------------------------------------------------------
   10b. Bildpaar (zwei Fotos, außen rund wie zwei Halbkreise), Label im Text
   -------------------------------------------------------------------------- */
.bildpaar { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; margin-top: 2.25rem; }
@media (min-width: 40rem) { .bildpaar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.bildpaar__foto { overflow: hidden; aspect-ratio: 4 / 3; }
.bildpaar__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.bildpaar__foto:hover img { transform: scale(1.03); }
.bildpaar__foto:first-child { border-radius: 999px 0 0 999px; }
.bildpaar__foto:last-child { border-radius: 0 999px 999px 0; }
@media (max-width: 39.99rem) {
  .bildpaar__foto:first-child { border-radius: 999px 999px 0 0; aspect-ratio: 2 / 1; }
  .bildpaar__foto:last-child { border-radius: 0 0 999px 999px; aspect-ratio: 2 / 1; }
}
.teaser { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 50rem) { .teaser { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.teaser__eintrag { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; justify-items: start; }   /* Symbol über der Überschrift, damit alle Texte auf einer Linie beginnen */
.teaser__eintrag h2 { font-size: var(--gr-h3); margin-bottom: .3em; }
.teaser__eintrag p { margin-bottom: .5em; }
.teaser__zeichen { width: 5rem; }
.teaser__zeichen--kreise { display: flex; align-items: center; justify-content: flex-start; height: 5.3rem; }   /* so hoch wie das Kinder-Symbol (300 × 318) */
.teaser__zeichen--kreise::before, .teaser__zeichen--kreise::after { content: ""; width: 3.1rem; aspect-ratio: 1; border-radius: 50%; box-shadow: var(--praegung); }
.teaser__zeichen--kreise::before { background: var(--dunkel); position: relative; z-index: 1; }
.teaser__zeichen--kreise::after { background: var(--hell); margin-left: -1rem; }
/* Foto vom Rand, das über zwei Abschnitte reicht (Startseite: Teaser + Mitwirken) */
@media (min-width: 50rem) {
  .seitenkreis--gruppe { display: block; min-height: 0; --breite-kreis: clamp(12rem, 22vw, 18rem); }
  .seitenkreis--gruppe > .abschnitt { position: static; }
  .seitenkreis--gruppe .seitenkreis__foto { z-index: 2; box-shadow: var(--schatten); }
}

/* Fotos versetzt vom Rand, kaum beschnitten (Seite Feiern) */
.randbilder { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 2.5rem; }
.randbild { position: relative; overflow: hidden; aspect-ratio: 3 / 2; }
.randbild img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.randbild:hover img { transform: scale(1.03); }
.randbild--links { width: calc(32% + var(--aussen)); margin-left: calc(-1 * var(--aussen)); border-radius: 0 999px 999px 0; }
.randbild--rechts { width: calc(32% + var(--aussen)); margin: 3rem calc(-1 * var(--aussen)) 0 0; border-radius: 999px 0 0 999px; }
@media (max-width: 39.99rem) {
  .randbilder { display: block; }
  .randbild--links { width: calc(78% + var(--aussen)); }
  .randbild--rechts { width: calc(70% + var(--aussen)); margin: -8% calc(-1 * var(--aussen)) 0 auto; border: 5px solid var(--weiss); border-right: 0; z-index: 1; }
}

/* Kreisgruppe wie im Brand Board: großes Kreisfoto, kleineres überlappend */
.kreisgruppe { position: relative; width: min(100%, 30rem); justify-self: center; margin-bottom: 2rem; }
.kreisgruppe__gross, .kreisgruppe__klein { aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.kreisgruppe__gross { width: 88%; box-shadow: var(--schatten); }
.kreisgruppe__klein { position: absolute; width: 46%; right: 0; bottom: -2rem; border: 6px solid var(--weiss); box-shadow: var(--schatten); }
.kreisgruppe img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.kreisgruppe__gross:hover img, .kreisgruppe__klein:hover img { transform: scale(1.03); }
.label-kinder--im-text { float: right; width: clamp(6.5rem, 11vw, 8.5rem); margin: 0 0 1rem 1.5rem; }
.flyer-hinweis { margin-bottom: 1.5rem; }


/* Impressum: Vereinsname hellbraun, Bezeichnungen gedämpft, Daten dunkel */
.impressum__name { color: var(--hell-text); font-weight: 500; font-size: var(--gr-h3); margin-bottom: .35em; }
.impressum p { margin-bottom: 1.1em; }
.impressum__label { color: var(--hell-text); }
.impressum a { overflow-wrap: anywhere; }


/* --------------------------------------------------------------------------
   11. Weniger Bewegung, wenn gewünscht
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* --------------------------------------------------------------------------
   Handy und Tablet: Tippflächen und Lesbarkeit
   -------------------------------------------------------------------------- */
@media (max-width: 64rem) {
  /* Links im Fließtext: unsichtbarer Innenabstand vergrößert die Tippfläche
     auf mindestens 44 px, ohne den Zeilenabstand zu verändern */
  :where(main, .site-footer) :where(p, li, address, dd, td, label) a:not([class]) { padding-block: max(.6em, calc((2.75rem - 1.1em) / 2)); }
}
@media (max-width: 40rem) {
  .footer__unten { font-size: .95rem; gap: .25rem 2rem; }
  .footer__credits { gap: .25rem 2rem; }
  .site-footer { padding-bottom: 4.5rem; }
  .site-footer::before { width: 7rem; right: -2.5rem; bottom: -4rem; }
  .site-footer::after { width: 5rem; right: 3rem; bottom: -3.5rem; }
  .label-kinder--im-text { width: 5rem; margin: 0 0 .5rem 1rem; }
  .footer__weg { display: flex; align-items: center; gap: .6rem; }
  .footer__weg a { padding-block: .3rem; }
  .footer__icon { display: block; }
  .footer__bez { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* Förderer und Gestaltung: Name in eigener Zeile, Logo neben beiden Zeilen */
  .footer__credits { gap: 1rem 2rem; }
  .footer__credits p { gap: .9rem; }
  .footer__credit a { display: block; width: fit-content; padding-block: .1rem; }
  .footer__unten .footer__credits img { height: 2.5rem; }
}


/* --------------------------------------------------------------------------
   12. Rechtstexte (Datenschutzerklärung)
   -------------------------------------------------------------------------- */
.rechtstext ul { margin: 0 0 .8em; padding-left: 1.2em; }
.rechtstext li { margin-bottom: .2em; }
.rechtstext li::marker { color: var(--hell); }
/* Noch auszufüllende Stellen: gelb markiert, damit sie nicht übersehen werden.
   Nach dem Ausfüllen das <span class="platzhalter"> entfernen. */
.platzhalter { background: #FFF1B8; padding: 0 .2em; }
