/* Lokale Schrift (Caudex) – TTF vorhanden */
    @font-face { font-family:'Caudex'; src:url('caudex_font/Caudex-Regular.ttf') format('truetype'); font-weight:400; font-style:normal; font-display:optional;}
    @font-face { font-family:'Caudex'; src:url('caudex_font/Caudex-Bold.ttf') format('truetype'); font-weight:700; font-style:normal; font-display:optional;}

    :root{
      --max: 980px;
      --bg: #f8f6ea;    /* warm/off-white */
      --fg: #000;    /* schwarz */
      --muted:#5b6470;
      --border:#ddd;
      --link:#0a63b0;
      --header-h: 80px; /* ungefähre Headerhöhe für Anker-Offset */
    }
    *{box-sizing:border-box}
    body{
      margin:0;background:var(--bg);color:var(--fg);
      font-family:'Caudex', serif;font-size:18px;line-height:1.75;
    }
    a{color:var(--link);text-decoration:none}
    a:hover{text-decoration:underline}
    img{max-width:100%;height:auto;display:block}
    /* verhindert verdeckte Sprunganker durch Sticky-Header */
    section:target{scroll-margin-top:calc(var(--header-h) + 8px)}

    /* ===== Header / Navigation ===== */
    header.mast{
      position:sticky;top:0;z-index:1000;
      display:flex;align-items:center;justify-content:space-between;gap:14px;
      padding:10px 16px;background:#fff;border-bottom:1px solid var(--border);
    }
    .brand img{height:58px;object-fit:contain}
    nav.primary-nav ul{list-style:none;display:flex;flex-wrap:wrap;gap:20px;margin:0;padding:0}
    nav.primary-nav a{color:var(--fg);font-weight:400;padding:6px 0}
    nav.primary-nav a:hover{color:var(--link)}
    .dropdown{position:relative}
    .dropdown-content{
      display:none;position:absolute;top:120%;left:0;background:#fff;
      border:1px solid var(--border);border-radius:4px;min-width:200px;
      box-shadow:0 2px 8px rgba(0,0,0,.08)
    }
    .dropdown-content a{display:block;padding:10px 12px;color:var(--fg)}
    /* sichtbar bei Hover ODER Tastaturfokus innerhalb */
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content{display:block}

    .efre-badge, .award-badge {
      height:42px;
      width:auto;
      object-fit:contain; 
      cursor: pointer;
      transition: transform 0.2s ease-in-out;
    }
    .award-badge:hover {
      transform: scale(2);
      position: relative;
      z-index: 1001;
    }
    .header-left-group {
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .image-group {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    @media(max-width:780px){.efre-badge, .award-badge {height:32px}}
    @media(max-width:520px){.efre-badge, .award-badge {display:none}}

    /* ===== Layout ===== */
    .wrap{max-width:var(--max);margin:0 auto;padding:16px}
    section{padding:20px 0;border-bottom:1px solid var(--border)}
    h1,h2,h3{margin:0 0 12px;color:var(--fg);font-weight:700}
    h1{font-size:3rem} h2{font-size:2.2rem} h3{font-size:1.6rem}
    p,ul,ol{margin:0 0 10px}
    ul{margin-left:20px}

    .grid{display:grid;gap:12px}
    .grid.cols-3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
    .card{border:1px solid var(--border);border-radius:6px;background:#fff;padding:10px}
    .card img{width:100%;height:160px;object-fit:cover;border-radius:4px}

    .hero{
      background:#fff;
      border:1px solid var(--border);
      border-radius:6px;
      overflow:hidden;
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .hero-section {
      padding-top: 0;
      padding-bottom: 0;
    }
    .hero-image {
      height: 33rem;
      object-fit: cover;
      width: 100%;
      border-radius: 0;
    }
    .hero-logo {
      position: absolute;
      max-height: 60%;
      max-width: 60%;
      z-index: 10;
    }

    /* Grid-Galerie */
    .grid-gallery {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 10px;
      margin-bottom: 18px;
    }
    .grid-gallery img {
      width: 100%;
      height: 120px;
      object-fit: cover;
      border-radius: 4px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
      transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    }
    .grid-gallery img:hover {
      transform: scale(1.3);
      z-index: 10;
      position: relative;
      box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }
    .grid-gallery figure {
      margin: 0;
    }
    .gallery-caption {
      font-size: 0.9rem;
      text-align: center;
      color: var(--muted);
      margin-top: 4px;
    }
    @media (max-width: 900px) {
      .grid-gallery { grid-template-columns: repeat(3, 1fr); }
    }
    @media (max-width: 600px) {
      .grid-gallery { grid-template-columns: repeat(2, 1fr); }
    }

    footer{padding:18px 0;background:#fff;border-top:1px solid var(--border);text-align:center;color:var(--muted);font-size:16px}
    .note{color:var(--muted)}

    .hero-text {
      position: absolute;
      color: white;
      font-size: 3.5rem; /* Große Schriftgröße */
      font-weight: bold;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.7); /* Schatten für bessere Lesbarkeit */
      z-index: 11; /* Über dem Logo, aber unter dem Bild */
      text-align: center;
      width: 100%;
      top: 5%; /* Positionierung über dem Logo */
    }

    .hero-subtitle {
      position: absolute;
      color: white;
      font-size: 1.5rem; /* Kleinere Schriftgröße für den Untertitel */
      text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Schatten für bessere Lesbarkeit */
      z-index: 11; /* Über dem Logo, aber unter dem Bild */
      text-align: center;
      width: 100%;
      bottom: 1%; /* Positionierung unterhalb des Logos */
    }

    /* ===== Print Styles ===== */
    @media print {
      header.mast, footer, #anfahrt, #cookie-consent-banner, .award-badge, .efre-badge {
        display: none !important;
      }
      body {
        font-size: 12pt;
        color: #000;
        background: #fff;
      }
      a {
        text-decoration: underline;
        color: #000;
      }
      .wrap, section {
        padding: 0;
        border: none;
        margin: 0;
        max-width: 100%;
      }
      .grid-gallery {
        display: none; /* Bilder im Druck ausblenden, um Tinte zu sparen */
      }
    }

/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #222;
    color: #fff;
    padding: 15px 20px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

#cookie-consent-banner p {
    margin: 0;
    padding-right: 20px;
}

#cookie-consent-banner a {
    color: #4e9af1;
    text-decoration: underline;
}

#cookie-consent-buttons {
    display: flex;
    gap: 10px;
}

#cookie-consent-buttons button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#cookie-accept-btn {
    background-color: #4CAF50;
    color: white;
}

#cookie-decline-btn {
    background-color: #f44336;
    color: white;
}

/* Skip link style for accessibility */
.skip-link {
    position:absolute;
    left:-9999px;
    top:auto;
    width:1px;
    height:1px;
    overflow:hidden;
    background:#fff;
    color:#000;
    z-index:2000;
}
.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 8px 16px;
    font-size: 1.1rem;
    border-radius: 4px;
    outline: 2px solid #0a63b0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
/* Lightbox styles */
#lightbox-overlay {
    position: fixed;
    z-index: 2000;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    transition: background 0.2s;
}
#lightbox-overlay[style*="display: flex"] {
    display: flex !important;
}
#lightbox-img {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
    cursor: auto;
    z-index: 2101;
    object-fit: contain;
}
@media (max-width: 600px) {
    #lightbox-close { top: 12px; right: 18px; font-size: 2rem; }
    #lightbox-img { padding: 2px; }
}
#lightbox-close {
    position: absolute;
    top: 32px;
    right: 48px;
    font-size: 2.5rem;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    z-index: 2100;
    text-shadow: 0 2px 8px #000;
    user-select: none;
}
@media (max-width: 600px) {
    #lightbox-close { top: 12px; right: 18px; font-size: 2rem; }
    #lightbox-img { padding: 2px; }
}
