/* Farben aus dem Vereinslogo. Orange aus der alten Menü-Hervorhebung nur für Linien, als Text wäre es zu schwach. */
:root {
  --navy: #0d1963;
  --navy-deep: #0a124a;
  --sky: #6cc6de;
  --sky-soft: #e9f3f8;
  --line: #d5dfe8;
  --orange: #dd8500;
  --text: #1b2333;
  --muted: #55607a;
  --bg: #ffffff;
  --wrap: 72rem;
  --measure: 46rem;
  --gutter: 1rem;
}

@font-face { font-family: "Fira Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/fira-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/fira-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/fira-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/fira-sans-latin-700-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 8rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
main { flex: 1; }
img, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); margin: 0; }
h2 { font-size: clamp(1.35rem, 1.2rem + .7vw, 1.75rem); margin: 2.5rem 0 .75rem; }
h3 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; margin: 0 0 1rem; }
li { margin-bottom: .35rem; }
a { color: var(--navy); text-underline-offset: .15em; }
a:hover { color: #2a3cb0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
address { font-style: normal; }
code { font-size: .95em; overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -4rem; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 30; }
.skip:focus { top: .5rem; color: #fff; }

/* Kopf */
.site-header { background: #fff; border-bottom: 3px solid var(--navy); position: sticky; top: 0; z-index: 20; }
.site-header-inner {
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: .5rem var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); min-width: 0; flex: 1 1 0; }
.brand img { width: 5.25rem; height: auto; flex: none; }
.brand-name { font-size: .875rem; line-height: 1.2; }
.brand-name b { font-weight: 700; }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; text-decoration: none; color: var(--navy); font-weight: 500; padding: .7rem .25rem; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--sky); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }

.js .nav-toggle {
  display: block; flex: none; background: #fff; color: var(--navy); border: 2px solid var(--navy); border-radius: .4rem;
  font: inherit; font-weight: 500; padding: .4rem .9rem; min-height: 2.75rem; cursor: pointer;
}
.js .site-nav { display: none; flex-basis: 100%; }
.js .site-nav.is-open { display: block; }
.site-nav { flex-basis: 100%; }

@media (min-width: 62rem) {
  .brand img { width: 8rem; }
  .brand-name { font-size: 1.0625rem; }
  .js .nav-toggle { display: none; }
  .js .site-nav, .site-nav { display: block; }
  .site-nav ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; }
  .site-nav li { margin: 0; }
  .site-nav .nav-home { display: none; }
  .site-nav a { padding: .35rem .15rem; }
}

/* Foto je Seite */
.hero { position: relative; background: var(--navy); }
.hero-image img { width: 100%; height: clamp(11rem, 34vw, 22rem); object-fit: cover; object-position: center 62%; }
.hero-high .hero-image img { object-position: center 22%; }
.hero-title { position: absolute; inset: auto 0 0; background: linear-gradient(transparent, rgba(10, 18, 74, .78)); padding: 3rem var(--gutter) 1rem; }
.hero-title h1 { max-width: var(--wrap); margin: 0 auto; color: #fff; }
.hero-home .hero-image img { height: clamp(22rem, 52vw, 38rem); }
.welcome { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--gutter); }
.welcome h1 {
  max-width: 34rem; background: rgba(255, 255, 255, .9); padding: 1.5rem 1.75rem; border-radius: .5rem;
  border-top: 4px solid var(--orange); text-align: center; font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.25rem);
  box-shadow: 0 .5rem 1.5rem rgba(10, 18, 74, .2);
}
.plain-title { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 2.5rem var(--gutter) 0; }

/* Inhalt */
.content { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 1.5rem var(--gutter) 3.5rem; overflow-wrap: break-word; }
.content-wide { max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.content > :first-child { margin-top: 0; }
.legal-note { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; line-height: 1.55; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; margin: 0 0 2rem; }
.facts div { background: var(--sky-soft); border-left: 4px solid var(--navy); border-radius: .25rem; padding: .75rem 1rem; }
.facts dt { color: var(--muted); font-size: .875rem; }
.facts dd { margin: 0; color: var(--navy); font-weight: 700; }

.callout { background: var(--sky-soft); border-left: 4px solid var(--orange); border-radius: .25rem; padding: .25rem 1.25rem .5rem; margin: 2.5rem 0; }
.callout h2 { margin-top: 1rem; }
.draft-note { background: #fff4df; border-left: 4px solid var(--orange); padding: 1rem 1.25rem .25rem; margin-bottom: 2rem; }

.fees { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.fees th, .fees td { padding: .6rem .25rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fees th { font-weight: 400; }
.fees td { font-weight: 700; color: var(--navy); white-space: nowrap; text-align: right; padding-left: 1rem; }

.figure { margin: 2rem 0; }
.figure img { border: 1px solid var(--line); }

/* Tabs: ohne JavaScript stehen beide Bereiche untereinander */
.tabs { margin-top: 3rem; }
.tab-list { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 3px solid var(--navy); margin-bottom: 1.5rem; }
.tab-list button {
  font: inherit; font-weight: 500; color: var(--navy); background: var(--sky-soft); border: 0; border-radius: .4rem .4rem 0 0;
  padding: .7rem 1rem; min-height: 2.75rem; cursor: pointer; text-align: left;
}
.tab-list button[aria-selected="true"] { background: var(--navy); color: #fff; }
.js-tabs .tab-panel > h2:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tab-panel[hidden] { display: none; }

/* Zwei-Klick */
.twoclick { background: var(--sky-soft); border: 1px solid var(--line); border-radius: .4rem; padding: 1.25rem; margin: 2rem 0; }
.twoclick-actions { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: 0; }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 2rem 0; }
.embed-map { aspect-ratio: 4 / 3; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Kacheln, Listen, Galerie */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.tiles li { margin: 0; }
.tiles a {
  display: block; height: 100%; padding: 1.25rem 1.5rem; text-decoration: none; color: var(--text); background: var(--sky-soft);
  border-bottom: 4px solid var(--navy); border-radius: .4rem;
}
.tiles a:hover { border-bottom-color: var(--orange); color: var(--text); }
.tiles strong { display: block; color: var(--navy); font-size: 1.25rem; }
.tiles span { color: var(--muted); }

.gallery { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr)); gap: .5rem; }
.gallery li { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .25rem; }
.gallery a:hover img { opacity: .88; }

.webcams { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: .75rem; margin-bottom: 1rem; }
.webcams img { width: 100%; background: var(--sky-soft); border-radius: .25rem; }

.people { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1rem; }
.person { margin: 0; background: var(--sky-soft); border-top: 4px solid var(--navy); border-radius: .25rem; padding: 1rem 1.25rem; }
.person h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.person h2:has(+ .person-note) { margin-bottom: 0; }
.person-note { color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }

/* Formulare */
.contact { max-width: var(--measure); }
.field label { display: block; font-weight: 500; margin-bottom: .2rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); padding: .6rem .7rem; border: 1px solid #8995a8; border-radius: .3rem; background: #fff;
}
.field-check input { width: 1.2rem; height: 1.2rem; margin-right: .4rem; vertical-align: -.15rem; }
.hp { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); }
.button {
  display: inline-block; font: inherit; font-weight: 500; color: #fff; background: var(--navy); border: 0; border-radius: .4rem;
  padding: .7rem 1.25rem; min-height: 2.75rem; cursor: pointer; text-decoration: none;
}
.button:hover { background: var(--navy-deep); color: #fff; }
.button-secondary { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.button-secondary:hover { background: var(--sky-soft); color: var(--navy); }
.notice { padding: .75rem 1rem; border-radius: .3rem; margin-bottom: 1.25rem; background: var(--sky-soft); border-left: 4px solid var(--navy); }
.notice-error { background: #fdecea; border-left-color: #a8201a; }
.member-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.member-bar form { margin: 0; }
.pdf-frame { width: 100%; height: 80vh; border: 1px solid var(--line); margin-top: 1rem; }

/* Fußzeile */
.site-footer { background: var(--navy); color: #fff; }
.site-footer-inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 1.5rem var(--gutter); font-size: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-footer li { margin: 0; }
.site-footer a { color: #fff; display: inline-block; padding: .35rem 0; }
.site-footer a:hover { color: var(--sky); }
.site-footer p { margin: 0; color: #d6def0; }

/* Großansicht */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(5, 9, 40, .88); }
.lightbox img { max-width: 96vw; max-height: 94vh; width: auto; height: auto; }
.lightbox-close {
  position: absolute; top: .5rem; right: .5rem; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%;
  background: #fff; color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  .site-header, .site-footer, .hero, .tab-list, .lightbox { display: none; }
  .tab-panel[hidden] { display: block; }
}
