/* =========================================================
   UNIVERSAL STYLESHEET – Jürgen Heinz Werner Schulze
   Gültig für: Startseite, Über mich, Bücher, Welt & Kulinarik
   ========================================================= */

/* 1. GRUNDLAYOUT & TYPOGRAFIE */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  color: #222;
  background-color: #fff;
}

/* 2. KOPFBILD / BANNER */
.header-banner {
  text-align: center;
  margin-bottom: 25px;
}

.header-banner img {
  max-width: 650px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: inline-block;
}

/* 3. NAVIGATION (MEHRSTUFIGES AUFKLAPPMENÜ) */
/* --- BASIS-LEISTE --- */
.nav-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-bar > ul {
  display: flex;
  background-color: #EFEFEF; /* Deine Menüleisten-Hintergrundfarbe */
}

.nav-bar li {
  position: relative; /* Dreh- und Angelpunkt für alle Unterebenen */
}

.nav-bar a {
  display: block;
  padding: 4px 12px;
  color: #000000;
  text-decoration: none;
  white-space: nowrap; /* Verhindert hässliche Zeilenumbrüche im Menü */
}

.nav-bar a:hover {
  background-color: #00FFFF;
}

/* --- VERSTECKEN ALLER UNTERLISTEN --- */
.nav-bar ul ul {
  display: none;
  position: absolute;
  min-width: 220px;
  background-color: #eeeeee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  overflow: visible; /* Wichtig: Verhindert das Abschneiden seitlicher Menüs */
}

/* --- EBENE 1 (Vertikal nach unten aufklappen: "Die Welt") --- */
.nav-bar > ul > li > ul {
  top: 100%;
  left: 0;
}

/* --- EBENE 2 (Seitlich nach rechts aufklappen: "Südamerika", "Mittelamerika") --- */
.nav-bar ul ul li > ul {
  top: 0;
  left: 100%;
}

/* --- EBENE 3 & 4 (Bundesstaaten: Brasilien etc. – mit Höhenbegrenzung & Scrollbar) --- */
.nav-bar ul ul ul ul {
  top: 0;
  left: 100%;
  max-height: 75vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* --- SICHTBAR MACHEN BEI HOVER (NUR DIREKTE KINDER) --- */
.nav-bar li:hover > ul {
  display: block;
}
/* Kompaktere Einträge in den Untermenüs */
.nav-bar ul ul a {
  padding: 5px 12px;
}
/* Kompakte Abstände in allen Untermenü-Ebenen */
.nav-bar ul ul a,
.nav-bar ul ul ul a,
.nav-bar ul ul ul ul a {
  padding-top: 4px;
  padding-bottom: 4px;
  line-height: 1.3;
}
.nav-bar > ul {
  display: flex;
  justify-content: center;
  background-color: #EFEFEF;
}

/* 4. BUCHKASTEN & PROMINENTE BLICKFÄNGE (HERO)
   Funktioniert für: .hero (Startseite) UND .book-hero (Über mich) */
.hero, .book-hero {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 45px;
  background-color: #fafafa;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.hero-text, .book-text {
  flex: 1 1 320px;
  min-width: 280px;
}

.hero-text h1, .book-title {
  font-size: 2rem;
  margin: 0 0 5px 0;
  color: #111;
}

.tagline, .book-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: #c0392b;
  margin-top: 0;
  margin-bottom: 20px;
}

.hero-img, .book-cover {
  flex: 0 0 220px;
  max-width: 220px;
  text-align: center;
  margin: 0 auto;
}

.hero-img img, .book-cover img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  display: block;
}

/* 5. TEXT- & INHALTSBEREICHE (FÜR KONTINENTE, REISEN & KULINARIK) */
.content-section, .bio-section {
  margin-top: 40px;
}

.content-section h2, .bio-section h2 {
  font-size: 1.6rem;
  color: #111;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
  margin-top: 35px;
}

.content-section h3 {
  font-size: 1.25rem;
  color: #222;
  margin-top: 25px;
}

.feature-list {
  padding-left: 20px;
  line-height: 1.8;
}

.feature-list li {
  margin-bottom: 8px;
}

/* Zitatkasten */
.quote-box {
  border-left: 4px solid #c0392b;
  background-color: #fcfcfc;
  padding: 20px 25px;
  margin: 35px 0;
  font-style: italic;
  color: #444;
  border-radius: 0 4px 4px 0;
  border-top: 1px solid #eee;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* Leseproben-Kasten */
.sample-box {
  background-color: #fff;
  border-left: 4px solid #c0392b;
  padding: 20px 25px;
  margin: 30px 0;
  border-radius: 4px;
  border: 1px solid #eee;
  border-left-width: 4px;
}

/* 6. BUTTONS */
.btn {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.95rem;
  margin-top: 10px;
  margin-right: 10px;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #962d22;
}

.btn-secondary {
  background: #333;
}

.btn-secondary:hover {
  background: #111;
}

/* 7. BESTELLBEREICH (E-MAIL-KAUF) */
.order-box {
  margin: 45px 0 20px 0;
  padding: 30px 25px;
  background-color: #fafafa;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
}

.order-details {
  background: #fff;
  max-width: 480px;
  margin: 0 auto 25px auto;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #eee;
  text-align: left;
}

/* 8. BÜCHERKATALOG & PAGINATION (FÜR BUECHER.HTML) */
.book-catalog {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.book-item {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 25px;
  align-items: flex-start;
}

.book-item-cover {
  flex: 0 0 200px;
  text-align: center;
  margin: 0 auto;
}

.book-item-cover img {
  max-width: 190px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.book-item-details {
  flex: 1 1 450px;
}

.language-badges {
  margin: 12px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.78rem;
  font-weight: bold;
  border-radius: 3px;
  background-color: #e9ecef;
  color: #333;
  border: 1px solid #ced4da;
}
.badge-de { background-color: #f8f9fa; }
.badge-en { background-color: #eef2f7; }
.badge-pt { background-color: #eafaf1; border-color: #a3e4d7; color: #117a65; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 45px 0 20px 0;
  align-items: center;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 1px solid #ddd;
  color: #333;
}

.pagination a:hover {
  background-color: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

.pagination .active-page {
  background-color: #2c3e50;
  border-color: #2c3e50;
  color: #fff;
}

/* FUSSZEILE */
.site-footer {
  margin-top: 60px;
  padding: 25px 15px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

.site-footer p {
  margin: 0 0 6px 0;
}

.site-footer .sub-note {
  margin: 0;
  color: #999;
  font-size: 0.8rem;
}

.photo-box {
  margin: 30px auto;
  text-align: center;
  max-width: 640px;
}

.photo-box img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  display: block;
}

.photo-caption {
  font-size: 0.88rem;
  color: #666;
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}

/* =========================================================
   9. LÄNDER- & REGIONEN-KACHELN (FÜR PORTALSEITEN)
   ========================================================= */
.country-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 25px 0 35px 0;
  padding: 0;
  list-style: none;
}

.country-card {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.country-card:hover {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}

.country-code {
  font-size: 0.75rem;
  font-weight: bold;
  background: #e9ecef;
  color: #444;
  padding: 2px 6px;
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease;
}

.country-card:hover .country-code {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.country-card.coming-soon {
  color: #888;
  background: #fdfdfd;
  border-style: dashed;
  cursor: default;
}

.country-card.coming-soon:hover {
  background: #fdfdfd;
  color: #888;
  border-color: #e0e0e0;
}

/* =========================================================
   TYPOGRAFIE & ÜBERSCHRIFTEN (ZENTRAL)
   ========================================================= */
h1, h2, h3, h4 {
  color: #111;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Haupt-Seitentitel */
h1 {
  font-size: 1.75rem;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 25px;
}

/* Große Zwischenüberschriften */
h2 {
  font-size: 1.35rem;
  text-align: left;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
  margin-top: 35px;
}

/* Mittlere Unterabschnitte */
h3 {
  font-size: 1.15rem;
  color: #c0392b;
  text-align: left;
  margin-top: 25px;
}

/* Kleinere Abschnitte / Highlights */
h4 {
  font-size: 1.0rem;
  color: #333;
  text-align: left;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===================================================
   DESKTOP: Checkbox und Icon unsichtbar halten
   =================================================== */
.menu-toggle,
.menu-icon {
  display: none;
}

/* ===================================================
   MOBIL: Schalter aktivieren & Ebenen auflösen
   =================================================== */
@media (max-width: 992px) {
  .nav-bar {
    position: relative;
    background-color: #222;
  }

  .menu-toggle {
    display: none;
  }

  .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 24px;
    padding: 14px 18px;
    cursor: pointer;
  }

  .menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-bar > ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #222;
  }

  .nav-bar a {
    color: #ffffff;
  }

  /* Klick-Aktivierung über Checkbox */
  .menu-toggle:checked ~ ul {
    display: flex;
  }

  .nav-bar ul ul {
    position: static;
    display: block;
    width: 100%;
    box-shadow: none;
    background-color: #1a1a1a;
  }

  .nav-bar ul ul ul {
    position: static;
    background-color: #111;
  }

  .nav-bar ul ul ul ul {
    position: static;
    background-color: #0a0a0a;
    max-height: none;
    overflow-y: visible;
  }

  .nav-bar ul ul a {
    padding-left: 32px;
    font-size: 0.95rem;
  }

  .nav-bar ul ul ul a {
    padding-left: 48px;
    font-size: 0.9rem;
  }

  .nav-bar ul ul ul ul a {
    padding-left: 64px;
    font-size: 0.85rem;
  }

  /* Hamburger-Animation zum Schließen-Kreuz */
  .menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}
.states-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 25px 0;
}

.states-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.states-grid img {
  display: block;
  height: 100px;
  width: auto;
  max-width: 100%;
}