html {
  /* 1. Sanftes Scrollen aktivieren */
  scroll-behavior: smooth;

  /* 2. Offset für die fixierte Navi (Höhe deiner Navi + etwas Puffer) */
  /* Ersetze 100px durch die tatsächliche Höhe deines Headers */
  scroll-padding-top: 100px; 
}



/* --- GLOBALE VARIABLEN & RESETS --- */
:root {
    --primary: #005696;
    --accent: #adb5bd;
    --dark: #1d1d1b;
    --light: #f8f9fa;
    --white: #ffffff;
    --font-family-base: calibri Tahoma, Geneva, Verdana, sans-serif;
    --oag-container-width: 1450px;
    --oag-section-padding: 80px 0;
    --oag-section-padding-mobile: 40px 0;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background-color: var(--white);
}

/*.inside {
    max-width: var(--oag-container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 { 
    line-height: 1.2; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: var(--primary);
}

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; color: var(--primary); }

.section-title h2::after, .ueberschrift h2::after, .content-text h3::after, .content-text h2::after, .content-text h3::after, .content-text h4::after, .content-text h5::after, .content-text h6::after{ 
    content: ''; 
    display: block; 
    width: 60px; 
    height: 4px; 
    background: var(--primary); 
    margin: 20px auto; 
} 



.headerImage {
    position: relative;
    pointer-events: none
}

.headerImage h1,.headerImage h2,.headerImage h3,.headerImage h4,.headerImage h5,.headerImage h6 {
    background: var(--headerHeadlineBackground);
    text-transform: inherit;
    color: var( --white);
    display: inline-block;
    width: auto;
    padding: 12px 30px 5px;
    margin: 0 auto;
    max-width: 80%;
    font-size: 3.5em;
    
}
.headerImage .caption {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center
}

.headerImage img {
    width: 100%;
    vertical-align: bottom
}

.headerImage:not(.left):not(.right) .container,
.headerImage:not(.left):not(.right) .sectionTop 
.inside,.sectionTop .headerImage:not(.left):not(.right) 
.inside,.headerImage:not(.left):not(.right) 
#header .nav-wrapper,#header .headerImage:not(.left):not(.right) .nav-wrapper {
    width: 100%;
    max-width: 100%
}

.headerImage.left .caption {
    text-align: left
}

.headerImage.right .caption {
    text-align: right
}

.content-player{
 width: 100%;
  height: auto;
  max-width: 100%;
  text-align:center}


/* --- HEADER & NAV --- */
#top-custom {
    padding: 10px 20px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.09);
    background: var(--white);
}

 #header {
    background: linear-gradient(180deg, #0064a0 0%, #bfd2e8 100%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--white);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
   
}
/* Artikelbreite gross klein */

.gross{
 
    margin: 0 auto;
    width: 100%;
    border: 1px solid red
    
    }
   
.gross-color{
background: #f8f9fa;
   
}

.inner{
 max-width: var(--oag-container-width);
  margin: 0px auto;
 
 }
 
 
 
/* Content text */
 




/* Inhaltselemente Main Anfang */

.ce_mateTextBackgroundElement {
    background: #333;
}
.ce_mateTextBackgroundElement .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-position: center;
    -webkit-filter: blur(2px);
    filter: blur(2px);
    transform: scale(1.1);
    background-size: cover;
    background-repeat: no-repeat;
}
.ce_mateTextBackgroundElement .inside {
    height: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
}
.ce_mateTextBackgroundElement .inside > div {
    width: 100%;
}
.ce_mateTextBackgroundElement h2,
.ce_mateTextBackgroundElement h3,
.ce_mateTextBackgroundElement h4,
.ce_mateTextBackgroundElement h5,
.ce_mateTextBackgroundElement h6 {
   
    text-align: center;
    font-style: italic;
    margin: 10px 0;
}
.ce_mateTextBackgroundElement .image_container {
    float: none;
    text-align: center;
}
.ce_mateTextBackgroundElement p {
    margin: 0;
    text-align: center;
    
}



/* --- BUTTONS --- */
.btn { 
    display: inline-block; 
    padding: 10px 25px; 
    background: var(--light); 
    color: var(--primary); 
    text-decoration: none; 
    border-top-left-radius: 20px; 
    font-weight: bold; 
    transition: all 0.3s ease; 
    border: 1px solid var(--light); 
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
}

.btn:hover { 
    background: var(--white); 
    border-color: var(--primary); 
    transform: translateY(-3px); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); 
}

#header .btn-light { 
    background: transparent; 
    border: 2px solid var(--white); 
    color: var(--white); 
}

#header .btn-light:hover { 
    background: var(--white); 
    color: var(--primary); 
}

/* --- LEISTUNGEN / CARDS --- */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    padding: 50px 0; 
}

.card { 
    background: var(--white); 
    border-top-left-radius: 40px; 
    padding: 40px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    transition: 0.4s ease; 
    border-bottom: 5px solid transparent; 
}

.card:hover { 
    border-bottom-color: var(--primary); 
    transform: translateY(-10px); 
}

.card h3, .ueberschrift h2, .content-text h3, .content-text h4, .content-text h5, .content-text h6 {
    display: block;
    font-size: 1.9rem;
    font-weight: bold;
    text-align: center;
}

.ueberschrift h2 { font-size: 2.5rem; margin-top: 50px; }

/* --- GALERIE --- */
#para{
background:  var(--light);
padding: 70px 0px 50px 0;
scroll-margin-top: 80px }

.content-gallery.content-gallery--cols-4 ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.content-gallery.content-gallery--cols-4 img {
    display: block;
    width: 100%;
    height: auto;
    border-top-left-radius: 40px; 
    border: 2px solid white;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    backface-visibility: hidden;
}

.content-gallery.content-gallery--cols-4 img:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.steps { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
        .step { flex: 1; min-width: 200px; text-align: center; position: relative; }
        .step-num { width: 60px; height: 60px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.5rem; font-weight: bold; }





/* --- SEKTIONEN --- */
section { padding: 100px 0; }
.bg-light { background: var(--light); }

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Der Move-In */
.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}




/* Fix für den Hero (LCP): Das erste Bild sollte NIE animieren, sonst straft Google dich ab */
.hero h1.reveal, .hero p.reveal { 
    opacity: 1 !important; 
    transform: none !important; 
}

/* Nur wenn das JS geladen ist UND das Element noch nicht gescrollt wurde, 
   wird es kurzzeitig unsichtbar gemacht. */
@media (prefers-reduced-motion: no-preference) {
    [data-js-ready="true"] .reveal:not(.active) {
        opacity: 0;
        transform: translateY(30px);
    }
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}










/* --- BACK TO TOP --- */
#backToTop { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    width: 50px; 
    height: 50px; 
    background: var(--primary); 
    color: white; 
    border: none; 
    border-radius: 50%; 
    cursor: pointer; 
    opacity: 0; 
    visibility: hidden; 
    transition: 0.3s; 
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

#backToTop.show { 
    opacity: 1; 
    visibility: visible; 
}

/* --- FOOTER --- */
#footer {
    background: var(--light);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    scroll-margin-top: 80px;
}

/* Sidebar Rechts - Ruckelfrei */
.sticky-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 1002;
    align-items: flex-end; /* Wichtig für das Reinschieben */
}

.sticky-sidebar button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    margin-bottom: 5px;
    cursor: pointer;
    border-radius: 5px 0 0 5px;
    display: flex;
    align-items: center;
    gap: 15px;
    
    /* Der Trick: Wir schieben den Button standardmäßig nach rechts raus */
    width: 160px; /* Feste Breite, kein Zucken */
    transform: translateX(115px); /* Nur das Icon bleibt sichtbar */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
}

.sticky-sidebar button .icon {
    width: 20px;
    text-align: center;
}

/* Hover: Sanftes Reinfahren ohne Layout-Shift */
.sticky-sidebar button:hover {
    transform: translateX(0);
    background: var(--dark);
}

/* Modal Korrektur (verhindert das Flackern beim Öffnen) */
dialog[open] {
    animation: fadeIn 0.3s ease-out;
}

dialog {
    width: 90%;
    max-width: 800px; /* Schön breit für viel Inhalt */
    min-height: 300px;
    border: none;
    border-radius: 15px;
    padding: 50px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Exakte Mitte */
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    background: var(--white);
    overflow-y: auto;
}

/* Der Hintergrund (wird abgedunkelt) */
dialog::backdrop {
    background: rgba(0, 20, 40, 0.85); /* Dunkelblau-Transparent */
    backdrop-filter: blur(8px); /* Macht den Rest der Seite unscharf */
}

/* Überschrift im Modal */
dialog h3 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 25px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

/* Schließen Button im Modal */
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--light);
    border: none;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.modal-close-btn:hover {
    background: var(--primary);
    color: white;
}

/* Dark Mode Anpassung für den Dialog */
body.dark-mode dialog {
    background: #1d1d1b;
    color: white;
    border: 1px solid #444;
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}



/* --- ACTION HUB (Zentrale Buttons) --- */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.hub-card {
    background: var(--white);
    border: 2px solid var(--primary);
    padding: 40px 20px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hub-card:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,86,150,0.2);
}

/* Farben im Hover anpassen */
.hub-card:hover h3, 
.hub-card:hover p, 
.hub-card:hover .hub-icon {
    color: white;
}

.hub-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    color: var(--primary);
}

.hub-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.hub-card p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

/* Anpassung für Dark Mode */
body.dark-mode .hub-card {
    background: #2a2a28;
    border-color: var(--primary);
}



/* --- MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .content-gallery.content-gallery--cols-4 ul { grid-template-columns: repeat(2, 1fr); }
    .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    #header .inside { padding: 100px 20px; }
    .grid { 
        grid-template-columns: 1fr; 
        padding: 20px; 
    }
    .content-gallery.content-gallery--cols-4 ul { grid-template-columns: 1fr; }
    section { padding: 60px 0; }
    .ueberschrift h2 { font-size: 2rem; }
    .card { padding: 25px; }
}

@media (max-width: 576px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .section-title h2 { font-size: 1.8rem; }
}
