/* ==========================================================================
   1. GLOBAL RESETS & SAFARI FIXES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizelegibility;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable; /* Verhindert Springen in Chrome/Firefox */
    text-size-adjust: 100%;
    width: 100%;
    overflow-x: hidden; /* Verhindert horizontales Ausbrechen in Safari */
}

body {
    background-color: #fff;
    width: 100%;
    margin: 0;
    overflow-x: hidden;
}

/* Verhindert das Links-Rücken der Seite beim Schließen der Navigation */
html:has(body.menu-open),
body.menu-open {
    overflow: hidden;
    position: fixed; /* Friert die Seite ein */
    width: 100%;
    height: 100%;
    padding-right: var(--scrollbar-width, 0);
}

/* ==========================================================================
   2. DESIGN VARIABLES
   ========================================================================== */
:root {
    --nav-bg: rgb(12 70 122); 
    --nav-hover: rgb(33 78 119);  
    --nav-text: #fff;
    --nav-accent: rgb(3 54 100);
    --nav-width: clamp(320px, 20vw + 240px, 400px);
    --nav-padding-v: clamp(1rem, 1.5vw + 0.5rem, 1.5rem);
    --nav-padding-h: 2.5rem;
    --font-size-main: clamp(1.65rem, 0.825vw + 1.403rem, 2.0rem);
    --font-size-sub: clamp(1.408rem, 0.3vw + 1.32rem, 1.575rem);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --badge-bottom-offset: 0px;
}

/* ==========================================================================
   3. REINES SMARTPHONE-MENÜ (NUR BIS 767px BILDCHIRMBREITE)
   ========================================================================== */
@media (width <= 767px) {
    header {
        position: relative;        
        display: flex;
        justify-content: flex-end; 
        align-items: center;
        background: rgb(3 54 100);
        height: 60px;              
        z-index: 5;
    }

    header a,
header .main-link,
header .dropdown-toggle,
header .submenu .submenu-link {
    font-family: system-ui, -apple-system, sans-serif;
}


    .menu-button {
        position: absolute;        
        top: 0;                    
        right: 0;                  
        height: 100%;              
        width: 60px; /* Perfektes Quadrat */
        font-size: 2rem; 
        background: #000;
        border: none;              
        color: #fff;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        line-height: 1;
        transition: background 0.2s, color 0.2s;
        z-index: 10;
    }

    .menu-button:hover {
        background: #000;
        color: #fff;
    }

     .button-container, .footer-nav {
        flex-direction: column; 
    }

    .btn, .footer-nav .nav-button {
        width: 100%;            
    }

#sideMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    color: var(--nav-text);
    z-index: 99999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 1.5em 0 0 0;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.dropdown-toggle .arrow img,
.submenu .submenu-link img {
    transition: transform 0.6s ease-out;
}

.menu-item-has-children.open .dropdown-toggle .arrow img,
.menu-item-has-children.open .submenu .submenu-link img {
    transform: rotate(360deg);
}

#sideMenu.active {
    transform: translateX(0);

}


} /* Klammer lassen, schließt Media-Query ab */

/* ==========================================================================
   6. Navigation
   ========================================================================== */


    .close-bar {
        display: flex;
        justify-content: flex-end;
        padding: 0 var(--nav-padding-h) var(--nav-padding-v) var(--nav-padding-h);
    }

    .close-btn {
        background: none;
        border: none;
        font-size: clamp(2rem, 2vw + 1.5rem, 2.5rem);
        cursor: pointer;
        line-height: 1;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .close-btn:hover {
        transform: rotate(90deg);
        color: var(--nav-accent);
    }

.main-link,
.dropdown-toggle {
    display: flex;
    justify-content: flex-start; 
    align-items: center;         
    padding: var(--nav-padding-v) var(--nav-padding-h);
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 800; 
    font-size: var(--font-size-main); 
    letter-spacing: 0.05rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease;
    gap: 1.5rem; 
    
}

.main-link:last-child,
.dropdown-toggle:last-child {
    border-bottom: none;
}

    .main-link:hover, .dropdown-toggle:hover {
        background: var(--nav-hover);
        color: #fff;
    }

    .main-link span, .dropdown-toggle span {
        display: inline-flex;
        align-items: center;

    }

    .main-link .menu-icon svg, .dropdown-toggle .menu-icon svg {
        width: 100%;
        height: 100%;
        display: block;
    }

      .arrow {
        display: inline-block;
        font-size: 1rem;
        opacity: 0.8;
        transform-origin: center center;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    }

     /* Blendet den Pfeil-Kreis (+) auf Desktop aus */
    .dropdown-toggle .arrow {
        margin-left: auto;
        display: none; 
    }

.menu-item-has-children .arrow {
    display: inline-block; /* Zeigt den Pfeil auf Smartphones/Tablets an */
    vertical-align: middle; /* Richtet den Pfeil mittig zum Text aus */
    /* Falls nötig, hier margin/padding für Mobilgeräte anpassen */
}




.submenu {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    visibility: hidden; 
    background: rgb(3 57 100);
    transition: max-height 0.35s ease-out, visibility 0.35s ease-out;
    will-change: max-height;
    
}

.menu-item-has-children.open .submenu {
    max-height: 1000px;
    visibility: visible;
}

.submenu .submenu-link {
    display: flex;
    align-items: center;
    padding: var(--nav-padding-v) var(--nav-padding-h);
    font-size: var(--font-size-sub);
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    gap: 1rem;
}

.submenu a {
   color: #fff;
   transition: color 0.25s ease;
}

.submenu a:hover {
    color: #000;
}

.mobile-topbar-text {
    display: none;
}

@media (max-width: 767px) {
    .mobile-topbar-text {
        display: block;
        color: #fff;
        margin: 1rem auto 1rem 1.5rem;
        padding: 0;
        font-family: system-ui, -apple-system, sans-serif;
      
    
    }
}

    
.book-title {
    font-size: 1.3rem;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    
}

/* ==========================================================================
   4. REINES BILDSCHIRM-MENÜ (AB 768px BILDCHIRMBREITE)
   ========================================================================== */
@media (width >= 768px) {
    .cover-wrapper img {
          width: 100%;
                 
        max-width: 1400px;   
    }

    /* Verstecke mobile Elemente komplett */
    .menu-button, .close-bar {
        display: none;
    }

    /* Zentriert das Menü stur im Header und macht die Topbar höher */
    header {
        position: relative;
        display: flex;
        justify-content: center; 
        align-items: center;
        background: rgb(3 54 100);
        height: 80px;
        z-index: 5;
       
        
    }
    

    /* Macht die Navigationsleiste flach und horizontal */
    #sideMenu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        display: flex;
        flex-direction: row; /* Hauptpunkte nebeneinander */
        align-items: center;
        overflow: visible;
        padding: 0;             
        margin: 0 auto; /* Zentriert das gesamte Menü im Header */
        transition: none;
    }

    .menu-item-has-children {
        position: relative; 
        display: block;
    }

    /* Hauptlinks auf Desktop (Inklusive Icons) */
    .main-link, .dropdown-toggle {
        display: flex;
        align-items: center;
        padding: 0 var(--nav-padding-h); 
        height: 80px;            
        font-size: 1.2rem;
        font-weight: 700;
        white-space: nowrap;             
        text-decoration: none;
        gap: 1rem; 
    }
    
.main-link, .dropdown-toggle, .submenu .submenu-link {
    font-family: system-ui, -apple-system, sans-serif;
    color: #fff; 
}


.main-link:hover, .dropdown-toggle:hover {
    background: rgb(255 255 255 / 10%);
    color: #000;
}

    /* Icons vor den Hauptmenü-Links perfekt runterskaliert */
    .main-link > img, 
    .dropdown-toggle > img {
        display: inline-block;  /* (Important entfernt) Nicht entfernen */
        width: 30px;  
        height: 30px;
    }


.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    pointer-events: none;
}
.submenu a {
   
    transition: color 0.25s ease;
}

.submenu a:hover {
    color: #000; /* schwarz beim Hover */
}

.menu-item-has-children:hover .submenu {
    max-height: 800px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

    /* Blendet den Pfeil-Kreis (+) auf Desktop aus */
    .dropdown-toggle .arrow {
        display: none;
    }
}
  




/* ==========================================================================
   5. TYPOGRAFIE & GLOBALE LINKS
   ========================================================================== */

  

.cover-wrapper img {
    width: 100%;             
    max-width: 100%;
    height: auto;
    display: block;          
    margin: 3rem 3rem 0 0;        
    mix-blend-mode: multiply; 
}

.cover-wrapper-1 img {
    width: 100%;
    border-radius: 20px;              
    max-width: 100%;
    height: auto;
    display: block;          
    margin: 3rem 3rem 0 0;          
}


.cover-container img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: clamp(2em, 1.04vw + 1.76em, 3em);
    mix-blend-mode: multiply;
}

/* Eventuell am Ende löschen */

    /* Kleines Icon im Dropdown */
    .submenu .submenu-link img {
        display: block;
        width: 30px;
        height: 30px;
    }

    /* Letzten Trennstrich entfernen */
    .submenu .submenu-link:last-child {
        border-bottom: none;
    }

    /* Löschen Ende */

    .submenu .submenu-link:hover {
        background: var(--nav-hover);
       
    }

/* Eventuell am Ende löschen */
.scroll-arrow {
    font-size: 1.8rem;
    color: rgb(3 57 132);
    margin: 3rem auto;
    cursor: pointer;
    display: block;
    width: fit-content;
    animation: bounce 2s 3 forwards;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

/* Hover-Effekt nur auf größeren Bildschirmen */
.scroll-arrow:hover {
    color: rgb(57 132 200);
    transform: scale(1.1);
}

/* Auf Smartphones ausblenden */
@media (max-width: 767px) {
    .scroll-arrow {
        display: none;
    }
}

/* Die Hüpf-Animation für den Pfeil */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Die ID des Sprungziels (Kauf-Bereich) fängt die höhere Topbar ab */
#kauf-bereich {
    scroll-margin-top: 80px;
}

/* Ende löschen */

h1 {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: clamp(2.50rem, 3.90vw + 1.56rem, 4.16rem);
    margin-bottom: clamp(1rem, 1vw + 0.5rem, 2rem);
    line-height: clamp(153%, 1.32vw + 132.00%, 160%);
    color: rgb(3 54 100);
    font-weight: 700;
}


h2 { 
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 900;
    color: rgb(3 54 100);

    /* Flüssige Schriftgröße: Startet bei 32px (2rem) und wächst sauber bis 48px (3rem) */
    font-size: clamp(2rem, 1.6vw + 1.4rem, 3rem);

    /* Flüssiger oberer Abstand: Schafft Platz zum vorherigen Absatz (ca. 24px bis 40px) */
    margin-top: clamp(1.5rem, 2vw + 1rem, 2.5rem);

    /* Flüssiger unterer Abstand: Ein schöner, kompakter Abstand zum folgenden Text (ca. 12px bis 24px) */
    margin-bottom: clamp(0.75rem, 1vw + 0.5rem, 1.5rem);

    /* Einheitenlose Zeilenhöhe: Hält mehrzeilige H2-Überschriften perfekt und knackig zusammen */
    line-height: clamp(1.15, 0.1vw + 1.15, 1.25);
}

h3 {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: clamp(1.92rem, 3.00vw + 1.20rem, 3.20rem);
    margin-bottom: clamp(0.5rem, 3vw + 1rem, 2rem);
    margin-top: clamp(0.5rem, 3vw + 1rem, 2rem);
    line-height: clamp(153%, 1.32vw + 132.00%, 160%);
    color: rgb(3 54 100);
    font-weight: 700;
}

h4 {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: clamp(0.765rem, 1.195vw + 0.479rem, 1.2rem);
    line-height: 1.3rem;
    margin-top: 2rem;
    margin-bottom:0.5rem; 
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: 0.1rem;
}

h5 {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: clamp(0.75rem, 1.172vw + 0.469rem, 1.406rem);
    margin-top: 1rem;
    margin-bottom: 0.5rem; 
    line-height: 1.3;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: 0.1rem;
}
   
p {
    font-family: system-ui, -apple-system, sans-serif; 
    font-size: clamp(0.95rem, 1.14vw + 0.76rem, 1.603rem);
    line-height: 1.55;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 400;
    max-width: 65ch;
}

p img {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
}


.inline-svg {
    margin-top: 20px;
    line-height: 1.4;
}

.inline-svg-icon {
    white-space: nowrap;
}

.inline-svg svg {
    width: 28px;
    height: 28px;
    vertical-align: middle;
}


a {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: clamp(0.95rem, 1.14vw + 0.76rem, 1.603rem);
    color: rgb(3 54 100);  
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease-in-out; 
    border-bottom: 2px solid transparent; 
    padding-bottom: 2px;
}

a:hover {
    color: rgb(57 132 200);             
}

a:focus {
    outline: none;   
}

.text-grossbuchstaben {
    text-transform: uppercase;
    letter-spacing: 0.05rem; 
}

.datenschutz-title {
    font-family: system-ui, -apple-system, sans-serif; 
    font-size: clamp(1.235rem, 1.482vw + 0.988rem, 2.4rem);
    line-height: 1.8;
    margin-top: clamp(1.769em, 1.356vw + 1.474em, 4.717em);
    margin-bottom: clamp(0.935em, -0.536vw + 1.063em, 1.148em);
    color: rgb(3 57 100);
    font-weight: 900;
    letter-spacing: 0.1rem;   
}

ul {
    font-family: system-ui, -apple-system, sans-serif; 
    font-size: clamp(1.0rem, 0.46vw + 0.9rem, 1.4rem);
    line-height: 1.3;
    margin-top: clamp(0.6em, 0.46vw + 0.5em, 0.8em);
    margin-bottom: clamp(1.1em, -0.63vw + 1.25em, 1.35em);
    color: #1a1a1a;
    font-weight: 400;
    max-width: 65ch; 

    /* Pfeil startet exakt an der linken Container-Kante */
    list-style-position: inside; 
    padding-left: 1rem;
}

li {
    margin-bottom: clamp(0.425rem, 0.196vw + 0.383rem, 0.638rem);         
}

li::marker {
    content: "→ ";
    color: rgb(3 54 100);
}

li:last-child {
    margin-bottom: 0;
}

.wort-linien {
    display: inline-block; 
    border-top: 2px solid #fff;    
    border-bottom: 2px solid #fff;
}

.space-xs { height: clamp(0.25rem, 0.8vw, 0.5rem); }
.space-s  { height: clamp(0.5rem, 1.2vw, 1rem); }
.space-m  { height: clamp(1rem, 2vw, 2rem); }
.space-l  { height: clamp(2rem, 3vw, 3rem); }


/* ==========================================================================
   6. LAYOUT CONTAINER, GRIDS & SPALTEN
   ========================================================================== */
/* 1. GEMEINSAME BASIS-EINSTELLUNGEN */
/* Gilt für alle Container: Hält alles linksbündig und flexibel */
.container, .eins, .zwei {
    width: 100%;
    margin-left: auto;  
    margin-right: auto;
    margin-top: 2rem; 
    margin-bottom: 2rem;
    padding-inline: clamp(1.5rem, 2.6vw + 0.94rem, 4rem);
    padding-block: 0; 
    text-align: left; 
}


/* 2. ERSTER CONTAINER (Schmaler für Fließtext) */
.container, .eins {
    max-width: 66rem;
}

/* ==========================================
   4. ZWEITER CONTAINER (Perfekt für Smartphone & Desktop angepasst)
   ========================================== */

/* Verhindert, dass Bilder aus ihren Spalten ausbrechen */
.grid img {
    max-width: 100%;
    height: auto;
    display: block; 
    border-radius: 12px; 
}

.grid-2 {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 40rem), 1fr));
    gap: clamp(1rem, 5vw, 3rem);
    align-items: center;
}

.grid-2 > * {
    width: 100%;
    box-sizing: border-box;
}

.grid-2 img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}


/* Drei Spalter */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    align-items: center;
    justify-items: center;
    text-align: center;
    background-color: #FAFAF6;
}

.grid-4 {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: clamp(0.5rem, 5vw, 3rem); /* Korrigiert: Min = 0.5rem, Max = 3rem */
    justify-items: center;
    
}

.grid-4 > * {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 3rem;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(3, 57, 100, 0.15); 
    
}



.outer-wrapper,
.outer-wrapper-1, 
.outer-wrapper-2, 
.outer-wrapper-3,
.outer-wrapper-4,
.outer-wrapper-6,
.outer-wrapper-7  {
    width: 100%;
    padding-top: clamp(1.5rem, 7.5vw - 1.5rem, 6rem);
    padding-bottom: clamp(1.5rem, 7.5vw - 1.5rem, 6rem);
}

.outer-wrapper-5 {
    width: 76%;
    padding-top: clamp(1.5rem, 7.5vw - 1.5rem, 6rem);
    padding-bottom: clamp(1.5rem, 7.5vw - 1.5rem, 6rem);
    margin-inline: auto;
    

}

.outer-wrapper   { background-color: #F8F9FA; }
.outer-wrapper-1 { background-color: #f7f6f4; }
.outer-wrapper-2 { background-color: #f3f3f9; }
.outer-wrapper-3 { background-color: #fafafd; }
.outer-wrapper-4 { background-color: #f3f3f9; }
.outer-wrapper-5 { background-color: #ebebee; }
.outer-wrapper-6 { background-color: #0f9cc7; }
.outer-wrapper-7 { background-color: #fff; }


.content-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobil 1-spaltig */
    gap: 1rem; 
    max-width: 1100px; 
}


/*  FOTOS */


/* TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  background: #000;
  backdrop-filter: blur(10px);
  z-index: 100;
  color: white;
  padding: 15px;
}




/* GRID */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  padding: 10px;
}

.thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.thumb:active {
  transform: scale(0.98);
}


/* LIGHTBOX */
.lightbox {
  display: none; 
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000; 
  
  /* Das sorgt für die echte vertikale und horizontale Zentrierung */
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex; /* Schaltet die Zentrierung aktiv, wenn geöffnet */
}

.lightbox-content {
  position: relative; 
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 80%;
  max-height: 80vh;
   border-radius: 12px;
}

.viewer {
  position: relative;
  display: inline-block;
}

/* IMAGE */
#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  object-fit: contain;
   border-radius: 12px;
}

/* CLOSE */
.close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #000; 
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
}

/* NAV */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

/* BADGE (BOTTOM CENTER) */

#badge {
  position: absolute;   
  bottom: 0;            /* Direkt auf der Unterkante des Bildes */
  left: 50%;            
  transform: translateX(-50%); 
  z-index: 1001;        
  background-color: #000; 
  color: #fff;
  padding: 6px 16px;
  font-size: 16px;
  font-weight: bold;
  font-family: system-ui, -apple-system, sans-serif;
  pointer-events: none;
 border-radius: 8px 8px 0 0;

}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}



/* ==========================================================================
   7. BUTTONS
   ========================================================================== */
.button-container {
    display: flex;
    flex-wrap: wrap;    
    gap: 1rem;          
    text-transform: uppercase;
}

.btn {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: clamp(1rem, 2vw, 1.1rem);
    letter-spacing: 1px;      
    text-decoration: none;     
    padding: 1rem 2rem;        
    border-radius: 6px;        
    display: inline-block;     
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; 
}



.btn-primary {
    background-color: rgb(3 57 100); 
    color: #fff;
    font-weight: 700;
    border: 2px solid transparent; 
}

.btn-primary:hover {
    background-color: rgb(57 132 200);
    border-color: rgb(57 132 200);
    color: #fff; 
    font-weight: 700;
}

.btn-secondary {
    background-color: #fff; 
    color: rgb(3 57 100);
    border: 2px solid rgb(3 57 100);
    font-weight: 700;
}

.btn-secondary:hover {
    background-color:  rgb(57 132 200);
    color: #fff;
    border: 2px solid transparent;
    font-weight: 700;
}



/* ==========================================================================
   7.5 KONTAKTFORMULAR
   ========================================================================= */

.kontaktformular {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Eingabefelder */
.kontaktformular input,
.kontaktformular textarea {
    padding: 1.4rem 1.8rem;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.5rem;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid rgb(3 54 100);
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s;
}

/* Textarea */
.kontaktformular textarea {
    resize: vertical;
    min-height: 180px;
}

/* Fokus */
.kontaktformular input:focus,
.kontaktformular textarea:focus {
    border-color: rgb(3 54 100);
}

/* Button */
.kontaktformular button {
    padding: 14px 20px;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    background: rgb(3 54 100);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s;
}

/* Hover */
.kontaktformular button:hover {
    background: rgb(57 132 200);
}


.flag {
    height: clamp(3.5rem, 8vw, 4em);
    width: auto;
    display: block;
}

/* Original-Seitenverhältnisse */
.at{ aspect-ratio:3/2; }
.ch{ aspect-ratio:1/1; }
.li{ aspect-ratio:5/3; }
.it{ aspect-ratio:3/2; }



/* ==========================================================================
   8. FOOTER STYLES
   ========================================================================= */
footer.site-footer {
    flex-shrink: 0; 
    background-color: rgb(3 57 100); 
    padding: clamp(1.25rem, 5vw, 3.125rem) 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center; 
    font-family: system-ui, -apple-system, sans-serif;
}

.footer-content {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 1rem; 
    color: #fff;
    font-size: clamp(1rem, 0.82rem + 0.9vw, 1.3rem);
    text-align: center;
    font-weight: 400;
}

.footer-copyright, #current-year {
    margin: 0;
    letter-spacing: 0.02em;
    color: #fff;
    font-weight: 700;
    font-size: clamp(1rem, 0.82rem + 0.9vw, 1.3rem);
}

.footer-links {
    display: flex;
    gap: 15px; 
    align-items: center;
    flex-wrap: wrap; 
    justify-content: center;
}

.footer-separator {
    color: #fff;
    user-select: none; 
    font-weight: 400;
}


/* Link-Reset für den Footer: Verhindert klobige globale A-Stile */
a.footer-link,
.footer-links a.footer-link {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: clamp(1rem, 0.82rem + 0.9vw, 1.3rem);
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    border-bottom: none;
    padding-bottom: 0;
    transition: color 0.25s ease; 
}

/* REIHENFOLGE KORRIGIERT: Die allgemeineren Hovers/Focus stehen jetzt links */
a.footer-link:hover,
a.footer-link:focus,
.footer-links a.footer-link:hover, 
.footer-links a.footer-link:focus {
    color: rgb(57 132 200);
    text-decoration: none;
    font-weight: 400;
}


/* ==========================================================================
   9. SCROLL-BACK-TO-TOP-DOWN-BUTTON
   ========================================================================== */
.scroll-wrapper-inline {
    text-align: center;
    margin-top: 4rem;
     margin-bottom: 4rem;
    width: 100%;
}

.circle-up-btn {
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background-color: rgb(3 57 100); 
    border: 2px solid #fff;
    border-radius: 50%; 
    cursor: pointer;
    box-shadow: 0 3px 8px rgb(0 0 0 / 15%);
    transition: background-color 0.25s ease, transform 0.25s ease;
    padding: 0;
}

.circle-up-btn:hover {
    background-color: rgb(57 132 200); 
    transform: translateY(-3px);
}

.icon-arrow-up {
    position: relative;
    width: 14px;
    height: 14px;
    display: inline-block;
    margin-top: 4px; 
}

.icon-arrow-up::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 14px;
    background-color: #fff;
}

.icon-arrow-up::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 6px;
    height: 6px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: translateX(-50%) rotate(45deg); 
}

/* Namen von up zu down geändert */
.circle-down-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background-color: rgb(3 57 100); 
    border: 2px solid #fff;
    border-radius: 50%; 
    cursor: pointer;
    box-shadow: 0 3px 8px rgb(0 0 0 / 15%);
    transition: background-color 0.25s ease, transform 0.25s ease;
    padding: 0;
}

.circle-down-btn:hover {
    background-color: rgb(57 132 200); 
    /* Animation bewegt sich beim Hovern nach unten statt nach oben */
    transform: translateY(3px); 
}

/* Namen von up zu down geändert */
.icon-arrow-down {
    position: relative;
    width: 14px;
    height: 14px;
    display: inline-block;
    /* Abstand nach oben korrigiert, damit die Linie zentriert bleibt */
    margin-top: -4px; 
}

.icon-arrow-down::before {
    content: "";
    position: absolute;
    left: 50%;
    /* Linie startet oben */
    top: 0; 
    transform: translateX(-50%);
    width: 2px;
    height: 14px;
    background-color: #fff;
}

.icon-arrow-down::after {
    content: "";
    position: absolute;
    left: 50%;
    /* Pfeilspitze an das untere Ende der Linie gesetzt */
    bottom: 0; 
    width: 6px;
    height: 6px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    /* Rotation auf 225 Grad geändert, damit die Spitze nach unten zeigt */
    transform: translateX(-50%) rotate(225deg); 
}


/* --------------------------------------------------------------------------
   A. GLOBAL / STANDARD (Greift standardmäßig auf Mobilgeräten)
   -------------------------------------------------------------------------- */

/* Erzwingt Flexbox auf Mobilgeräten für die Links-Rechts-Ausrichtung */
.menu-item-has-children .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

/* Holt den Pfeil auf Mobilgeräten garantiert zurück und schiebt ihn nach rechts */
.menu-item-has-children .dropdown-toggle span.arrow {
    display: inline-block; /* Verhindert das Verschwinden auf Mobilgeräten */
    margin-left: auto;     /* Schiebt den Pfeil nach rechts */
}



/* ==========================================================================
   10. ADDITION RESPONSIVE QUERIES (Aufgeräumter Standard)
   ========================================================================== */



/* 2. TABLET- & LAPTOP-ANSICHT (Ab 768px aufwärts) */
@media (width >= 768px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr); 
    }

    .menu-item-has-children .dropdown-toggle span.arrow {
        display: none; 
    }
}


