body,form,figure{margin:0;padding:0}img{border:0}header,footer,nav,section,aside,article,figure,figcaption{display:block}body{font-size:100.01%}select,input,textarea{font-size:99%}#container,.inside{position:relative}#main,#left,#right{float:left;position:relative}#main{width:100%}#left{margin-left:-100%}#right{margin-right:-100%}#footer{clear:both}#main .inside{min-height:1px}.ce_gallery>ul,.content-gallery>ul{margin:0;padding:0;overflow:hidden;list-style:none}.ce_gallery>ul li,.content-gallery>ul li{float:left}.ce_gallery>ul li.col_first,.content-gallery>ul li.col_first{clear:left}.float_left,.media--left>figure{float:left}.float_right,.media--right>figure{float:right}.block{overflow:hidden}.media{display:flow-root}.clear,#clear{height:.1px;font-size:.1px;line-height:.1px;clear:both}.invisible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.custom{display:block}#container:after,.custom:after{content:"";display:table;clear:both}
@media (max-width:767px){#wrapper{margin:0;width:auto}#container{padding-left:0;padding-right:0}#main,#left,#right{float:none;width:auto}#left{right:0;margin-left:0}#right{margin-right:0}}img{max-width:100%;height:auto}.audio_container audio{max-width:100%}.video_container video{max-width:100%;height:auto}.aspect,.responsive{position:relative;height:0}.aspect iframe,.responsive iframe{position:absolute;top:0;left:0;width:100%;height:100%}.aspect--16\:9,.responsive.ratio-169{padding-bottom:56.25%}.aspect--16\:10,.responsive.ratio-1610{padding-bottom:62.5%}.aspect--21\:9,.responsive.ratio-219{padding-bottom:42.8571%}.aspect--4\:3,.responsive.ratio-43{padding-bottom:75%}.aspect--3\:2,.responsive.ratio-32{padding-bottom:66.6666%}.aspect--9\:16,.responsive.ratio-916{padding-bottom:177.7777%}.aspect--1\:1,.responsive.ratio-11{padding-bottom:100%}
/*
 * Stylesheet for Contao 5.x
 * Base by mario.assmann@acs-it.de
 * Normalized for Production
 */

/* ==========================================================================
   1. Variablen (Custom Properties)
   ========================================================================== */
:root {
    /* Brand Colors */
   
    --color-gray-dark: #849BA5;
    --color-gray: #B8C8CC;
    --color-gray-light: #E4E7ED;
    --color-white: #fff;
    --color-black: #444;
    --color-orange-dark: #D15C01;
    --color-orange: #EC6602;
    --color-orange-light: #FF7003;
    --color-green-dark: #9CB409;
    --color-green: #AFCA05;
    --color-green-light: #C2DE0B;
    --color-teal-dark: #007B96;
    --color-teal: #0089A7;
    --color-teal-light: #0094B5;
    --color-blue-dark: #005568;
    --color-blue: #006B82;
    --color-blue-light: #007A93;
    --color-blue-extra-light: color-mix(in srgb, var(--color-blue) 2%, white);;
    --color-gruen: #a5c126ff;
    
                                   
    /* Semantic Colors */
    --color-bg-default: #fff;
    --color-text-on-default: var(--color-teal-dark);
    --color-bg-nav: var(--color-teal-dark);
    --color-text-on-nav: #fff;
    --mm-color-background: var(--color-teal-light);
    
    /* Background & Text Pairs */
    --bg-default: #fff;
    --text-on-default: var(--color-teal-dark);

    --bg-subtle: var(--dunkelviolett);
    --text-on-subtle: var(--dunkelviolett);

    --bg-contrast: var(--flieder);
    --text-on-contrast: #fff;

    --bg-accent: var(--color-gray-light);
    --text-on-accent: var(--color-teal-dark);
    
    --bg-header: var(--color-blue-dark);
    
    --bg-footer: var(--color-blue-dark);
    --text-on-footer: #fff;
    
    --color-hamburger: var(--color-bg-default); 
    
    --bg-slider-card: var(--color-blue-extra-light); 
    --bg-slider-card-header: var(--color-blue);
    --color-slider-navigation: var(--color-blue);
    
    --color-on-slider: #fff;

    /* Layout Sizes */
    --width-small: 700px;
    --width-regular: 1000px;
    --width-large: 1240px;
    --width-full: 100vw;
  
    /* Spacing System */
    --space-sm: 1.25rem;    /* 20px base */
    --space-md: 2.5rem;     /* 40px base */
    --space-lg: 5rem;       /* 80px base */
    --space-xl: 8rem;       /* 128px base */
    --gap:      var(--space-sm);
    
    --header-height: 60px;
    
    /* Typography stacks */
    --ff-body: 'Open Sans', "Arial", sans-serif;
    --ff-heading: 'Open Sans 700', sans-serif;
    --font-size-default: 18px;

    /* Fluid Typography (80px -> 45px etc.) */
    --fs-80: clamp(2.813rem, 4.042vw + 1.767rem, 5rem);
    --lh-80: clamp(2.637rem, 3.789vw + 1.656rem, 4.688rem);

    --fs-60: clamp(2.813rem, 1.732vw + 2.364rem, 3.75rem);
    --lh-60: clamp(2.503rem, 1.542vw + 2.104rem, 3.338rem);

    --fs-45: clamp(2.5rem, 0.577vw + 2.351rem, 2.813rem);
    --lh-45: clamp(2.5rem, 0.577vw + 2.351rem, 2.813rem);

    --fs-35: clamp(1.563rem, 1.155vw + 1.264rem, 2.188rem);
    --lh-35: clamp(1.781rem, 1.316vw + 1.441rem, 2.494rem);
    
    --fs-30: clamp(1.375rem, 1.018vw + 1.112rem, 1.875rem);
    --lh-30: clamp(1.375rem, 1.018vw + 1.112rem, 1.875rem);
    
    --fs-22: clamp(1.25rem, 0.231vw + 1.19rem, 1.375rem);
    --lh-22: clamp(1.412rem, 0.261vw + 1.345rem, 1.554rem);
    
    --fs-service-nav: 0.85rem;
    
    /* Border Styles */
    --base-border-radius:   calc(var(--gap) / 4); 
    --base-border-width:    0px;
    --base-border-color:    var(--color-brand-primary);
    
    /* Accordion */
    --bg-accordion-toggler: var(--color-blue);
    --bg-accordion:         var(--color-blue-extra-light);
    --text-on-accordion-toggler: #fff;
    
    /* Team */
    --bg-team-text:         var(--color-blue);
    --text-on-team-text:    #fff;
    
}

/* ==========================================================================
   2. Modern Reset & Fonts
   ========================================================================== */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../../files/theme/ikpe-pflegestrukturplanung/fonts/open-sans-v44-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Open Sans 700';
    font-style: normal;
    font-weight: 700;
    src: url('../../files/theme/ikpe-pflegestrukturplanung/fonts/open-sans-v44-latin-700.woff2') format('woff2');
}

*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin: 0;
}

img, picture {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
}

/* ==========================================================================
   3. Basis-Layout und Grids
   ========================================================================== */
html {
    font-size: var(--font-size-default);
    background: var(--color-bg-default);
    scroll-behavior: smooth;
    /* Passe diesen Wert an die reale Höhe deines Headers an */
    scroll-padding-top: var(--header-height);
}

body {
    color: var(--color-text-on-default);
    font-family: var(--ff-body); /* Geändert von 'Open Sans' */
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Contao Standard-Container */
.mod_article {
    width: 100%;
    position: relative;
    
}

.mod_article .inside {
    margin-left: auto;
    margin-right: auto;
    padding: var(--space-md) var(--space-sm);
}

main .content-text:not(.ce_accordion),
main .mod_eventlist {
    margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
    .mod_article .inside {
        padding: var(--space-md) var(--space-sm);
    }
}

  /* Grids */
  .grid { display: grid; gap: 1rem; }
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-2-3-2 { grid-template-columns: 3fr 2fr;  }
  .grid figure {display: grid; justify-content: flex-end;}

/* ==========================================================================
   4. Typografie & Content Elements
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--ff-heading); /* Geändert von 'Open Sans 700' */
    font-weight: 700;
    color: var(--color-teal-dark);
    margin-bottom: var(--space-sm);
}

h2 { margin-top: var(--space-lg); }
h3 { margin-top: var(--space-md); }
h4 { margin-top: var(--space-sm); }
h1:first-child, h2:first-child, h3:first-child { margin-top: 0; }

/* Sticky Headlines: Wenn zwei Überschriften aufeinander folgen */
h1 + h2, h2 + h3, h3 + h4 { margin-top: 0.5rem; }

h1, .h1 {
    font-size: var(--fs-35); /* Standard für Inhaltsseiten */
    line-height: var(--lh-35);
}

/* Die ganz große Hero-Überschrift (z.B. nur auf der Startseite) */
.hero-title {
    font-size: var(--fs-80);
    line-height: var(--lh-80);
}

h2, .h2 {
    font-size: var(--fs-35);
    line-height: var(--lh-35);
}

h3, .h3 {
    font-size: var(--fs-30);
    line-height: var(--lh-30);
}

p, ul, ol, .ce_text, .ce_table {
    margin-bottom: var(--space-sm);
}

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

/* Listen */
ul, ol {
    padding-left: var(--space-sm);
}

li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

li::marker {
    color: var(--gelbbraun);
    font-size: 1.1em;
}

/* Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
    line-height: 1.4;
}

th, td {
    padding: var(--space-sm);
    border-bottom: 1px solid var(--gruenbraun);
    vertical-align: top;
    text-align: left;
}

th {
    font-family: var(--ff-heading); 
    background-color: rgba(176, 116, 37, 0.1);
    border-bottom: 2px solid var(--gelbbraun);
}

a, a:hover, a:active {
  color: var(--color-text-on-default);
}

.wartung #wrapper {
  min-height: 100vh;
  background-color: #a5c126;
}

.wartung .mod_article {
  background-color: #a5c126;
}

.content-text h1,
.content-text h2,
.content-text h3,
.content-text p,
a {
    hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ==========================================================================
   5. Komponenten (Header, Footer, Nav)
   ========================================================================== */

/* 5.1 Header & Nav */
#header {
    background: var(--bg-header); 
    background-image: linear-gradient(
      to bottom, 
      transparent calc(100% - 50px), 
      var(--flieder) calc(100% - 50px), 
      var(--flieder) calc(100% - 40px), 
      var(--dunkelviolett) calc(100% - 40px)
    );
    
    background-repeat: no-repeat;
 }
 
 /* Der neue "Sticky"-Zustand des Headers */
.header--sticky #header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
}
 
#header .inside {
    position: relative;
}


.header-content .inside {
  padding: var(--space-lg) var(--space-sm);
}

@keyframes smoothFade {
  0% {


    display: block;
  }
  100% {


    display: none;
  }
}

@keyframes display {
  0% {


    display: none;
  }
  100% {


    display: block;
  }
}


.header-logo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    max-width: var(--width-large);
    width: 100%;
}

.header-logo figure,
.header-logo-no-claim figure {

  display: flex;
  justify-content: flex-end;
  position: relative;

}

.header-logo figure img {
  position: absolute;
  top: 0;
  background: #fff;
  border-bottom-right-radius: var(--base-border-radius);
  border-bottom-left-radius: var(--base-border-radius);
  padding:  var(--space-sm);
}

.header-logo-no-claim {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    max-width: var(--width-large);
    width: 100%;
}
.header-logo-no-claim figure img {
  position: absolute;
  top: 0;
  background: #fff;
  border-bottom-right-radius: revert;
  border-bottom-left-radius: revert;
  padding:  5px var(--space-sm);
}

/* Grundzustand: Logo ohne Claim ist versteckt */
.header-logo-no-claim {
    display: none;
}

.header-logo img {
 /*   display: none;*/ /* Logo mit Claim verschwindet */

 /*    width: 350px;   */
     transition: width 0.5s ease;
}
/* Zustand wenn GESKROLLT wird */
.is-scrolled .header-logo img {
 /*   display: none;*/ /* Logo mit Claim verschwindet */

    width: 0px;
    transition: width 0.5s ease;


}

.is-scrolled .header-logo-no-claim {
    display: block; /* Kompaktes Logo erscheint */
}
@media (max-width: 768px) {
  
  .header-logo {
    display: none;
  }
  
  .header-logo-no-claim {
    display: block;
}
  
  

}


.nav-row {
/*  background: var(--bg-header); */
  height: var(--header-height);
  position: relative;
}

.nav-row ul {
    max-width: var(--width-large);
    display: flex;
    list-style: none;
    gap: var(--space-sm);
    margin: 0 auto;
    padding: 0 var(--space-sm);
    line-height: 2.5;
}

.nav-row a, .nav-row strong {
    text-decoration: none;
    color: var(--color-text-on-nav);
    font-size: 1.333rem;
}

.nav-row a:hover {
  font-weight: bold;
}

.nav-row ul li {
    margin-bottom: initial;
    padding-left: initial;
}

.nav-row .nav-icon {
  display: none;
  position: absolute;
  left: var(--space-sm);
  top: var(--space-sm);
}

/* 1. Auf ALLEN Seiten (Standard): Alle Links AUSSER dem ersten ausblenden */
/*
.nav-row ul.level_1 li:first-child {
  display: none;
}
*/
/* Styling für den ersten Navigationspunkt (Startseite / Home) */
.nav-row ul.level_1 li.home a,
.nav-row ul.level_1 li.home strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0; /* Verbirgt den Text "Startseite" visuell */
  width: 2rem;
  height: 2rem;
  position: relative;
  margin-top: 0.6rem;
}

/* Einbinden des Haus-Icons per SVG-Background */
.nav-row ul.level_1 li.home a::before,
.nav-row ul.level_1 li.home strong::before {
  content: "";
  display: block;
  width: 2rem;
  height: 2rem;
  background-color: currentColor; /* Passt sich automatisch der Schriftfarbe an */
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>') no-repeat center / contain;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>') no-repeat center / contain;
}


/* 2. Nur auf der Startseite (.home): */

/* a) Das erste Element (Startseite) ausblenden */
/*
.home .nav-row ul.level_1 li:first-child {
  display: none;
}
*/

/* b) Alle anderen Elemente wieder auf ihren ursprünglichen Display-Wert zurücksetzen */
/*
.home .nav-row ul.level_1 li:not(:first-child) {
  display: revert; */ /* Stellt den Originalwert (z.B. flex/inline-block) wieder her */
/* }
*/


/* Footer */
#footer {
    background-color: var(--bg-footer);
    color: var(--text-on-footer);
    padding: var(--space-md) 0;
}

#footer .inside {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr;
    gap: var(--space-md);
    max-width: var(--width-large);
    margin: 0 auto;
    align-items: flex-end;
}

#footer a {
    color: var(--text-on-footer);
    text-decoration: none;
}

@media (max-width: 768px) {

 #footer .inside  {
   grid-template-columns: initial;
 }
 
 
 footer .content-element-group {
    text-align: center;
 }
 
  footer .content-element-group img {
    margin: 0 auto;
 }
 
}



/* 3. Mobile Zustände (Media Query innerhalb der Komponente) */
@media (max-width: 1120px) {

    .nav-row .nav-icon {
      display: block;
    }

    /* Das "Burger"-Icon aus CSS-Linien */
    .burger-inner, 
    .burger-inner::before, 
    .burger-inner::after {
        width: 1.5rem;
        height: 2px;
        background-color: var(--hellviolett);
        position: absolute;
        transition: all 0.3s ease;
    }

    .burger-inner::before { content: ""; top: -8px; left: 0; }
    .burger-inner::after  { content: ""; top: 8px; left: 0; }
    
    /* Desktop-Navigation ausblenden */
    .nav-row ul.level_1 {
        position: static;
        height: 0;
        overflow: hidden;
    }
    
    .nav-row.active {
      height: auto;
    }

    .nav-row.active ul.level_1 {
        position: static;
        overflow: visible;
        padding-top: 80px;
        flex-direction: column;
        height: auto;
        transition: 0.2s;
        gap: initial;
        text-align: center;
    }
    
}

/* --- 5.3 Service-Navigation (Footer/Top-Bar) --- */


.nav-service ul {
    display: flex;
    flex-direction: column; /* Untereinander auf Handys */
  /*  gap: 0.75rem;*/
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-service ul li {
    padding-left: initial;
    margin-bottom: initial;
}

.nav-service a {
    text-decoration: none;
   /* font-size: var(--fs-service-nav);     */
    color: inherit; /* Übernimmt die Farbe vom Footer (z.B. hellbeige) */
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

/* Interaktion & Barrierefreiheit */
.nav-service a:hover {
    color: var(--gelbbraun);
    text-decoration: underline;
}

.nav-row a:focus,
.nav-service a:focus,
.event a:focus,
p.back a:focus {
    outline: 3px solid #fff; /* Deine Akzentfarbe */
    outline-offset: 4px;
    background-color: #fff; /* Kontrast zum Hintergrund */
    color: var(--text-on-default);
    border-radius: 2px;
}

.event a:focus,
p.back a:focus {
    outline: 3px solid var(--text-on-default);
 }

/* Mobile Anpassung */
@media (max-width: 768px) {
    .nav-service ul {
        flex-direction: column; /* Untereinander auf Handys */
        gap: 0.75rem;
      /*  align-items: center; */   /* Falls der Footer zentriert ist */
    }

    .nav-service li::after {
        display: none;          /* Trennstrich auf Mobile ausblenden */
    }
}

.nav-smedia {

    width: 50vw;
    background-color: var(--color-orange);
    display: flex;
    justify-content: flex-end;
    position: relative;
    overflow: visible;

}

.nav-smedia ul.level_1 {
  display: flex;
  list-style: none;
  padding: 0 var(--space-md) 0 0;
  gap: var(--gap);
  z-index: 2;
}

.nav-smedia a {
    text-transform: uppercase;
    font-weight: bold;
    color: var(--color-text-on-nav);
    text-decoration: none;
    z-index: 5;
    display: inherit;
 }
 
 .nav-smedia a::before {
     content: "";
    display: inline-block;
    width: 16px;       /* Breite der Grafik anpassen */
    height: 16px;      /* Höhe der Grafik anpassen */
    margin-right: 8px; /* Abstand zwischen Grafik und Link-Text */
    background-image: url('../../files/theme/ikpe-pflegestrukturplanung/img/right_nl.svg'); /* Pfad zu Ihrer Grafik */
    background-size: contain;
    vertical-align: middle; /* Richtet die Grafik mittig zum Text aus */
 }

.nav-smedia::after {
    content: "";
    position: absolute;
    right: -40px; /* Schiebt das Dreieck genau rechts an den Balken heran */
    top: 0;
    width: 0;
    height: 0;
    /* Erzeugt ein nach rechts zeigendes Dreieck, das so hoch ist wie der Balken */
    border-top: 0 solid transparent;
    border-bottom: 80px solid transparent;
    border-left: 40px solid var(--color-orange); 
    z-index: 1;
}

@media screen and (max-width: 960px) {
.nav-smedia {
    width: 100%;
    justify-content: center;
}

   .nav-smedia a::before {
    display: none;
   }
   
   .nav-smedia a, .nav-smedia ul, .nav-smedia li {
     padding: 0;
     margin: 0;
   }
   
   .nav-smedia ul.level_1 {

       padding:  10px 0;  
   }
   
}

.mod_newsreader,
.mod_eventreader {
    padding-top: var(--space-lg);
}



/* ==========================================================================
   Paginierung - Layout nach Screenshot & Barrierefrei (WCAG AA)
   ========================================================================== */

.pagination {
    display: flex;
    flex-direction: column; /* Text oben, Buttons darunter */
    align-items: flex-start; /* Strikte Linksausrichtung */
    gap: 0.5rem; /* Abstand zwischen Text und Buttons */
    margin: 2rem 0;
    font-size: 0.95rem;
}

/* Info-Text ("Seite 1 von 2") oben */
.pagination p {
    margin: 0;
    color: var(--text-on-default);
    font-weight: 400;
}

/* Button-Reihe */
.pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem; /* Abstand zwischen den Buttons */
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination ul li {
  padding-left: initial;
}

/* Gemeinsames Basis-Styling für Zahlen & Buttons */
.pagination a,
.pagination strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem; /* Quadratische Basis für Zahlen */
    height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.15s ease-in-out;
}

/* --------------------------------------------------------------------------
   BARRIEREFREIE FARBEN
   -------------------------------------------------------------------------- */

/* Aktiver Button (strong.active)
   WICHTIG: Auf dem hellgrünen Hintergrund MUSS dunkler Text (#0f172a) stehen.
   Weißer Text erreicht nur einen Kontrast von ~1.9:1 (erforderlich: mind. 4.5:1). */
.pagination strong.active,
.pagination strong[aria-current="page"] {
    background-color: var(--color-green, #afca05);
    color: #0f172a; /* Dunkler Text sorgt für perfekten Kontrast (> 8:1) */
    border: 1px solid var(--color-green, #afca05);
    font-weight: 700;
}

/* Inaktive Zahlen & "Vorwärts"-Button (Rahmen wie im Screenshot) */
.pagination a {
    background-color: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1; /* Solide graue Umrandung */
}

/* Hover-Zustand für Klick-Feedback */
.pagination a:hover {
    background-color: #f8fafc;
    border-color: #64748b;
    color: #0f172a;
}

/* Tastatur-Fokus-Ring für Barrierefreiheit */
.pagination a:focus-visible {
    outline: 3px solid #005b70; /* Verwendet dein Dunkelblau/Teal aus der Navigation */
    outline-offset: 2px;
}

/* ==========================================================================
   6. Formulare
   ========================================================================== */
form {
    padding: var(--space-md);
    border-radius: 4px;
}

.formbody {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.widget-textarea, .widget-checkbox, .widget-submit {
    grid-column: span 2;
}

input[type="text"], input[type="email"], select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--hellbeige);
    border: 1px solid transparent;
    color: var(--logobraun);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--logobraun);
}

button[type="submit"] {
    background-color: var(--logobraun);
    color: var(--hellbeige);
    padding: 1rem 2rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background-color: var(--gelbbraun);
}

/* ==========================================================================
   7. Hilfsklassen & Utilities
   ========================================================================== */
.invisible { display: none !important; }

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Hintergrund-Stile für Artikel-Templates */
.bg-default  { background-color: var(--bg-default);  color: var(--text-on-default); }
.bg-subtle   { background-color: var(--bg-subtle);   color: var(--text-on-subtle); }
.bg-contrast { background-color: var(--bg-contrast); color: var(--text-on-contrast); }
.bg-accent   { background-color: var(--bg-accent);   color: var(--text-on-accent); }

/* WICHTIG: Kontrast für Überschriften innerhalb dieser Hintergründe anpassen */
.bg-contrast h1, .bg-contrast h2, .bg-contrast h3, .bg-contrast h4,
.bg-accent h1, .bg-accent h2, .bg-accent h3, .bg-accent h4 {
    color: inherit; /* Nutzt die Textfarbe der jeweiligen bg-Klasse */
}

/* Breiten-Varianten für .mod_article */
.width-large .inside  { max-width: var(--width-large); }
.width-medium .inside { max-width: var(--width-regular); }
.width-small .inside  { max-width: var(--width-small); }
.width-full .inside   { max-width: none; padding: 0; }

.borderline-akzent {
  border-bottom: 40px solid var(--dunkelviolett); 
}

.skip-link {
    position: absolute;
    top: -100px;         
    left: 10px;
    background: #fff; 
    color: var(--color-text-on-default); 
    padding: 1rem;
    z-index: 2000;
    text-decoration: none;
}

.skip-link:focus {
    top: 10px;              /* Erscheint beim Tabben */
    outline: 3px solid var(--color-text-on-default); /* Deine Akzentfarbe */
    outline-offset: 4px;
    background-color: #fff; /* Kontrast zum Hintergrund */
    color: var(--color-text-on-default);
    border-radius: 2px;
}

.deco-1 {
  border-bottom: solid #fff var(--space-xl);
}

.mod_article.padding-y-0 > .inside {
  padding: 0;
}

.bg-gruen {
  background: var(--color-gruen);
}



/* ==========================================================================
   Module (Eventliste, News, etc.)
   ========================================================================== */

/* Container für die Liste */

.mod_eventlist.cards .card {
    background: #fff;
    color: var(--text-on-default);
}

.mod_eventlist.cards .card header {
  background: var(--dunkelviolett);
  color: #fff;
  text-align: center;
  padding: var(--space-sm);
}



.mod_eventlist.cards .card:not(:last-child) {
  margin-bottom: var(--space-md);
}

.mod_eventlist.cards .card header h3 {
  margin: 0;
}

.mod_eventlist.cards .card .event-content {
  padding: var(--space-md);
}

.mod_eventlist.cards .card .event-content > *:last-child {
  margin-bottom: 0;
}

.mod_eventlist.cards .card .event-content .location,
.mod_eventlist.cards .card .event-content .info {
  display: flex;
}

.mod_eventlist.cards .card .event-content .location span,
.mod_eventlist.cards .card .event-content .info span {
  font-weight: bold;
  width: var(--space-md);
}


/* Container für die einfache Liste */

.mod_newslist .layout_simple {
    display: flex;
    align-items: baseline; /* Richtet Text und Datum an der Schriftlinie aus */
    padding: 10px 0;
    border-bottom: 1px solid #eef2f4; /* Dezente Trennlinie */
}

.mod_newslist .layout_simple:last-child {
    border-bottom: none; /* Letzte Linie entfernen */
}

/* Datum-Styling */
.mod_newslist .layout_simple time {
    flex: 0 0 100px; /* Gibt dem Datum einen festen Platz (bündig) */

}

/* Link-Styling */
.mod_newslist .layout_simple .link {
    flex: 1; /* Der Link nimmt den Rest des Platzes ein */
}

.mod_newslist .layout_simple .link a {
    color: #006f84; /* Dein Teal-Farbton */
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
}

.mod_newslist .layout_simple .link a:hover {

    text-decoration: underline;
}


/* Grundfarben */

.is-card-slider .swiper-slide {
    height: auto !important; /* Wichtig für Swiper */
    display: flex !important; 
    flex-direction: column;
}


/* Der Container-Schutz: Alles wirkt nur innerhalb von .is-card-slider */
.is-card-slider .layout_latest,
.is-card-slider .event { 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: var(--bg-slider-card);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: none;
}

/* Header-Bereich (Headline) */
.is-card-slider .layout_latest h2,
.is-card-slider .layout_latest h3,
.is-card-slider .event h2,
.is-card-slider .event h3 {
    order: 1; /* Nach oben schieben */
    background-color: var(--bg-slider-card-header);
    margin: 0;
    padding: calc(var(--space-sm) / 2) var(--space-sm);
    font-size: 1.25rem;
   /* min-height: 80px;*/ /* Optional: sorgt für einheitlich hohe Header */
    display: flex;
    align-items: center;
}

.is-card-slider .layout_latest h2 a,
.is-card-slider .layout_latest h3 a,
.is-card-slider .event h2,
.is-card-slider .event h3,
.is-card-slider .event h2 a,
.is-card-slider .event h3 a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: bold;
}

/* Datum / Info-Zeile */
.is-card-slider .info,
.is-card-slider .date {
    order: 2;
    margin: 0;
}

/* Teaser-Text */
.is-card-slider .ce_text,
.is-card-slider .teaser {
    order: 3;
    padding: var(--space-sm) var(--space-sm) 0 var(--space-sm);
    flex-grow: 1;
    flex-direction: column;
    
}

.is-card-slider .ce_text p,
.is-card-slider .teaser p {

}

/* Weiterlesen-Link */
.is-card-slider .more {
    order: 4;
    padding: var(--space-sm);
    margin: 0;
}

.is-card-slider .more a {
    color: var(--slider-teal);
    font-weight: bold;
    text-decoration: underline;
}


/* ---- Pagination und Pfeile ---- */
/* --- Swiper Container Anpassung --- */
.is-card-slider .swiper {
    /* WICHTIG: Platz unten schaffen, damit Pfeile/Punkte nicht über dem Text liegen */
    padding-bottom: 70px !important;
    position: relative;
}

/* --- 1. PAGINATION (Die Punkte) --- */
.is-card-slider .swiper-pagination {
    bottom: 15px !important; /* Position am unteren Rand des Containers */
}

.is-card-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--color-slider-navigation); /* Nutzt deine Farbe */
    opacity: 0.3;
    transition: all 0.3s ease;
    margin: 0 6px !important;
}

.is-card-slider .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.3); /* Aktiver Punkt ist etwas größer */
    background: var(--color-slider-navigation);
}

/* --- 2. NAVIGATION (Die Pfeile) --- */
/* Wir positionieren die Pfeile links und rechts von der Pagination unten mittig */
.is-card-slider .swiper-button-next,
.is-card-slider .swiper-button-prev {
    top: auto !important;     /* Hebt die vertikale Zentrierung auf */
    bottom: 8px !important;   /* Gleiche Höhe wie die Pagination */
    color: var(--slider-teal);
    width: 40px;
    height: 40px;
    margin: 0;
    transition: transform 0.2s ease, opacity 0.2s;
}

/* Die Standard-Pfeile von Swiper verkleinern */
.is-card-slider .swiper-button-next:after,
.is-card-slider .swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Pfeile seitlich von der Mitte ausrichten */
.is-card-slider .swiper-button-prev {
    left: 50% !important;
    transform: translateX(-120px); /* Schiebt den linken Pfeil nach links */
}

.is-card-slider .swiper-button-next {
    right: 50% !important;
    transform: translateX(120px); /* Schiebt den rechten Pfeil nach rechts */
}

/* Hover-Effekte für die Pfeile */
.is-card-slider .swiper-button-next:hover,
.is-card-slider .swiper-button-prev:hover {
    opacity: 0.6;
}

    .slider-portrait {display: none;}
    

/* --- 3. RESPONSIVE ANPASSUNG --- */
@media (max-width: 768px) {
    /* Auf dem Handy die Pfeile weiter nach außen schieben oder ausblenden */
    .is-card-slider .swiper-button-prev {
        left: 20px !important;
        transform: none;
    }
    .is-card-slider .swiper-button-next {
        right: 20px !important;
        transform: none;
    }
    
    .slider-portrait {display: block;}
    .slider-landscape {display: none;}
    
}

#material.block .content-downloads {
  /*max-width: var(--width-small);*/
}

/* 0. Accordion */
.ce_accordion.ce_text {
    margin-bottom: initial;
}

.ce_accordion .content-text {
    margin: initial;
}

.ce_accordion.block {
    margin-bottom: var(--space-sm);
}

.ce_accordion  {
    border-radius: var(--base-border-radius);
    border: var(--base-border-width) solid var(--base-border-color);
    background-color: var(--bg-accordion);
}




/* 1. Die Überschrift / Der Schalter */
.ce_accordion .toggler {
    padding: 15px 15px 15px 45px;
    cursor: pointer;
    margin-bottom: 0;
    position: relative;
    font-weight: bold;
    display: block; /* Verhindert ungewollte Abstände */

    border-radius: var(--base-border-radius);
    border: var(--base-border-width) solid var(--base-border-color);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--bg-accordion-toggler);
    color: var(--text-on-accordion-toggler);
}

/* Aktiver Zustand des Togglers (optisch absetzen) */
.ce_accordion .toggler.active {
    border-bottom: 1px solid transparent; /* Verhindert Doppel-Rahmen zum Inhalt */
}

/* 2. Plus/Minus Icon AM ANFANG (vorne) */
.ce_accordion .toggler::before {
    content: '+';
    position: absolute;
    left: 15px;             /* Position von links */
    top: 50%;               /* Vertikal zentrieren */
    transform: translateY(-50%); /* Exakte vertikale Mitte */
    font-family: monospace;
    font-size: 1.4rem;
    line-height: 1;
}

/* Minus-Zeichen im aktiven Zustand */
.ce_accordion .toggler.active::before {
    content: '-';
}

/* 3. Der Inhaltsbereich (Startzustand: Komplett kollabiert) */
.ce_accordion .accordion {
    max-height: 0;          /* Absolut keine Höhe */
    overflow: hidden;       /* Inhalt abschneiden */
    margin: 0;              /* WICHTIG: Keine Außenabstände */
    padding: 0;             /* WICHTIG: Keine Innenabstände hier */
    border: 1px solid #ddd;
    border-top: none;
    border-bottom: none;    /* Rahmen im geschlossenen Zustand verstecken */
    transition: max-height 0.4s ease-in-out, border-bottom 0.1s;
    
}

/* 4. Wenn aktiv: Höhe freigeben */
.ce_accordion .accordion.active {
    max-height: 2000px;     /* Genug Platz für den Inhalt */
    border-bottom: 1px solid #ddd; /* Rahmen unten wieder einblenden */
    
}

/* 5. Der innere Container (Hier liegen die Abstände!) */
.ce_accordion .accordion {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
}

.ce_accordion .accordion.active {
    padding: var(--space-md);
}

.ce_accordion.text-column-2 .accordion > div,
.text-column-2 > div {
    columns: 2 20em;
    column-gap: var(--gap);
}

.accordion .content-text {
  margin: 0 !important;
}

.accordion .content-element-group {
  margin-top: var(--space-md);
}

/* ==========================================================================
   Service- und Beratungsstelle (Dreispaltiges Teaser-Element)
   ========================================================================== */

.service-box-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* Nahtloser Übergang wie im Screenshot */
    width: 100%;
    border-radius: var(--base-border-radius);
    overflow: hidden; /* Rundet die Ecken des Gesamtblocks ab, falls gewünscht */
}

/* Die gemeinsame Hauptüberschrift (Dunkelblau/Navy) */
.service-box-group h3 {
    grid-column: 1 / -1; /* Geht über alle 3 Spalten */
    margin: 0;
    background-color: #003a6a; /* Dunkelblau aus dem Screenshot */
    color: #ffffff;
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-35);
    line-height: var(--lh-35);
}

/* Allgemeine Spalten-Einstellungen */
.service-box-group .content-text {
    margin: 0; /* Überschreibt Contao-Standardabstände */
    padding: var(--space-md) var(--space-sm);
    color: #ffffff; /* Weißer Text für alle Inhalte */
    display: flex;
    flex-direction: column;
}

/* Erzwingt weißen Text für die H4-Überschriften in den Boxen */
.service-box-group .content-text h4 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: var(--space-sm);
    font-size: var(--fs-22);
    line-height: var(--lh-22);
}

/* Optionale Anpassung für Listen/Pfeile innerhalb der Boxen */
.service-box-group .rte ul li::marker {
    color: #ffffff; /* Macht die Listenpunkte ebenfalls weiß */
}

/* --------------------------------------------------------------------------
   Individuelle Hintergrundfarben der Spalten (Abgestimmt auf das Bild)
   -------------------------------------------------------------------------- */

/* Spalte 1: Orange */
.service-box-group .content-text:nth-of-type(1) {
    background-color: var(--color-orange); 
}

/* Spalte 2: Hellgrün / Maigrün */
.service-box-group .content-text:nth-of-type(2) {
    background-color: var(--color-green); 
}

/* Spalte 3: Hellblau / Petrol-Teal */
.service-box-group .content-text:nth-of-type(3) {
    background-color: #4baec4; /* Exakter Farbton aus dem Screenshot */
}

/* --------------------------------------------------------------------------
   Responsive Anpassung (Mobile First / Breakpoint)
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
    .service-box-group {
        grid-template-columns: 1fr; /* Schaltet auf Handys untereinander */
    }
    
    .service-box-group h3 {
        font-size: var(--fs-30); /* Etwas kleinere Überschrift auf Mobile */
    }
}


/* TEAM */
/* Beschreibung standardmäßig ausblenden */
/* Der Hauptcontainer bleibt Grid */
.mod_newslist.col-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    grid-auto-flow: dense;
}

/* TEAM */
/* Beschreibung standardmäßig ausblenden */
/* Der Hauptcontainer bleibt Grid */
.mod_newslist.team {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    grid-auto-flow: dense;
}

/* Die Karte löst sich auf, damit das Kind (.team-text) die ganze Zeile füllen kann */
.team-member {
    display: contents; 
}

/* DER HEADER: Bild und Name als vertikale Einheit */
.member-header {
    grid-column: span 1;  /* Belegt eine von vier Spalten */
    display: flex;
    flex-direction: column; /* Bild oben, Name unten */
    cursor: pointer;
    border-radius: var(--base-border-radius);
    overflow: hidden; /* Damit das Bild oben die Ecken nicht überlagert */
}

/* Bild-Container im Header */
.member-header .image_container {
    margin: 0;
    width: 100%;
}

.member-header .image_container img {
    display: block;
    width: 100%;
    height: auto;
}

.member-header.is-active {
    overflow: visible;
}

.member-header.is-active .team-description::after {
    content: "";
    position: absolute;
    bottom: -31px;
    width: 0px;
    height: 0px;
    -webkit-transform: rotate(
       360deg);
    border-style: solid;
    border-width: 0 calc(0.75 * var(--gap)) var(--gap) calc(0.75 * var(--gap));
    border-color: transparent transparent var(--bg-team-text) transparent;
    z-index: 1000;
    animation: slideDown 0.4s ease-out;
}

/* Blauer Kasten im Header */
.team-description {
    background-color: var(--bg-team-text);
    color: var(--text-on-team-text);
    padding: calc(1 * var(--gap));
    margin-bottom: 0;
    text-align: center;
    position: relative;
    flex-grow: 1;
}

.team-description h3,
.team-description h4 { margin-bottom: 0;}

.team-description h3 { font-size: 120%;}
.team-description h4 { font-size: 100%;}

/* DER TEXT-BEREICH (Full Width) */
.team-text {
    display: none; /* Standardmäßig aus */
    grid-column: 1 / -1; /* Volle Breite */
    background-color: var(--bg-team-text);
    color: var(--text-on-team-text);
    padding: calc(1.5 * var(--gap));
    border-radius: var(--base-border-radius);
    margin-top: 10px;
    margin-bottom: 20px;
    columns: 2 20em;
    column-gap: calc(1 * var(--gap));
    animation: slideDown 0.4s ease-out;

}

/* Sichtbarkeit steuern */
/* WICHTIGE ÄNDERUNG: Direkt auf die Klasse am Text reagieren */
.team-text.is-open {
    display: block !important; /* Erzwingt das Anzeigen */
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Anpassung */
@media (max-width: 1024px) {
    .mod_newslist.team { grid-template-columns: repeat(2, 1fr); }
    .mod_newslist.col-3 { grid-template-columns: repeat(2, 1fr); }

}
@media (max-width: 600px) {
    .mod_newslist.team { grid-template-columns: 1fr; }
    .mod_newslist.col-3 { grid-template-columns: 1fr; }
}

/* Der Galerie-Container */
.content-gallery > ul {
    display: grid;
    gap: var(--gap); /* Abstand zwischen den Bildern */
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 4 Spalten Logik */
.content-gallery--cols-4 > ul {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsivität für Tablet (2 Spalten) */
@media (max-width: 1024px) {
    .content-gallery--cols-4 > ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsivität für Smartphone (1 Spalte) */
@media (max-width: 600px) {
    .content-gallery--cols-4 > ul {
        grid-template-columns: 1fr;
    }
}

/* Optik der Listenelemente und Bilder */
.content-gallery li figure {
    margin: 0;
}

.content-gallery img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--base-border-radius); /* Falls du Rundungen nutzt */
    transition: transform 0.3s ease;
}

/* Ein kleiner Hover-Effekt (optional) */
.content-gallery a:hover img {
    transform: scale(1.02);
}


/* ------ Header Slider (sliderjs mit gallery )------- */
/* Der Container für den Text über dem Bild */
.slide-overlay {
    position: absolute;
    inset: 0; /* Deckt den ganzen Slide ab */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertikal zentriert */
    align-items: center;     /* Horizontal zentriert */
    text-align: center;
    background: rgba(0, 0, 0, 0.25); /* Sanfter dunkler Schleier für Kontrast */
    color: #ffffff;
    padding: 20px;
    z-index: 10;
}

/* Die Haupt-Überschrift (Claim) */
.slide-overlay h2 {
    /* Deine dynamische Größe */
    font-size: clamp(1.75rem, 5vw, 4rem); 
    font-weight: 800;
    line-height: 1.2; /* Etwas mehr Zeilenabstand für die Transparenz-Boxen */
    margin-bottom: 1rem;
    text-transform: uppercase;
    max-width: 80%;
    color: var(--color-on-slider);

    /* --- Die Transparenz-Box hinter dem Text --- */
    background-color: rgba(0, 0, 0, 0.5); /* 50% Transparenz (Schwarz) */
    padding: 0.2rem 0.8rem;               /* Abstand Text zum Rand der Box */
    
    display: inline;                       /* WICHTIG: Erlaubt den Zeilenumbruch der Box */
    
    /* Sorgt dafür, dass Padding an jedem Zeilenanfang/-ende gerendert wird */
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    
    /* Schatten für bessere Lesbarkeit auf dem Bild */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Den Container (Overlay) müssen wir jetzt neutralisieren */
.slide-overlay {
    background: transparent !important; /* Ganze Fläche ist jetzt durchsichtig */
    display: block;
    padding-top: 15%; /* Positionierung von oben */

}
/* Der begleitende Text */
.slide-overlay .subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    max-width: 600px;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Kleiner Animationseffekt beim Slide-Wechsel */
.swiper-slide-active .slide-overlay h2 {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Container-Anpassung, falls noch nicht geschehen */
.header-slider {
    position: relative;
}

.header-slider .swiper-slide {
  padding: 0 2em;
}

.header-slider figure {
  position: relative;
}

.header-slider figcaption {
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Der Button-Stil */
.swiper-button-pause {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px); /* Schicker Milchglas-Effekt */
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--base-border-radius);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

/* ==========================================================================
   8. Downloads (Contao 5.x / 5.7)
   ========================================================================== */

/* CONTAINER-BEREINIGUNG: Weg von Kacheln */
.content-downloads ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-element {
    background: transparent;
    border-bottom: 1px solid var(--color-gray-light);
    padding: var(--space-sm) 0;
    display: block; /* Standardstapelung */
}

/* KOPFZEILE MIT TITEL UND META (GESCHLOSSENER ZUSTAND) */
.download-element a.download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-teal-dark);
    text-decoration: none;
}

.download-element a.download-link .title:hover {
    text-decoration: underline;
}

/* Das SVG-Icon (SVG-style) */
.file-icon {
    width: 20px;
    height: 20px;
    stroke: var(--color-teal); /* Nutzt dein Teal */
}

.download-link svg {
    margin-right: 10px;
    vertical-align: middle; /* Sorgt dafür, dass Icon und Text auf einer Linie liegen */
    position: relative;
    top: -1px; /* Optische Korrektur */
}

.download-meta-header {
    display: inline-block;
    float: right;
    margin-top: 2px;
}

.download-attribute {
    font-size: 0.85rem;
    color: var(--color-gray-dark);
    white-space: nowrap;
}

/* DETAILBEREICH UND KLAPPMECHANISMUS */
.download-details {
    margin-top: 5px;
    clear: both; /* Für korrekte Positionierung */
}

/* nativer Dreieck-Pfeil im Teal-Design */
.download-details summary {
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-teal);
    font-weight: 600;
    list-style: none;
    display: inline-flex;
    align-items: center;
}

.download-details summary::-webkit-details-marker {
    display: none;
}

.download-details summary::before {
    content: '▶';
    display: inline-block;
    font-size: 0.7rem;
    margin-right: 6px;
    transition: transform 0.2s ease;
}

.download-details[open] summary::before {
    transform: rotate(90deg);
}

/* STRUKTURIERTER INHALT (GEÖFFNETER ZUSTAND) */
.details-content {
    display: grid;
    grid-template-columns: 1fr; /* Stapelung standardmäßig */
    gap: var(--space-md);
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    background: var(--color-gray-light);
    border-radius: var(--base-border-radius);
    border-left: 3px solid var(--color-teal);
}

/* Grid-Layout aktivieren, wenn ein Bild da ist */
.details-content:has(.download-preview) {
    grid-template-columns: auto 1fr;
}

/* Bildunterschrift dezent */
.download-preview figcaption {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 4px;
}

.details-header {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--color-black);
}

.download-caption {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-black);
}

.technical-details {
    grid-column: 1 / -1; /* Über volle Breite */
    font-size: 0.8rem;
    color: var(--color-gray-dark);
    border-top: 1px solid var(--color-gray);
    padding-top: 5px;
}


/* ==========================================================================
   9. Media Queries (Mobile First oder Anpassungen)
   ========================================================================== */
@media (max-width: 768px) {

    .header-content .inside {
      padding: var(--space-sm) var(--space-sm) var(--space-lg) var(--space-sm);
    }

    .formbody, .footer-grid .inside, .grid {
        grid-template-columns: 1fr !important;
    }
    
    .grid figure {display: grid; justify-content: center; padding-top: var(--space-sm);}
    
    main .content-text,
    main .mod_eventlist  {
        margin-top: var(--space-md);
        margin-bottom: var(--space-md);
    }

    /* #header .content-image img { max-width: 276px; }  */
    
    .mobile-trigger {
        display: flex;
        /* Burger-Logik hier lassen */
    }
    
    .mod_eventlist.cards .card .event-content {
      padding: var(--space-sm);
    }
    
    .mod_eventlist.cards .card .event-content .location,
    .mod_eventlist.cards .card .event-content .info {
      flex-direction: column;
      text-align: center;
    }
    
    .mod_eventlist.cards .card .event-content .location span,
    .mod_eventlist.cards .card .event-content .info span {
      width: initial;
    }
    
}

/* Container für die Eventliste */
.mod_eventlist.eventarchiv {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

/* Einzelner Event-Eintrag (Karte) */
.mod_eventlist .event.bygone  {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-left: 4px solid var(--color-orange, #e65c00); /* Oranger Akzentstreifen links */
    padding: 12px 18px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover-Effekt für die gesamte Karte */
.mod_eventlist .event.bygone:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Datums- / Zeit-Badge (links) */
.mod_eventlist .bygone time.date {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f0f4f7;
    color: #00687d; /* Dunkelblau aus deinen Headern/Akkordeons */
    font-weight: bold;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 4px;
    margin-right: 20px;
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
    border: 1px solid #dce5ec;
}

/* Event-Titel & Link (rechts) */
.mod_eventlist .event.bygone a {
    color: #00687d;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
}

/* Hover für den Link-Text */
.mod_eventlist .event.bygone a:hover {
    color: var(--color-orange, #e65c00);
    text-decoration: underline;
}

/* Optionale Anpassung für Mobilgeräte (bricht Datum und Titel untereinander um) */
@media screen and (max-width: 600px) {
    .mod_eventlist .event.bygone  {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .mod_eventlist .bygone time.date {
        margin-right: 0;
        min-width: auto;
    }
}

