@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

/* Container für die Karte soll volle Höhe haben */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 0;
    top: 0;
    background: #000;
    color: #fff;
    padding: .5rem 1rem;
    z-index: 1000;
}

/* Alle Bootstrap-Rundungen deaktivieren */
:root {
    --bs-border-radius: 0 !important;
    --bs-border-radius-sm: 0 !important;
    --bs-border-radius-lg: 0 !important;
    --bs-border-radius-xl: 0 !important;
    --bs-border-radius-xxl: 0 !important;
    --bs-border-radius-pill: 0 !important;
}

/* Fallback für alle generischen Bootstrap-Klassen */
.rounded,
.rounded-sm,
.rounded-lg,
.rounded-xl,
.rounded-xxl,
.rounded-pill,
.card,
.btn,
.input-group,
.form-control,
.navbar,
.dropdown-menu,
.alert,
.modal-content {
    border-radius: 0 !important;
}


/* ===========================
   Standard-Hintergrundfarben
   =========================== */

/* Primärfarbe: Blau */
.bg-primary {
  background-color: #0c2f46 !important; /* Blau */
}
.text-primary{
    color:#0c2f46 !important; /* Blau */
}
/* Sekundärfarbe: Grau */
.bg-secondary {
  background-color: #6c757d !important; /* Grau */
}

/* Erfolgsfarbe: Grün */
.bg-success {
  background-color: #198754 !important; /* Grün */
}

/* Fehler-/Warnfarbe: Rot */
.bg-danger {
  background-color: #dc3545 !important; /* Rot */
}

/* Warnfarbe: Gelb */
.bg-warning {
  background-color: #ffc107 !important; /* Gelb */
}

/* Infofarbe: Cyan/Blaugrün */
.bg-info {
  background-color: #0c8da7 !important; /* Cyan/Blaugrün */
}

/* Heller Hintergrund */
.bg-light {
  background-color: #f8f9fa !important; /* Hellgrau */
}

/* Dunkler Hintergrund */
.bg-dark {
  background-color: #212529 !important; /* Sehr dunkles Grau */
}

/* Weißer Hintergrund */
.bg-white {
  background-color: #ffffff !important; /* Weiß */
}

/* Transparenter Hintergrund */
.bg-transparent {
  background-color: transparent !important; /* Transparent */
}


/* ===========================
   Subtile Hintergrundfarben
   =========================== */

/* Subtiles Blau */
.bg-primary-subtle {
  background-color: #cfe2ff !important; /* Helles Blau */
}

/* Subtiles Grau */
.bg-secondary-subtle {
  background-color: #e2e3e5 !important; /* Helles Grau */
}

/* Subtiles Grün */
.bg-success-subtle {
  background-color: #d1e7dd !important; /* Hellgrün */
}

/* Subtiles Rot */
.bg-danger-subtle {
  background-color: #f8d7da !important; /* Hellrot */
}

/* Subtiles Gelb */
.bg-warning-subtle {
  background-color: #fff3cd !important; /* Hellgelb */
}

/* Subtiles Cyan */
.bg-info-subtle {
  background-color: #cff4fc !important; /* Helles Blaugrün */
}

/* Subtiles Dunkelgrau */
.bg-dark-subtle {
  background-color: #d3d3d4 !important; /* Helles Dunkelgrau */
}


/* ===========================
   Body-Hintergrundfarben
   =========================== */

/* Standard Body */
.bg-body {
  background-color: #ffffff !important; /* Weiß */
}

/* Sekundärer Body-Hintergrund */
.bg-body-secondary {
  background-color: #f8f9fa !important; /* Hellgrau */
}

/* Tertiärer Body-Hintergrund */
.bg-body-tertiary {
  background-color: #e9ecef !important; /* Mittelgrau */
}


/* ===========================
   Buttons
   =========================== */

/* Primärer Button */
.btn-primary {
  color: #fff;
  background-color: #0c2f46; /* Blau */
  border-color: #0c2f46;
}
.btn-primary:hover {
  background-color: #0c2f46; /* Dunkleres Blau */
  border-color: #0c2f46;
}
.btn-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5); /* Fokus-Ring */
}

/* Sekundärer Button */
.btn-secondary {
  color: #fff;
  background-color: #6c757d; /* Grau */
  border-color: #6c757d;
}
.btn-secondary:hover {
  background-color: #5c636a;
  border-color: #565e64;
}
.btn-secondary:focus {
  box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.5);
}

/* Erfolgs-Button */
.btn-success {
  color: #fff;
  background-color: #198754; /* Grün */
  border-color: #198754;
}
.btn-success:hover {
  background-color: #157347;
  border-color: #146c43;
}
.btn-success:focus {
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.5);
}

/* Gefahren-Button */
.btn-danger {
  color: #fff;
  background-color: #dc3545; /* Rot */
  border-color: #dc3545;
}
.btn-danger:hover {
  background-color: #bb2d3b;
  border-color: #b02a37;
}
.btn-danger:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.5);
}

/* Warn-Button */
.btn-warning {
  color: #000;
  background-color: #ffc107; /* Gelb */
  border-color: #ffc107;
}
.btn-warning:hover {
  background-color: #ffca2c;
  border-color: #ffc720;
}
.btn-warning:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.5);
}

/* Info-Button */
.btn-info {
  color: #000;
  background-color: #0dcaf0; /* Cyan */
  border-color: #0dcaf0;
}
.btn-info:hover {
  background-color: #31d2f2;
  border-color: #25cff2;
}
.btn-info:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.5);
}

/* Heller Button */
.btn-light {
  color: #000;
  background-color: #f8f9fa; /* Hellgrau */
  border-color: #f8f9fa;
}
.btn-light:hover {
  background-color: #e2e6ea;
  border-color: #dae0e5;
}
.btn-light:focus {
  box-shadow: 0 0 0 0.25rem rgba(248, 249, 250, 0.5);
}

/* Dunkler Button */
.btn-dark {
  color: #fff;
  background-color: #212529; /* Dunkelgrau */
  border-color: #212529;
}
.btn-dark:hover {
  background-color: #1c1f23;
  border-color: #1a1e21;
}
.btn-dark:focus {
  box-shadow: 0 0 0 0.25rem rgba(33, 37, 41, 0.5);
}

/* Weißer Button */
.btn-white {
  color: #000;
  background-color: #ffffff; /* Weiß */
  border-color: #ffffff;
}
.btn-white:hover {
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}
.btn-white:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5);
}

/* Transparenter Button */
.btn-outline {
  background-color: transparent; /* Transparent */
  border-color: currentColor;
}



main {
    padding-top: 50px; /* Toolbar + Headerhöhe, anpassen falls nötig */
}

nav.navbar {
    position: sticky;
    top: 40px; /* Toolbar-Höhe */
    z-index: 1030;
}

header {
    margin-top: 40px; /* Höhe der Toolbar */
}




#logo{
    height: 80px;
    margin: 5px 0;
}



/* Overlay-Container */

.accessibility-toolbar {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
}


.header-overlay {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    border-radius: 12px 0 0 0;
    max-width: 650px;
    position: absolute;
    right: 0;
    bottom: 200px !important; /* Abstand vom unteren Rand */
    overflow: hidden;
}


/* Text-Schriftgrößen anpassen */
.header-overlay h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.header-overlay p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Animations-Effekt: keine horizontale Verschiebung mehr */
@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(30px); /* Nur noch vertikale Animation */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-overlay {
    animation: slide-in 0.8s ease-out forwards;
}

.card:focus-within {
    outline: 3px solid #0c2f46;
    outline-offset: 2px;
}

/* Toolbar */
.accessibility-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Filter-Effekte */
html.high-contrast,
header.high-contrast,
#content-wrapper.high-contrast { filter: contrast(2) !important; }

header.grayscale,
#content-wrapper.grayscale { filter: grayscale(100%) !important; }

header.blue-filter,
#content-wrapper.blue-filter { filter: sepia(50%) hue-rotate(180deg) !important; }

header.invert-colors,
#content-wrapper.invert-colors { filter: invert(100%) !important; }

/* Dark-Mode */
html.dark-mode,
header.dark-mode,
#content-wrapper.dark-mode {
    background-color: #121212 !important;
    color: #ffffff !important;
}

/* Zeilen- und Buchstabenabstand */
header.line-spacing,
#content-wrapper.line-spacing {
    line-height: 1.8 !important;
}

header.letter-spacing,
#content-wrapper.letter-spacing {
    letter-spacing: 0.05em !important;
}

/* Schriftgrößensteuerung */
header,
#content-wrapper {
    font-size: 100%;
}

header.font-small-1,
#content-wrapper.font-small-1 { font-size: 95%; }

header.font-small-2,
#content-wrapper.font-small-2 { font-size: 90%; }

header.font-small-3,
#content-wrapper.font-small-3 { font-size: 85%; }

header.font-small-4,
#content-wrapper.font-small-4 { font-size: 80%; }

header.font-small-5,
#content-wrapper.font-small-5 { font-size: 75%; }

header.font-small-6,
#content-wrapper.font-small-6 { font-size: 70%; }

header.font-large-1,
#content-wrapper.font-large-1 { font-size: 105%; }

header.font-large-2,
#content-wrapper.font-large-2 { font-size: 110%; }

header.font-large-3,
#content-wrapper.font-large-3 { font-size: 115%; }

header.font-large-4,
#content-wrapper.font-large-4 { font-size: 120%; }

header.font-large-5,
#content-wrapper.font-large-5 { font-size: 125%; }

header.font-large-6,
#content-wrapper.font-large-6 { font-size: 130%; }


/* Leaflet-Map soll die komplette Spalte ausfüllen */
#map {
    width: 100% !important;
    height: 100% !important;
    border: 1px solid black;
}

/* Toolbar Buttons auf mobilen Geräten kompakter */
@media (max-width: 768px) {
  #shortcut-hint{
    display: none !important;
  }
    .accessibility-toolbar {
        flex-wrap: nowrap !important; /* Kein Umbruch auf mobilen Geräten */
        overflow-x: auto;             /* Horizontal scrollbar falls nötig */
        white-space: nowrap;
    }

    .accessibility-toolbar button {
        flex: 0 0 auto;
        padding: 0.25rem 0.4rem;      /* Weniger Padding für mobile Ansicht */
        font-size: 0.85rem;
    }

    /* Nur Icons auf mobilen Geräten anzeigen */
    .accessibility-toolbar button span.d-none.d-md-inline {
        display: none !important;
    }

    .accessibility-toolbar button i.d-md-none {
        display: inline-block !important;
    }

    /* Schriftgrößensteuerung kompakter */
    .accessibility-toolbar .d-flex.align-items-center.ms-3 {
        margin-left: 0.5rem !important;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}


/* ---------- Layout ---------- */
/* 5 Spalten ab LG */
@media (min-width: 992px){
  .col-lg-2-4{flex:0 0 20%;max-width:20%}
}

/* Einheitliche Zellenhöhe, zentrierte Darstellung */
.gallery .img-frame {
  height: 300px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e9ecef;
}

/* Mobile-Optimierung: auf max. 200px Höhe reduzieren */
@media (max-width: 576px) {
  .gallery .img-frame {
    height: 200px;
  }
}

/* Basis: Querformat füllt die Höhe, Breite skaliert variabel */
.gallery .img-frame .gal-img{
  height:100%; width:auto;
  transition:transform .3s ease;
  will-change:transform
}

/* Portraits: automatisch erkennen → Breite füllt, Höhe skaliert */
.gallery .img-frame .gal-img.is-portrait{
  width:100%; height:auto;
}

/* Hover & Tastatur-Fokus: Zoom */
.gallery .img-frame:hover .gal-img,
.gallery .img-frame:focus .gal-img,
.gallery .img-frame:focus-visible .gal-img{transform:scale(1.08)}

.gallery .img-frame:focus,
.gallery .img-frame:focus-visible{outline:3px solid #0c2f46;outline-offset:2px}

/* Weniger Animation bei reduzierter Bewegung */
@media (prefers-reduced-motion:reduce){
  .gallery .img-frame .gal-img{transition:none}
}