/* ==========================================================================
   Musikkapelle Schnetzenhausen â€“ Stylesheet
   Farben und Schrift: siehe CLAUDE.md
   ========================================================================== */

/* ---------- Schriften (lokal, TeX Gyre Schola) ---------- */
@font-face {
  font-family: "Schola";
  src: url("../fonts/texgyreschola-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schola";
  src: url("../fonts/texgyreschola-italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Schola";
  src: url("../fonts/texgyreschola-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variablen ---------- */
:root {
  --color-green: #68814A;
  --color-green-dark: #4A5E34;
  --color-green-light: #EEF2E8;
  --color-gold: #CCBB49;
  --color-red: #9C4242;
  --color-text: #1A1A1A;
  --color-text-muted: #4D4D4D;
  --color-bg: #FFFFFF;

  --font: "Schola", "Century Schoolbook", "New Century Schoolbook", Georgia, serif;

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 3rem;
  --space-xl: 5rem;

  --content-width: 68rem;
  --radius: 0.5rem;
  --header-height: 4.5rem;
}

/* ---------- Grundlagen ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-s);
}

p {
  margin: 0 0 var(--space-s);
}

a {
  color: var(--color-green-dark);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-text);
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-s);
}

.skip-link {
  position: absolute;
  left: var(--space-s);
  top: -10rem;
  z-index: 100;
  padding: var(--space-xs) var(--space-s);
  background: var(--color-green-dark);
  color: #fff;
}

.skip-link:focus {
  top: var(--space-xs);
}

/* Sprungziele nicht unter dem fixierten Header verstecken */
section[id] {
  scroll-margin-top: var(--header-height);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bg);
  border-bottom: 4px solid var(--color-green);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-m);
  padding-block: var(--space-xs);
}

.site-logo img {
  width: 10.5rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem var(--space-s);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.25rem 0;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-green-dark);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.site-nav a:hover {
  border-bottom-color: var(--color-gold);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-green);
  color: #fff;
  padding-block: var(--space-l);
  text-align: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-m);
}

.hero-logo {
  width: min(16rem, 70vw);
  border-radius: 50%;
  border: 6px solid var(--color-gold);
  box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 0.25);
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-m);
}

/* WeiÃŸ auf BaumgrÃ¼n erreicht nur ~4,4:1 â†’ hier nur groÃŸe Schrift (â‰¥ 24 px) */
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  margin: 0;
}

.hero-lead {
  font-size: 1.5rem;
  margin: 0;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  background: #fff;
  color: var(--color-green-dark);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.button:hover {
  background: var(--color-green-light);
  color: var(--color-green-dark);
}

/* ---------- Abschnitte ---------- */
.section {
  padding-block: var(--space-xl);
}

.section--tinted {
  background: var(--color-green-light);
}

.section h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--color-green-dark);
}

/* Goldene Linie unter AbschnittsÃ¼berschriften */
.section h2::after {
  content: "";
  display: block;
  width: 4rem;
  height: 4px;
  margin-top: var(--space-xs);
  background: var(--color-gold);
}

.section-intro {
  max-width: 42rem;
  margin-bottom: var(--space-l);
}

.grid {
  display: grid;
  gap: var(--space-m);
}

@media (min-width: 48rem) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-bg);
  border-radius: var(--radius);
  border-top: 4px solid var(--color-green);
  padding: var(--space-m);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.08);
}

.card h3 {
  font-size: 1.25rem;
  color: var(--color-green-dark);
}

.card p:last-child {
  margin-bottom: 0;
}

/* Zahlen & Fakten */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
  gap: var(--space-m);
  margin: var(--space-l) 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.facts strong {
  display: block;
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--color-green);
}

/* ---------- Termine ---------- */
.events {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-s);
}

.event {
  display: flex;
  gap: var(--space-m);
  align-items: center;
  padding: var(--space-s);
  border-radius: var(--radius);
  background: var(--color-green-light);
}

.event-date {
  flex: 0 0 4.5rem;
  padding: var(--space-xs) 0;
  border-radius: var(--radius);
  background: var(--color-green-dark);
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

.event-date .day {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
}

.event h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.event p {
  margin: 0;
  color: var(--color-text-muted);
}

/* ---------- Kontakt ---------- */
.contact address {
  font-style: normal;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-green-dark);
  color: #fff;
  padding-block: var(--space-l);
  font-size: 0.9375rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--color-gold);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-logo {
  width: 4.5rem;
  border-radius: 50%;
}

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.legal {
  padding-block: var(--space-l) var(--space-xl);
  max-width: 48rem;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: var(--color-green-dark);
}

.legal h2 {
  font-size: 1.375rem;
  margin-top: var(--space-l);
  color: var(--color-green-dark);
}

/* Platzhalter sichtbar markieren, solange echte Inhalte fehlen */
.placeholder {
  background: rgb(204 187 73 / 0.3);
  padding: 0 0.2em;
}

/* ---------- GrÃ¶ÃŸere Bildschirme ---------- */
@media (min-width: 48rem) {
  :root {
    --header-height: 5.5rem;
  }

  .site-logo img {
    width: 13rem;
  }

  .hero {
    padding-block: var(--space-xl);
  }

  .hero .container {
    flex-direction: row;
    justify-content: center;
    text-align: left;
    gap: var(--space-l);
  }

  .hero-text {
    align-items: flex-start;
    max-width: 32rem;
  }
}
