/* --- KONTRAST WECHSEL --- */
/* Der Button selbst */
#contrast-toggle {
    position: fixed;
    bottom: 90px; /* Über dem Back-to-Top Button */
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

#contrast-toggle:hover {
    transform: scale(1.1);
}

/* Die Dark-Mode Farben */
body.dark-mode {
    --white: #1d1d1b;
    --light: #2a2a28;
    --dark: #f8f9fa;
    --primary: #4da3ff; /* Ein helleres Blau für besseren Kontrast auf Schwarz */
    background-color: var(--white);
    color: var(--dark);
}

/* Anpassung für Karten und Header im Dark Mode */
body.dark-mode .card, 
body.dark-mode header, 
body.dark-mode .form-container {
    background: #2a2a28;
    color: #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3 {
    color: var(--primary);
}

#footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}



:root {
 
  --oag-font-secondary: Georgia, "Times New Roman", Times, serif;
  --oag-font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --oag-primary: #6cab2d;
  --oag-primary-medium: #89c152;
  --oag-primary-light: #b4d98d;
  --oag-primary-lightest: #eef8e6;

  --oag-accent: #f25e25;

  --oag-gray-dark: #282829;
  --oag-gray-medium: #727274;

  --oag-dark: #0b0b0c;
  --oag-light: #f7f9fa;
  --oag-white: #ffffff;

  --oag-primary-rgb: 108, 171, 45;
  --oag-accent-rgb: 242, 94, 37;
  
  --oag-container-width: 1400px; 
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--oag-font-main);
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1.7;
    color: var(--oag-gray-medium);
    overflow-x: hidden;
    background-color: var(--oag-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#wrapper{

}

#main, #para, #footer .ende{
    max-width: var(--oag-container-width);
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

/* --------------------------------------------------------------
    TYPOGRAPHY - System-Serifen für den Edel-Look
-------------------------------------------------------------- */

h1 {
    font-family: var(--oag-font-secondary);
    font-size: clamp(2.5rem, 8vw, 3.5rem); 
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: var(--oag-gray-dark);
    font-weight: 900;
}

h2, h3, h4, h5, h6 {
    font-family: var(--oag-font-secondary);
    font-size: clamp(1.5rem, 3vw, 1.8rem); 
    line-height: 1.3;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--oag-gray-dark);
    font-weight: 700;
}

.section-title h2::after,
.ueberschrift h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--oag-primary) 0%, var(--oag-primary-light) 100%);
    margin: 20px auto 0;
}

/* --------------------------------------------------------------
    HEADER & NAV
-------------------------------------------------------------- */

#top-custom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--oag-white);
    border-bottom: 3px solid var(--oag-primary-lightest);
}

#top-custom nav {
    display: flex;
    gap: 25px;
}

#top-custom nav a {
    color: var(--oag-gray-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-decoration: none;
}

/* --------------------------------------------------------------
    HERO & CARDS
-------------------------------------------------------------- */

#header {
    background: radial-gradient(circle at top right, var(--oag-primary-lightest) 0%, var(--oag-white) 85%);
    padding: 120px 0;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    padding: 60px 0;
}



.card {
    background: var(--oag-primary-lightest);
    padding: 40px 50px 60px 30px; /* Extremes Padding links */
    border-radius: 0 80px 0 80px;
    border-left: 1px solid var(--oag-primary); /* Massiver "Rahmen" als Designelement */
    outline: 1px solid var(--oag-primary-light);
    outline-offset: -20px;
    box-shadow: inset 10px 0 20px rgba(0,0,0,0.08);
}


.card {
    background: var(--oag-white);
    padding: 40px;
     border-radius: 0 80px 0 80px;
    border-left: 1px solid var(--oag-primary);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Nutze deine Fonts für den Look */
.card h3, .card h2, .card h4, .card h5 {
    font-family: var(--oag-font-secondary); /* Edel wie ein Gartenmagazin */
    color: var(--oag-primary);
    font-size: 2rem;
    margin: 0;
}

.card p {
    font-family: var(--oag-font-main);
    color: var(--oag-gray-medium);
    line-height: 1.6;
}


/* Letzte Idee */





.btn {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--oag-primary) 0%, var(--oag-primary-medium) 100%);
    color: var(--oag-white) !important;
    border-radius: 4px; 
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(var(--oag-primary-rgb), 0.3);
}



/* --------------------------------------------------------------
    Klassen für Designs 
-------------------------------------------------------------- */

.blume:before {
  content: '??'; /* Emoji als schneller Weg */
}

/* Oder mit reinem CSS: Kreis + Pseudo-Elemente */
.petal {
  width: 20px;
  height: 40px;
  background: #FF69B4;
  border-radius: 50%;
  transform-origin: bottom center;
}





#footer{


}

#footer>.inside{




}

.ende{

}

/* --------------------------------------------------------------
    RESPONSIVE
-------------------------------------------------------------- */

@media (min-width: 1600px) {
    :root { --oag-container-width: 1600px; }
    body { font-size: 20px; }
}

@media (max-width: 1024px) {
    .grid { grid-template-columns: 1fr; }
    #top-custom { flex-direction: column; gap: 15px; }
}

@media (max-width: 767px) {
    body { font-size: 17px; }
    h1 { font-size: 2.8rem; }
}

/* --- OVERLAP MODUL - GRÃœN-SYSTEM (TECHNIK IDENTISCH) --- */

.oag-overlap {
    width: 100%;
    max-width: var(--oag-container-width);
    margin: 30px auto;
    padding: 20px 20px;
    /* Hintergrund-Punkte in Dunkelgrau */
    background-image: radial-gradient(var(--oag-gray-dark) 1px, transparent 1px);
    background-size: 10px 10px;
    background-position: center;
    min-height: 400px;
}

/* --- AUSRICHTUNG LOGIK (UNBERÃœHRT) --- */
.oag-overlap--text-left .oag-overlap__layout {
    flex-direction: row-reverse;
}

.oag-overlap--text-left .oag-overlap__main-title {
    padding-left: 0;
    padding-right: 20px;
    text-align: right;
}

.oag-overlap__main-title {
    color: var(--oag-primary); /* Dein HauptgrÃ¼n */
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    padding-left: 20px;
}

.oag-overlap__layout {
    display: flex;
    flex-wrap: nowrap;
    gap: 50px;
    align-items: center;
}

.oag-overlap__visual-container {
    flex: 0 0 55%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    min-height: 500px;
    position: relative;
}

.oag-overlap__figure {
    margin: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 5px solid var(--oag-primary); /* GrÃ¼ner Rahmen */
    background: var(--oag-gray-dark); /* Dunkle Basis */
    overflow: hidden;
    position: relative;
    max-width: 350px;
    border-radius: 70px 10px 70px 10px;
}

.oag-overlap__figure img,
.oag-overlap__figure picture,
.oag-overlap__figure picture img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    max-width: 100%;
}

.oag-overlap__figure--1 { grid-area: 2 / 1 / 10 / 8; z-index: 10; }
.oag-overlap__figure--2 { grid-area: 1 / 6 / 7 / 12; z-index: 20; }
.oag-overlap__figure--3 { grid-area: 6 / 4 / 12 / 11; z-index: 30; }

.oag-overlap__content-column {
    flex: 0 0 40%;
    min-width: 0;
    z-index: 50;
}

.oag-overlap__card {
    padding: 3rem;
    background: var(--oag-gray-dark); /* Dunkelgraue Box */
    border-left: 5px solid var(--oag-primary); /* GrÃ¼ner Balken */
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    color: var(--oag-white);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    border-radius: 40px 0px 40px 0px;
}

/* Spiegelung der Card-Border bei Text links */
.oag-overlap--text-left .oag-overlap__card {
    border-left: none;
    border-right: 5px solid var(--oag-primary);
    border-radius: 0px 40px 0px 40px;
}

.oag-overlap__card h2, 
.oag-overlap__card h3 {
    margin-top: 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--oag-primary-light); /* HellgrÃ¼n fÃ¼r Headlines auf Dunkel */
}

/* --- MOBILE --- */

@media (max-width: 991px) {
    .oag-overlap__layout,
    .oag-overlap--text-left .oag-overlap__layout {
        flex-direction: column !important;
    }

    .oag-overlap__main-title {
        text-align: left !important;
        padding: 0 20px;
    }

    .oag-overlap__visual-container, 
    .oag-overlap__content-column {
        flex: 0 0 100%;
        width: 100%;
    }

    .oag-overlap__visual-container {
        min-height: 400px;
    }

    .oag-overlap__figure {
        border-radius: 0 !important;
    }

    .oag-overlap__card,
    .oag-overlap--text-left .oag-overlap__card {
        border-radius: 0 !important;
        border-left: 5px solid var(--oag-primary);
        border-right: none;
    }
}

/* 1. Grid-Setup (bleibt wie bei dir) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
    justify-content: center;
    
    
}

.video-item {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 5px;
    
   
}

/* 2. Vorschaubild-Container */
.thumb-box {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px; /* Etwas weicher für den modernen Look */
}

/* 3. Das Overlay (jetzt mit OAG-Blau-Touch) */
.video-button-overlay {
    position: absolute;
    top: -40px; 
    left: -40px; 
    width: 100%; 
    height: 100%;
    display: flex;
    justify-content: flex-end; /* Horizontal nach rechts */
    align-items: flex-end;     /* Vertikal nach unten */
    background: rgba(1, 67, 133, 0.00);
    
    /* ÄNDERUNG HIER: */
    padding: 20px; /* Setzt den Abstand zu allen Seiten auf 20px */
    
    transition: background 0.3s ease;
}

/* Optional: Button im Grid etwas kleiner machen, damit er unten rechts nicht zu wuchtig wirkt */
.play-button {
    width: 60px; 
    height: 40px;
    /* ... restliches Design bleibt gleich ... */
}



/* 4. Der NEUE Glossy Play-Button für das Grid */
.play-button {
    width: 60px; /* Im Grid etwas kompakter als im Header */
    height: 30px;
    /* Der gläserne OAG-Verlauf */
    background: linear-gradient(180deg, #4da6ff 0%, #014385 100%);
    border-radius: 5px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Der Glanz-Reflex im kleinen Button */
.play-button::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
}

/* Das weiße Play-Dreieck */
.play-arrow {
    width: 0; height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 3px;
    z-index: 2;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

/* 5. Hover-Effekte für das Video-Item */
.video-item:hover .video-button-overlay {
    background: rgba(1, 67, 133, 0.0); 
      widht: 400px;/* Wird beim Hover blauer */
}

.video-item:hover .play-button {
    transform: scale(1.1);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(1, 67, 133, 0.5), inset 0 2px 5px rgba(255, 255, 255, 0.8);
  
}

.video-teaser {
    margin: 12px 0px 12px 0px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #014385; /* Titel in OAG-Blau */
    text-align: center;
    background: #fff;
}



