:root {
  --weinrot: #681d31;
  --rot: #ad2d42;
  --dunkel: #27141a;
  --gold: #f2b544;
  --creme: #fff8ed;
  --beige: #f2e3cf;
  --text: #2c1820;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--creme);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

/* Kopfbereiche */
.start-kopf,
.unterseiten-kopf {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: white;
  background: var(--weinrot);
}

.unterseiten-kopf {
  background:
    linear-gradient(90deg, rgba(61, 16, 33, 0.92), rgba(104, 29, 49, 0.58)),
   
}

/* Wechselnde Bilder im Header */
.titelbild-slider {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.titelbild-slide {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  object-position: center;
  animation: titelbildWechsel 30s infinite;
}

.titelbild-slide:nth-child(1) {
  animation-delay: 0s;
}

.titelbild-slide:nth-child(2) {
  animation-delay: 5s;
}

.titelbild-slide:nth-child(3) {
  animation-delay: 10s;
}

.titelbild-slide:nth-child(4) {
  animation-delay: 15s;
}

.titelbild-slide:nth-child(5) {
  animation-delay: 20s;
}

.titelbild-slide:nth-child(6) {
  animation-delay: 25s;
}

@keyframes titelbildWechsel {
  0%,
  15% {
    opacity: 1;
  }

  16.67%,
  100% {
    opacity: 0;
  }
}

.titelbild-slider::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(61, 16, 33, 0.72),
    rgba(104, 29, 49, 0.25)
  );
}

/* Menü oben rechts */
.navigation {
  position: fixed;
  z-index: 40;
  top: 14px;
  right: 20px;
}

.menue {
  position: static;
}

.menue summary {
  list-style: none;
}

.menue summary::-webkit-details-marker {
  display: none;
}

.menue-button {
  position: relative;
  z-index: 50;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--gold);
  border-radius: 30px;
  color: white;
  background: rgba(61, 16, 33, 0.85);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.menue-button:hover {
  color: var(--weinrot);
  background: var(--gold);
}

.menue-icon {
  font-size: 1.3rem;
}

.menue[open] .menue-icon {
  font-size: 0;
}

.menue[open] .menue-icon::after {
  content: "×";
  font-size: 1.6rem;
}

.menue-overlay {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 100px 20px 30px;
  background: rgba(39, 20, 26, 0.96);
}

.menue-inhalt {
  width: min(650px, 100%);
  padding: 35px;
  border: 1px solid rgba(242, 181, 68, 0.5);
  border-radius: 18px;
  background: var(--weinrot);
  text-align: center;
}

.menue-inhalt a {
  display: block;
  padding: 11px;
  color: white;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: bold;
  text-decoration: none;
}

.menue-inhalt a:hover {
  color: var(--gold);
}

/* Allgemeine Bereiche */
.hero,
section {
  width: min(1000px, calc(100% - 40px));
  margin: auto;
}

.hero {
  position: relative;
  z-index: 3;
  padding: 180px 0 140px;
}

.hero-copy {
  max-width: 640px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 10px;
}

.hero-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(242, 181, 68, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.galerie-kopf .hero {
  text-align: center;
}

.galerie-kopf .hero-text {
  margin-right: auto;
  margin-left: auto;
}

.untertitel,
.abschnitt-titel {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.1;
}

h1 {
  margin: 12px 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 span {
  color: var(--gold);
}

h2 {
  margin-top: 0;
  color: var(--weinrot);
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.hero-text {
  max-width: 480px;
  font-size: 1.2rem;
}

section {
  padding: 85px 0;
}

section > p:not(.abschnitt-titel) {
  max-width: 720px;
  font-size: 1.1rem;
}

.button,
.karten-button {
  display: inline-block;
  margin-top: 15px;
  padding: 14px 24px;
  border-radius: 30px;
  color: #3d1021;
  background: var(--gold);
  font-weight: bold;
  text-decoration: none;
}

.text-link {
  color: var(--weinrot);
  font-weight: bold;
  text-decoration: none;
}

/* Figuren */
.figuren-bereich,
.termine-bereich,
.werte-bereich {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - 1000px) / 2));
  padding-left: max(20px, calc((100% - 1000px) / 2));
}

.werte-bereich {
  background: var(--beige);
}

.figuren-bereich {
  background: var(--beige);
}

.werte-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 35px;
}

.wert-card {
  padding: 28px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(39, 20, 26, 0.06);
}

.wert-symbol {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border: 1px solid rgba(104, 29, 49, 0.18);
  border-radius: 50%;
  color: var(--weinrot);
  background: rgba(242, 181, 68, 0.12);
  font-size: 1.5rem;
}

.wert-card h3 {
  margin: 0 0 10px;
  color: var(--weinrot);
}

.wert-card p {
  margin: 0;
}

.karten {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 35px;
}

.karte {
  min-height: 290px;
  padding: 32px;
  border-radius: 18px;
  color: white;
}

.fender {
  background: #2a4447;
}

.hexen {
  background: var(--rot);
}

.symbol {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.8rem;
}

.karten-button {
  color: var(--weinrot);
  background: white;
}

/* Unterseiten */
.zwei-spalten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.seiten-bild {
  width: 100%;
  min-height: 320px;
  border-radius: 16px;
  object-fit: cover;
}

/* Bildergalerie */
.galerie-auswahl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}

.filter-button {
  padding: 11px 18px;
  border: 1px solid var(--gold);
  border-radius: 25px;
  color: var(--weinrot);
  background: var(--gold);
  font-weight: bold;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.aktiv {
  color: white;
  background: var(--weinrot);
}

.bildergalerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.galerie-bild {
  width: 100%;
  height: 250px;
  border-radius: 14px;
  cursor: zoom-in;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.galerie-bild:hover {
  transform: scale(1.03);
}

.galerie-bild.versteckt {
  display: none;
}

/* Termine */
.termine-bereich {
  color: white;
  background: #2a4447;
}

.termine-bereich h2 {
  color: white;
}

.termin {
  display: flex;
  gap: 25px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.termin:last-of-type {
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.datum {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 90px;
  color: var(--gold);
}

.datum strong {
  font-size: 2.8rem;
}

.datum span {
  font-size: 0.8rem;
  font-weight: bold;
}

.termin h3,
.termin p {
  margin: 0;
}

.termin p {
  color: rgba(255, 255, 255, 0.75);
}

.button-hell {
  color: var(--weinrot);
  background: white;
}

.social-seiten-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 30px;
  align-items: center;
}

.social-seiten-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(100px, 12vw, 150px);
  height: clamp(100px, 12vw, 150px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 0.2s ease;
}

.social-seiten-links a:hover {
  transform: translateY(-2px) scale(1.04);
}

.social-seiten-links img {
  display: block;
  width: clamp(90px, 10vw, 130px);
  height: clamp(90px, 10vw, 130px);
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.social-seiten-links a:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 12px rgba(104, 29, 49, 0.18));
}

.social-seiten-links a:last-child img {
  width: clamp(112px, 12vw, 150px);
  height: clamp(112px, 12vw, 150px);
  transform: translateY(2px);
}

/* Kontakt */
.kontakt-daten {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 35px 0;
}

.kontakt-daten div {
  padding: 25px;
  border-radius: 14px;
  background: var(--beige);
}

.kontakt-daten p {
  margin-bottom: 0;
}

.kontakt-daten a {
  color: var(--weinrot);
  font-weight: bold;
}

/* Instagram-Button */
.instagram-button {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: #000000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s, background 0.2s;
}

.instagram-button:hover {
  background: white;
  transform: scale(1.08);
}

.instagram-button img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Großes Bild über der Webseite */
.bild-popup {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: none;
  place-items: center;
  padding: 70px 25px 25px;
  background: rgba(0, 0, 0, 0.92);
}

.bild-popup.aktiv {
  display: grid;
}

.bild-popup img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 100px);
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.popup-schliessen {
  position: absolute;
  z-index: 100000;
  top: 16px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(104, 29, 49, 0.9);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.popup-schliessen:hover {
  color: var(--weinrot);
  background: var(--gold);
}

body.bild-offen .navigation {
  z-index: 1;
  pointer-events: none;
}

/* Footer */
footer {
  padding: 28px 20px;
  color: #f7e6cf;
  text-align: center;
  background: var(--dunkel);
}

footer p {
  margin: 0;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Smartphones */
@media (max-width: 700px) {
  h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  .start-kopf,
  .unterseiten-kopf {
    min-height: 400px;
  }

  .navigation {
    top: 10px;
    right: 12px;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .karten,
  .bildergalerie,
  .zwei-spalten,
  .kontakt-daten,
  .werte-grid {
    grid-template-columns: 1fr;
  }

  .seiten-bild {
    min-height: 240px;
  }

  .menue-inhalt {
    padding: 25px 15px;
  }

  .instagram-button {
    right: 12px;
    bottom: 12px;
  }

  .bild-popup {
    padding: 65px 12px 12px;
  }

  .popup-schliessen {
    top: 10px;
    right: 12px;
  }
}