/* styles.css */



@font-face {
  font-family: 'Miso';
  src: url('fonts/miso-light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: 'Miso';
  src: url('fonts/miso-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Vinyl';
  src: url('fonts/vinyl.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #8fae81;
  --primary-dark: #6d8b61;
  --secondary: #6c4f31;
  --accent: #d4a762;
  --text: #2e2e2e;
  --background: #f8f0e0;
  --background-light: #f5f9f3;
  --card-bg: #fffdf7;
}




/* Transparenz / Hintergrund */

body {
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('hintergrundbild_alsterdrei.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* Wichtig: Kein fixed auf Mobilgeräten */
  opacity: 0.3;
  z-index: -1;
  
  /* Optimierung für Mobilgeräte */
  @media (max-width: 768px) {
    background-attachment: initial; /* Verhindert Zoomeffekte */
    background-size: contain; /* ODER: 'cover' je nach Bild */
    background-position: top center;
  }
}



/* Transparenz der Kacheln */
.tile {
  background-color: rgba(255, 253, 247, 0.85); /* Leichte Transparenz */
  backdrop-filter: blur(2px); /* Optional: Leichter Weichzeichner für Glaseffekt */
}

/* Anpassung für die große Kachel */
.large-tile {
  background: rgba(248, 240, 224, 0.2) !important; /* Leichter Glas-Effekt (Farbe anpassbar) */
  backdrop-filter: blur(12px) saturate(180%); /* Weicher, "frostiger" Look */
  border: 1px solid rgba(255, 255, 255, 0.2) !important; /* Dünne Lichtkante */
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.1), /* Subtiler Schatten */
    inset 0 1px 1px rgba(255, 255, 255, 0.3) !important; /* Lichtreflex innen */
  border-radius: 16px; /* Abgerundete Ecken beibehalten */
}

/* Anpassung für Kontakt-Info */
.contact-info {
  background: linear-gradient(135deg, rgba(108, 79, 49, 0.9), rgba(90, 62, 34, 0.9));
}

/* Anpassung für Produkt-Container */
.product-container {
  background-color: rgba(255, 253, 247, 0.85);
}


/* Transparenz für die Info-Kästchen */
.info-box {
  background-color: rgba(255, 253, 247, 0.15) !important; /* Fast unsichtbar */
  backdrop-filter: blur(6px);
  border: none !important;
  box-shadow: none !important;
}

/* Text in den Info-Boxen hervorheben */
.info-box p, .info-box i {
  color: var(--secondary) !important; /* Brauntöne passen zum Natur-Look */
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

/* Icons anpassen */
.info-box i {
  opacity: 0.9; /* Leicht transparent */
  font-size: 2rem !important;
}



/* ===== GLOBALE STYLES ===== */


body {
  font-family: 'Miso', 'Inter', sans-serif; /* 'Miso Light' → 'Miso' */
  font-weight: 300; /* Light als Standard */
  margin: 0;
  padding: 0;
  background-color: var(--background);
  color: var(--text);
  font-size: 1.2rem; /* 20% größer */
  line-height: 1.6; /* Für bessere Lesbarkeit */
}

/* Bold Elemente */
strong, b, h1, h2, h3 {
  font-weight: 700; /* Erzwingt die Bold-Variante */
  font-family: inherit; /* Vererbt die Miso-Familie */
}

header {
  background-color: var(--primary);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
  font-family: 'Miso', 'Inter', sans-serif; /* 'Miso Light' → 'Miso' */
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  letter-spacing: 0.3px;
  text-align: left;
  line-height: 1.4;
  margin: 0; /* Wichtig, um Standardabstände zu entfernen */
}



header h1::after {
  content: none;
}


/* Bei sehr kleinen Screens */
@media (max-width: 480px) {
  .header h1 {
    font-size: 0.95rem;
    line-height: 1.3;
  }
}


main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

footer {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 1.5rem;
  margin-top: 4rem;
  font-size: 1.1rem; /* Vorher 0.9rem (deutliche Vergrößerung) */
  line-height: 1.6; /* Bessere Lesbarkeit durch Zeilenabstand */
}

footer a {
  color: white;
  text-decoration: underline;
  padding: 0 0.5rem; /* Etwas mehr Abstand zwischen Links */
  font-size: 1.1rem; /* Gleichgroß wie der übrige Text */
  transition: opacity 0.3s ease;
  font-weight: 500; /* Leicht dickere Schrift für Links */
}

footer a:hover {
  opacity: 0.8;
  /* Unterstreichung bleibt erhalten (wie in Ihrem Original) */
}

footer a:hover {
  opacity: 0.8;
  text-decoration: underline; /* Bleibt unterstrichen */
}


/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
 font-family: 'Vinyl', 'Playfair Display', serif; /* Vinyl als primäre Schrift */
  color: var(--primary-dark);
  margin-top: 0;
  letter-spacing: 0.5px; /* Optional: Für bessere Lesbarkeit */
}

/* Ausnahme für Kontakt-Box */
.contact-info h2,
.contact-info h3 {
  color: white !important; 
  font-family: 'Vinyl', 'Playfair Display', serif !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}


h1 {
  font-size: 2rem;
  text-align: center;
  position: relative;
  margin-bottom: 2rem;
}

h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent);
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.3rem;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* ===== KOMPONENTEN ===== */
/* Back-Link */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.back-link i {
  margin-right: 5px;
}

/* Logo */
.logo {
  max-width: 300px;
  display: block;
  margin: 2rem auto;
}

/* Kacheln */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tile {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(142, 174, 129, 0.2);
  position: relative;
  overflow: hidden;
}

.tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.tile h3 {
  margin-top: 0;
  color: var(--primary-dark);
  font-family: 'Vinyl', 'Playfair Display', serif !important; /* !important um sicherzugehen */
  font-size: 1.4rem;
  position: relative; /* WICHTIG: muss auf relative gesetzt sein */
  padding-bottom: 0.5rem; /* Platz für den Unterstrich */
}

.tile h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}
/* Buttons */
.cta-button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  margin-top: 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  text-align: center;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cta-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Info-Boxen */
.info-box {
  background: var(--card-bg);
  padding: 1.5rem 1rem;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(142, 174, 129, 0.2);
}

.info-box:hover {
  transform: scale(1.03);
}


/* Farbe der Icons in den Info-Boxen */

.info-box i {
  color: var(--primary-dark) !important; /* definierte dunklere Grüntönung (#6d8b61) */
  opacity: 0.9;
  font-size: 2,2 rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1); /* Leichter Schatten für Tiefe */
  margin-bottom: 0.8rem;
}


/* ===== SEITENSPEZIFISCHE STYLES ===== */
/* Startseite */
.large-tile {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  background-color: #e7efe0;
  border-radius: 16px;
  padding: 2rem;
  margin-top: 3rem;
  background-image: linear-gradient(to bottom right, #e7efe0, #d4e3c8);
  border: 1px solid rgba(142, 174, 129, 0.3);
}

.contact-info {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--secondary), #5a3e22);
  color: white;
  padding: 2.5rem;
  border-radius: 16px;
  margin-top: 3rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Apfelsaft-Seite */
.product-container {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
  margin: 2rem auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(142, 174, 129, 0.2);
}

.price-tag {
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
  font-weight: bold;
  margin: 1rem 0;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.benefit-item {
  text-align: center;
  padding: 1rem;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
}


.benefit-item i {
  color: var(--primary-dark) !important; /* Grün statt Schwarz */
  font-size: 2rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.benefit-item:hover i {
  transform: scale(1.1); /* Leichter Hover-Effekt */
}



/* Flohmarkt-Seite */
.flohmarkt-container {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin: 2rem auto;
  max-width: 800px;
  border: 1px solid rgba(142, 174, 129, 0.2);
}

.termin-item {
  background-color: var(--background-light);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0 8px 8px 0;
  transition: transform 0.3s ease;
}

.termin-item:hover {
  transform: translateX(5px);
}

.no-termine {
  text-align: center;
  padding: 2rem;
  color: var(--secondary);
  font-style: italic;
}

.contact-box {
  background: linear-gradient(135deg, var(--secondary), #5a3e22);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.contact-box h3 {
  color: white !important;
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.contact-box a {
  color: var(--accent) !important; /* Goldener Farbton */
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.contact-box a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Impressum-Seite */
.impressum-title {
  font-family: 'Inter', sans-serif;
  text-align: left;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
}

.impressum-subtitle {
  color: var(--secondary);
  font-family: 'Inter', sans-serif;
}

.impressum-text {
  line-height: 1.7;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 600px) {
  header {
    font-size: 1rem;
    height: 50px;
  }
  
  .logo {
    max-width: 200px;
  }
  
  .tile {
    padding: 1.2rem;
  }
  
  .large-tile {
    grid-template-columns: 1fr 1fr;
    padding: 1.5rem;
  }
  
  .product-container,
  .flohmarkt-container {
    padding: 1.5rem;
  }
  
  .benefits {
    grid-template-columns: 1fr;
  }
}

/* ===== IMPRESSUM-SEITE ===== */
body.impressum-page {
  background-color: white !important; /* Erzwingt weißen Hintergrund */
}

body.impressum-page main {
  background: white; /* Hauptbereich ebenfalls weiß */
  padding: 2rem;
  max-width: 800px;
  margin: 2rem auto; /* Zentriert den Inhalt */
  box-shadow: none; /* Entfernt Schatten falls vorhanden */
  border: none; /* Entfernt Rahmen falls vorhanden */
}



/* Zusätzliche Icons für Heu-Seite */

.benefit-item i.fa-seedling {
  color: var(--primary);
}

.benefit-item i.fa-hand-paper {
  color: var(--secondary);
}

/* Optischer Heu-Akzent z. B. auf Preis-Tag */
.price-tag {
  background-color: var(--background-light);
  border: 1px solid var(--primary);
  color: var(--primary-dark);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 1rem;
}

.verfuegbar-hinweis {
  font-weight: 700;
  color: #2E7D32;
  margin-bottom: 1rem;
  text-align: center;
}


.product-variations {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.product-variations figure {
  flex: 1 1 200px;
  max-width: 220px;
  text-align: center;
  background-color: var(--card-bg);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-variations img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.product-variations figcaption {
  font-weight: 600;
  color: var(--primary-dark);
}



.heu-varianten {
  display: flex;
  flex-wrap: wrap; /* Damit Produkte umbrechen, wenn es zu viele sind */
  gap: 1rem; /* Abstand zwischen den Produkten */
}

.heu-item {
  flex: 1 1 calc(50% - 1rem); /* Etwa 50% der Breite minus Lücke */
  box-sizing: border-box;
}


.heu-item .product-image {
 //width: 100%;               /* Bild soll die Breite des Containers ausfüllen */
 //max-width: 250px;          /* max Breite für Bilder (anpassbar) */
  //height: auto;
  width: 150px;               /* Bild soll die Breite des Containers ausfüllen */
  height: 150px;          /* max Breite für Bilder (anpassbar) */
  border-radius: 50%;        /* macht das Bild rund */
  border: 5px solid rgba(212, 167, 98, 0.7); /* sanfter, goldener Rahmen */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);   /* leichter Schatten für Tiefe */
  object-fit: cover;         /* Bild wird gut skaliert und zugeschnitten */
  display: block;
  margin: 0 auto 1rem;       /* zentriert das Bild und Abstand nach unten */
  transition: transform 0.3s ease; /* sanfte Animation beim Hover */
}

/* Optional: beim Hover leicht vergrößern */
.heu-item .product-image:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* Überschrift zentrieren */
.heu-item .product-title {
  text-align: center;
  margin-bottom: 0.5rem; /* etwas Abstand nach unten */
}