/* ==========================================================
   Cevi Schönholzerswilen-Wuppenau – Stylesheet
   Farben und Schrift lassen sich hier oben zentral anpassen.
   ========================================================== */
:root {
  /* Farben gemäss Corporate Design Manual Cevi Schweiz:
     Cevi-Blau #323394, Cevi-Rot #C41333, dazu Weiss und Schwarz #141412.
     Rot und Blau werden immer voll (100 %) eingesetzt, nie aufgehellt. */
  --blau: #323394;
  --rot: #c41333;
  --rot-dunkel: #a00f29;      /* nur für den Zustand "Maus darüber" */
  --text: #141412;
  --text-leise: #4d4d4a;
  --hintergrund: #ffffff;
  --flaeche: #f3f3f1;         /* neutrale helle Fläche für abwechselnde Abschnitte */
  --karte: #ffffff;
  --linie: #dcdcd8;
  --radius: 14px;
  --schatten: 0 2px 10px rgba(20, 20, 18, .08);
  --breite: 1100px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--hintergrund);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); text-underline-offset: 3px; }
a:hover { color: var(--rot-dunkel); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--blau); }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3.5vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--flaeche); }
.lead { font-size: 1.2rem; color: var(--text-leise); max-width: 46rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--rot); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linie);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--blau); font-weight: 700;
  line-height: 1.15;
}
.brand img { width: 46px; height: 48px; border-radius: 6px; }
.brand small { display: block; font-weight: 500; font-size: .8rem; color: var(--text-leise); }

.nav-toggle {
  display: none; border: 1px solid var(--linie); background: #fff;
  border-radius: 10px; width: 46px; height: 46px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--blau);
  margin: 0 auto; position: relative; transition: transform .2s, opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.site-nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; align-items: center; }
.site-nav a {
  display: block; padding: .55rem .8rem; border-radius: 999px;
  text-decoration: none; color: var(--text); font-weight: 500; font-size: 1rem;
}
.site-nav a:hover { background: var(--flaeche); color: var(--blau); }
.site-nav a[aria-current="page"] { background: var(--blau); color: #fff; }
.site-nav a.nav-cta { background: var(--rot); color: #fff; margin-left: .3rem; }
.site-nav a.nav-cta:hover { background: var(--rot-dunkel); color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--linie); box-shadow: var(--schatten);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .6rem 1.25rem 1rem; gap: .15rem; }
  .site-nav a { padding: .8rem 1rem; border-radius: 10px; font-size: 1.05rem; }
  .site-nav a.nav-cta { margin: .4rem 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(50, 51, 148, .9) 0%, rgba(50, 51, 148, .72) 45%, rgba(50, 51, 148, .3) 100%),
    url("../bilder/header.jpg") center / cover no-repeat,
    #323394;
  padding: clamp(3.5rem, 12vw, 7.5rem) 0;
}
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p { font-size: clamp(1.05rem, 2.5vw, 1.3rem); max-width: 40rem; margin-bottom: 1.6rem; }
.page-head { border-bottom: 6px solid var(--rot); background: var(--blau); color: #fff; padding: clamp(2rem, 6vw, 3.5rem) 0; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { margin: 0; max-width: 44rem; opacity: .92; font-size: 1.1rem; }

.hero .hero-badge {
  display: inline-block; background: #fff; color: var(--blau); font-weight: 700;
  font-size: 1.05rem; border-radius: 999px; padding: .5rem 1.1rem; margin-bottom: 1.4rem; max-width: none;
}
.schnuppern { border-left: 6px solid var(--rot); align-self: start; }
.hinweis { margin-bottom: 1.2rem; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .btn-row { justify-content: center; }
.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-family: inherit; font-size: 1rem; line-height: 1.3; text-align: center;
}
.btn-primary { background: var(--rot); color: #fff; }
.btn-primary:hover { background: var(--rot-dunkel); color: #fff; }
.btn-light { background: #fff; color: var(--blau); }
.btn-light:hover { background: var(--flaeche); color: var(--blau); }
.btn-outline { border-color: var(--blau); color: var(--blau); background: transparent; }
.btn-outline:hover { background: var(--blau); color: #fff; }

/* ---------- Raster & Karten ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.card {
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 1.4rem; overflow: hidden;
}
.card > :last-child { margin-bottom: 0; }
.tag {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  background: var(--flaeche); color: var(--blau); border-radius: 999px; padding: .2rem .7rem; margin-bottom: .6rem;
}

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.facts li { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.2rem; }
.facts strong { display: block; color: var(--blau); font-size: 1.15rem; }
.facts span { color: var(--text-leise); font-size: .95rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 1.7rem; position: relative; margin-bottom: .35rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--rot); font-weight: 700; }

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 800px; }
.rechtstext h2 { font-size: 1.3rem; margin-top: 2rem; }
.rechtstext h2:first-child { margin-top: 0; }

/* ---------- Fotos ---------- */
.fotos { display: grid; gap: .8rem; grid-template-columns: repeat(4, 1fr); }
.fotos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.card-foto { width: calc(100% + 2.8rem); max-width: none; margin: -1.4rem -1.4rem 1.2rem; aspect-ratio: 16 / 9; object-fit: cover; }
.cevi-logo { display: inline-block; background: #fff; border-radius: 14px; padding: .8rem; margin-bottom: 1rem; line-height: 0; }
.cevi-logo img { width: 88px; height: 88px; object-fit: contain; }
@media (max-width: 799px) {
  .fotos { grid-template-columns: repeat(2, 1fr); }
  .hero { background:
    linear-gradient(rgba(50, 51, 148, .72), rgba(50, 51, 148, .72)),
    url("../bilder/header.jpg") center / cover no-repeat, #323394; }
}

/* ---------- Kalender ---------- */
.kalender {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten); overflow: hidden; height: var(--h, 480px);
}
.kalender iframe { width: 100%; height: 100%; border: 0; display: block; }
.kalender-links { font-size: .95rem; margin: .7rem 0 0; }
@media (max-width: 799px) { .kalender { height: min(var(--h, 480px), 480px); } }

/* ---------- Häufige Fragen ---------- */
.hinweis { background: var(--flaeche); border-left: 5px solid var(--rot); border-radius: 8px; padding: 1rem 1.2rem; }
.faq { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); margin-bottom: .6rem; }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--blau); padding: 1rem 2.8rem 1rem 1.2rem;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--rot); }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--text-leise); }

/* ---------- Leiterteam ---------- */
.person { text-align: center; padding: 1.4rem 1rem; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto .8rem; position: relative; overflow: hidden;
  background: var(--blau); color: #fff; display: grid; place-items: center; font-size: 2rem; font-weight: 700;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin: 0; }
.person .echt { color: var(--text-leise); font-size: .95rem; margin: .1rem 0 .4rem; }
.person .rolle { font-weight: 600; color: var(--rot-dunkel); font-size: .95rem; margin: 0; }

/* ---------- Formular ---------- */
form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
label { font-weight: 600; display: block; margin-bottom: .3rem; }
input, textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid #a9a9a4; border-radius: 10px;
  font: inherit; background: #fff; color: var(--text);
}
textarea { min-height: 9rem; resize: vertical; }
.form-note { font-size: .9rem; color: var(--text-leise); margin: 0; }

/* ---------- Fusszeile ---------- */
.site-footer { border-top: 6px solid var(--rot); background: var(--blau); color: #fff; padding: 3rem 0 1.5rem; font-size: .98rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: .7rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 2rem; padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .9rem;
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .brand small { display: none; }
  .btn-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .btn-row { display: none; }
  body { background: #fff; }
}
