/* Handschrift für Überschriften – lokal eingebunden (keine Verbindung zu Google) */
@font-face {
  font-family: "Kalam";
  src: url("fonts/kalam-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Farben aus der Illustration: Himmelblau, Schal-Orange/-Gelb/-Rot/-Grün */
:root {
  --himmel-oben: #c8dcee;
  --himmel-unten: #e6f0f8;
  --orange: #d9661f;
  --orange-dunkel: #b04e12;
  --gelb: #f2b632;
  --rot: #c23b2a;
  --gruen: #5a8a3a;
  --tinte: #2a2320;
  --text: #3a332e;
  --karte: #ffffff;
  --rand: #2a2320;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--himmel-oben) 0%, var(--himmel-unten) 40rem, #f5f9fc 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

h1, h2 {
  font-family: "Kalam", "Comic Sans MS", "Chalkboard SE", cursive;
  font-weight: 700;
  color: var(--tinte);
  line-height: 1.15;
}

/* ---------- Kopfbereich ---------- */
header, main, footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

header h1 { margin: 0; font-size: clamp(2.2rem, 7vw, 3.6rem); }
.untertitel { margin: 0.25rem 0 0; font-size: 1.15rem; }

.hero {
  text-align: center;
  padding-top: 2.5rem;
  padding-bottom: 0;
}
.hero h1 { transform: rotate(-1.5deg); }
.untertitel {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.25rem 0.9rem;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  border-radius: 0.3rem;
  transform: rotate(1.5deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
.hero-bild {
  display: block;
  width: 100%;
  height: auto;
  margin: 1rem auto 0;
  /* weicher Übergang ins Himmelblau der Seite */
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
}

/* ---------- Karten ---------- */
main { padding-top: 0.5rem; }

.karte {
  background: var(--karte);
  border: 3px solid var(--rand);
  border-radius: 1.5rem;
  padding: 1.25rem 1.5rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 6px 0 rgba(42, 35, 32, 0.12);
}
.karte h2 { margin: 0 0 1rem; font-size: 1.7rem; }
.symbol { font-size: 0.85em; margin-right: 0.2rem; }

.termine { list-style: none; padding: 0; margin: 0; }
.termine li {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
}
.termine li + li { border-top: 2px dashed #e3d9cf; }

.datum {
  flex: 0 0 auto;
  width: 4rem;
  text-align: center;
  border-radius: 0.8rem;
  overflow: hidden;
  border: 2px solid var(--rand);
  background: #fff;
}
.datum .monat {
  display: block;
  background: var(--rot);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0;
}
.datum .tag {
  display: block;
  font-family: "Kalam", cursive;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.5;
  color: var(--tinte);
  order: 2;
}
.datum { display: flex; flex-direction: column; }
.termine li:nth-child(2) .datum .monat { background: var(--gruen); }

/* ---------- Knöpfe ---------- */
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.knopf {
  flex: 1 1 14rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border: 3px solid var(--rand);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: var(--tinte);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 0 var(--rand);
}
.knopf::before { content: "▶"; font-size: 0.8em; }
.knopf:hover, .knopf:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 0 var(--rand); }
.knopf:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--rand); }
.spotify { background: var(--gelb); }
.youtube { background: #f6a37c; }

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

/* ---------- Unterseiten (Impressum) ---------- */
body > main > h2 { font-size: 1.5rem; margin-top: 2rem; }

/* ---------- Fuß ---------- */
footer {
  text-align: center;
  font-size: 0.9rem;
  padding-bottom: 2.5rem;
}

@media (max-width: 30rem) {
  .karte { padding: 1rem 1.1rem 1.25rem; border-radius: 1.1rem; }
  .karte h2 { font-size: 1.45rem; }
  .datum { width: 3.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .knopf { transition: none; }
}

/* ---------- Logo Evangelisch in Gäufelden ---------- */
.traeger { margin: 0 0 0.5rem; color: #6b5f57; }
.logo {
  display: block;
  width: min(14rem, 60vw);
  height: auto;
  margin: 0 auto 1.25rem;
}

/* ---------- Impressum / Datenschutz ---------- */
body > main > h1 { margin-top: 2.5rem; font-size: clamp(1.9rem, 6vw, 2.6rem); }
body > main > h2 { font-size: 1.3rem; margin: 1.75rem 0 0.4rem; }
.stand { color: #6b5f57; font-size: 0.9rem; margin-top: 2rem; }

/* Kennzeichnung "nicht öffentlich" */
.hinweis {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0 0.55rem;
  border: 2px solid var(--rand);
  border-radius: 999px;
  background: #f1ebe5;
  color: var(--tinte);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: 0.1em;
  white-space: nowrap;
}

/* Kleine Links unter einem Termin (iCal, Karte) */
.termin-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.mini-knopf {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border: 2px solid var(--rand);
  border-radius: 999px;
  background: #fff6e8;
  color: var(--tinte);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--rand);
}
.mini-knopf:hover, .mini-knopf:focus-visible { background: var(--gelb); }
