/* Schul-Websites (Baukasten, /s/<schule>) – eigenständig, unabhängig von style.css. Drei Designs über Variablen. */
:root { --accent: #0e7490; }
.site--ocean { --bg: #f7fbfc; --fg: #0b2545; --muted: #5b6b7c; --card: #ffffff; --line: #dbe7ec; --alt: #eaf4f7; --hero-fg: #fff;
  --hero-shade: linear-gradient(180deg, rgba(4,30,48,.25), rgba(4,30,48,.7)); --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.site--sand { --accent: #c2410c; --bg: #fbf7f1; --fg: #3b2a1a; --muted: #7a6650; --card: #fffdf9; --line: #eadfcd; --alt: #f4ece0; --hero-fg: #fff;
  --hero-shade: linear-gradient(180deg, rgba(60,35,10,.2), rgba(60,35,10,.65)); --font: Georgia, "Iowan Old Style", "Times New Roman", serif; }
.site--night { --accent: #22d3ee; --bg: #0b1220; --fg: #e5edf5; --muted: #94a3b8; --card: #121b2e; --line: #1f2b44; --alt: #0f1828; --hero-fg: #fff;
  --hero-shade: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.75)); --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body.site { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); line-height: 1.6; font-size: 17px; }
.site a { color: var(--accent); }
.site img { max-width: 100%; }
.site-wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.site-narrow > * { max-width: 760px; }
.site-cta .site-narrow > * { margin-inline: auto; }
.site h1, .site h2, .site h3 { line-height: 1.2; margin: 0 0 .5em; }
.site h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.muted { color: var(--muted); } .small { font-size: .85rem; }

.site-preview { background: #fde68a; color: #422006; text-align: center; padding: 6px 12px; font-size: .9rem; }
.site-preview a { color: #422006; font-weight: 700; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.site-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--fg) !important; text-decoration: none; margin-right: auto; min-width: 0; }
.site-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-logo { height: 40px; width: auto; max-width: 120px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--fg); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current] { background: var(--alt); }
.site-nav .site-nav-cta { background: var(--accent); color: #fff; font-weight: 700; }
.site--night .site-nav .site-nav-cta { color: #06121f; }
.site-lang { font-size: .8rem !important; font-weight: 700; border: 1px solid var(--line); }
.site-burger { display: none; background: none; border: 0; color: var(--fg); font-size: 1.6rem; cursor: pointer; }

/* Hero */
.site-hero { position: relative; color: var(--hero-fg); background: var(--accent); background-image: var(--hero-shade), var(--hero, none);
  background-size: cover; background-position: center; min-height: min(70vh, 560px); display: flex; align-items: flex-end; }
.site-hero-in { padding: 64px 0 48px; }
.site-hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); margin-bottom: .2em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.site-tagline { font-size: clamp(1.05rem, 2.4vw, 1.35rem); margin: 0 0 .4em; max-width: 700px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.site-place { margin: 0 0 1em; opacity: .95; }
.site-hero-st:not([hidden]) { display: inline-block; background: rgba(255,255,255,.92); color: #0b2545; padding: 6px 14px; border-radius: 999px; margin: 0 0 1em; }
.site-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.site-btn { display: inline-block; background: var(--accent); color: #fff !important; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--accent); }
.site--night .site-btn { color: #06121f !important; }
.site-btn--ghost { background: transparent; color: inherit !important; border-color: currentColor; }
.site-hero .site-btn--ghost { color: #fff !important; }

/* Sections */
.site-sec { padding: clamp(36px, 6vw, 72px) 0; }
.site-sec--alt { background: var(--alt); }
.site-pagehead { padding: 48px 0 0; }
.site-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.site-card h3 { font-size: 1.05rem; }
.site-card p { margin: .3em 0; }
.site-wind-grid, .site-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.site-faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
.site-faq summary { cursor: pointer; font-weight: 700; }
.site-sec--img figure { margin-block: 0; }
.site-sec--img img { width: 100%; border-radius: 18px; display: block; max-height: 640px; object-fit: cover; }
.site-sec--img figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.site-cta { text-align: center; background: var(--accent); color: #fff; }
.site-cta .site-btn { background: #fff; color: var(--accent) !important; border-color: #fff; }
.site--night .site-cta { color: #06121f; }

/* reused partials (courses, rentals, gallery, team, status) */
.spot-section { margin: 0; }
.spot-section + .spot-section { margin-top: 32px; }
.tchip { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--alt); color: var(--fg); border: 1px solid var(--line); }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 0 0 18px; }
.sc-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.sc-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.sc-title { font-size: 1.1rem; margin: 0; }
.sc-price { margin: 0; font-weight: 800; font-size: 1.25rem; white-space: nowrap; color: var(--accent); }
.sc-meta { margin: 0; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sc-desc { margin: 0; }
.sc-sub { font-size: 1.1rem; margin: 10px 0; }
.table-wrap { overflow-x: auto; }
.sc-rent { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
.sc-rent th, .sc-rent td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.sc-rent th[scope=row], .sc-rent thead th:first-child { text-align: left; white-space: normal; }
.sc-rent thead th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.sc-rent th .small { font-weight: 400; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gal-item { display: block; border-radius: 14px; overflow: hidden; background: var(--alt); }
.gal-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .25s; }
.gal-item:hover img { transform: scale(1.04); }
.gal-dlg { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.gal-dlg::backdrop { background: rgba(0,0,0,.9); }
.gal-dlg figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 48px 12px; }
.gal-dlg img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 6px; }
.gal-dlg figcaption { color: #fff; font-size: .9rem; }
.gal-dlg button { position: fixed; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.8rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.gal-x { top: 12px; right: 12px; } .gal-p { left: 12px; top: 50%; } .gal-n { right: 12px; top: 50%; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tp-card { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.tp-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; background: var(--alt); display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; }
.tp-name { font-size: 1.05rem; margin: 0; }
.tp-role { margin: 0; font-weight: 600; color: var(--muted); }
.tp-bio { margin: 6px 0 0; }
.org-st-box:not([hidden]) { display: flex; flex-direction: column; gap: 6px; }
.org-st-when { font-weight: 700; }
.org-st--warn { color: #b45309; } .org-st--off { color: #b91c1c; } .org-st--info { color: #1d4ed8; }
.site--night .org-st--warn { color: #fbbf24; } .site--night .org-st--off { color: #f87171; } .site--night .org-st--info { color: #93c5fd; }
.org-st-text { display: block; color: var(--muted); font-size: .9rem; }
.sw-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
.sw-h { display: flex; flex-direction: column; align-items: center; padding: 4px 0; border-radius: 8px; color: #0b2545; font-size: .75rem; line-height: 1.25; }
.sw-h b { font-size: .95rem; }
.sw-a { display: inline-block; }
.sw-l { color: var(--muted); font-size: .8rem; margin: 6px 0 0; }

/* Shop-Artikel (Baustein) */
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0 0 16px; }
.sp-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--fg) !important; text-decoration: none; }
.sp-img { aspect-ratio: 1; background: var(--alt); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.sp-img img { width: 100%; height: 100%; object-fit: cover; }
.sp-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.sp-body small { color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }
.sp-price { font-weight: 800; color: var(--accent); }

/* Anfrageformular */
.bk-form { display: grid; gap: 12px; }
.bk-form h2 { margin: 0; }
.bk-lead, .bk-note { margin: 0; }
.bk-note { font-size: .82rem; opacity: .75; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 12px; }
.bk-form label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 600; }
.bk-form input:not([type=checkbox]), .bk-form select, .bk-form textarea { font: inherit; font-weight: 400; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: inherit; width: 100%; box-sizing: border-box; }
.bk-form textarea { resize: vertical; }
.bk-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.bk-captcha { max-width: 260px; }
.bk-form .bk-check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
.bk-check input { margin-top: 4px; }
.bk-btn { justify-self: start; font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 12px 24px; cursor: pointer; background: var(--accent); color: #fff; }
.bk-btn:disabled { opacity: .6; cursor: default; }
.bk-msg { margin: 0; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.bk-msg.is-ok { background: #dcfce7; color: #166534; } .bk-msg.is-bad { background: #fee2e2; color: #991b1b; }
.site--night .bk-btn { color: #06121f; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .9rem; color: var(--muted); }
.site-foot-in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; justify-content: space-between; }
.site-foot nav { display: flex; gap: 16px; }
.site-made { margin: 0; flex-basis: 100%; font-size: .8rem; }

@media (max-width: 760px) {
  body.site { font-size: 16px; }
  .site-burger { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-hero { min-height: 62vh; }
  .sc-rent th, .sc-rent td { padding: 8px 6px; font-size: .9rem; }
  .sc-rent { font-size: .9rem; }
}
