/* ===== CSS Variables ===== */
:root {
    --primary-blue: #004A88;
    --light-blue: #B7D3EE;
    --medium-blue: #3CA6E6;
    --very-light-blue: #D2DBEF;
    --beige-1: #FAF6F3;
    --beige-2: #F2EEEA;
    --white: #FFFFFF;
    --red: #ff0000;
    --font-main: Arial, Helvetica, sans-serif;
    --font-alt: Verdana, Geneva, Arial, Helvetica, sans-serif;
    --sidebar-width: 220px;
    --content-width: calc(100% - var(--sidebar-width) * 2);
}
 


/* Logo overlay */
@media screen and (min-width: 1600px) {
    .nav-header #logodrinne {
        visibility: hidden;
    }
    #logooverlay {
        visibility: visible;
        display: flex;
        position: absolute;
        width: 80%;
        margin-top: 20%;
        margin-left: 60%;
    }
}


@media screen and (max-width: 1600px) {
    .nav-header #logodrinne {
        visibility: visible;
    }

    #logooverlay {
        visibility: none;
        display: none;
    }
}


/* ===== Reset & Base Styles ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
    font-family: var(--font-main);
    background: var(--white);
    color: #000;
    line-height: 1.6;
}

html { scroll-behavior: smooth; }

.mobile-only { display: none; }

/* ===== Layout Container ===== */
.layout-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ===== Navigation Sidebar ===== */
#navigation {
    width: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--light-blue);
    border-right: 2px solid var(--medium-blue);
    position: fixed;
    left: 0; top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Logo oben, Button unten, Links mittig */
}

.nav-header {
    padding: 24px 0 0 0;
    text-align: center;
    border-bottom: none;
}

.nav-header img {
    display: block;
    width: clamp(100px, 28vw, 160px); /* dynamisch, auch Desktop */
    height: auto;
    max-width: 100%;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 0 0 auto;
    margin-block: auto;
    border-top: 1px solid var(--very-light-blue);
}

.nav-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
    border-bottom: 1px solid var(--very-light-blue);
    transition: all 0.3s ease;
    text-align: center;
}

.nav-links a:hover { background: var(--very-light-blue); color: var(--medium-blue); }

.nav-termin {
    padding: 20px;
    text-align: center;
}

/* ===== Main Content Area ===== */
.main-content {
    margin-left: var(--sidebar-width);
    width: var(--content-width);
    background: var(--white);
    min-height: 100vh;
    padding: 40px;
}

ul {
  list-style-position: outside;
  margin-left: 0.75rem;   /* wie weit die Liste eingerückt ist */
  padding-left: 0;    /* optional */
}
li {
  padding-left: 0.5em; /* kleiner Abstand zwischen Punkt und Text */
  text-indent: 0;      /* sicherstellen, dass kein zusätzlicher Einzug kommt */
  margin-bottom: 1rem;
}
.content-inner { max-width: 800px; margin: 0 auto; }

.content-inner h3 {
    color: var(--primary-blue);
    font-size: 36px;
    text-transform: uppercase;
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 30px;
}

.content-inner h3 span {
    font-size: 25px;
    display: block;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: normal;
}

.content-inner h2 {
    color: var(--primary-blue);
    font-size: 22px;
    margin: 30px 0 15px 0;
    font-weight: normal;
}

.content-inner p { margin-bottom: 15px; line-height: 1.6; }

.content-inner a { color: var(--medium-blue); text-decoration: underline; }
.content-inner a:hover { color: var(--primary-blue); }

.red-notice {
    color: var(--red) !important;
    font-weight: bold;
    background: #ffe6e6;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--red);
    margin: 20px 0;
}

/* ===== Footer Box ===== */
.footer-box {
    margin-left: var(--sidebar-width);
    width: var(--content-width);
    background: var(--very-light-blue);
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

.footer-box a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-box a:hover {
    color: var(--medium-blue);
}

.footer-separator {
    margin: 0 15px;
    color: var(--primary-blue);
}

/* ===== Impressum und Datenschutz ====*/


/* ===== Right Sidebar ===== */
.right-sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    min-height: 100vh;
    position: fixed;
    right: 0; top: 0;
    padding: 20px;
    border-left: 2px solid var(--light-blue);
    z-index: 50;
    font-family: var(--font-alt);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.right-sidebar img {
    width: 100%; max-width: 150px;
    height: auto;
    border-radius: 8px;
    margin: 10px 0 20px;
}

.right-sidebar address {
    font-style: normal;
    color: black;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 20px;
    margin-top: auto;
    margin-left: auto;
    padding-right: 2px;
}

.right-sidebar .imageSidebar { margin-top: auto; text-align: center; }
.right-sidebar .red { color: var(--red); font-weight: bold; font-size: 15px; }
.right-sidebar strong { color: var(--primary-blue); }

.right-sidebar a {
    font-family: var(--font-alt);
    color: var(--medium-blue);
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px solid var(--medium-blue);
}
.right-sidebar a:hover { color: var(--primary-blue); border-bottom: 1px solid var(--primary-blue); }

/* ===== Mobile Menu Toggle (Burger / X) ===== */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px; left: 20px;         /* fester Platz: Burger & X identisch */
    z-index: 1001;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.mobile-menu-toggle:hover { background: var(--medium-blue); transform: translateY(-1px); }
/* Zustand „offen" bekommt invertierte Farben für das X (optional) */
.mobile-menu-toggle.is-open {
    background: var(--medium-blue);
}

/* Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-overlay.active { opacity: 1; }

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 100;
}
.scroll-to-top:hover {
    background: var(--medium-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* ===== Responsive Design ===== */

/* Large Desktop */
@media screen and (min-width: 1400px) {
    :root { --sidebar-width: 250px; }
    .nav-links a { font-size: 17px; padding: 18px 24px; }
    .main-content { padding: 50px; }
}

/* Tablet View */
@media screen and (max-width: 1200px) {
    :root { --sidebar-width: 180px; }
    .nav-links a { font-size: 14px; padding: 14px 16px; }
    .main-content { padding: 30px; }
    .content-inner h3 { font-size: 26px; font-weight: bold;}
    .right-sidebar { padding: 15px; }
}

/* Small Tablet */
@media screen and (max-width: 900px) {
    :root { --sidebar-width: 160px; }
    .nav-links a { font-size: 13px; padding: 12px 14px; }
    .main-content { padding: 25px; }
}

/* ==== Mobile Navigation (≤768px) – höhenadaptiv, ohne Scroll ==== */
@media screen and (max-width: 768px) {
  .mobile-only { display: flex; }
  .mobile-menu-toggle { display: block; }

  #navigation {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 280px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    z-index: 1000;

    height: 100vh; height: 100dvh;
    display: flex; flex-direction: column;
    justify-content: flex-start;
    overflow: hidden; /* kein Scrollen */
  }
  #navigation.mobile-open { transform: translateX(0); }

  .nav-header { flex: 0 0 auto; padding: 12px 0 8px; text-align: center; }
  .nav-header img {
    width: clamp(90px, 28vh, 120px);
    height: auto; margin: 0 auto;
  }

  .nav-links {
    flex: 1 0 auto; margin-block: 0;
    border-top: 1px solid var(--very-light-blue);
    overflow: hidden;
  }
  .nav-links a {
    padding: 14px 16px;
    font-size: clamp(14px, 2.2vh, 16px);
  }

  .nav-termin { flex: 0 0 auto; padding: 12px; border-top: 1px solid var(--very-light-blue); }

  .right-sidebar { display: none; }
  .main-content { margin-left: 0; width: 100%; padding: 80px 20px 40px 20px; }
  
  /* Footer für Mobile */
  .footer-box {
    margin-left: 0;
    width: 100%;
    padding: 15px;
    font-size: 13px;
  }
  
  .footer-separator {
    margin: 0 10px;
  }
}

/* Mobile höhenbasierte Anpassungen */
@media screen and (max-width: 768px) and (max-height: 600px) {
  .nav-header img { width: clamp(72px, 22vh, 100px); }
  .nav-links a { padding: 10px 12px; font-size: clamp(12px, 1.9vh, 14px); }
  .nav-termin { padding: 10px; }
}
@media screen and (max-width: 768px) and (max-height: 460px) {
  .nav-header img { width: clamp(56px, 18vh, 84px); }
  .nav-links a { padding: 6px 10px; font-size: clamp(11px, 1.7vh, 13px); }
  .nav-termin { padding: 8px; }
}

/* ==== Tablet Querformat (≥769px aber geringe Höhe) ==== */
@media screen and (min-width: 769px) and (max-height: 700px) {
  #navigation {
    height: 100vh; height: 100dvh;
    display: flex; flex-direction: column;
    overflow: hidden;
    justify-content: space-between;
  }
  .nav-header img { width: clamp(96px, 18vh, 140px); }
  .nav-links a { padding: 12px 14px; font-size: clamp(13px, 2vh, 15px); }
  .nav-termin { padding: 10px; }
}
@media screen and (min-width: 769px) and (max-height: 520px) {
  .nav-header img { width: clamp(80px, 14vh, 120px); }
  .nav-links a { padding: 10px 12px; font-size: clamp(12px, 1.9vh, 14px); }
  .nav-termin { padding: 8px; }
}

/* Very Small Mobile */
@media screen and (max-width: 480px) {
  .main-content { padding: 80px 15px 40px 15px; }
  .content-inner h3 { font-size: 20px; }
  .content-inner h3 span { font-size: 14px; }
  .content-inner h2 { font-size: 18px; }
  .content-inner p { font-size: 14px; }
  .scroll-to-top { width: 45px; height: 45px; bottom: 20px; right: 20px; font-size: 18px; }
  .mobile-menu-toggle { top: 15px; left: 15px; padding: 10px 12px; font-size: 16px; }
  #navigation { width: 260px; }
  
  .footer-box {
    font-size: 12px;
    padding: 12px;
  }
  
  .footer-separator {
    margin: 0 8px;
  }
}

/* Extra Small Mobile */
@media screen and (max-width: 360px) {
  .main-content { padding: 70px 10px 30px 10px; }
  .content-inner h3 { font-size: 18px; margin-bottom: 20px; }
  .red-notice { padding: 12px; font-size: 14px; }
  #navigation { width: 240px; }
  .nav-header img { width: clamp(72px, 16vh, 100px); }
  
  .footer-box {
    font-size: 11px;
    padding: 10px;
  }
}



/* Schwerpunkte website */


/* Accordion Styles */
.dropdown-item {
    margin: 15px 0;
}

.dropdown-header {
    padding: 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    transition: all 0.3s ease;
}

.dropdown-header:hover {
    transform: translateX(3px);
}

.dropdown-header:hover .dropdown-title {
    color: var(--medium-blue);
}

.dropdown-header:hover .dropdown-arrow {
    border-color: var(--medium-blue);
}

.dropdown-arrow {
    width: 10px;
    height: 10px;
    border-bottom: 2.5px solid var(--primary-blue);
    border-right: 2.5px solid var(--primary-blue);
    transform: rotate(45deg);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
    flex-shrink: 0;
    margin-top: -3px;
}

.dropdown-header.active .dropdown-arrow {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.dropdown-title {
    color: var(--primary-blue);
    font-size: 18px;
    margin: 0;
    transition: color 0.3s ease;
}

.dropdown-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding-left: 25px;
    padding-top: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.5s ease,
                padding-top 0.5s ease;
}

.dropdown-content.active {
    max-height: 2000px;
    opacity: 1;
    padding-top: 10px;
}

.dropdown-text {
    line-height: 1.6;
    color: #333;
}

.dropdown-text p {
    margin-bottom: 10px;
}


/* Einzelne Sachen*/
#HZertifikat {
   max-width:80px;margin-left:-50%;margin-top: 200px; 
}
@media screen and (max-width:850px){
   #HZertifikat {
        display: none;
    } 
}
