/* /css/feuerwehr-dettum.css - KORRIGIERT 2025-09-26 */
/* Konsolidierte CSS-Datei für Feuerwehr Dettum Website */
/* Kompatibel mit aktueller Bootstrap 5 Navigation in header.php */

/* ========================================
   ROOT VARIABLEN - BRANDING
   ======================================== */
:root {
    /* Bootstrap Overrides - Feuerwehr Dettum Branding */
    --bs-primary: #af2b1e;     /* Feuerwehrrot */
    --bs-warning: #ffd700;     /* Gold */
    --bs-dark: #2b2b2b;        /* Dunkelgrau */
    --bs-light: #ffffff;       /* Weiß */

    /* Legacy Variablen für bestehenden Code */
    --primary-color: #af2b1e;   /* RAL 3000 */
    --secondary-color: #ffffff; /* Weiß */
    --dark-color: #2e2e2e;     /* Dunkelgrau */
    --light-gray: #f4f4f4;     /* Hellgrau */

    /* Zusätzliche Feuerwehr-Variablen */
    --ff-red: #af2b1e;
    --ff-gold: #ffd700;
    --ff-dark: #2b2b2b;
    --ff-light: #ffffff;
}

/* ========================================
   BOOTSTRAP OVERRIDES
   ======================================== */

/* Buttons */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: var(--bs-light);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #922117; /* dunkleres Rot */
    border-color: #922117;
    color: var(--bs-light);
}

.btn-outline-primary {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--bs-primary);
    color: var(--bs-light);
}

.btn-outline-light {
    color: var(--bs-light);
    border-color: var(--bs-light);
}
.btn-outline-light:hover {
    background-color: var(--bs-light);
    color: var(--bs-primary);
}

/* Alerts */
.alert-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: var(--bs-light);
}

/* Cards */
.card {
    border: 1px solid rgba(175, 43, 30, 0.2);
}
.card-header {
    background-color: rgba(175, 43, 30, 0.1);
    border-bottom-color: rgba(175, 43, 30, 0.2);
}
.border-primary {
    border-color: var(--bs-primary) !important;
}

.card-header.bg-primary {
  background-color: var(--bs-primary) !important;
  color: var(--bs-light);
}


/* Tables */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(175, 43, 30, 0.05);
}

/* Platzhalter-Karte (OSM/Instagram etc.) */
#osm-kartenplatzhalter,
.instagram-platzhalter {
    border-left: 5px solid var(--ff-red);
    background-color: var(--ff-white);
    color: var(--ff-dark);
}

/* Feuerwehr Corporate Design für Links & Downloads */
.link-primary {
    color: var(--bs-primary) !important;
}
.link-primary:hover {
    color: var(--bs-warning) !important;
}
.download-link {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
}
.download-link:hover {
    color: var(--bs-warning);
    text-decoration: underline;
}
.bi-file-earmark-pdf {
    color: var(--bs-primary) !important;
}

/* ========================================
    Accordion – hübscheres Styling
   ======================================== */
.accordion-item {
  border: none;
  margin-bottom: 0.75rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.accordion-button {
  font-weight: 600;
}
.accordion-button:not(.collapsed) {
  background-color: var(--bs-primary);
  color: #fff;
}
.accordion-button::after {
  background-image: none !important;
  content: "+";
  font-weight: bold;
  font-size: 1.2rem;
  transition: transform 0.2s, content 0.2s;
}
.accordion-button:not(.collapsed)::after {
  content: "–";
  color: #fff;
}
.accordion-collapse.collapse {
  transition: height 0.35s ease, opacity 0.35s ease;
  opacity: 0;
}
.accordion-collapse.show {
  opacity: 1;
}
#toggleAllBtn {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}
#toggleAllBtn:hover {
  background-color: var(--bs-primary);
  color: #fff;
}

/* ========================================
   BASIC LAYOUT
   ======================================== */
body {
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    background-color: var(--light-gray);
    color: var(--dark-color);
    line-height: 1.6;
}
main {
    padding: 20px;
    padding-bottom: 90px;
    padding-top: 140px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.gruppenfoto {
  margin: 0 0 2rem 0;
  text-align: center;
}
.gruppenfoto img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.gruppenfoto figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
  margin-bottom: 8px;
}
.container,
.container-fluid {
    max-width: 1000px;
}

/* ========================================
   WARTUNGSBANNER
   ======================================== */
.maintenance-banner {
    background-color: var(--bs-primary);
    color: var(--bs-warning);
    font-weight: bold;
}
.ff-wartungsbanner {
    background-color: var(--bs-primary) !important;
    color: var(--bs-warning) !important;
    border: none;
    font-weight: 500;
}
.ff-wartungsbanner .btn-outline-warning {
    border-color: var(--bs-warning);
    color: var(--bs-warning);
}
.ff-wartungsbanner .btn-outline-warning:hover {
    background-color: var(--bs-warning);
    color: var(--bs-primary);
}
#floatingMenu {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bs-primary);
    color: var(--bs-warning);
    border: none;
    padding: 12px 15px;
    z-index: 1060;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-align: center;
    font-weight: bold;
    min-height: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
#floatingHandle {
    cursor: default;
    user-select: none;
    margin-right: 10px;
}

/* ========================================
   FF HEADER / BOOTSTRAP NAVIGATION
   ======================================== */
.ff-header {
    background: var(--bs-primary);
    color: var(--bs-light);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.ff-header-brand {
    background: var(--bs-primary);
    padding: 10px 0;
}
.ff-logo {
    height: 60px;
    width: auto;
    max-width: 100%;
}
.ff-logo-mobile {
    height: 60px;
    width: auto;
    max-width: 100%;
}
.ff-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    color: var(--bs-light);
    text-decoration: none;
}
.ff-title:hover {
    color: var(--bs-warning);
    text-decoration: none;
}
.ff-navbar {
    background: var(--bs-primary);
    padding: 8px 0;
}
.navbar.ff-navbar {
    --bs-navbar-brand-color: var(--bs-light);
    --bs-navbar-brand-hover-color: var(--bs-warning);
    --bs-navbar-nav-link-color: var(--bs-warning);
    --bs-navbar-nav-link-hover-color: var(--bs-light);
    --bs-navbar-active-color: var(--bs-light);
    background-color: var(--bs-primary) !important;
}
.ff-navbar .navbar-nav .nav-link {
    color: var(--bs-warning);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.ff-navbar .navbar-nav .nav-link:hover,
.ff-navbar .navbar-nav .nav-link:focus {
    color: var(--bs-light);
    background-color: rgba(255, 255, 255, 0.1);
}
.ff-navbar .navbar-nav .nav-link.active {
    color: var(--bs-light);
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}
.ff-navbar .dropdown-menu {
    background-color: var(--bs-light);
    border: 1px solid rgba(175, 43, 30, 0.2);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.ff-navbar .dropdown-item {
    color: var(--bs-primary);
    padding: 8px 16px;
    transition: all 0.3s ease;
}
.ff-navbar .dropdown-item:hover,
.ff-navbar .dropdown-item:focus {
    background-color: rgba(175, 43, 30, 0.1);
    color: var(--bs-primary);
}
.ff-navbar .dropdown-item.active {
    background-color: var(--bs-primary);
    color: var(--bs-light);
}
.ff-navbar .navbar-toggler {
    border-color: var(--bs-warning);
    color: var(--bs-warning);
}
.ff-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}
.ff-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 215, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.ff-navbar .offcanvas {
    background-color: var(--bs-primary);
}
.ff-navbar .offcanvas-header {
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}
.ff-navbar .offcanvas-title {
    color: var(--bs-light);
}
.ff-navbar .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
.ff-header-spacer {
    display: none;
}

/* ========================================
   LEGACY HEADER SUPPORT
   ======================================== */
.header_site-header {
    background: var(--bs-primary);
    color: var(--bs-light);
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: padding 0.3s ease;
    box-sizing: border-box;
}
.header_menu {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
}
.header_menu a {
    background: #e0e0e0;
    color: #000000;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}
.header_menu a:hover,
.header_menu a:focus {
    background: #d6d6d6;
    color: var(--bs-primary);
}
.header_menu a.header_active {
    background: var(--bs-light);
    color: var(--bs-primary);
    font-weight: bold;
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #8f1f17 100%);
    color: var(--bs-light);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    text-align: center;
}
.section-header h1,
.section-header h2 {
    margin: 0;
    font-weight: 700;
}

/* ========================================
   CONTENT LAYOUT
   ======================================== */
section.fahrzeug {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1rem;
    background-color: #eeeeee;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    flex-direction: row;
}
section.fahrzeug.bild-rechts {
    flex-direction: row-reverse;
}
.fahrzeugbild, .fahrzeugtext {
    flex: 1 1 45%;
}
.fahrzeugbild img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.fahrzeugtext ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}
.fahrzeugtext h2 {
    margin-top: 0;
    color: var(--bs-primary);
}
.fahrzeugtext {
    max-width: 90%;
    padding: 0 1rem;
}
.image-caption {
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.externe-quelle-hinweis {
    background-color: #fdf6e3;
    border-left: 6px solid var(--bs-primary);
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.95rem;
}

/* ========================================
   ACCORDION (Bootstrap kompatibel)
   ======================================== */
.accordion-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.accordion-header-row h1 {
    margin: 0;
    font-size: 1.8rem;
    flex: 1;
    color: var(--bs-primary);
}
.accordion-controls {
    display: flex;
    flex-shrink: 0;
}
.accordion-toggle-all {
    background-color: var(--dark-color);
    border: none;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    height: 40px;
    width: 40px;
}
.accordion-toggle-all:hover {
    background-color: #444;
}
.toggle-icon {
    width: 24px;
    height: 24px;
}
.toggle-icon line {
    stroke: var(--bs-light);
    stroke-width: 2;
    stroke-linecap: round;
    transform-origin: center;
    transform-box: fill-box;
    transition: transform 0.7s ease;
}
.accordion-button {
    background-color: #e0e0e0;
    color: var(--bs-primary);
    cursor: pointer;
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
body.user-is-tabbing .accordion-button:focus {
    outline: 3px solid var(--bs-warning);
    outline-offset: 2px;
}
.accordion-button:focus {
    outline: none;
}
.accordion-button::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--bs-primary);
    transition: transform 0.3s ease;
}
.accordion-button.active::before {
    transform: rotate(90deg);
}
.accordion-panel {
    padding: 0 1rem;
    background-color: #f0f0f0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-radius: 0 0 8px 8px;
    margin-bottom: 1rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer_footer {
    background-color: var(--dark-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 5px 0;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    transition: transform 0.4s ease;
    z-index: 100;
}
.footer_footer p {
    margin: 0;
    padding: 0.2rem;
}
.footer_footer .footer_links a {
    color: var(--secondary-color);
    text-decoration: underline;
    margin: 0 8px;
    font-weight: bold;
    transition: color 0.3s ease;
}
.footer_footer .footer_links a:hover {
    color: var(--bs-warning);
}
.footer_footer.footer_hidden {
    transform: translateY(100%);
}
.thumbs-menu {
    position: fixed;
    bottom: 60px;
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 15px;
    background-color: var(--dark-color);
    padding: 10px;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
    z-index: 101;
    transition: bottom 0.4s ease;
}
footer {
    background-color: var(--dark-color);
    color: var(--bs-light);
    text-align: center;
    padding: 5px 0;
    position: static;
    width: 100%;
}
footer p {
    margin: 0;
    padding: 0;
}
footer .footer-links a {
    color: var(--bs-light);
    text-decoration: underline;
    margin: 0 8px;
    font-weight: bold;
    transition: color 0.3s ease;
}
footer .footer-links a:hover {
    color: var(--bs-warning);
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
.pw-container {
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bs-light);
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0;
}
input[type="password"],
input[type="text"][name="passwort"] {
    font-size: 1rem;
    line-height: 1.2;
    height: 2.5rem;
    padding: 0.7rem;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--bs-light);
    box-sizing: border-box;
    flex: 1;
    border: none;
    outline: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 420px) {
    .accordion-header-row h1 {
        font-size: 1.4rem;
    }
    .ff-logo {
        height: 35px;
    }
    #floatingMenu {
        padding: 8px 10px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    #floatingMenu .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin: 0 2px;
    }
    #floatingMenu .gap-2 {
        gap: 0.5rem !important;
    }
}
@media (max-width: 768px) {
    section.fahrzeug,
    section.fahrzeug.bild-rechts {
        flex-direction: column;
    }
    .fahrzeugbild, .fahrzeugtext {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 0;
    }
    .fahrzeugtext {
        margin-top: 1rem;
    }
    main {
        padding: 10px;
        margin: 10px;
        border-radius: 0;
    }
    .ff-logo {
        height: 40px;
    }
    .ff-logo-mobile {
        height: 40px;
        width: auto;
        max-width: 100%;
    }
    .ff-title {
        font-size: 1.2rem;
    }
}
@media (min-width: 768px) {
    .accordion-panel {
        max-height: none !important;
        overflow: visible !important;
        transition: none !important;
    }
    .accordion-button::before {
        display: none;
    }
    .accordion-button {
        cursor: default;
        box-shadow: none;
        background-color: transparent;
        color: inherit;
        font-weight: bold;
    }
    .accordion-controls {
        display: none !important;
    }
}
