/* ============================================
   IKH BIBERACH - Vollständiges Stylesheet
   Optimiert für Desktop/Mobile, SPA-Navigation
   Farbschema: Erdtöne (Braun/Creme)
   ============================================ */

/* CSS-Variablen - Zentrale Anpassungspunkte */
:root {
--bg: #f7f3eb;          /* Haupt-Hintergrund (Creme) */
--accent: #8b5a2b;      /* Akzentfarbe (Mittelbraun) */
--accent-dark: #5c3b1b; /* Hover/Aktiv (Dunkelbraun) */
--text: #333333;        /* Textfarbe */
--light: #ffffff;       /* Weiß für Kontrast */
--max-width: 960px;       /* Max. Container-Breite */
}

/* Global - Basis für alles */
* { box-sizing: border-box; }
* {
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;  /* Lesbarkeit */
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

/* ========================================
   Header / Navigation 
   Sticky, responsiv mit Burger-Menü
   ======================================= */
header {
  background: linear-gradient(135deg, #c7a17a, #f0e0c8); /* Diagonal-Verlauf */
  border-bottom: 0px solid rgba(0, 0, 0, 0.08);
  position: sticky; top: 0; z-index: 1000;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

/* Logo - Responsiv */
.logo {
  font-weight: 700; letter-spacing: 0.1em; font-size: 1.5rem;
      display: flex; align-items: center; gap: 0.5rem;
}

.logo-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;  /* Rund oder quadratisch: border-radius: 0.25rem; */
  object-fit: contain;   /* Passt Logo in Kreis/Quadrat ohne Verzerrung */
  margin-right: 0.5rem;
  flex-shrink: 0;      /* Verhindert Quetschen */
    }

.logo span:nth-child(2) { opacity: 0.60; }

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

nav a {
  display: block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

nav a:hover,
nav a:focus {
  background: var(--accent-dark);
  color: var(--light);
  border-color: rgba(0, 0, 0, 0.08);
  outline: none;
}

nav a.active {
  background: var(--accent);
  color: var(--light);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Burger-Menü für Mobilgeräte */

.nav-toggle {
  display: none;
  font-size: 2.0rem;           /* ← Gleich Logo-Größe */
  font-weight: 700;
  line-height: 0.0;              /* Striche kompakt */
  cursor: pointer; /* Spezieller Hand-Cursor beim Darüberfahren */
  padding: 0.25rem 0.45rem 0.65rem 0.45rem;
  align-items:center;
  justify-content: flex-end;   /* ← RECHTSBÜNDIG in Button */
  
}

#nav-check {
  display: none;
}

    @media (max-width: 720px) {
      nav ul {
        position: absolute;
        right: 0;
        top: 100%;
        flex-direction: column;
        background: linear-gradient(135deg, #f0e0c8, #f7f3eb);
        padding: 0.5rem 0.75rem 0.75rem;
        margin: 0.3rem 0.5rem 0.6rem;
        border-radius: 0.75rem;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
        display: none;
      }

      #nav-check:checked + label + nav ul {
        display: flex;
      }

      nav a {
        width: 100%;
      }

      .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        margin-left: auto;
      }

    }

    /* Grundlayout */

    main {
      max-width: var(--max-width);
      margin: 1.5rem auto 2.5rem;
      padding: 0 1rem;
    }

    section {
      display: none;
      background: rgba(255, 255, 255, 0.9);
      padding: 1.5rem 1.5rem 1.75rem;
      margin-bottom: 1.5rem;
      border-radius: 1rem;
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
      border: 1px solid rgba(0, 0, 0, 0.04);
    }

    section.active {
      display: block;
    }

    h1, h2 {
      margin-top: 0;
      font-weight: 600;
      color: var(--accent-dark);
    }

    h1 {
      font-size: 1.8rem;
      margin-bottom: 0.35rem;
    }

    h2 {
      font-size: 1.2rem;
      margin-top: 1.2rem;
    }

    .lead {
      font-size: 1.02rem;
      margin-bottom: 1.2rem;
      opacity: 0.9;
    }

    .hero {
      display: grid;
      grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
      gap: 1.5rem;
      align-items: center;
    }

    .hero-highlight {
      background: linear-gradient(135deg, rgba(203, 175, 139, 0.08), rgba(139, 90, 43, 0.06));
      border-radius: 0.9rem;
      padding: 0.85rem 1rem;
      font-size: 0.93rem;
      border: 1px dashed rgba(139, 90, 43, 0.4);
    }
/* Desktop */
.hero-logo {
  border-radius: 1rem;
  padding: 0.5rem;
  max-height: 400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f4f0, #e8e0d8);
  box-shadow: 0 12px 26px rgba(0,0,0,0.2);
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.hero-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

/* Mobile */
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 1rem; }
  .hero-logo {
    order: -1;
    max-width: 100%;
    max-height: none;
    height: auto;
    padding: 0.5rem;
    border-radius: 1rem;
    width: auto;
    margin: 0 auto;
  }
  .hero-logo img {
    max-width: 100%;
    max-height: none;
    border-radius: 0.5rem;
  }
}

    

    /* Karten / Textblöcke */

    .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 1rem;
      margin-top: 1.2rem;
    }

    .card {
      background: rgba(255, 255, 255, 0.9);
      border-radius: 0.9rem;
      padding: 0.9rem 1rem 1rem;
      border: 1px solid rgba(0, 0, 0, 0.04);
    }

    .card h3 {
      margin-top: 0;
      font-size: 1.05rem;
      color: var(--accent-dark);
    }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.contact-person h4 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  color: var(--accent-dark);
}

.contact-person p {
  margin: 0;
  font-size: 0.9rem;
}

.contact-person a {
  color: var(--accent-dark);
  text-decoration: none;
}

.contact-person a:hover,
.contact-person a:focus {
  text-decoration: underline;
}
@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
    /* Broschüren-Akkordeon */

    .brochure-intro {
      margin-bottom: 1rem;
    }

    .brochure-list {
      display: grid;
      gap: 0.5rem;
    }

    details {
      background: rgba(255, 255, 255, 0.95);
      border-radius: 0.75rem;
      border: 1px solid rgba(0, 0, 0, 0.06);
      padding: 0.3rem 0.85rem 0.7rem;
      transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
    }

    details[open] {
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
      border-color: rgba(139, 90, 43, 0.35);
      background: #fffaf2;
    }

    summary {
      cursor: pointer;
      list-style: none;
      font-weight: 500;
      color: var(--accent-dark);
      display: flex;
      align-items: baseline;
      gap: 0.5rem;
    }

    summary::-webkit-details-marker {
      display: none;
    }

    summary::before {
      content: "＋";
      font-size: 0.95rem;
      color: var(--accent-dark);
      margin-right: 0.1rem;
    }

    details[open] summary::before {
      content: "－";
    }

    .brochure-meta {
      margin-top: 0.35rem;
      font-size: 0.9rem;
      opacity: 0.9;
    }

    .brochure-footer {
      margin-top: 0.4rem;
      font-size: 0.9rem;
    }

    .badge {
      display: inline-block;
      padding: 0.1rem 0.45rem;
      border-radius: 999px;
      background: rgba(139, 90, 43, 0.12);
      color: var(--accent-dark);
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    /* Footer */

    footer {
      border-top: 1px solid rgba(0, 0, 0, 0.06);
      padding: 0.9rem 1rem 1.4rem;
      font-size: 0.85rem;
      color: rgba(0, 0, 0, 0.7);
      max-width: var(--max-width);
      margin: 0 auto;
      text-align: center;
    }

      /* Impressum-Modal */
  .modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
  .modal.active { display: flex; align-items: center; justify-content: center; }
  .modal-content { background: white; max-width: 600px; max-height: 80vh; margin: 2rem; padding: 2rem; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow-y: auto; }
  .modal h2 { margin-top: 0; color: var(--accent-dark, #5c3b1b); }
  .close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
  .close:hover { color: black; }
  @media (max-width: 720px) { .modal-content { margin: 1rem; padding: 1.5rem; } }

