/* Anglerverein Seerose Kaarßen – Theme-Stile.
   Farben/Schriften kommen aus theme.json; hier Layout wie im bisherigen Elementor-Auftritt. */

/* ---------- Grundlagen & Barrierefreiheit ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link.screen-reader-text:focus { clip: auto; clip-path: none; height: auto; width: auto; background: #fff; color: #000; padding: 12px 18px; z-index: 100000; top: 8px; left: 8px; font-weight: 600; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; box-shadow: 0 0 0 5px #fff; border-radius: 2px; }
.sk-kopf :focus-visible, .sk-fuss :focus-visible, .sk-hero :focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px #1a1a1a; }
main a:not(.wp-element-button):not(.sk-download-link) { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sk-inhalt { padding-left: 0 !important; padding-right: 0 !important; }
.sk-inhalt > .alignfull { margin-left: 0 !important; margin-right: 0 !important; width: 100%; max-width: none; box-sizing: border-box; }
.sk-seiteninhalt { padding-bottom: 30px; }
.sk-seiteninhalt > :first-child:not(.alignfull) { margin-top: 30px; }
.sk-ohne-hero { padding: 40px 20px 60px; }

/* ---------- Kopfbereich ---------- */
.sk-kopf { min-height: max(90px, 10vh); padding: 10px 5% !important; border-bottom: 1px solid #000; gap: 20px; position: relative; z-index: 20; margin: 0 !important; }
.sk-marke { gap: 22px; flex-shrink: 1; }
.sk-logo { margin: 0 !important; flex-shrink: 0; }
.sk-logo img { border-radius: 50%; display: block; }
.sk-vereinsname { font-size: 16px; font-weight: 400; color: #fff; margin: 0; line-height: 1.3; }
.sk-menue .wp-block-navigation-item__content { color: #fff; padding: 6px 0; font-size: 16px; text-decoration: none; }
.sk-menue .wp-block-navigation-item__content:hover,
.sk-menue .current-menu-item > .wp-block-navigation-item__content,
.sk-menue [aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.sk-menue .wp-block-navigation__responsive-container-open { color: #fff; padding: 8px; }
.sk-menue .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
/* Handy-Menü wie im Original: sandfarben, Trennlinien, schwarze Schrift */
.sk-menue .wp-block-navigation__responsive-container.is-menu-open { padding: 70px 0 20px; }
.sk-menue .is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch !important; gap: 0 !important; }
.sk-menue .is-menu-open .wp-block-navigation__container { gap: 0 !important; width: 100%; align-items: stretch !important; }
.sk-menue .is-menu-open .wp-block-navigation-item { border-bottom: 1px solid #000; width: 100%; align-items: stretch !important; justify-content: flex-start !important; text-align: left; }
.sk-menue .is-menu-open .wp-block-navigation-item:last-child { border-bottom: 0; }
.sk-menue .is-menu-open .wp-block-navigation-item__content { color: #000 !important; padding: 20px 24px !important; display: block; width: 100%; box-sizing: border-box; font-size: 18px; text-align: left; }
.sk-menue .is-menu-open .wp-block-navigation__responsive-container-content { padding: 0 !important; }
.sk-menue .wp-block-navigation__responsive-container-close { color: #000; top: 16px; right: 16px; }
.sk-menue .wp-block-navigation__responsive-container-close svg { width: 32px; height: 32px; }

/* ---------- Titelbereich (Bild mit Welle) ---------- */
.sk-hero, .sk-band {
	position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center;
	min-height: 452px; margin: 0 !important; padding: 40px 20px 60px !important;
	background-color: #43a7ef; background-image: var(--sk-hero-bild); background-size: cover; background-position: center;
	isolation: isolate; overflow: hidden;
}
@media (min-width: 1025px) and (hover: hover) { .sk-hero, .sk-band { background-attachment: fixed; } }
@media (prefers-reduced-motion: reduce) { .sk-hero, .sk-band { background-attachment: scroll !important; } }
/* Abdunklung: etwas kräftiger als im Original (20 %), damit weiße Schrift überall lesbar bleibt (Kontrast). */
.sk-hero::before, .sk-band::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .32); z-index: -1; }
.sk-hero::after, .sk-band::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 31px; z-index: 0; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cg fill='%23fff' transform='rotate(180 500 50)'%3E%3Cpath opacity='.33' d='M473 67.3c-203.9 88.3-263.1-34-320.3 0C66 119.1 0 59.7 0 59.7V0h1000v59.7s-62.1 26.1-94.9 29.3c-32.8 3.3-62.8-12.3-75.8-22.1C806 49.6 745.3 8.7 694.9 4.7S492.4 59 473 67.3z'/%3E%3Cpath opacity='.66' d='M734 67.3c-45.5 0-77.2-23.2-129.1-39.1-28.6-8.7-150.3-10.1-254 39.1s-91.7-34.4-149.2 0C115.7 118.3 0 39.8 0 39.8V0h1000v36.5s-28.2-18.5-92.1-18.5C810.2 18.1 775.7 67.3 734 67.3z'/%3E%3Cpath d='M766.1 28.9c-200-57.5-266 65.5-395.1 19.5C242 1.8 242 5.4 184.8 20.6 128 35.8 132.3 44.9 89.9 52.5 28.6 63.7 0 0 0 0h1000s-9.9 40.9-83.6 48.1-86.8-1.1-150.3-19.2z'/%3E%3C/g%3E%3C/svg%3E") center bottom / 300% 100% no-repeat;
}
.sk-hero-titel, .sk-hero h1, .sk-band h2 { color: #fff !important; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); margin: 0; position: relative; z-index: 1; font-weight: 400; }
.sk-hero-titel { font-size: clamp(2rem, 1.3rem + 2.4vw, 2.6rem) !important; line-height: 1.2; }
.sk-news-einzel .sk-hero-titel { font-family: var(--wp--preset--font-family--montserrat-alternates); font-weight: 300; font-size: clamp(2.1rem, 1.2rem + 3vw, 3.1rem) !important; }
.sk-band { min-height: 162px; padding: 30px 20px 45px !important; }
.sk-band h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.2rem); }
@media (max-width: 1024px) { .sk-hero { min-height: 325px; } }
@media (max-width: 767px) { .sk-hero { min-height: 220px; } }

/* ---------- Inhalte ---------- */
.sk-seiteninhalt h2 { color: #575757; }
.sk-seiteninhalt h3 { color: #54595F; }
.is-style-unterstrichen { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-shadow: 0 0 8px rgba(0, 0, 0, .25); text-align: center; }
.is-style-grau { background: var(--wp--preset--color--hellgrau); }
.sk-abschnitt { padding-top: 50px !important; padding-bottom: 50px !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.sk-seiteninhalt > .alignfull + .alignfull { margin-top: 0; }
.sk-klein { font-size: 14px; color: #5f5f5f; text-align: center; max-width: 520px; margin-left: auto !important; margin-right: auto !important; }
.has-text-align-center.sk-klein { text-align: center; }
.sk-titel-fett { font-size: var(--wp--preset--font-size--gross) !important; font-weight: 600 !important; color: #5f5f5f !important; }
.is-style-ohne-punkte { list-style: none; padding-left: 0; font-size: 19px; }
.is-style-ohne-punkte li { margin: 0 0 .7em; }
.sk-unterstrichen-name { text-decoration: underline; text-underline-offset: 3px; }
.sk-ausgabestelle { font-size: 20px; line-height: 1.55; }
.sk-preis-ort { font-size: 26px !important; font-weight: 400 !important; color: #5f5f5f !important; margin-top: 10px !important; }
.sk-gross-text { font-size: 19px; color: #5f5f5f; }
.sk-hinweis { background: #fff4e5; border-left: 4px solid #b26a00; padding: 12px 16px; }

/* Knöpfe */
.wp-block-button__link { transition: background-color .2s, color .2s; }
.sk-knopf-hell .wp-block-button__link { background: transparent !important; color: #fff !important; border-color: #fff !important; border-width: 2px !important; }
.sk-knopf-hell .wp-block-button__link:hover, .sk-knopf-hell .wp-block-button__link:focus-visible { background: #fff !important; color: #252525 !important; }

/* Download-Knopf / -Link */
.sk-download { display: flex; margin-block: 1.2em; }
.sk-download--mitte { justify-content: center; }
.sk-download--links { justify-content: flex-start; }
.sk-download-link { color: var(--wp--preset--color--gruen-text); text-decoration: none; padding: 6px 15px; font-size: 15px; }
.sk-download-link:hover, .sk-download-link:focus-visible { text-decoration: underline; }
.sk-downloads { gap: 10px 40px; }

/* Preisliste (Tabelle) */
.wp-block-table.is-style-preise { max-width: 520px; margin-left: auto !important; margin-right: auto !important; }
.wp-block-table.is-style-preise table { border-collapse: collapse; width: 100%; }
.wp-block-table.is-style-preise td, .wp-block-table.is-style-preise th { border: 0; padding: 8px 0; font-size: 15px; color: #5f5f5f; font-weight: 400; text-align: left; }
.wp-block-table.is-style-preise td:last-child { text-align: right; color: var(--wp--preset--color--rot); font-weight: 700; white-space: nowrap; }

/* ---------- Termine ---------- */
.sk-termine-titel { text-align: center; color: #333 !important; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2rem); margin: 0 0 20px; }
.sk-termine-box { background: #fff; padding: 25px; border-radius: 10px; border: 2px solid #d32f2f; box-shadow: 0 4px 12px rgba(0, 0, 0, .1); max-width: 400px; margin: 20px auto; text-align: center; }
.sk-termine-liste { list-style: none; margin: 0; padding: 0; }
.sk-termin { padding: 15px 0; border-bottom: 1px solid #f0f0f0; color: #333; transition: background-color .3s; }
.sk-termin:last-child { border-bottom: 0; }
.sk-termin:hover { background: #fff5f5; }
.sk-termin strong { color: #c62828; font-size: 16px; display: block; }
.sk-termin-name { display: block; }
.sk-termin small { color: #5f5f5f; font-style: italic; font-size: 14px; display: block; }
.sk-alle-termine { margin: 15px 0 0; padding-top: 15px; border-top: 1px solid #eee; }
.sk-alle-termine a { color: #c62828; text-decoration: none; font-weight: 700; }
.sk-alle-termine a:hover, .sk-alle-termine a:focus-visible { text-decoration: underline; }
.sk-termine-leer { color: #5f5f5f; font-style: italic; }

.sk-terminliste { margin-block: 30px; }
.sk-terminliste table { width: 100%; border-collapse: collapse; font-size: 14px; color: #4e4e4e; }
.sk-terminliste td { padding: 14px 12px; vertical-align: top; border: 0; width: 33.3%; line-height: 1.5; }
.sk-terminliste tbody tr:nth-child(odd) td { background: #f3f3f3; }
.sk-terminliste tr.sk-vergangen td { color: #6b6b6b; text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .35); }
@media (max-width: 600px) {
	.sk-terminliste td { display: block; width: auto; padding: 2px 12px; }
	.sk-terminliste td:first-child { padding-top: 12px; font-weight: 700; }
	.sk-terminliste td:last-child { padding-bottom: 12px; }
	.sk-terminliste tr { display: block; }
}

/* ---------- News ---------- */
.sk-news-block { display: grid; gap: 28px; }
.sk-news-titel { font-size: 19px !important; font-weight: 600 !important; color: #54595F !important; margin: 0 0 6px; line-height: 1.3; }
.sk-news--liste .sk-news-titel { font-size: 21px !important; }
.sk-news--liste .sk-news-titel a { color: inherit; text-decoration: none; }
.sk-news--liste .sk-news-titel a:hover, .sk-news--liste .sk-news-titel a:focus-visible { text-decoration: underline; }
.sk-news-datum { font-size: 14px; color: #5f5f5f; margin: 0 0 8px; }
.sk-news-inhalt > * { margin-block: .4em; }
.sk-weiterlesen { color: var(--wp--preset--color--gruen-text); font-weight: 600; }
.sk-start-news { padding-bottom: 20px; }
.sk-start-news > h2 { margin-bottom: 10px; }
.sk-news-einzel .sk-news-datum, .sk-zurueck { max-width: 980px; margin-left: auto !important; margin-right: auto !important; padding: 0 20px; }
.sk-news-einzel .sk-news-datum { margin-top: 30px !important; }
.wp-block-query.sk-news-block { max-width: 980px; margin: 40px auto; padding: 0 20px; }

/* ---------- Bildergalerie: Diashow mit Vorschaubildern ---------- */
.sk-galerie-abschnitt { padding: 30px 20px 40px !important; margin: 0 !important; background: #fff; }
.sk-galerie-abschnitt h2 { margin-bottom: 30px; }
.sk-dia-buehne { position: relative; height: var(--sk-dia-hoehe); background: #f2f2f2; overflow: hidden; }
.sk-dia-buehne img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sk-dia-pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .55); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.sk-dia-pfeil:hover { background: rgba(0, 0, 0, .8); }
.sk-dia-zurueck { left: 12px; }
.sk-dia-weiter { right: 12px; }
.sk-dia-zaehler { position: absolute; right: 12px; bottom: 10px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 13px; padding: 3px 10px; border-radius: 12px; }
.sk-dia-daumen { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0 6px; margin: 0; list-style: none; scroll-snap-type: x mandatory; }
.sk-dia-daumen li { flex: 0 0 auto; scroll-snap-align: start; }
.sk-dia-daumen button { padding: 0; border: 3px solid transparent; background: none; cursor: pointer; display: block; width: var(--sk-daumen); aspect-ratio: 1; }
.sk-dia-daumen button img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .8; }
.sk-dia-daumen button[aria-current="true"] { border-color: #284A19; }
.sk-dia-daumen button[aria-current="true"] img, .sk-dia-daumen button:hover img { opacity: 1; }
/* Ohne JavaScript bleibt die Galerie ein normales Bilderraster; mit JavaScript wird das Raster gar nicht erst geladen. */
.sk-galerie-abschnitt, .sk-diashow { --sk-dia-hoehe: clamp(240px, 52vw, 560px); --sk-daumen: clamp(90px, 15vw, 150px); }
/* Platz für die Diashow vorab freihalten (kein Springen beim Laden), Rohbilder aber nicht anzeigen/laden. */
.sk-js .wp-block-gallery.is-style-diashow { display: block !important; height: calc(var(--sk-dia-hoehe) + var(--sk-daumen) + 22px); background: #f2f2f2; }
.sk-js .wp-block-gallery.is-style-diashow > * { display: none !important; }
.sk-dia-buehne img[src=""] { visibility: hidden; }

/* ---------- Karte (Zwei-Klick) ---------- */
.sk-karte { min-height: var(--sk-karte-hoehe, 400px); background: var(--wp--preset--color--hellgrau); display: grid; place-items: center; margin-block: 30px; }
.sk-karte-platzhalter { max-width: 560px; padding: 30px 20px; text-align: center; }
.sk-karte-platzhalter p { margin: .5em 0; }
.sk-karte iframe { width: 100%; height: var(--sk-karte-hoehe, 400px); border: 0; display: block; }
.sk-karte.ist-geladen { display: block; }

/* ---------- Fußbereich ---------- */
.sk-fuss { position: relative; isolation: isolate; margin: 0 !important; padding: 20px 20px !important; background: #5a3a22 url("../bilder/holz.webp") center / cover; color: #fff; }
.sk-fuss::before { content: ""; position: absolute; inset: 0; background: rgba(27, 20, 20, .35); z-index: -1; }
.sk-fuss-spalten { margin: 0 !important; gap: 10px 40px; }
.sk-fuss-menue .wp-block-navigation-item__content { color: #fff; font-size: 17px; font-weight: 300; text-decoration: none; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.sk-fuss-menue .wp-block-navigation-item__content:hover, .sk-fuss-menue .wp-block-navigation-item__content:focus-visible { text-decoration: underline; }
.sk-fuss-menue { gap: 6px 18px; }

/* ---------- Handy ---------- */
@media (max-width: 781px) {
	.sk-kopf { padding: 10px 16px !important; }
	.sk-marke { gap: 14px; }
	.sk-logo img { width: 56px !important; height: 56px !important; }
	.sk-abschnitt { padding-top: 36px !important; padding-bottom: 36px !important; }
	.sk-termine-box { padding: 20px 16px; }
	.sk-fuss-spalten { flex-direction: column; text-align: center; }
}

/* Editor: Hinweise in eigenen Blöcken */
.sk-editor-hinweis { font-size: 13px; color: #50575e; }

/* ---------- Kartenfenster Vereinsstrecken ---------- */
.sk-strecke { justify-content: center; margin-block: 1em; }
.sk-kartenfenster { width: min(1000px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); color: #333; }
.sk-kartenfenster::backdrop { background: rgba(0, 0, 0, .6); }
.sk-kartenfenster-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; background: var(--wp--preset--color--gruen); color: #fff; }
.sk-kartenfenster-kopf h2 { color: #fff !important; font-size: 19px !important; margin: 0; }
.sk-kartenfenster-zu { background: none; border: 2px solid #fff; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.sk-kartenfenster-zu:hover { background: #fff; color: var(--wp--preset--color--gruen); }
.sk-kartenfenster-karte { height: min(65vh, 600px); background: var(--wp--preset--color--hellgrau); display: grid; place-items: center; }
.sk-kartenfenster-karte .sk-karte-platzhalter { max-width: 560px; }
.sk-leaflet { width: 100%; height: 100%; }
.sk-karte-laedt { padding: 20px; text-align: center; }
.sk-kartenfenster-fuss { padding: 10px 20px 14px; font-size: 15px; }
.sk-kartenfenster-fuss p { margin: .3em 0; }
.sk-legende { display: inline-block; width: 28px; height: 5px; background: #d00000; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.sk-leaflet .leaflet-control-attribution a { color: #0b5394; }
