/* Migraminds e. V. – Stylesheet
   Systemschriften, keine externen Schriftdateien, damit keine Daten an Dritte gehen. */

:root {
  --sand: #F4EFE6;
  --creme: #FFF9F2;
  --petrol: #1F4447;
  --petrol-dunkel: #142E30;
  --terra: #C8643B;
  --terra-dunkel: #A94F2A;
  --text: #1E2A2B;
  --text-2: #3B4A4B;
  --rand: #E3D9C8;
  --schrift: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--petrol); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; font-weight: 600; }
a:hover { color: var(--terra); text-decoration-thickness: 2.5px; }

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

h1, h2, h3, h4 {
  font-family: var(--schrift);
  font-weight: 400;
  line-height: 1.15;
  color: var(--petrol);
  margin: 0;
}

h1 { font-size: clamp(38px, 5vw, 60px); }
h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 16px; }
h3 { font-size: 26px; margin-bottom: 12px; }
h4 { font-size: 20px; margin-bottom: 8px; }

p { margin: 0 0 16px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.schmal { max-width: 760px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--petrol); color: var(--creme); padding: 8px 12px; border-radius: 6px;
}
.skip:focus { left: 8px; }

.kicker {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terra-dunkel); font-weight: 600; margin-bottom: 12px;
}

.lead { font-size: 20px; color: var(--text-2); max-width: 560px; }
.einleitung { color: var(--text-2); max-width: 760px; font-size: 18px; }
.hinweis { font-size: 14px; color: #6B6255; }

/* Kopf */
.kopf { background: linear-gradient(rgba(244,239,230,.72), rgba(244,239,230,.72)), url("feige-foto.jpg") center 60% / cover no-repeat; border-bottom: 1px solid var(--rand); }
.kopf-innen {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; min-height: 84px; padding-block: 10px;
}
.logo { text-decoration: none; display: flex; flex-direction: row; align-items: center; gap: 14px; }
.logo-bild { display: block; width: auto; height: 84px; flex: none; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--schrift); font-size: 22px; color: var(--petrol); }
.logo-zusatz { font-size: 13px; color: var(--text-2); }
.kopf nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; }
.kopf nav a { color: var(--text); text-decoration: none; }
.kopf nav a:hover { color: var(--terra); }

/* Hero mit Anmeldung */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  align-items: start; padding-top: 64px; padding-bottom: 72px;
}
.hero-text { padding-top: 16px; }

.anmeldung-box {
  position: relative; overflow: hidden;
  background: var(--creme);
  border: 2px solid var(--petrol);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 1px 0 var(--rand);
}
.termin { font-size: 18px; margin-bottom: 20px; }
.anmeldung-box { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.hero .anmeldung-box { align-self: center; }
.anmeldung-box .anmeldung { text-align: left; }

.anmeldung label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 15px; font-weight: 600; color: var(--petrol); margin-bottom: 14px;
}
.anmeldung .zeile {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px;
}
.anmeldung .zeile label { margin-bottom: 14px; }
.anmeldung input[type="text"],
.anmeldung input[type="email"],
.anmeldung input[type="tel"],
.anmeldung select {
  box-sizing: border-box; display: block; width: 100%; height: 46px;
  padding: 0 14px; font: inherit; font-weight: 400; color: var(--text);
  background: #fff; border: 1px solid #B9AE9B; border-radius: 10px;
}
@media (max-width: 560px) { .anmeldung .zeile { grid-template-columns: 1fr; } }
.anmeldung input:focus, .anmeldung select:focus {
  border-color: var(--petrol); outline: 3px solid rgba(200,100,59,.35);
}
.anmeldung label.check {
  display: flex; flex-direction: row; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--text-2);
}
.anmeldung label.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 16px; border: 0; cursor: pointer; font-family: var(--sans);
}
.btn-primary { background: var(--terra); color: var(--creme); }
.btn-primary:hover { background: var(--terra-dunkel); color: var(--creme); }
.btn-ghost { border: 1.5px solid var(--petrol); color: var(--petrol); }
.btn-ghost:hover { background: var(--petrol); color: var(--sand); }
.anmeldung .btn { width: 100%; margin-top: 6px; }

/* Abschnitte */
.abschnitt { padding: 88px 0; }
.abschnitt.hell { background: var(--creme); }
.unter { margin-top: 56px; scroll-margin-top: 110px; }
.wissen-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.wissen-nav a { display: inline-block; padding: 8px 16px; border: 1px solid #B9AE9B; border-radius: 999px; background: #fff; color: #1F4447; text-decoration: none; font-size: 15px; font-weight: 600; }
.wissen-nav a:hover { background: #1F4447; color: #F4EFE6; }

/* Karten */
.karten { display: grid; gap: 22px; margin: 24px 0; }
.karten.zwei { grid-template-columns: repeat(2, 1fr); }
.karten.drei { grid-template-columns: repeat(3, 1fr); }
.karte {
  background: var(--creme); border: 1px solid var(--rand);
  border-radius: 16px; padding: 28px;
}
.abschnitt.hell .karte { background: #fff; }
.karte p { margin: 0; color: var(--text-2); font-size: 16px; }

.liste { padding: 0; list-style: none; display: grid; gap: 12px; margin: 16px 0; }
.liste li { background: var(--creme); border: 1px solid var(--rand); border-radius: 12px; padding: 16px 20px; }

/* FAQ */
details { border-bottom: 1px solid var(--rand); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; }
details p { margin: 12px 0 0; color: var(--text-2); }

/* Fuß */
.fuss { background: var(--petrol-dunkel); color: #D8E4E2; padding: 48px 0; }
.fuss-innen { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.fuss .logo-name { color: var(--sand); }
.fuss a { color: #D8E4E2; text-decoration: none; margin-right: 22px; }
.fuss a:hover { color: #E8A07E; }

/* Leitung */
.leitung { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.leitung .foto {
  aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; background: var(--rand); border-radius: 18px;
  display: block;
}
.leitung .rolle { font-size: 18px; color: var(--text-2); margin-bottom: 20px; }
.leitung ul { padding-left: 20px; list-style: disc; }
.leitung ul li { background: none; border: 0; padding: 0 0 6px; }
.leitung-titel { display: none; }

/* Mobil */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .karten.drei, .karten.zwei { grid-template-columns: 1fr; }
  .abschnitt { padding: 64px 0; }
}

/* Abbildungen */
.abbildung { margin: 0 0 56px; }
.abbildung img { display: block; width: 100%; max-width: 760px; height: auto; border-radius: 18px; background: var(--creme); }
.abbildung figcaption { font-size: 14px; color: var(--text-2); margin-top: 10px; }

/* Stammtisch-Bild */
.stammtisch-bild { display: block; width: 100%; height: auto; border-radius: 14px; margin: 0 0 26px; }

/* FAQ mit Wortwolke als Wasserzeichen */
.abschnitt.faq { position: relative; overflow: hidden; }
.abschnitt.faq .wrap { position: relative; z-index: 1; }
.wasserzeichen-faq { position: absolute; right: -10%; top: 50%; transform: translateY(-50%); width: 80%; max-width: 900px; height: auto; opacity: .22; mix-blend-mode: multiply; pointer-events: none; z-index: 0; }

/* Farben der Kaffeetasse (Kobalt, Rot, Grün) in abgestuften Tönen */
.karten .karte:nth-child(4n+1) { border-top: 6px solid #1F3F73; background: #EBF0F7; }
.liste li:nth-child(4n+1) { border-left: 6px solid #1F3F73; background: #EBF0F7; }
.karten .karte:nth-child(4n+2) { border-top: 6px solid #A53D2E; background: #F9EEEB; }
.liste li:nth-child(4n+2) { border-left: 6px solid #A53D2E; background: #F9EEEB; }
.karten .karte:nth-child(4n+3) { border-top: 6px solid #2F5A8F; background: #EFF4F9; }
.liste li:nth-child(4n+3) { border-left: 6px solid #2F5A8F; background: #EFF4F9; }
.karten .karte:nth-child(4n+4) { border-top: 6px solid #3F6E4E; background: #EEF5F0; }
.liste li:nth-child(4n+4) { border-left: 6px solid #3F6E4E; background: #EEF5F0; }
.karten .karte h3, .karten .karte h4 { color: #17315C; }

/* Feste Kopfleiste und Sprungmarken */
.kopf { position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(31, 68, 71, .08); }
.kopf nav a[aria-current="page"] { color: var(--terra); font-weight: 600; }
section[id] { scroll-margin-top: 110px; }

/* Glockenkurve mit erklärendem Infofeld */
.glocke { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; margin: 8px 0 56px; }
.glocke .abbildung { margin: 0; }
.infofeld { background: #EDF1F6; border-left: 6px solid #2B4C7E; border-radius: 14px; padding: 24px 28px; }
.infofeld p { margin: 0 0 12px; }
.infofeld .infotitel { font-family: var(--schrift); font-size: 22px; color: #1F3A60; margin-bottom: 10px; }
.infofeld .quelle { font-size: 13px; color: #6B6255; margin: 14px 0 0; }
@media (max-width: 820px) { .glocke { grid-template-columns: 1fr; } }

/* Motiv-Wasserzeichen pro Bereich */
.hero { background: linear-gradient(rgba(244,239,230,.9), rgba(244,239,230,.9)), url("motiv-feige.png") right center / 380px auto no-repeat; }
#wissen { background: linear-gradient(rgba(255,249,242,.92), rgba(255,249,242,.92)), url("motiv-olive.png") right center / 400px auto no-repeat, #FFF9F2; }
.abschnitt.faq { background: linear-gradient(rgba(255,249,242,.92), rgba(255,249,242,.92)), url("motiv-baklava.png") left center / 340px auto no-repeat, #FFF9F2; }
.anmeldung-box { background: linear-gradient(rgba(255,249,242,.92), rgba(255,249,242,.92)), url("motiv-granatapfel.png") right bottom / 240px auto no-repeat, #FFF9F2; }
#kontakt { background: linear-gradient(rgba(244,239,230,.92), rgba(244,239,230,.92)), url("motiv-lokum.png") right center / 340px auto no-repeat, #F4EFE6; }

/* Bildfolge (Slides) mit seitlichem Scrollen */
.slides { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: 0 0 56px; }
.slides img { flex: 0 0 min(340px, 78%); height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; scroll-snap-align: start; box-shadow: 0 6px 18px rgba(31, 68, 71, .12); }

/* Feige als Foto-Wasserzeichen im Startbereich */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(rgba(255,249,242,.86), rgba(255,249,242,.86)), url("kaffee.jpg") center / cover no-repeat;
  z-index: -1; pointer-events: none;
}


/* Anmeldefeld: Rahmen sichtbar, Hintergrund durchscheinend */
.hero .anmeldung-box { background: rgba(255,249,242,.5); border: 2px solid #1F4447; }

/* Kopfzeile auf dem Handy: kompakter, Navigation in einer Zeile */
@media (max-width: 560px) {
  .kopf-innen { min-height: 0; padding-block: 4px; gap: 6px; }
  .logo img, .logo-bild { height: 46px; }
  .logo-zusatz { display: none !important; }
  .logo-name { font-size: 16px; }
  .kopf nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 12px; font-size: 13px; padding-bottom: 2px; white-space: nowrap; }
}

/* Menü-Knopf auf dem Handy */
.kopf-menue { display: none; }
@media (max-width: 560px) {
  .kopf nav:not(.kopf-liste) { display: none !important; }
  .kopf-menue { display: block; width: auto; flex: none; position: static; }
  .kopf-innen { flex-wrap: nowrap !important; justify-content: space-between; }
  .kopf-menue[open] .kopf-liste { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: #F4EFE6; padding: 8px 16px 14px; border-bottom: 1px solid var(--rand); box-shadow: 0 10px 22px rgba(31,68,71,.12); }
  .kopf-menue summary { cursor: pointer; list-style: none; text-align: right; padding: 0; font-size: 15px; font-weight: 600; color: #1F4447; }
  .kopf-menue summary::-webkit-details-marker { display: none; }
  .kopf-liste { display: grid !important; grid-template-columns: 1fr; flex-wrap: nowrap !important; gap: 8px !important; overflow: visible !important; white-space: normal !important; padding: 10px 0 6px; }
  .kopf-liste a { background: #fff; border: 1px solid #B9AE9B; border-radius: 10px; padding: 12px 14px; text-align: left; font-weight: 600; color: #1F4447; }
  .kopf-liste .menu-gruppe { grid-column: 1 / -1; }
  .kopf-liste .menu-gruppe > summary { display: block; background: #fff; border: 1px solid #B9AE9B; border-radius: 10px; padding: 12px 8px; text-align: center; font-weight: 600; color: #1F4447; }
  .kopf-liste .untermenue { position: static; min-width: 0; background: none; border: 0; box-shadow: none; padding: 0 0 0 18px; gap: 0; }
  .kopf-liste .untermenue a { background: none; border: 0; border-radius: 0; text-align: left; font-weight: 500; padding: 6px 0; white-space: normal; }
  .kopf-liste .untermenue a::before { content: "↳  "; color: #6B6255; }
}

/* Logo: Name in einer Zeile, Untertitel darunter */
.logo-text { display: flex; flex-direction: column; }
.logo-name { white-space: nowrap; }
@media (max-width: 560px) {
  .logo-zusatz { display: none !important; }
}

/* Mobile: keine seitliche Verschiebung, Galerie umbrechen statt wischen */
html, body { overflow-x: clip; }
@media (max-width: 560px) {
  .slides { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 12px; scroll-snap-type: x mandatory; padding: 4px 10% 16px; -webkit-overflow-scrolling: touch; }
  .slides img { flex: 0 0 80%; width: 80%; min-width: 0; max-width: 80%; scroll-snap-align: center; }
  .leitung { grid-template-columns: 1fr; }
  #verein h2 { text-align: center; }
  .leitung-titel { display: block; font-size: 26px; color: #1F4447; margin: 0 0 12px; }
  #verein h2 { text-align: center; }
  .leitung-box { background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 6px 18px rgba(31, 68, 71, .10); }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .wrap p, .wrap li, .wrap h1, .wrap h2, .wrap h3 { text-align: left; }
}

/* Menü mit Unterpunkten (Wissen) */
.menu-gruppe { position: relative; }
.menu-gruppe > summary { list-style: none; cursor: pointer; font-weight: 500; color: var(--text); padding: 0 2px; }
.menu-gruppe > summary::-webkit-details-marker { display: none; }
.menu-gruppe > summary:hover, .menu-gruppe[open] > summary { color: var(--terra); }
.untermenue { position: absolute; top: 100%; left: -12px; z-index: 60; min-width: 250px; flex-direction: column; gap: 2px; background: #FFF9F2; border: 1px solid #E3D9C8; border-radius: 12px; padding: 8px; box-shadow: 0 8px 24px rgba(31, 68, 71, .12); }
.untermenue a { padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.untermenue a:hover { background: #EEF5F0; }
.untermenue { display: flex; flex-direction: column; }

/* Kopfzeile: Menüpunkte sauber auf einer Linie, Untermenü ohne Schriftsprung */
.kopf nav { align-items: center; }
.kopf nav .menu-gruppe > summary { font: inherit; color: var(--text); }
.kopf nav .menu-gruppe[open] > summary { color: var(--terra); }

/* Menüleiste am Computer: Unterpunkte öffnen als Leiste über die volle Breite, wie bei großen Webseiten */
@media (min-width: 561px) {
  .kopf .menu-gruppe { position: static; }
  .kopf .untermenue {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    width: 100vw; min-width: 0; box-sizing: border-box;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 24px;
    padding: 24px max(24px, calc((100vw - 1120px) / 2 + 24px));
    background: #FFF9F2; border: 0; border-top: 1px solid var(--rand); border-bottom: 1px solid var(--rand);
    border-radius: 0; box-shadow: 0 14px 28px rgba(31, 68, 71, .10);
  }
  .kopf .untermenue a { padding: 10px 12px; border-radius: 8px; white-space: normal; }
}

.knopf { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--terra); color: #FFF9F2; font-weight: 600; text-decoration: none; }
.knopf:hover { background: var(--terra-dunkel); color: #FFF9F2; }

.whatsapp-zeile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 0; }
.whatsapp-zeile img { width: 46px; height: 46px; flex: none; }

/* Navigation, Knöpfe und Pillen behalten ihr eigenes Aussehen */
.kopf nav a, .untermenue a, .kopf-liste a, .btn, .wissen-nav a, .fuss a { text-decoration: none; }
.kopf nav a, .untermenue a, .kopf-liste a, .wissen-nav a { font-weight: inherit; }
.untermenue a { font-weight: 500; }
.fuss a { font-weight: 500; }

/* Stammtisch-Anmeldung steht als Erstes auf der Startseite, zentriert */
.hero { grid-template-columns: 1fr; justify-items: center; }
.hero .anmeldung-box { order: -1; margin: 0 auto 40px; align-self: center; width: 100%; max-width: 720px; }
.hero-text { max-width: 760px; width: 100%; }
