/* ===============================
   Farbvariablen & Grundwerte
=============================== */
:root {
  --dunkel: #2a3133;
  --gruen: #164430;
  --gold: #bf9a23;
  --hell: #7b8d92;
  --weiß-transparent: rgba(255, 255, 255, 0.95);

  --font-size-base: clamp(16px, 1.1vw, 20px);
  --radius: 8px;
  --shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===============================
   Basislayout
=============================== */
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--dunkel);
  /* Hintergrundbild mit responsiver Größe */
  background: url('assets/images/Karte_1_bw.jpg') center / cover fixed no-repeat;
  background-color: #e8e4dc; /* Fallback-Farbe */
}

/* ===============================
   Barrierefreiheit
=============================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
  transition: top 0.3s ease;
}
.skip-link:focus {
  top: 0;
}

/* ===============================
   Header & Navigation
=============================== */
.site-header {
  background-color: var(--dunkel);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  box-sizing: border-box;
}

.logo {
  width: 180px;
  height: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover,
nav a:focus {
  text-decoration: underline;
}

/* ===============================
   Struktur & Layout
=============================== */
.section {
  padding: 4rem 2rem;
}
section + section {
  margin-top: 4rem;
}

/* Einheitlicher Box-Stil */
.section-box {
  background: var(--weiß-transparent);
  border: 1px solid #ccc;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

/* ===============================
   Hero-Bereich
=============================== */
.hero {
  position: relative;
  text-align: center;
  margin-top: 8rem;
}

.hero-text {
  position: relative;
  z-index: 2;
  color: white;
  background: rgba(22, 68, 48, 0.9);
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 90%;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-top: 1rem;
  display: block;
  opacity: 0.9;
}

/* ===============================
   Buttons
=============================== */
.cta-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--gold);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.cta-button:hover,
.cta-button:focus {
  background-color: #a7821a;
}

/* ===============================
   CTA-Abschnitt
=============================== */
.cta-section {
  text-align: center;
  padding: 3rem 1rem;
}
.cta-text {
  display: inline-block;
  background: rgba(22, 68, 48, 0.85);
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  color: white;
  max-width: 700px;
}

/* ===============================
   Slider
=============================== */
.slider-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.slider-text {
  text-align: center;
}
.slider-container {
  overflow: hidden;
}
.slider-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease;
}
.slider-track img {
  width: calc((100% - 2rem) / 3);
  border-radius: var(--radius);
  object-fit: cover;
}
/* ===============================
   Buchcover Hover + Tap
=============================== */
.book-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.book-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.book-item figcaption {
  position: absolute;
  inset: 0;
  background-color: rgba(22, 68, 48, 0.9); /* halbtransparentes Grün */
  color: #fff;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1rem;
  transition: opacity 0.4s ease;
}

/* Desktop: Hover */
.book-item:hover img {
  transform: scale(1.05);
}
.book-item:hover figcaption {
  opacity: 1;
}

/* Mobil / Klick / Fokus */
.book-item:focus-within figcaption,
.book-item:active figcaption,
.book-item:focus figcaption {
  opacity: 1;
}
.book-item:focus-within img,
.book-item:active img,
.book-item:focus img {
  transform: scale(1.05);
}

/* Responsiv: Text kleiner auf kleinen Geräten */
@media (max-width: 600px) {
  .book-item figcaption {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
}


/* ===============================
   Infosektionen
=============================== */
.info-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.info-text {
  text-align: center;
}

/* Dunkle Variante */
#inhalt-gravertbuecher {
  background-color: var(--dunkel);
  color: white;
  border-radius: var(--radius);
}

#inhalt-gravertbuecher .info-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

#inhalt-gravertbuecher .info-text {
  background: var(--weiß-transparent);
  color: var(--dunkel);
}

/* ===============================
   Vorstand-Kacheln
=============================== */
.vorstand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.kachel {
  background: #f5f5f5;
  border-radius: var(--radius);
  padding: 15px;
  text-align: center;
  box-shadow: var(--shadow);
}
.kachel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

/* ===============================
   Abbildungen
=============================== */
figure {
  text-align: center;
  margin: 2rem auto;
  max-width: 90%;
}

figure img {
  display: block;
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

figcaption {
  font-size: 0.9rem;
  color: var(--hell);
  margin-top: 0.5rem;
}


/* ===============================
   Formulare
=============================== */
form {
  max-width: 800px;
  margin: 0 auto;
}
label {
  font-weight: bold;
}
input,
textarea,
select {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

/* Bestellformular-Hintergrund */
#bestellung {
  background-color: rgba(22, 68, 48, 0.9); /* Grün mit 0.9 Transparenz */
  color: white;
  border-radius: 8px;
  padding: 2rem;
  font-family: sans-serif;
}

/* Formularcontainer */
#bestellformular {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Produktkarten */
.produktauswahl {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.produktkarte {
  background-color: var(--weiß-transparent);
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 180px;
  padding: 0.5rem;
  text-align: center;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.produktkarte img {
  width: 70%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.produktkarte .produktinfo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  color:#2a3133
}

.produktkarte input[type="number"] {
  width: 50px;
  padding: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  font-family: inherit;
}

/* Formularzeilen */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Labels direkt über Input */
.form-row label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

/* Inputs, Selects, Textareas */
.form-row input,
.form-row select,
.form-row textarea {
  flex: 1 1 150px;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-family: inherit;
}

/* Flex für bestimmte Zeilen (Anrede/Vorname/Nachname, PLZ/Ort, Telefon/E-Mail) */
.form-row.flex-three {
  display: flex;
  gap: 1rem;
}

.form-row.flex-two {
  display: flex;
  gap: 1rem;
}

/* Hinweistext für Telefon/E-Mail */
.form-row small {
  flex-basis: 100%;
  color: #ffd700;
  font-style: italic;
  margin-top: -0.5rem;
}

/* CTA-Button */
#bestellformular button {
  padding: 0.75rem 1.5rem;
  background-color: var(--gold);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#bestellformular button:hover,
#bestellformular button:focus {
  background-color: #a7821a;
}

/* Responsive: auf Mobil untereinander */
@media (max-width: 768px) {
  .form-row.flex-three,
  .form-row.flex-two {
    flex-direction: column;
  }
}



/* Kontaktformular */
#kontakt{
  background: rgba(22, 68, 48, 0.8);
  color: white;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

/* Bestellkarten */
.produktauswahl {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.produktkarte {
  background: var(--weiß-transparent);
  border: 1px solid #ccc;
  border-radius: var(--radius);
  width: 160px;
  padding: 0.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.produktkarte img {
  width: 80%;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* ===============================
   Footer
=============================== */
footer {
  background-color: var(--dunkel);
  color: white;
  text-align: center;
  padding: 1rem;
}
footer a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* ===============================
   Responsive Design
=============================== */
@media (max-width: 768px) {
  .hero-text {
    font-size: 0.95rem;
  }
  .slider-track img {
    width: 80%;
  }
  .info-section {
    flex-direction: column;
  }
  .produktkarte {
    width: 80%;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 1rem;
  }
}
