/* =========================================================================
   Michaelisverein Schwangau e.V. – Designentwurf
   Farbwelt: Nachtblau (Erzengel Michael) · Gold (Namenstag, Festlichkeit)
             Creme (Ruhe) · Anthrazit (Text)
   Schriften bewusst systemlokal – keine Google Fonts, kein Cookie-Banner.
   ========================================================================= */

:root {
  --nacht:        #101a33;
  --nacht-tief:   #0a1122;
  --nacht-weich:  #1c2a4d;
  --gold:         #c19a45;
  --gold-hell:    #e0c07c;
  --creme:        #f8f4ec;
  --creme-tief:   #efe8da;
  --anthrazit:    #23262d;
  --grau:         #6b7280;
  --linie:        rgba(16, 26, 51, 0.12);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --breite: 1140px;
  --radius: 4px;
}

/* ---------- Grundlagen ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--anthrazit);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

.inhalt {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.abschnitt { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.augenmass { max-width: 42rem; }

.zentriert { text-align: center; margin-left: auto; margin-right: auto; }

/* Kleine Überzeile über Überschriften */
.uberzeile {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

/* ---------- Buttons ---------- */

.knopf {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.knopf:hover { transform: translateY(-2px); }

.knopf--gold { background: var(--gold); color: var(--nacht-tief); }
.knopf--gold:hover { background: var(--gold-hell); }

.knopf--linie { border-color: rgba(248, 244, 236, 0.45); color: var(--creme); }
.knopf--linie:hover { background: rgba(248, 244, 236, 0.1); border-color: var(--creme); }

.knopf--dunkel { background: var(--nacht); color: var(--creme); }
.knopf--dunkel:hover { background: var(--nacht-weich); }

/* ---------- Kopfbereich ---------- */

.kopf {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 1.1rem 0;
}

.kopf__reihe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.marke {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--creme);
}
/* Das Siegel ist dichter gezeichnet als eine reine Wortmarke und braucht
   deshalb etwas mehr Fläche, um lesbar zu bleiben. */
.marke__zeichen { width: 52px; height: 52px; flex: none; display: block; }
.marke__text { display: flex; flex-direction: column; line-height: 1.15; }
.marke__name {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.marke__ort {
  font-size: 0.7rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold-hell);
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  color: rgba(248, 244, 236, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}
.nav a:hover { color: var(--creme); border-bottom-color: var(--gold); }

.nav__knopf {
  padding: 0.5rem 1.1rem;
  background: var(--gold);
  color: var(--nacht-tief) !important;
  border-radius: var(--radius);
  border-bottom: none !important;
  font-weight: 600;
}
.nav__knopf:hover { background: var(--gold-hell); }

/* ---------- Bühne ---------- */

.buhne {
  position: relative;
  min-height: 40rem;
  display: flex;
  align-items: center;
  padding: 9rem 0 11rem;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(193, 154, 69, 0.22) 0%, transparent 55%),
    linear-gradient(168deg, var(--nacht) 0%, var(--nacht-tief) 68%);
  color: var(--creme);
  overflow: hidden;
}

/* Sternenhauch im Hintergrund */
.buhne::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 68% 14%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 84% 34%, rgba(224,192,124,0.6), transparent),
    radial-gradient(1px 1px at 32% 9%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 52% 30%, rgba(255,255,255,0.3), transparent);
  pointer-events: none;
}

.buhne__inhalt { position: relative; z-index: 2; max-width: 40rem; }

.buhne h1 { color: var(--creme); margin-bottom: 0.5em; }
.buhne h1 em {
  font-style: normal;
  color: var(--gold-hell);
}

.buhne__vorspann {
  font-size: 1.15rem;
  color: rgba(248, 244, 236, 0.82);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.buhne__knopfe { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Save-the-Date-Plakette */
.plakette {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 1rem 0.45rem 0.5rem;
  margin-bottom: 1.8rem;
  background: rgba(248, 244, 236, 0.07);
  border: 1px solid rgba(193, 154, 69, 0.4);
  border-radius: 100px;
  font-size: 0.88rem;
  color: rgba(248, 244, 236, 0.9);
}
.plakette__datum {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--gold);
  color: var(--nacht-tief);
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* Bergsilhouette am unteren Rand */
.buhne__berge {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: auto;
  display: block;
  z-index: 1;
}

/* ---------- Terminband ---------- */

.band {
  background: var(--nacht-weich);
  color: var(--creme);
  padding: 1.6rem 0;
}
.band__reihe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}
.band__text { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.band__label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-hell);
}
.band__titel { font-family: var(--serif); font-size: 1.35rem; }
.band__zusatz { color: rgba(248, 244, 236, 0.7); font-size: 0.95rem; }
.band__link {
  color: var(--gold-hell);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.band__link:hover { text-decoration: underline; }

/* ---------- Kacheln „Was wir machen" ---------- */

.raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.kachel {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.kachel:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(16, 26, 51, 0.11);
}

.kachel__bild {
  aspect-ratio: 3 / 2;
  background: linear-gradient(140deg, var(--nacht) 0%, var(--nacht-weich) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.kachel__bild span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(224, 192, 124, 0.75);
  border: 1px dashed rgba(224, 192, 124, 0.4);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
}

.kachel__text { padding: 1.6rem; }
.kachel__text h3 { margin-bottom: 0.45em; }
.kachel__text p { color: var(--grau); font-size: 0.98rem; }

/* ---------- Namenspatron ---------- */

.patron__reihe {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.patron__zitat {
  margin: 0 0 1.6rem;
  padding-left: 1.4rem;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.4;
  color: var(--nacht);
}

.patron__sinnbild {
  display: flex;
  justify-content: center;
  /* Ohne align-items zieht der Flex-Container das Siegel auf die Höhe
     der Textspalte und staucht es dadurch. */
  align-items: center;
}
.patron__sinnbild svg,
.patron__sinnbild img {
  width: 100%;
  max-width: 17rem;
  height: auto;
  object-fit: contain;
}

/* ---------- Beitrittsaufruf ---------- */

.aufruf {
  background: var(--nacht);
  color: var(--creme);
  position: relative;
  overflow: hidden;
}
.aufruf::after {
  content: "";
  position: absolute;
  right: -8rem; top: -8rem;
  width: 26rem; height: 26rem;
  background: radial-gradient(circle, rgba(193, 154, 69, 0.16) 0%, transparent 68%);
  pointer-events: none;
}

.aufruf__reihe {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.aufruf h2 { color: var(--creme); }
.aufruf p { color: rgba(248, 244, 236, 0.8); }

.beitrag {
  background: rgba(248, 244, 236, 0.05);
  border: 1px solid rgba(193, 154, 69, 0.35);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
}
.beitrag__zahl {
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold-hell);
  margin-bottom: 0.35rem;
}
.beitrag__einheit {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 244, 236, 0.65);
}
.beitrag__witz {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(248, 244, 236, 0.14);
  font-size: 0.92rem;
  color: rgba(248, 244, 236, 0.75);
  line-height: 1.5;
}
.beitrag__witz strong { color: var(--gold-hell); font-weight: 600; }

/* ---------- Dokumentenliste (PDF-Downloads) ---------- */

.dokumente {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid rgba(248, 244, 236, 0.14);
}
.dokumente li { border-bottom: 1px solid rgba(248, 244, 236, 0.14); }

.dokumente a {
  display: block;
  padding: 0.95rem 0 0.95rem 2rem;
  position: relative;
  text-decoration: none;
  color: var(--creme);
  font-weight: 600;
  font-size: 1rem;
}
.dokumente a:hover { color: var(--gold-hell); }

/* Schlichtes Dokumentsymbol */
.dokumente a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 13px;
  height: 16px;
  border: 1.5px solid var(--gold);
  border-radius: 1px;
  clip-path: polygon(0 0, 68% 0, 100% 26%, 100% 100%, 0 100%);
}

.dokumente a span {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: rgba(248, 244, 236, 0.55);
  margin-top: 0.1rem;
}

/* ---------- Präsidium ---------- */

.praesidium__raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.person { text-align: center; }
.person__bild {
  width: 100%;
  aspect-ratio: 1;
  max-width: 12rem;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--creme-tief) 0%, #ded4c0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2.6rem;
  color: rgba(16, 26, 51, 0.28);
  border: 1px solid var(--linie);
}
.person__name { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 0.15rem; }
.person__rolle {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.praesidium__pointe {
  margin-top: 3rem;
  padding: 1.4rem 1.8rem;
  background: var(--creme-tief);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--nacht);
}

/* ---------- Infokarte (z. B. für Kontaktangaben) ---------- */

.karte {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 2rem;
}
.karte h3 { margin-bottom: 0.7em; }
.karte dl { margin: 0; font-size: 0.96rem; }
.karte dt {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grau);
  margin-bottom: 0.2rem;
}
.karte dd {
  margin: 0 0 1rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color: var(--nacht);
}
.karte dd:last-child { margin-bottom: 0; }

/* ---------- Fußbereich ---------- */

.fuss {
  background: var(--nacht-tief);
  color: rgba(248, 244, 236, 0.72);
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
}
.fuss__raster {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(248, 244, 236, 0.12);
}
.fuss h4 {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 0.6rem; }
.fuss a { color: rgba(248, 244, 236, 0.78); text-decoration: none; }
.fuss a:hover { color: var(--gold-hell); }
.fuss .marke { margin-bottom: 1.1rem; }

.fuss__unten {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.86rem;
  color: rgba(248, 244, 236, 0.5);
}
.fuss__unten nav { display: flex; gap: 1.5rem; }

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */

/* Fester Kopfbereich – ohne Bühne braucht er einen eigenen Hintergrund */
.kopf--fest {
  position: static;
  background: var(--nacht);
}

.textseite { padding: 3.5rem 0 5rem; }

.textseite__kopf {
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--linie);
}
.textseite__kopf h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.3em; }
.textseite__kopf p { color: var(--grau); margin: 0; }

.textseite__inhalt { max-width: 44rem; }

.textseite__inhalt h2 {
  font-size: 1.3rem;
  margin: 2.6rem 0 0.7rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--linie);
}
.textseite__inhalt h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.textseite__inhalt p { margin-bottom: 1rem; }
.textseite__inhalt address { font-style: normal; line-height: 1.8; }

.textseite__inhalt dl { margin: 0 0 1.2rem; }
.textseite__inhalt dt {
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1rem;
}
.textseite__inhalt dd { margin: 0.15rem 0 0; }

/* Offener Punkt – darf so nicht online gehen */
.offen {
  display: inline-block;
  background: #fdf3d8;
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 0.15rem 0.6rem;
  font-size: 0.9rem;
  color: #7a5c14;
}

.textseite__fussnote {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--linie);
  font-size: 0.88rem;
  color: var(--grau);
}

/* ---------- Kleinere Bildschirme ---------- */

@media (max-width: 860px) {
  .nav { display: none; }
  .buhne { min-height: auto; padding: 7.5rem 0 9rem; }
  .aufruf__reihe { grid-template-columns: 1fr; gap: 2.5rem; }
  .patron__reihe { grid-template-columns: 1fr; gap: 2.5rem; }
  .patron__sinnbild { order: -1; }
  .fuss__raster { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .knopf { width: 100%; text-align: center; }
  .buhne__knopfe { flex-direction: column; }
  .band__reihe { flex-direction: column; align-items: flex-start; }
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .kachel:hover, .knopf:hover { transform: none; }
}
