/* ==========================================================================
   Gymnasium "Walther von der Vogelweide" – gemeinsames Stylesheet
   Nachbildung des bestehenden Layouts (Bootstrap 5, Farbe/Font der Original-
   seite) als Grundlage für die Leitsatz-Platzierungs-Varianten.
   ========================================================================== */

:root {
  --wvv-primary: #003cc5;
  --wvv-primary-dark: #041c4a;
  --wvv-text: #212529;
  --wvv-muted: #5b6572;
  --wvv-border: #e3e6eb;
  --wvv-bg-subtle: #f4f6fb;
  --font-display: 'Barlow Semi Condensed', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--wvv-text);
  background: #fff;
  line-height: 1.55;
}

h1, h2, h3, h4, h5, h6,
.navbar-nav, .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
}

a { color: var(--wvv-primary); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #ffb703;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--wvv-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 6px 0;
  font-family: var(--font-body);
}
.skip-link:focus { left: 0; }

/* ---- Header / Nav ---- */
.site-header { background: #fff; border-bottom: 1px solid var(--wvv-border); }
.site-logo { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1rem; text-decoration: none; }
.site-logo-mark {
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--wvv-primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; flex: none;
}
.site-logo-text { line-height: 1.15; }
.site-logo-text strong { display: block; color: var(--wvv-primary-dark); font-size: 1.05rem; }
.site-logo-text span { display: block; color: var(--wvv-muted); font-size: 0.78rem; }

.navbar { padding: 0 1rem; }
.navbar-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.navbar-nav a {
  display: block; padding: 0.9rem 0.85rem; color: var(--wvv-text);
  text-decoration: none; font-size: 0.98rem; border-bottom: 3px solid transparent;
}
.navbar-nav a:hover, .navbar-nav a.active { color: var(--wvv-primary); border-bottom-color: var(--wvv-primary); }
.navbar-toggler {
  display: none; margin-left: auto; background: none; border: 1px solid var(--wvv-border);
  border-radius: 6px; padding: 0.5rem 0.7rem; font-size: 1.1rem; cursor: pointer;
}

@media (max-width: 991px) {
  .navbar { flex-wrap: wrap; }
  .navbar-toggler { display: block; }
  .navbar-nav { display: none; width: 100%; flex-direction: column; gap: 0; border-top: 1px solid var(--wvv-border); }
  .navbar-nav.is-open { display: flex; }
  .navbar-nav a { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--wvv-border); }
}

/* ---- Hero Carousel ---- */
.hero-carousel { position: relative; overflow: hidden; background: var(--wvv-primary-dark); }
.hero-track { display: flex; width: 100%; height: min(78vh, 620px); min-height: 380px; position: relative; }
.hero-slide {
  flex: none; width: 100%; height: 100%; position: relative;
  background-size: cover; background-position: center top;
  display: flex; align-items: flex-end;
  opacity: 0; transition: opacity 0.6s ease;
  position: absolute; inset: 0;
}
.hero-slide.is-active { opacity: 1; position: relative; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(4,28,74,0.75) 0%, rgba(4,28,74,0.15) 55%, rgba(4,28,74,0) 100%);
}
.hero-slide-body { position: relative; z-index: 1; padding: 1.5rem clamp(1rem, 4vw, 3rem) 2.25rem; max-width: 720px; color: #fff; }
.hero-card {
  background: rgba(255,255,255,0.9); color: var(--wvv-text);
  border-radius: 10px; padding: 1.25rem 1.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.hero-card h2 { margin: 0 0 0.5rem; font-size: clamp(1.35rem, 2.6vw, 1.9rem); color: var(--wvv-primary-dark); }
.hero-card p { margin: 0 0 0.85rem; color: var(--wvv-text); }
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  padding: 0.6rem 1.15rem; border-radius: 6px; text-decoration: none; font-size: 1rem;
  min-height: 44px; line-height: 1.9;
}
.btn-primary { background: var(--wvv-primary); color: #fff; }
.btn-primary:hover { background: var(--wvv-primary-dark); }
.btn-outline { background: transparent; border: 2px solid var(--wvv-primary); color: var(--wvv-primary); }
.btn-outline:hover { background: var(--wvv-primary); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.6); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.28); }

.hero-controls {
  position: absolute; z-index: 2; bottom: 1rem; right: clamp(1rem, 4vw, 3rem);
  display: flex; align-items: center; gap: 0.6rem;
}
.hero-dots { display: flex; gap: 0.4rem; }
.hero-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
  background: rgba(255,255,255,0.35); padding: 0; cursor: pointer;
}
.hero-dots button[aria-current="true"] { background: #fff; }
.hero-pause {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.7);
  background: rgba(4,28,74,0.4); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ---- Generic sections ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.section-tight { padding: clamp(1.5rem, 3vw, 2.25rem) 0; }
.section-subtle { background: var(--wvv-bg-subtle); }
.section-primary { background: var(--wvv-primary); color: #fff; }
.section-primary a { color: #fff; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
  color: var(--wvv-primary); font-size: 0.8rem; font-family: var(--font-body);
  margin: 0 0 0.5rem;
}
.section-primary .eyebrow { color: #cfe0ff; }

.welcome h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--wvv-primary-dark); margin: 0 0 0.75rem; }
.welcome p { max-width: 840px; color: var(--wvv-muted); font-size: 1.05rem; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.variant-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .variant-grid { grid-template-columns: 1fr; } }

.split-hero { display: grid; grid-template-columns: 2fr 1fr; }
@media (max-width: 900px) { .split-hero { grid-template-columns: 1fr; } }
.branch-card {
  border: 1px solid var(--wvv-border); border-radius: 10px; padding: 1.25rem;
  background: #fff; display: flex; flex-direction: column; gap: 0.5rem;
}
.branch-card .swatch { width: 100%; height: 6px; border-radius: 4px; background: var(--wvv-primary); }
.branch-card h3 { margin: 0.25rem 0 0; font-size: 1.15rem; }
.branch-card p { margin: 0; color: var(--wvv-muted); font-size: 0.95rem; flex: 1; }
.branch-card a { font-weight: 700; text-decoration: none; font-size: 0.92rem; }

footer.site-footer {
  background: var(--wvv-primary-dark); color: #dbe4fb; padding: 2.5rem 0 1.5rem; margin-top: 2rem;
}
footer.site-footer h2 { color: #fff; font-size: 1.1rem; margin: 0 0 0.6rem; }
footer.site-footer a { color: #fff; }
footer.site-footer .foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 760px) { footer.site-footer .foot-grid { grid-template-columns: 1fr; } }
footer.site-footer .foot-bottom {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem; color: #a9b8de;
}

/* ---- Leitsatz building blocks (shared across variants) ---- */
.leitsatz-quote { font-family: var(--font-display); font-weight: 600; line-height: 1.35; }

.competency-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.competency-list li {
  border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; padding: 0.4rem 0.95rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
}
.section:not(.section-primary) .competency-list li { border-color: var(--wvv-primary); color: var(--wvv-primary-dark); }

details.leitsatz-details summary {
  cursor: pointer; font-weight: 700; font-family: var(--font-display);
  padding: 0.75rem 0; list-style: none; display: flex; align-items: center; gap: 0.5rem;
}
details.leitsatz-details summary::-webkit-details-marker { display: none; }
details.leitsatz-details summary::after {
  content: "+"; margin-left: auto; font-size: 1.4rem; line-height: 1;
}
details.leitsatz-details[open] summary::after { content: "\2212"; }
details.leitsatz-details .leitsatz-body { padding-bottom: 1rem; }
details.leitsatz-details .leitsatz-body p { margin: 0 0 0.9rem; }

.demo-banner {
  background: #fff3cd; color: #664d03; font-size: 0.85rem; text-align: center;
  padding: 0.5rem 1rem; border-bottom: 1px solid #ffe69c;
}
