:root {
  --plum: #4a2c45;
  --rose: #c4617f;
  --blush: #f6e6eb;
  --paper: #fffafb;
  --ink: #2e2230;
  --line: #e6cdd6;
  /* Durchsichtige Karten: Alpha-Wert (0 = unsichtbar, 1 = deckend) */
  --card-bg: rgba(255, 250, 251, 0.55);
  --card-border: rgba(230, 205, 214, 0.5);
}

/* ---------- Globales Styling ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 150px;
}
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  padding-top: 140px;
  padding-bottom: 84px;
}
h1, h2, h3, .gallery-title {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--plum);
  line-height: 1.25;
}
a {
  color: var(--rose);
}
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 130px;
  color: #fff;
  background: linear-gradient(rgba(74, 44, 69, 0.45), rgba(74, 44, 69, 0.55)),
              url("bilder/header.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #fff;
}
.brand strong {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand span {
  font-size: 0.92rem;
  opacity: 0.92;
}

/* ---------- Dropdown-Menü ---------- */
.menu {
  position: relative;
}
.menu summary {
  list-style: none;
  cursor: pointer;
  background: var(--rose);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  user-select: none;
}
.menu summary::after {
  content: " \25BE";
}
.menu[open] summary::after {
  content: " \25B4";
}
.menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  margin: 0;
  padding: 8px;
  list-style: none;
  min-width: 240px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(74, 44, 69, 0.3);
  border: 1px solid var(--line);
}
.menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--plum);
  font-weight: 500;
}
.menu li a:hover, .menu li a[aria-current="page"] {
  background: var(--blush);
  color: var(--rose);
}
.menu li.sep {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 6px;
}

/* ---------- Hauptinhalt & Grid ---------- */
main {
  padding: 28px 20px 40px;
  min-height: 100vh;
  position: relative;
  background: transparent;
}

/* Der Hintergrundbild-Trick für exakte Stabilität */
main::before {
  content: "";
  position: fixed;
  top: 140px;
  left: 0;
  width: 100%;
  height: calc(100vh - 140px);
  z-index: -1;
  background-image: linear-gradient(rgba(255, 250, 251, 0.4), rgba(255, 250, 251, 0.4)),
                    url("bilder/hintergrund.jpg");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: contain;
}

main > * {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

main h1 {
  font-size: 1.9rem;
  margin-top: 0.2em;
}

/* ---------- Karten & Badges ---------- */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 18px 0;
}
.lead {
  font-size: 1.1rem;
}
.badge {
  height: 92px;
  width: auto;
  margin-top: 10px;
}

/* ---------- NEU: Häkchen für die Vorteile-Liste ---------- */
ul.check {
  list-style: none;
  padding-left: 5px;
}
ul.check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 1.05rem;
}
ul.check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--rose);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ---------- KORREKTUR: Preistabelle ---------- */
table.preise {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
}
.preise td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.preise tr:last-child td {
  border-bottom: none;
}
.preise td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--plum);
  white-space: nowrap;
}
.preise tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.15);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  margin: 8px 0;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.btn.alt {
  background: var(--plum);
}

/* ---------- Footer ---------- */
.site-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--plum);
  color: #f3e3ea;
  font-size: 0.86rem;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.4;
}
.site-footer a {
  color: #fff;
}
.site-footer .copy {
  opacity: 0.8;
}

/* ---------- Bildergalerie ---------- */
.gallery-title {
  text-align: center;
  margin-bottom: 2rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 max(20px, 4vw);
}
.gallery li {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: #fff;
  animation: fadeIn 0.6s ease-out both;
}
.gallery figure {
  position: relative;
  margin: 0;
  padding: 0;
  height: 100%;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.gallery figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  padding: 20px 15px 15px;
  font-size: 0.95rem;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hover-Effekt (Desktop) */
@media (hover: hover) {
  .gallery figure:hover img {
    transform: scale(1.08);
  }
  .gallery figure:hover figcaption {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Touch-Effekt (Mobile) */
@media (hover: none) {
  .gallery figcaption {
    opacity: 1;
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    font-size: 0.85rem;
  }
}

/* ---------- Responsive Breakpoints (Mobile) ---------- */
@media (max-width: 768px) {
  body {
    padding-top: 112px;
    padding-bottom: 0;
  }
  html {
    scroll-padding-top: 125px;
  }
  .site-header {
    height: 104px;
    padding: 0 12px;
  }
  .brand strong {
    font-size: 1.2rem;
  }
  .brand span {
    font-size: 0.78rem;
  }
  .menu summary {
    padding: 9px 14px;
  }
  main h1 {
    font-size: 1.55rem;
  }
  .card {
    padding: 16px;
  }
  
  /* Footer scrollt mobil mit – blockiert keinen Platz */
  .site-footer {
    position: static;
    margin-top: 40px;
    padding: 20px 12px;
  }
  
  /* Preistabellen werden auf kleinen Handys scrollbar */
  table.preise {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Keyframes ---------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Zentrierung und Begrenzung der Preistabelle im Browser */
table.preise {
  max-width: 600px;  /* Gleiche Breite wie die Vorteile- und Info-Karten */
  margin-left: auto; /* Erzeugt links denselben Abstand wie rechts -> perfekt zentriert */
  margin-right: auto;
}

