@font-face {
    font-family: "Frutiger";
    src: url("fonts/ftr_.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Frutiger";
    src: url("fonts/ftb_.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Frutiger";
    src: url("fonts/fti_.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "Frutiger";
    src: url("fonts/ftbi.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
}

body {
    font-family: "Frutiger", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #1a1a1a;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

html {
    height: 100%;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background-color: #e6e7e8;
    width: 100%;
    padding-top: 64px;
}

.seite {
    margin: 0;
    width: 100%;
    padding: 0;
}

.site-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===================== LOGO ===================== */
.logo {
    max-height: 34px;
    width: auto;
    z-index: 100;
    transition: filter 0.3s ease;
}

header a:has(.logo) {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

header.scrolled .logo {
    filter: brightness(0);
}

/* ===================== HEADER ===================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 70px;
    height: 64px;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #e6e7e8;
    border-bottom: 2px solid #128c46;
    transition: noe;
}

header.scrolled {
    background: #e6e7e8;
    border-bottom: 2px solid #128c46;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

/* ===================== MOBILER SEITENNAME ===================== */
.mobile-page-title {
    display: none;
}

/* ===================== BURGER ===================== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1a1a1a;
    padding: 8px;
    position: relative;
    z-index: 10000;
    pointer-events: auto;
    transition: color 0.3s;
}

header.scrolled .nav-toggle {
    color: #1a1a1a;
}

/* ===================== DESKTOP NAV ===================== */
nav ul.nav-top {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: rgba(0,0,0,0.7);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

nav a:hover {
    color: #128c46;
    background: rgba(18,140,70,0.08);
}

nav a.active,
nav li.active > a {
    color: #128c46 !important;
    font-weight: 700;
    background: rgba(18,140,70,0,0.15);
}

header.scrolled nav a {
    color: rgba(0,0,0,0.7);
}

header.scrolled nav a:hover {
    color: #128c46;
    background: rgba(18,140,70,0.08);
}

header.scrolled nav a.active,
header.scrolled nav li.active > a {
    color: #128c46 !important;
    font-weight: 700;
    background: rgba(18,140,70,0.15);
    border-bottom: 2px solid #128c46;
}

header.scrolled .dropdown-arrow {
    color: rgba(0,0,0,0.5);
}

.dropdown-arrow {
    color: rgba(0,0,0,0.5);
    font-size: 0.7rem;
    transition: color 0.3s;
}

/* ===================== DESKTOP DRILL PANELS ===================== */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}



.nav-top .has-drill {
    position: relative;
}

.drill-panel {
    display: none;
    position: fixed;
    top: 64px;
    right: 70px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 260px;
    z-index: 1000;
    padding: 8px 0;
}

.drill-panel.open {
    display: block;
}

.drill-panel .drill-panel {
    position: absolute;
    top: 0;
    right: 100%;
    left: auto;
    border-radius: 10px;
}

.drill-inner {
    display: flex;
    flex-direction: column;
}

.drill-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.drill-panel ul li {
    position: relative;
}

.drill-panel ul li a,
.drill-panel ul li.has-drill .drill-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 18px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.85rem;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Frutiger', sans-serif;
    text-align: left;
    border-radius: 0;
    box-sizing: border-box;
}

.drill-arrow {
    font-size: 0.65rem;
    color: #999;
    margin-left: auto;
    padding-left: 8px;
    flex-shrink: 0;
}

.drill-panel ul li a:hover,
.drill-panel ul li.has-drill .drill-trigger:hover {
    background: rgba(18,140,70,0.06);
    color: #128c46;
}

/* Aktiver Link im Drill-Panel */
.drill-panel ul li a.active,
.drill-panel ul li.active > a {
    color: #128c46 !important;
    font-weight: 700;
    background: rgba(18,140,70,0.08);
    border-left: 3px solid #128c46;
}

.drill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 8px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 4px;
    gap: 8px;
}

.drill-header-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #128c46;
    white-space: nowrap;
}

.drill-back {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #128c46;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Frutiger', sans-serif;
    padding: 0;
    transition: opacity 0.15s;
    white-space: nowrap;
}

.drill-back:hover { opacity: 0.7; }

.drill-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.05);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    color: #666;
    flex-shrink: 0;
    transition: background 0.15s;
    margin-left: auto;
}

.drill-close:hover { background: rgba(0,0,0,0.12); }

/* ===================== MOBILES DRILL-DOWN ===================== */
.mobile-drill {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #0a5c2e;
    z-index: 1001;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

header.scrolled .mobile-drill {
    background: #e6e7e8;
    border-bottom: 2px solid #128c46;
}

.mobile-drill.open {
    display: block;
}

.mobile-drill-slider {
    width: 100%;
}

.mobile-drill-pane {
    display: none;
    padding: 8px 0 16px;
}

.mobile-drill-pane.active {
    display: block;
}

.mobile-drill-pane ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-drill-pane ul li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: background 0.15s;
}

.mobile-drill-pane ul li:hover {
    background: rgba(255,255,255,0.08);
}

/* Aktiver Link im mobilen Menü – weiß auf grünem Hintergrund */
.mobile-drill-pane ul li.active {
    background: rgba(255,255,255,0.12);
    border-left: 3px solid rgba(255,255,255,0.6);
    color: #ffffff;
}

.mobile-drill-pane ul li.active a {
    color: #ffffff !important;
    font-weight: 700;
}

.mobile-drill-pane ul li a.active {
    color: #ffffff !important;
    font-weight: 700;
}

.mobile-drill-pane ul li:has(a.active) {
    background: rgba(255,255,255,0.12);
    border-left: 3px solid rgba(255,255,255,0.6);
}

/* Aktiver Link im mobilen Menü – grün wenn Header gescrollt (grauer Hintergrund) */
header.scrolled .mobile-drill-pane ul li.active {
    background: rgba(18,140,70,0.08);
    border-left: 3px solid #128c46;
    color: #128c46;
}

header.scrolled .mobile-drill-pane ul li.active a {
    color: #128c46 !important;
}

header.scrolled .mobile-drill-pane ul li a.active {
    color: #128c46 !important;
}

header.scrolled .mobile-drill-pane ul li:has(a.active) {
    background: rgba(18,140,70,0.08);
    border-left: 3px solid #128c46;
}

header.scrolled .mobile-drill-pane ul li {
    color: #1a1a1a;
}

header.scrolled .mobile-drill-pane ul li:hover {
    background: rgba(18,140,70,0.08);
    color: #128c46;
}

.mobile-drill-pane ul li a {
    color: inherit;
    text-decoration: none;
    flex: 1;
    display: block;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.mobile-drill-pane ul li.m-has-sub span {
    flex: 1;
}

.mobile-drill-pane ul li svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.m-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #9EC5A8;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 4px;
    transition: background 0.15s;
}

.m-back:hover {
    background: rgba(255,255,255,0.08);
}

header.scrolled .m-back {
    color: #128c46;
    border-bottom-color: rgba(0,0,0,0.08);
}

.m-pane-label {
    padding: 4px 20px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

header.scrolled .m-pane-label {
    color: #999;
}

/* ===================== TABLET 1400px – Panel-Position ===================== */
@media (max-width: 1400px) {
    .drill-panel { right: 40px; }
}

/* =======================================================================
   MOBILE + TABLET (≤1200px)
   ======================================================================= */
@media (max-width: 1200px) {

    header {
        padding: 0 20px;
    }

    .logo {
        max-height: 34px !important;
        width: auto;
        margin: 0 !important;
    }

    .mobile-page-title {
        display: block;
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        margin-left: 12px;
        flex: 1;
        color: rgba(255,255,255,0.9);
        text-align: right;
    }

    header.scrolled .mobile-page-title {
        color: #128c46;
    }

    .nav-toggle {
        display: block !important;
        margin-left: 0 !important;
        padding: 8px !important;
        line-height: 1 !important;
    }

    header nav ul.nav-top {
        display: none !important;
    }

    .drill-panel {
        display: none !important;
    }
}

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
    padding: 1rem 70px;
    font-size: 0.8rem;
    color: #666;
}

.breadcrumb a {
    color: #128c46;
    text-decoration: none;
}

.breadcrumb-sep {
    margin: 0 0.4rem;
}

/* ===================== FOOTER ===================== */
footer {
    width: 100%;
    background: #ffffff;
    border-top: 3px solid #128c46;
    font-family: "Frutiger", Arial, sans-serif;
    font-size: 13px;
    box-sizing: border-box;
    padding: 1rem 70px;
    margin-top: auto;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-copy {
    color: #555f58;
    white-space: nowrap;
    flex-shrink: 0;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.footer-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-nav a {
    color: #555f58;
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
}

.footer-nav a:hover { color: #128c46; }

.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
}

.footer-social a {
    color: #128c46;
    transition: color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    padding: 3px;
    border-radius: 4px;
}

.footer-social a:hover {
    color: #ffffff;
    background: #128c46;
}

/* ── TABLET ── */
@media (max-width: 1400px) {
    footer { padding: 1rem 40px; }
}

/* ── MOBIL ── */
@media (max-width: 768px) {
    footer { padding: 1rem 20px; }

    .footer-container {
        flex-direction: column;
        gap: 10px;
    }

    .footer-right {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .footer-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .footer-copy {
        order: unset;
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 11px;
    }

    .footer-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        order: unset;
        justify-content: flex-start;
        margin-top: 0;
    }

    .footer-nav a {
        font-size: 11px;
        white-space: nowrap;
    }

    .footer-social {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        order: unset;
    }
}