/* =========================================
0. Reset & Box-Modell
========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

/* =========================================
1. Schriftarten
========================================= */

@font-face {
  font-family: 'Norbert-Breit-Normal-Kursiv';
  src: url('fonts/Norbert-Breit-Normal-Kursiv.woff2') format('woff2'),
       url('fonts/Norbert-Breit-Normal-Kursiv.woff') format('woff');
  font-style: italic;
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Solway-Regular';
  src: url('fonts/Solway-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* =========================================
2. Farbvariablen
========================================= */

:root {
  --lato-gruelb: rgb(218, 226, 0);
  --lato-orange: rgb(255, 103, 77);
  --lato-tabube: rgb(88, 109, 114);

  --text-light: #ffffff;
  --text-dark: #1a1a1a;
  --text: rgb(27,27,25);
  --overlay-dark: rgba(0, 0, 0, 0.45);
  --links-hover: #333331;
}

/* =========================================
3. Grundlayout & Hintergrund
========================================= */

body {
  display: flex;
  flex-direction: column;
  font-family: 'Solway-Regular', serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--lato-gruelb);
  background-image: url('/layout/Kurve.png');
  background-repeat: repeat;
  /*background-size: 200px auto;*/
  background-attachment: fixed;
  position: relative;
}

/* =========================================
Anpassung für die Weinflasche unten rechts
========================================= */

/* Da dies auf allen Seiten erscheinen soll, fügen wir es
   am besten direkt im Body als Pseudo-Element hinzu */
body::after {
  content: "";
  display: block;
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 150px; /* Größe anpassen */
  height: 200px; /* Größe anpassen */
  background-image: url('/layout/Weinflasche_und_Glas.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  z-index: 10; /* Stellt sicher, dass es über dem Inhalt liegt */
  pointer-events: none; /* Verhindert, dass man versehentlich darauf klickt */
}
/* =========================================
4. Typografie
========================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Norbert-Breit-Normal-Kursiv', serif;
  font-weight: normal;
  font-style: italic;

  margin: 0 0 0.75rem;
  color: var(--text);
}
/* Spezifische Farbe für die Texte in der Card */
.card .text, .card h2 {
  color: var(--text);
}
p {
  margin: 0 0 1rem;
}

/* =========================================
5. Seitenstruktur (Flexbox)
========================================= */

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* =========================================
6. Zentrale Karte
========================================= */

.card {
  width: 100%;
  max-width: 380px;
  padding: 2rem 1.75rem;
  margin-bottom: 1.5rem;

  
  border-radius: 50px;
  text-align: center;
}

/* =========================================
7. Logo
========================================= */

.logo {
  width: 180px;
  height: auto;
  margin-bottom: 1rem;
}

/* =========================================
8. Aktionslinks (Buttons)
========================================= */

.links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Geändert: border-radius auf 0px gesetzt (Eckig) */
.links a, .event-link a {
  display: block;
  background-color: var(--text);
  color: var(--text-light);
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 50px; 
  font-family: 'Solway-Regular', serif;
  font-weight: 400;
  font-size: 0.95rem;
  transition: transform 0.1s ease, background-color 0.2s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.links a:hover, .event-link a:hover {
  background-color: car(--links-hover);
  transform: translateY(-2px);
  opacity: 1;
  color: var(--text-light);  
}

.links a:active, .event-link a:active {
  transform: translateY(0);
}

/* =========================================
9. Footer
========================================= */

.footer {
  margin-top: auto;
  text-align: center;
  padding: 1rem 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.social img {
  height: 28px;
  width: auto;
  filter: brightness(0) opacity(0.8);
  transition: opacity 0.2s ease;
}

.legal {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.legal a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.7;
}

.legal a:hover {
  text-decoration: underline;
  opacity: 1;
}

.legal span {
  margin: 0 0.3rem;
  color: var(--text);
  opacity: 0.5;
}

/* =========================================
10. Responsive Feinschliff
========================================= */

@media (max-width: 480px) {
  .card {
    padding: 1.5rem 1.25rem;
  }

  .logo {
    width: 150px;
  }
}

@media (max-height: 600px) {
  .page {
    padding: 1rem 1rem;
    justify-content: flex-start;
  }
}

#event-section {
  transition: opacity 0.5s ease;
}