/* =========================
   Variablen / Grundfarben
   ========================= */
:root{
  --bg: #ffdada;            /* Seitenhintergrund - #6f202b */
  --text: #6F202B;          /* Primärtext (helle Töne) - #fdf0dd */
  --link: #B9868D;          /* Links/Akzent - #ffdada */
  --surface-1: rgba(255,255,255,.06);
  --surface-2: rgba(255,255,255,.10);
  --ring: rgba(255,255,255,.18);
  --shadow: 0 8px 22px rgba(0,0,0,.35);
  --radius: 14px;

  --container: 820px;       /* Basis-Contentbreite */
  --header-h: 72px;         /* fixe Headerhöhe/Anker-Offset */
}

/* größer auf breiten Screens */
@media (min-width: 1100px){ :root{ --container: 980px; } }
@media (min-width: 1400px){ :root{ --container: 1180px; } }

/* =========================
   Global / Reset light
   ========================= */
html{
  background: var(--bg);
  scroll-behavior: smooth;
}
html, body{ overflow-x: hidden; }   /* gegen 1px-Überhang bei 100vw */
*{ box-sizing: border-box; }

body{
  margin: 0;
  padding-top: var(--header-h);     /* Platz für fixen Header */
  color: var(--text);
  text-align: center;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

/* zentrierter Seiten-Container (alles außer Full-bleed-Hero) */
.page{
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
}

/* Lesbarkeit Fließtext */
p{ text-align: left; margin: .5em 0; }
p.muted{ opacity:.8; }
h1,h2,h3{
  line-height: 1.35;
  margin: .6em 0 .4em;
  text-align: center;
}
h1{ font-size: clamp(2rem, 5vw, 3.2rem); }
h2{ font-size: clamp(1.4rem, 3.2vw, 2.2rem); }
h3{ font-size: clamp(1.1rem, 2.2vw, 1.4rem); }

/* Links */
a{ color: var(--link); text-decoration: none; }
a:hover{ color: #fff; }

/* =========================
   Header (fixed, glassy)
   ========================= */
header{
  position: fixed; top: 0; left: 0; width: 100%;
  background: rgba(255,218,218,.92); /*- rgba(111,32,43,.92) - */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  border-bottom: 1px solid rgba(255,255,255,.14);
  z-index: 1000;
  padding: 10px 0;
}
header p{
  margin: 0 0 6px 0;
  font-weight: 600;
  color: #f8f8f8;
}
header nav{
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
header nav a{
  color: #6F202B; /* - Ursprungsfarbe #ffdada - */ 
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
header nav a:hover{
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

/* Anker-Offset damit Abschnitte nicht unter dem Header kleben */
[id]{ scroll-margin-top: var(--header-h); }

/* =========================
   Full-bleed Utility
   ========================= */
/* nutzt volle Bildschirmbreite – unabhängig von Containern */
.full-bleed{
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  /* keine eigenen paddings hier – Content innen platzieren */
}

/* =========================
   Hero (Hintergrundbild + Overlay)
   ========================= */
.hero{
  min-height: 100vh; /* volle Höhe */
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; position: relative;
  background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.25)),
    url('../assets/Innenhof.jpeg') center/cover no-repeat; /* Pfad relativ zu css/style.css */
}
.hero-overlay{ padding: 1rem; max-width: 90ch; }
.hero h1{ margin-bottom: .5rem; }
.hero p{ margin-bottom: 1rem; }

/* =========================
   Buttons (CTA)
   ========================= */
.btn{
  display:inline-block; padding: 10px 16px; border-radius: 999px;
  color:#5b0f19; background: #ffd6df;
  font-weight:600; border:1px solid transparent;
  transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow); background:#ffe5ea; }

/* =========================
   Karten / Abschnitte
   ========================= */
section.block{
  background: var(--surface-1);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 22px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
section.block.alt{ background: var(--surface-2); }

/* =========================
   Tabellen
   ========================= */
table{ width: 100%; border-collapse: collapse; }
th, td{ padding: .6rem; border-bottom: 1px solid var(--ring); text-align: left; }
thead th{ border-bottom: 2px solid var(--ring); }

/* =========================
   Bilder & Galerie
   ========================= */
img{ display:block; max-width:100%; height:auto; border-radius:8px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.gallery{ display:grid; gap:12px; }
@media (min-width: 768px){ .gallery{ grid-template-columns: repeat(3, 1fr); } }

/* =========================
   Grid-Layouts
   ========================= */
.grid-2{ display:grid; gap:18px; }
@media (min-width: 960px){ .grid-2{ grid-template-columns: 1fr 1fr; } }

/* =========================
   Formulare / Iframe
   ========================= */
input, select, textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--ring);
  background: rgba(255,255,255,.08);
  color: var(--text);
}
input::placeholder, textarea::placeholder{ color: #ffffff99; }
iframe{ border: none; border-radius: 12px; overflow: hidden; }

/* Optional: feste, angenehme Höhe fürs Google Form */
.form-wrapper{ width:100%; max-width: 820px; margin: 0 auto; }
.form-wrapper iframe{ width:100%; height: 900px; }

/* =========================
   Countdown – Box-Variante
   ========================= */
.countdown{
  display:flex; gap:1rem; justify-content:center; align-items:stretch; flex-wrap:wrap;
  margin:1.5rem 0;
}
.cd-item{
  min-width:4.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius:.75rem;
  padding:.6rem .8rem;
  text-align:center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.cd-item b{
  display:block; font-size:1.6rem; font-weight:800; color:#ffdada; line-height:1.15;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.cd-item span{
  display:block; font-size:.85rem; letter-spacing:.5px; color:#fff; opacity:.9; margin-top:.15rem;
}
/* kleine Bounce-Animation beim Wechsel */
.cd-item b.change{ animation: tick .28s ease; }
@keyframes tick{
  0%{ transform: translateY(0) scale(1); }
  50%{ transform: translateY(-2px) scale(1.04); }
  100%{ transform: translateY(0) scale(1); }
}

/* =========================
   Sonstiges
   ========================= */
hr{ border: 0; height: 1px; background: var(--ring); margin: 1.5rem 0; }
.note{ font-size:.9rem; opacity:.85; text-align:left; }

.centered-content {
  text-align: center;     /* Text mittig */
}

.centered-content img {
  display: block;         /* Bild blocken, um zentrieren zu können */
  margin: 0 auto;         /* horizontal zentrieren */
}

