:root {
  /* Markenfarben aus der offiziellen Vereins-Beachflag: grüne Pfadfinderlilie
     auf Weiß, mit den drei Bannerfarben Gold, Petrol/Türkis und Korallrot als
     Akzente. Überschriften nutzen eine analoge Grün-Familie um den
     Markenton (141° Hue) herum, siehe docs/verein/design.md für die
     Herleitung. */
  --color-bg: #ffffff;
  --color-text: #262b23;
  --color-primary: #15602f;
  --color-primary-dark: #0a2e16;
  --color-gold: #e4af15;
  --color-teal: #068784;
  --color-coral: #d85847;
  --color-accent: #d85847;
  --color-muted: #5c6258;
  --color-border: #e3e2dc;
  --color-h1: #15602f; /* Basis-Grün */
  --color-h2: #156046; /* analog +18°, kühleres Tannengrün */
  --color-h3: #156016; /* analog -20°, wärmeres Mooshellgrün */
  --max-width: 46rem;

  /* Drei Schriftrollen: Schreibschrift für Überschriften, gut lesbare
     Groteske für Fließtext, eigenständige Schrift für Navigation/Buttons. */
  --font-heading: "Caveat", "Segoe Script", cursive;
  --font-body: "Karla", "Segoe UI", Verdana, Arial, sans-serif;
  --font-ui: "Oswald", "Segoe UI", Verdana, Arial, sans-serif;

  /* Seite ist bewusst einheitlich hell gestaltet (Weiß/Grün) - Browser
     sollen das nicht automatisch/fehlerhaft in einen Dunkelmodus
     invertieren (v.a. Android-Chrome "Dunkles Design für Web-Inhalte"). */
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

header.site-header {
  background: #fff;
  color: var(--color-primary);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

header.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-gold) 0% 33.33%,
    var(--color-teal) 33.33% 66.66%,
    var(--color-coral) 66.66% 100%
  );
}

header.site-header .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

header.site-header a {
  color: var(--color-primary);
  text-decoration: none;
}

header.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

header.site-header .site-logo {
  height: 2.4rem;
  width: 2.4rem;
  flex-shrink: 0;
}

header.site-header .site-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text);
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

nav.site-nav a:hover,
nav.site-nav a:focus {
  text-decoration: underline;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  position: relative;
  background-image: url("../img/lilie-wasserzeichen.png");
  background-repeat: no-repeat;
  /* Startet auf Höhe der ersten Überschrift (main-Oberkante) und scrollt
     danach ganz normal mit dem Inhalt mit. */
  background-position: right 4px top 0;
  background-size: min(48vw, 440px);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  color: var(--color-h1);
  font-size: 2.6rem;
}

h2 {
  color: var(--color-h2);
  font-size: 2rem;
}

h3 {
  color: var(--color-h3);
  font-size: 1.6rem;
}

a {
  color: var(--color-primary-dark);
}

.lead {
  font-size: 1.1rem;
  color: var(--color-muted);
}

.card {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1.25rem 0;
  background: #fff;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.section-divider::before,
.section-divider::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: var(--color-border);
}

.section-divider img {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 0.35rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
}

.button:hover,
.button:focus {
  background: var(--color-primary-dark);
}

.button[aria-disabled="true"] {
  background: var(--color-border);
  color: var(--color-muted);
  cursor: not-allowed;
  pointer-events: none;
}

.button-secondary {
  background: #fff;
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary);
}

.button-secondary:hover,
.button-secondary:focus {
  background: #f1f6f2;
  color: var(--color-primary-dark);
}

.button-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 0.4rem;
}

.copy-feedback {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-primary);
  min-height: 1.2em;
}

.calendar-url-box {
  display: block;
  overflow-wrap: anywhere;
  background: #f6f5f1;
  border: 1px solid var(--color-border);
  border-radius: 0.35rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.calendar-help {
  margin-top: 1rem;
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
}

.calendar-help summary {
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 0.9rem;
}

.calendar-help[open] summary {
  margin-bottom: 0.75rem;
}

.calendar-help h3 {
  font-size: 1.15rem;
  margin: 1rem 0 0.35rem;
}

.calendar-help h3:first-of-type {
  margin-top: 0.5rem;
}

.calendar-note {
  font-size: 0.85rem;
}

.notice {
  border-left: 4px solid var(--color-accent);
  background: #fdf1ee;
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
  border-radius: 0 0.35rem 0.35rem 0;
}

.steps {
  padding-left: 1.25rem;
}

.steps li {
  margin-bottom: 0.5rem;
}

footer.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--color-border);
}

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