/*
Theme Name: Wojo PHP
Theme URI: https://oferperspektive.de
Author: WoJo
Description: Basic PHP-only WordPress block-ready theme.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: wojo-php
*/

@import url("assets/fonts/lora.css");
@import url("assets/fonts/roboto.css");
@import url("assets/fonts/montserrat.css");
@import url("assets/menue-1.css");
@import url("assets/hotfix-utilities.css");
@import url("assets/die-welle.css");
@import url("assets/table.css");
/* @import url("assets/socials.css"); */
/* FONT FAMILY*/
body, p, a, input, textarea {
    font-family: "Montserrat-Light", sans-serif !important;
}
h1, h2, h3, h4, h5, h6, button, select, .main-navigation a, a.more-link, #menu-top-menu a, summary {
    font-family: "Montserrat-Medium", sans-serif !important;
    
}
a {
    text-decoration: none;
    color: var(--opp-link);
}

p a{
  color: var(--opp-lila);
  text-decoration: underline;
}
h1, h2, h1 a, h2 a, h3.h2{
font-style: normal !important;
color: var(--headline-color) !important;
}
h3, h3.h4, h3 a, .datum{
font-style: normal !important;
color: var(--text-color) !important;
}
h4, h5, h6, h4 a,  h5 a, h6 a{
font-style: normal !important;
color: var(--opp-lila) !important;
}

h3,
h3.h1,
h3.h2 {
  font-size: 2rem !important;
  line-height: 1.3;
}


h1, h1.h2, h1.h3{
	font-size: 3rem !important;
	line-height: 1.5;
	hyphens: auto;
}
	
h2, h2.h1, h2.h3{
	font-size: 2.5rem !important;
	line-height: 1.3;
	hyphens: auto;
}	

h3, h3.h1, h3.h2{
	font-size: 2.00rem !important;
	line-height: 1.3;
	hyphens: auto;
}	

h3.h5{
	font-size: 1.5rem !important;
	line-height: 1.3;
	hyphens: auto;
	color: var(--opp-lila) !important;
}	
h4 {
  font-size: 1.50rem !important;
  line-height: 1.3;
  hyphens: auto;
}

h4.h5{
	color: var(--opp-lila) !important;
}

h5 {
  font-size: 1.25rem !important;
  line-height: 1.2;
  hyphens: auto;
}

h6 {
  font-size: 1.15rem !important;
  line-height: 1.2;
  hyphens: auto;
}

/*** AUSNAHMEN FÜR H1 ***/

.post-48758.page.type-page.status-publish.hentry h1,
.post-49154.page.type-page.status-publish.hentry h1,
.post-49165.page.type-page.status-publish.hentry h1,
.post-49178.page.type-page.status-publish.hentry h1,
.post-49183.page.type-page.status-publish.hentry h1,
.post-49205.page.type-page.status-publish.hentry h1,
.post-49368.page.type-page.status-publish.hentry h1 {
  display: none;
}

/* Fallback für Browser ohne clip */
@supports not (overflow: clip){
  html, body{ overflow-x: hidden; }
}

body {
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
	font-size: 1em;
}

button, .more {
    background-color: var(--opp-lila);
    color: #fff;
    height: 40px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    text-align: center;
  }

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

strong{
  font-weight: 700;
}

/*
main li::marker {
  content: "■ " !important;
  color: #726E97 !important;
  font-size: 1.18em !important;
}*/



:root{
  --opp-beige: #f3ebde;
  --opp-white: #ffffff;
  --opp-red: #b51d28;
  --opp-green: #92a76e;
  --opp-terracotta: #d47f3c;
  --opp-lila: #726E97;
  --opp-link: #726e97;

  --opp-text: #2a2a2a;
  --opp-muted: #666;
  --opp-border: rgba(0,0,0,.10);

  --opp-radius: 8px;
  --opp-shadow-soft: 0px 5px 10px rgba(0, 0, 0, .18);

  /* Wellenhöhe Header responsive */
  --opp-wave-h: clamp(160px, 18vw, 300px);

  /* Button */
  --opp-btn-pad-y: 12px;
  --opp-btn-pad-x: 18px;
  --opp-btn-letter: .4px;
}


/*
Iframe Hintergrund
*/
iframe {
    background: #fff !important;
}
iframe {
    background-color: white;
}
:root {
    color-scheme: light;
}
/* Basic reset/fix */
body{ margin:0 !important; }

/* Fullwidth Fix (Classic Themes) */
.alignfull{
  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}


/* Header-Grundlayout */
.site-header{
  position: relative;
  overflow: visible;
  padding: 0 !important;
  isolation: auto;
  z-index: 1000;
}

.header-top{
  margin: 0 !important;
  padding: 0 0 30px 0 !important;
  background-color: var(--opp-white);
}

.container {
    max-width: 1320px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    padding-top: 2rem;
}
@media (min-width: 1351px){
  .container{ 
  margin-left: auto;
  margin-right: auto;
  }
}
@media (max-width: 1350px){
  .container{ 
  margin-left: 15px;
  margin-right: 15px;
  }
}
/*** FIX FÜR GUTENBERG ***/
.alignfull > .wp-block-group__inner-container.is-layout-constrained {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.site-header .container{
  position: relative;
  z-index: 2;
}

.header-bottom h1{
  margin-top: 0;
}

/* Skip link */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: #fff;
  color: #000;
  padding: 10px 14px;
}
.skip-link:focus{
  left: 10px;
  top: 10px;
  outline: 3px solid #000;
}

@media (max-width: 900px){
  .header-top {
    margin-top: -10px !important;
    padding-top: 10px !important;
    background-color: var(--opp-white);
  }
}

/*============================
Chronologie Filter
=============================*/
/* .trigger{

}
      .cf-chronologie{

  margin:0;
}
ul.cf-chronologie{

   margin: 0;
   font-size: 80%;
   font-weight: 800;
 }
.cf-chronologie li{
list-style: none;

  }
  ul.cf-chronologie{
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
  }
.chrono-date{

}
.chrono-meta{
vertical-align: top;

margin: 0 0 1em;
}
.datum{
  text-align: right
}
  
.su-spoiler.title-top-right .su-spoiler-title {
      float: right;
     
      padding-right: 10px;
  }
   */

  /*========================================
  Archive (Chronologie)
  =======================================  */

 .chronologie-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
   gap: 1.5rem;
   margin-top: 2rem;
 }
 
 .chronologie-grid article {
   position: relative;
   background: #fff;
  padding: 1rem 1rem 4rem;
   border-radius: 6px;
   box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
  display: initial;
   flex-direction: column;
 }
 
 .chronologie-grid article h2 {
   margin-top: 0;
   margin-bottom: 0.5rem;
 }
 
 .chronologie-grid article .chrono-date {
   font-size: 0.9rem;
   color: #666;
   margin-bottom: 1rem;
 }
 
 .chronologie-grid article .datum {
   font-weight: 600;
 }
 
 .grid-footer{
   /* display: flex; 
   justify-content: flex-end; */
   position: absolute;
   bottom:1rem;
   right: 1rem;
   text-align: end;
 }
 .grid-footer a{
   background-color: var(--terracotta-color);
   color: #fff;
   height:35px;
   border: none;
   border-radius: 5px;
   font-size: 1em;
   text-align: center;
   width: 150px;
   display: block;
   padding: 0.6rem 0 0 0;
 }

 .meta-img{
   display: block;
 }
.cat-img img {
   width: 100% !important;
   border: none !important;
   height: auto;
 }

 .such-resultat{
   background: #fff;
   border-radius: 7px;
   padding: 1.5em;
   margin: 2rem 0 4rem;
 }

  /** =======================================
 Pagination
 =======================================*/
 
 .page-numbers{
   padding: 0 10px;
   border-right: 0.5px solid #ccc;
 }
 .nav-links{
   padding: 15px 10px;
   border: 0.5px solid #ccc;
   border-radius: 5px;
   background: #fff;
   display: initial;
   
 }
 .pagination{
   margin: 2em 0 4em;
 }
 .next.page-numbers{
   border-right: 0 !important;
 }
 .page-numbers:hover{
  background: #efefef !important;
 }
 .page-numbers.current{
   background: transparent;
 }
 
/* ===============================================
* Single post-navigation (pre/next)
================================================*/
.navigation.post-navigation{
  display: flex;
  gap: 0 30px;
  
}

.navigation.post-navigation .nav-links {
  display: flex;
  justify-content: space-between; 
  align-items: center; 
  border: 1px solid #ccc;
  padding: 10px;
  width: 100%;
  margin-top: 3rem;
  background: var(--opp-lila);

}
  .navigation.post-navigation .nav-links a{
    color:#fff;
  }
.nav-next::before {
float: right;
content: "»»";
margin-left: 1em;
}

.nav-previous::after {
float:left;
content: "««"; 
margin-right: 0.5em;

}
.nav-next, .nav-previous{
  width:45%
}
.nav-next {
  text-align: end;
 
}
.single article img{
  max-width: 300px;
  height: auto; float:left;
 margin: 5.5em 2em 2em 0;
}
.single article .cat-img img{
  max-width: 500px !important;
 margin: 1em 2em 0 0;
}

/* ===============================================
single.php
================================================== */
.single-content,  .single-meta-img{
  min-height:100%;
  float:left;
}

 .single-meta-img{
  padding: 0 1.5rem 1.5rem 0;

 }
 .single-meta-img img{
   width:100%;
 }
 .single-content img{
   max-width: 100% !important;
 }
 .wp-caption{
   width: 100% !important;
 }
 @media (min-width: 801px){
   .single-meta-img{
    max-width: 30%;
  }
  .single-content{
    max-width: 70%;
  }
 .single-content--no-image {
    max-width: 100%;
  }
  .single-img-content{
    display: flex;
  }

 }
 @media (max-width: 800px){
  .single-meta-img, .single-content{
    width: 100% !important;
  }
  .single-img-content, .navigation.post-navigation{
    display: block;
  }
  .single-content{
    max-width: 100%;
  }
  iframe{
    display:flex;
    max-width: 100% !important;
  }
 }

  
 /* Inhalt */
 .single-content__body {
   margin-top: 1rem;
   min-width: 100%;
 }
 
 /* Zusammenfassung */
 .single-summary {
   margin-bottom: 1rem;
 }
 
 /* Standard Bild */
 .single-meta-img {
   margin-bottom: 1rem;
 }
 
 /* NUR wenn kein Summary vorhanden */
 .single-meta-img--float {
   float: left;
   margin: 0 20px 10px 0;
   max-width: 300px; /* optional */
 }
 
 /* sorgt dafür, dass Layout nicht bricht */
 .single-img-content::after {
   content: "";
   display: block;
   clear: both;
 }
 
 /* ===========
 new 
 ============== */
 /* Top-Bereich */
 .single-post-top {
   margin-bottom: 1.5rem;
 }
 
 /* 2-Spalten Layout (Bild + Summary) */
 .single-post--split .single-post-top {
   display: grid;
   grid-template-columns: minmax(220px, 450px) 1fr;
   gap: 2rem;
   align-items: start;
 }
 
 /* Bilder */
 .single-post-media img,
 .single-post-media picture img {
   display: block;
   max-width: 100%;
   height: auto;
 }
 
 /* Float-Layout (kein Summary) */
 .single-post-flow::after {
   content: "";
   display: block;
   clear: both;
 }
 
 .single-post-media--float {
   float: left;
   max-width: 40%;
   margin: 0 2.5rem 2rem 0;
 }
 .single-post-media{
   /* max-width:40%; */
 }
 
 /* Text */
 .single-post-summary {
   margin: 1rem 0 0;
   font-size:1.4rem;
 }
 
 .single-post-body {
   width: 100%;
 }
 
 .single-post-date {
   margin-bottom: 0.75rem;
 }
 
 /* Responsive */
 @media (max-width: 768px) {
   .single-post--split .single-post-top {
     grid-template-columns: 1fr;
   }
 
   .single-post-media--float {
     float: none;
     max-width: 100%;
     margin: 0 0 1rem 0;
   }
 }
/* ===============================================
Navigation Social Links
================================================== */
#menu-top-menu{
float:right;
}
.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
.header-social-block {
  float: right;
  margin-top: 6px;
}
.header-social-block a{
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
height: 1px;
overflow: hidden;
width: 1px;
}

.social-links {
  margin-top: 0;
  float: right;
}

.social-links ul li {
  float: left;
}

.social-instagram > a > .screen-reader-text,
.social-facebook > a > .screen-reader-text,
.social-bluesky > a > .screen-reader-text,
.social-bluesky > a > .screen-reader-text, 
.social-sprachen > button > .screen-reader-text{
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.social-sprachen button img {
  width: 28px;
  height: 28px;
  margin-top: -10px;

}

.header-bottom h1{ margin-top: 0; }

/* 3) Hero Grid (links Text+Button, rechts Bild) */
.header-hero{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 900px){
  .header-hero{
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.lcp-readmore-button {
    background-color: #92a76e;
    color: #fff;
    border-radius: 0 !important;
    font-style: normal !important;
    text-transform: uppercase !important;
}

.header-hero__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px; /* Touch target */
  padding: 20px 50px !important;
  text-decoration: none;
}

.header-hero__media{
  width: 100%;
}

.header-hero__placeholder{
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #e9e9e9;
  border: 2px dashed #bdbdbd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-hero__placeholder span{
  padding: 10px 12px;
}

@media (max-width: 900px){
  .header-top {
    margin-top: -10px !important;
    padding-top: 10px !important;
    background-color: var(--opp-white);
  }
}


/* =========================================================
   ELEMENTE:
   - Buttons: radius 8px, font-weight 600
   - Buttons außerhalb Gridbox: background var(--opp-red)
   - Buttons in Gridbox: background var(--opp-green), width 60%
   - Gridboxen: radius 8px + leichter Schatten
   - Responsive: Grid/Boxen 100% (1 Spalte), Gridbox-Buttons 100%
   - Button-Ausrichtung via .pos_links / .pos_right / .pos_center
========================================================= */

/* Container */
.opp-container,
.wp-block-group.opp-container{
  max-width: 1320px;
  margin-left:auto;
  margin-right:auto;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-radius: 12px;
}
@media (max-width: 900px){
  .opp-container,
  .wp-block-group.opp-container{
    padding-left: 20px;
    padding-right: 20px;
hyphens: auto !important;
  }
}

/* Sections */
.opp-section{ position:relative; top: 20px; }
.opp-bg-beige{ background:var(--opp-beige); }
.opp-bg-white{ background:var(--opp-white); }
.opp-bg-lila{ background:var(--opp-lila);}

.opp-pad-hero{ 
 padding: 100px 0; 
 background: transparent !important; 
}
/*.opp-pad-lg{ padding:0 20px 20px 20px !important; }*/
.opp-pad-md{ padding:100px 20px 50px 20px !important; }

/* Visually hidden (für a11y Überschriften) */
.opp-visually-hidden{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* Typo */
.opp-section h2{
  line-height:1.15;
  margin:0 0 14px;
}
.opp-section h3{
  margin:0 0 10px;
}

.opp-section p, .opp-section li{
  line-height:1.45;
}

/* Standard-Link (nicht Button) */
.opp-section a:not(.wp-element-button):not(.wp-block-button__link){
  color:var(--opp-lila);
  text-underline-offset: .2em;
}
.opp-section a:not(.wp-element-button):not(.wp-block-button__link):hover{
  text-decoration: underline;
}

/* =========================================================
   BUTTONS – zentrale Regeln
   - Default: rot (außerhalb Gridbox)
   - In .opp-gridbox: grün + 60%
========================================================= */

/* 1) Basis für alle Button-Elemente / Button-Links */
.wp-element-button,
.wp-block-button__link,
button.wp-element-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding: var(--opp-btn-pad-y) var(--opp-btn-pad-x);
  border-radius: var(--opp-radius);
  border: 0;
  text-decoration:none;
  text-transform: uppercase;
  letter-spacing: var(--opp-btn-letter);
  font-weight: 500;               /* gefordert */
  line-height: 1.2;

  cursor:pointer;
}
.wp-text-button__link{
  display:inline-flex;
  align-items:right;
  justify-content:right;
  gap:.5rem;
  padding: var(--opp-btn-pad-y) var(--opp-btn-pad-x);
  text-decoration:none;
  text-transform: uppercase;
  letter-spacing: var(--opp-btn-letter);
  font-weight: 500;               /* gefordert */
  line-height: 1.2;
  cursor:pointer;
  background:transparent;
  color:#000 !important;
}
/* 2) Default-Farbe: Buttons außerhalb Gridbox = rot */
.wp-element-button,
.wp-block-button__link {
  background: var(--opp-lila);
  color: var(--opp-white);
}

.opp-postcard__footer a.wp-element-button {
  background-color: var(--opp-lila) !important;
  color: var(--opp-text) !important;
}

  
.wp-block-button__link.wp-element-button {
    background: var(--opp-lila);
    color: var(--opp-white);
    border-left: 4px solid var(--opp-lila);
    box-shadow: var(--opp-shadow-soft);
    border-top: 1px var(--opp-border);
}
.wp-infoblock-button__link.wp-element-button {
    background: var(--opp-white);
    color: var(--opp-text);
    border-left: 4px solid var(--opp-lila);
    box-shadow: var(--opp-shadow-soft);
    border-top: 1px var(--opp-border);
}

/* 3) Gridbox-Regel: Buttons in Boxen = grün + 60% */
/* .opp-gridbox .wp-element-button,
.opp-gridbox .wp-block-button__link{
  background: var(--opp-red);
  color: var(--opp-text)!important;
  width: auto !important;
} */

/* 4) Hover/Focus: WCAG-sichere Fokus-Umrandung */
.wp-element-button:hover,
.wp-block-button__link:hover{
  filter: brightness(.95);
}
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible,
input:focus-visible{
  outline: 3px solid rgba(181, 29, 40, .45);
  outline-offset: 3px;
}

/* Responsive: Gridbox-Buttons 100% */
@media (max-width: 980px){
  .opp-gridbox .wp-element-button,
  .opp-gridbox .wp-block-button__link{
    width: 88%;
  }
}

/* =========================================================
   Button-Position Utilities (individuell pro Wrapper)
   Nutze am Wrapper: .wp-block-buttons.pos_links / .pos_right / .pos_center
========================================================= */

.wp-block-buttons.pos_links{ justify-content:flex-start; text-align:left; }
.wp-block-buttons.pos_right{ justify-content:flex-end; text-align:right; }
.wp-block-buttons.pos_center{ justify-content:center; text-align:center; }

/* Falls Buttons NICHT in wp-block-buttons liegen */
.pos_links{ justify-content:flex-start; text-align:left; }
.pos_right{ justify-content:flex-end; text-align:right; }
.pos_center{ justify-content:center; text-align:center; }


/*** Runder Button ***/
.circle-btn {
  width: auto !important;
  margin-left: auto !important;
}

.circle-btn.wp-block-button,
.circle-btn .wp-block-button__link {
  width: 120px !important;
  min-width: 120px;
}

.circle-btn .wp-block-button__link {
  height: 120px;
  padding: 0 !important;
  border-radius: 50% !important;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;

  line-height: 1.2;
  white-space: normal;
}
.circle-btn.wp-block-button,
.circle-btn .wp-block-button__link {
  width: 230px !important;
}

.circle-btn .wp-block-button__link {
  height: 230px !important;
  font-size: 14px;
}

/*** Runder Button in  3er Grid postion rechts ***/

.opp-news-box .wp-block-columns > .wp-block-column:last-child {
  display: flex;
  justify-content: flex-end;
}

.opp-news-box .wp-block-columns > .wp-block-column:last-child .wp-block-buttons {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.opp-news-box .circle-btn.wp-block-button {
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  border-left: 0px solid;
}

.opp-news-box .circle-btn .wp-block-button__link {
  width: 230px !important;
  height: 230px !important;
  padding: 12px !important;
  border-radius: 50% !important;
  border: 0px solid transparent;
  transform: rotate(10deg);
  transition: transform 0.2s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  box-sizing: border-box;
}


@media (max-width: 1024px) {

  .opp-news-box .wp-block-column:last-child {
    justify-content: center !important;
  }

  .opp-news-box .wp-block-buttons {
    justify-content: center !important;
  }

  .opp-news-box .circle-btn {
    margin-left: 0 !important;
  }

}

@media (max-width: 900px) {
 .opp-news-box .circle-btn .wp-block-button__link {
   width: 100% !important;
   height: auto !important;
   padding: 12px !important;
   border-radius: 5px !important;
   border: 0px solid transparent;
   transform: rotate(0deg);
   transition: transform 0.2s ease;
   display: flex !important;
   align-items: center;
   justify-content: center;
   text-align: center;
   white-space: normal;
   line-height: 1.2;
   box-sizing: border-box;
 } 
 
 .opp-news-box .wp-block-image img {
     max-width: 100%;
     width: 500px !important;
 }
 
}  

/* =========================================================
   HERO
========================================================= */
.opp-hero-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
  align-items:start;
}
@media (min-width:900px){
  .opp-hero-grid{
    grid-template-columns:1.1fr 0.9fr;
    align-items:center;
    gap:28px;
  }
}
.opp-hero-media img{
  width:100%;
  height:auto;
  display:block;
}


/* =========================================================
   GRIDBOXEN – Radius + leichter umlaufender Schatten
   Markiere Karten/Boxen mit .opp-gridbox
========================================================= */
.opp-gridbox{
  border-radius: var(--opp-radius);
  box-shadow: var(--opp-shadow-soft);
  overflow:hidden;                 /* sauberer Radius bei Bildern/Footern */
  background:#fff;
}

/* =========================================================
   Service Grid (3 Boxen)
========================================================= */
.opp-service-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:22px;
}
@media (max-width:980px){
  .opp-service-grid{ grid-template-columns:1fr; }
}

.opp-service-card{
  border: 1px solid var(--opp-border);
  border-left: 4px solid var(--opp-lila);
  display:flex;
  flex-direction:column;
  min-height:auto;
}

.opp-service-head{
  background: var(--opp-white);
  color: var(--opp-red);
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  text-align:left;
}


h3.opp-service-head{
  color: var(--opp-text) !important;
}

.opp-service-body{
  padding: 10px 0;
  font-size: 15px;
}
.opp-service-sub{
  margin: 0 0 8px;
  color: var(--opp-red);
  font-weight: 600;
}
.opp-service-body p{ margin:0 0 10px; }
.opp-service-body p:last-child{ margin-bottom:0; color:var(--opp-muted); }

.opp-service-cta{
  margin-top:auto;
  padding: 10px 0 0 0;
}

/* =========================================================
   Karten Grid (Aktuelles / Publikationen)
========================================================= */
.opp-card-grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:22px;
  /* padding-bottom: 100px; */
  padding-top: 50px;
}
@media (max-width:980px){
  .opp-card-grid-3{ grid-template-columns:1fr; }
}

.opp-postcard{
  display:flex;
  flex-direction:column;
  min-height:100%;
}

/* Bild absolut positioniert und zugeschnitten */
.opp-postcard__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.opp-postcard__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.opp-postcard__body {
  padding: 18px;
  flex: 1;
}


.opp-postcard__body h3{
  margin:0 0 10px;
  color:var(--opp-text);
  font-size:1.50rem;
  border-left: 0px solid var(--opp-red);
  padding-left: 0px;
}
.opp-postcard__body p{ margin:0; color:var(--opp-muted); }

.opp-postcard__footer{
  padding: 14px 18px 18px;
}

/* =========================================
   OPP Zitat-Slider
========================================= */

.opp-quote-slider {
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
}

/* Viewport schneidet sauber ab */
.opp-quote-viewport {
  overflow: hidden;
  width: 100%;
}

/* Ohne JS: normale Liste */
.opp-quote-list {
  display: grid;
  gap: 24px;
}

.opp-quote-slide {
  margin: 0;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.opp-quote {
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 18px);
  margin: 0 0 8px;
}

.opp-quote p {
  margin: 0;
}

.opp-quote-caption {
  margin: 0;
}

/* Nur wenn JS aktiv ist */
.opp-quote-slider.is-enhanced {
  padding: 0 clamp(44px, 7vw, 110px);
  position: relative;
}

.opp-quote-slider.is-enhanced .opp-quote-list {
  display: flex;
  gap: 0;
  transition: transform .45s ease;
  will-change: transform;
}

.opp-quote-slider.is-enhanced .opp-quote-slide {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
}

/* Controls */
.opp-quote-controls {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 12px;
}

.opp-arrow {
  border: 0;
  background: var(--opp-lila) !important;
  box-shadow: none;
  color: var(--opp-white) !important;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  width: 60px;
  height: 60px;
  min-height: 60px;
  padding: 0 0 6px 0;
  border-radius: 8px;
}

.opp-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.opp-dot {
  width: 15px;
  min-width: 15px;
  max-width: 15px;
  height: 15px;
  min-height: 15px;
  padding: 0;
  border: 2px solid var(--opp-lila)!important;
  border-radius: 999px;
  background-color: var(--opp-white)!important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  color: transparent;
  font-size: 0;
}

.opp-dot.is-active {
  background-color: var(--opp-lila) !important;
}

.opp-arrow:focus-visible,
.opp-dot:focus-visible {
  outline: 3px solid rgba(181, 29, 40, .95);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .opp-quote-slider.is-enhanced .opp-quote-list {
    transition: none;
  }
}

@media (max-width: 767px) {
  .opp-quote-slider.is-enhanced {
    padding: 0 20px;
  }

  .opp-quote-controls {
    grid-template-columns: 40px 1fr 40px;
  }

  .opp-arrow {
    font-size: 34px;
    width: 40px;
    min-height: 40px;
    height: 40px;
  }
}

/* =========================================================
   Chronologie
========================================================= */
.opp-chrono-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:22px;
  /* padding-bottom: 100px; */
}
@media (max-width:980px){
  .opp-chrono-grid{ grid-template-columns:1fr; }
  .opp-postcard__media img { width: 100%; }
  .opp-pad-lg { padding: 50px 0 50px 0; }
  .breadcrumb {display:none;}
}	

/* .opp-chrono__top{ 
  padding:18px; 
} */
.opp-chrono__top h3{ 
  color:var(--opp-text); 
  margin:0 0 8px; 
  border-left: 3px solid var(--opp-red);
  padding-left: 7px;
  /* border-radius: 3px; */
  font-size: 1.50rem;
}
.opp-chrono__top p{ margin:0; color:var(--opp-muted); }

.opp-chrono__bottom{
  padding:20px 0;
  background: var(--opp-red);
  color:#fff;
}
.opp-chrono .opp-chrono__bottom{
  background-color: var(--opp-white) !important;
  color: var(--opp-text) !important;
}
.opp-chrono__bottom p{ margin:0 0 12px; color:#fff; }
.opp-chrono__bottom p{
  color: /*var(--opp-white)*/#212121 !important;
}

.opp-chrono .opp-postcard__media {
    position: relative;
	aspect-ratio: auto;
    /*width: 95%!important;*/
    /*padding-top: 25px;*/
}


/* Rechte-Gewalt-Buttons: 3er Grid mit sichtbarem Abstand auf Desktop */
@media (min-width: 901px){
  .wp-block-buttons.opp-buttons-row{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;              /* Abstand zwischen Spalten */
    align-items: stretch;
  }

  .wp-block-buttons.opp-buttons-row .wp-block-button{
    margin: 0 !important;              /* Theme-Margins killen */
    width: 100% !important;
  }

  /* Das ist dein funktionierender Ansatz – aber sauber zentriert */
  .wp-block-buttons.opp-buttons-row .wp-block-button__link,
  .wp-block-buttons.opp-buttons-row .wp-element-button{
    width: 92% !important;             /* sorgt für Luft innerhalb der Spalte */
    justify-self: center;              /* Grid: mittig in der Zelle */
    margin-left: auto !important;      /* Fallback, falls Theme Grid "stört" */
    margin-right: auto !important;
  }
}

/* Mobile: untereinander, volle Breite */
@media (max-width: 900px){
  .wp-block-buttons.opp-buttons-row{
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .wp-block-buttons.opp-buttons-row .wp-block-button__link,
  .wp-block-buttons.opp-buttons-row .wp-element-button{
    width: 90% !important;
	  margin-top: 10px;
  }
}


/* =========================================================
   Footer – lila, weiß, Logo links, Links mittig, Social rechts
========================================================= */
.opp-footer {
  background: var(--opp-lila);
  color: var(--opp-white);
  position: relative;
  margin-top: 0;
}

.opp-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -20px;
  height: 20px;
  background: var(--opp-lila);
}

.opp-footer__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

/* Brand */
.opp-footer__brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.opp-footer__brand-link{
  color: var(--opp-white);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.opp-footer__brand-link:focus-visible{
  outline: 3px solid rgba(255,255,255,.7);
  outline-offset: 3px;
}

/* Falls WP Custom Logo ausgegeben wird */
.opp-footer__brand .custom-logo{
  max-height: 34px;
  width: auto;
  display: block;
}

/* Nav */
.opp-footer__nav{
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}
.opp-footer__menu{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.opp-footer__menu a{
  color:  var(--opp-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.opp-footer__menu a:hover{
  text-decoration: underline;
  text-underline-offset: .2em;
}
.opp-footer__menu a:focus-visible{
  outline: 3px solid rgba(255,255,255,.7);
  outline-offset: 3px;
}

/* Social */
.opp-footer__social{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 90px;
}
.opp-footer__social-link{
  width: 28px;
  height: 28px;
  /*border-radius: 999px;*/
  /*border: 1px solid var(--opp-white);*/
  color: var(--opp-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 600;
}
.opp-footer__social-link:hover{
  background: rgba(255,255,255,.25);
}
.opp-footer__social-link:focus-visible{
  outline: 3px solid rgba(255,255,255,.7);
  outline-offset: 3px;
}

/* Bottom line */
.opp-footer__bottom{
  border-top: 1px solid rgba(255,255,255,.25);
}
.opp-footer__copy{
  margin: 0;
  padding: 10px 20px 20px;
  font-size: 12px;
  opacity: .9;
  color: var(--opp-white)
}

.opp-footer__bottom .opp-container{
  padding: 10px 20px 0;
}

/* Responsive */
@media (max-width: 900px){
  .opp-footer__inner{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .opp-footer__nav{
    justify-content: center;
  }

  .opp-footer__social{
    justify-content: center;
  }
}


/* =====================================================
 Mobile Menüanpassungen
   ===================================================== */

.opp-mainnav .icon-chevron-down:before {
    display: none !important;
}

.opp-mainnav .mod-menu button span {
    font-size: 1.35em;
    text-transform: uppercase !important;
    display: inline-flex;
    align-items: center;
    padding: .4rem 0;
}

@media (max-width: 1919.98px) {
    .opp-mainnav .mod-menu button span {
        font-size: 1.15em;
        padding: .5rem 0;
    }
}

@media (max-width: 1439.8px) {
    .opp-mainnav .mod-menu button span {
        font-size: 1.15em;
    }
}

@media (width <=991.98px) {

    .container-header .mod-menu .mod-menu__sub a,
    .container-header .mod-menu .mod-menu__sub span {
        color: #627E12 !important;
        font-size: 1.35em;
    }
}


/* =====================================================
   OPP Accordion
===================================================== */

.opp-accordion {
  margin: 20px 0 20px 0;
  padding: 0;
    box-shadow: 1px 5px 20px rgba(0, 0, 0, .18);
    border-left: 4px solid var(--opp-lila);
    /*border-radius: 8px;*/
}

details p { 
	color: var(--opp-text) !important;
}

.opp-accordion details {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.opp-accordion summary {
  cursor: pointer;
  background: var(--opp-white) !important;
  padding: 10px 15px 5px 15px !important;
  padding-right: 48px !important;
  font-weight: 500;
  font-size: 1.15rem;
  text-transform: uppercase;
  list-style: none;
  border-bottom: 2px solid #ffffff !important;
  position: relative;
  margin: 0 !important;
}
  .lowercase{
 text-transform: initial !important;
}

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

.opp-accordion summary::marker {
  content: "";
}

.opp-accordion summary,
.opp-accordion summary * {
    color: var(--opp-text) !important;
}

/* Plus */
.opp-accordion summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  line-height: 1;
  font-weight: 400;
  color: var(--opp-text);
}

/* Minus im offenen Zustand */
.opp-accordion details[open] summary::after {
  content: "−";
}

/* Inhalt im Gutenberg-Details-Block:
   alles innerhalb von details außer summary */
.opp-accordion details > *:not(summary) {
  background: var(--opp-white);
  color: var(--opp-text);
  padding: 18px !important;
  margin: 0;
}

/* Textfarbe im Inhalt */
.opp-accordion details > *:not(summary),
.opp-accordion details > *:not(summary) * {
  color: var(--opp-text);
}

/* Absätze im Content */
.opp-accordion details > *:not(summary) p {
  margin: 0 0 1em 0 !important;
}

.opp-accordion details > *:not(summary) p:last-child {
  margin-bottom: 0 !important;
}

/*** GUTENBERG ACCORDION ****/

.wp-block-details summary::marker {
    color: var(--opp-lila);
}

.opp-accordion.ohne-schatten{
	display: flex;
    align-items: center;   /* ← DAS ist der Fix */
    box-shadow: 0 4px 6px -4px rgba(0,0,0,0.0);
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	margin: 0px 0;
}
.opp-accordion.ohne-schatten summary {
    padding: 10px 15px 5px 15px !important;
}

.opp-accordion.ohne-schatten summary::after {
    content: "▶";
    position: relative;
   	left: 2%;
    top: 50%;
	transition: transform 0.2s ease;
    transform: rotate(-90deg);
    font-size: 15px;
    line-height: 1;
    font-weight: 400;
    color: var(--opp-lila);
}

.opp-accordion.ohne-schatten details[open] summary::after {
  left: 0.5%;
  content: "▼";
}

/* =====================================================
   OPP Accordion Grid – 2 Spalten fest
===================================================== */

.opp-accordion-grid{
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
  gap: 24px !important;
  align-items: start !important;
}

.opp-accordion-grid > .opp-accordion{
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}

.opp-accordion summary br{
  display: none !important;
}

/* ===== MOBILE ===== */

@media (max-width: 900px){

  .opp-accordion-grid{
    grid-template-columns: 1fr !important;
  }

  .opp-accordion-grid > .opp-accordion{
    width: 100% !important;
  }

  .opp-accordion summary{
    padding: 10px 30px 5px 10px !important;
  }

}

.opp-accordion,
.wp-block-details,
.wp-block-details__content,
.wp-block-column {
  min-width: 0;
}

/* =========================================================
   Newsletter Section – Fix: Text zentriert, Input überlappt nicht
========================================================= */

/* Beige Block */
.opp-news-box{
  background: var(--opp-white);
  border-top: 1px solid #ccc;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--opp-shadow-soft);
  overflow: hidden; /* Safety: verhindert visuelle Überläufe */
  margin: 4rem 0 6rem;
}

.opp-info-box{
  background: var(--opp-lila);
  border-top: 1px solid #ccc;
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--opp-shadow-soft);
  overflow: hidden; /* Safety: verhindert visuelle Überläufe */
}

  :root {
--gap: 1rem;
}

.brevo-opp-form {
margin: 0 auto;
}

.brevo-opp-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: var(--gap);
align-items: start;
}

.brevo-opp-form-group {
display: flex;
flex-direction: column;
}

.brevo-opp-label {
font-weight: 600;
}

.brevo-opp-input {
padding: 0.5rem;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 4px;
}

.brevo-opp-fieldset {
border: 1px solid #ccc;
border-radius: 4px;
padding: 0.75rem;
}

.brevo-opp-legend {
font-weight: 600;
padding: 0 0.25rem;
}

.brevo-opp-checkbox-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.brevo-opp-checkbox-item {
display: flex;
align-items: center;
gap: 0.5rem;
}

.brevo-opp-button {
padding: 0.75rem 1rem;
font-size: 1rem;
border: none;
border-radius: 4px;
cursor: pointer;
}

.brevo-opp-button:focus,
.brevo-opp-input:focus {
outline: 2px solid black;
outline-offset: 2px;
}
.last-grid-item{
  height:100%;
  
}
/* Responsive */
@media (max-width: 1024px) {
.brevo-opp-grid {
  grid-template-columns: 1fr;
}
}



.brevo-opp-submit-wrapper {
display: grid;
align-items: flex-end;
margin: 1.5rem 0;
}

.brevo-opp-submit-wrapper .wp-block-button__link.has-text-align-right.wp-element-button {
  background-color: var(--opp-lila);
  color: var(--opp-white);
      border-left: 0px solid var(--opp-lila);
}

@media (max-width: 1024px) {
.brevo-opp-submit-wrapper {
  align-items: stretch;
  }
}
@media (min-width: 1024px) {
.opp-news-input{
  margin: 1.5rem 0;
  }
}

.brevo-subscription-form input[type="checkbox"] {
  margin-right: 8px;
}


.opp-news-input{
width: 100%;
max-width: 100%;
box-sizing: border-box;
min-height: 52px;        
padding: 0 18px;        
line-height: 52px;       
border-radius: 8px;
border: 1px solid var(--opp-border);
background: #ffffff;
color: #000;
font-size: 16px;        
}

.opp-news-input::placeholder{
color: rgba(0,0,0,.55);
}

.opp-news-input:focus-visible{
outline: 3px solid rgba(181,29,40,.35);
outline-offset: 2px;
}


    /* Sicherstellen, dass Fokus sichtbar ist */
.opp-news-input:focus {
  outline: 2px solid #2a89f3;
  box-shadow: 0 0 0 3px rgba(42, 137, 243, 0.3);
}
/*
===================================================
Template-part content auswahl
===================================================
*/
.standart-page {
  background: var(--opp-white);
  box-shadow: 1px 10px 30px rgba(0, 0, 0, .28);
  padding: 40px 40px 0 40px !important;
  box-sizing: border-box;
  display: block;
  border-radius:12px;
  margin-top:2.5rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem !important;
}
/*
==================================================
Materialien filter positions
===================================================
*/
.category-materialien .archive-filter fieldset label{
  white-space: nowrap;
  
}

.category-materialien .archive-filter select{
  font-size: 1.2rem !important; 
}


.category-materialien .archive-filter .select-wrapper {
  position: relative;
  display: inline-block;
  padding: 10px; 
  border-radius: 4px; 
  overflow: visible; 
  z-index: auto;
  background: transparent;
  overflow: visible;
  z-index: auto; 
}

.category-materialien .archive-filter select {
  width: 200px;
  padding: 0 12px;
  height: 40px;
 border-radius: 4px;
 /* background-color: var(--opp-link);
 color: #fff; */
  appearance: none; 
  -webkit-appearance: none;
  -moz-appearance: none;
}
@media (max-width:450px) {
    .category-materialien .archive-filter fieldset label{
      overflow-wrap: break-word !important;
      word-break: break-word !important;
      white-space: normal !important;
    display: block;    
  }
  .category-materialien .archive-filter select{
    width:100% !important;
  }
}


/*
==================================================
Listenstyling
===================================================
*/

.wp-block-list {
    margin: .25rem 0 0 .25rem;
    padding-left: .8rem;
    min-height: 6.0rem;
}

.wp-block-list li {
    padding: 0;
}

.wp-block-list li::marker {
    /*content: "■ " !important;*/
    color: #726E97 !important;
    font-size: 1.2em !important;
}

.scroll-top-btn {
    background: var(--opp-lila) !important;
}

/* =====================================================
   Listen – Alternative Marker (eckig)
===================================================== */

.list-square li::marker,
.is-style-square li::marker {
  content: "■ ";
  color: var(--opp-lila);
  font-size: 1.1em;
}

/* Eckige Listenmarker – Gutenberg */
.wp-block-list.list-square,
.editor-styles-wrapper .wp-block-list.list-square {
  list-style-type: square !important;
  padding-left: 1.2em; /* sorgt für saubere Einrückung */
}

.wp-block-list.list-square li::marker,
.editor-styles-wrapper .wp-block-list.list-square li::marker {
  color: var(--opp-lila) !important;
  font-size: 1.2em !important;
}

/* =====================================================
   Responsive Headlines – Frontend
===================================================== */

@media (max-width: 1024px) {
  h1, h1.h2, h1.h3 { font-size: 2.6rem; line-height: 1.3; }
  h2, h2.h1, h2.h3 { font-size: 2.25rem; line-height: 1.25; }
  h3, h3.h1, h3.h2 { font-size: 1.85rem; line-height: 1.25; }
  h3.h5, h4 { font-size: 1.4rem; line-height: 1.3; }
}

@media (max-width: 900px) {
  h1, h1.h2, h1.h3 { font-size: 2.35rem; }
  h2, h2.h1, h2.h3 { font-size: 2rem; }
  h3, h3.h1, h3.h2 { font-size: 1.7rem; }
  h3.h5, h4 { font-size: 1.3rem; }
}

@media (max-width: 768px) {
  h1, h1.h2, h1.h3 { font-size: 2.1rem; line-height: 1.25; }
  h2, h2.h1, h2.h3 { font-size: 1.8rem; line-height: 1.25; }
  h3, h3.h1, h3.h2 { font-size: 1.55rem; line-height: 1.25; }
  h3.h5, h4 { font-size: 1.25rem; line-height: 1.3; }
}

@media (max-width: 480px) {
  h1, h1.h2, h1.h3 { font-size: 1.85rem; line-height: 1.2; }
  h2, h2.h1, h2.h3 { font-size: 1.6rem; line-height: 1.25; }
  h3, h3.h1, h3.h2 { font-size: 1.38rem; line-height: 1.25; }
  h3.h5, h4 { font-size: 1.18rem; line-height: 1.3; }
}

@media (max-width: 375px) {
  h1, h1.h2, h1.h3 { font-size: 1.7rem; }
  h2, h2.h1, h2.h3 { font-size: 1.48rem; }
  h3, h3.h1, h3.h2 { font-size: 1.28rem; }
  h3.h5, h4 { font-size: 1.1rem; }
}

/* =====================================================
   Mobile Layout – bereinigt Frontend
===================================================== */

@media (max-width: 980px) {

  /* Header */
  .header-top {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 10px !important;
  }

  .site-header .container {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  /* Sections: Außenabstand */
  section.wp-block-group.alignfull,
  .wp-block-group.alignfull,
  .opp-section {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Innere Container nicht zusätzlich verengen */
  section.wp-block-group.alignfull > .wp-block-group__inner-container,
  .wp-block-group.alignfull > .wp-block-group__inner-container,
  .opp-section > .wp-block-group__inner-container,
  .opp-section > .opp-container,
  .wp-block-group__inner-container,
  .wp-block-group.is-layout-constrained,
  .wp-block-group-is-layout-constrained,
  .container,
  .opp-container,
  .wp-block-group.opp-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Unterseiten: weiße Contentboxen behalten Innenabstand */
  body:not(.home) .opp-container,
  body:not(.home) .wp-block-group.opp-container,
  body:not(.home) .opp-container.opp-bg-white,
  body:not(.home) .wp-block-group.opp-container.opp-bg-white {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }


  /* Grids mobil einspaltig */
  .wp-block-columns,
  .wp-block-columns.is-layout-flex {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    box-sizing: border-box !important;
  }

  .wp-block-column {
    flex-basis: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Startseiten-Grids ohne doppeltes Padding */
  .home .opp-card-grid-3,
  .home .opp-service-grid,
  .home .opp-chrono-grid,
  .home .opp-accordion-grid,
  .home .chronologie-grid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Boxen */
  .opp-postcard,
  .opp-gridbox,
  .opp-service-card,
  .opp-news-box,
  .opp-info-box,
  .schattenbox,
  .opp-shadow-soft,
  .standart-page,
  .wp-block-group.has-background {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Innenabstände max. 20px */
  .opp-postcard__body,
  .opp-postcard__footer,
  .opp-service-card,
  .opp-service-body,
  .opp-service-head,
  .opp-chrono__top,
  .opp-chrono__bottom,
  .opp-news-box,
  .opp-info-box,
  .standart-page,
  .wp-block-group.has-background,
  .padding-50,
  .padding-40,
  .padding-30,
  .padding-20 {
    padding: 20px !important;
    box-sizing: border-box !important;
  }

  /* Karten-Grids */
  .opp-card-grid-3,
  .opp-service-grid,
  .opp-chrono-grid,
  .chronologie-grid {
    gap: 24px !important;
  }

  /* Buttons */
  .wp-block-buttons {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .wp-block-button,
  .wp-block-button__link,
  .wp-element-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .wp-block-button {
    margin-bottom: 0 !important;
  }

  .btn-pad {
    padding: 20px !important;
    box-sizing: border-box !important;
  }

  /* Slider */
  .opp-quote-slider,
  .opp-quote-slider.is-enhanced {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }

  .opp-quote-slide,
  .opp-quote,
  .opp-quote p,
  .opp-quote-caption {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .opp-quote {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  /* Newsletter Sonderfall */
  #opp-news-short {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #opp-news-short .opp-news-box {
    margin-left: 20px !important;
    margin-right: 20px !important;
    width: auto !important;
    max-width: calc(100% - 40px) !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }

  #opp-news-short form,
  #opp-news-short .opp-brevo-news-grid,
  #opp-news-short .row,
  #opp-news-short .row-col,
  #opp-news-short input[type="email"],
  #opp-news-short input[type="text"],
  #opp-news-short button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #opp-news-short .row {
    display: block !important;
  }

  #opp-news-short .row-col {
    display: block !important;
    margin-bottom: 12px !important;
  }
}

/* =====================================================
   Mobile Overflow-Fix unter 440px
===================================================== */

@media (max-width: 440px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip !important;
  }

  body {
    position: relative;
  }

  .site,
  .site-main,
  main,
  article,
  section,
  .wp-block-group,
  .wp-block-group__inner-container,
  .opp-container,
  .container {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  img,
  video,
  iframe,
  svg {
    max-width: 100% !important;
    height: auto;
  }
}

/* =====================================================
   Mobile Fix – Kategorie Materialien / Archivkarten
===================================================== */

@media (max-width: 980px) {

  body.category-materialien #main-content.container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }

  body.category-materialien #main-content > h1 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.category-materialien #main-content > div[style] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }

  body.category-materialien .archive-filter {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.category-materialien .archive-filter fieldset {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }

  body.category-materialien .archive-filter label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 0 0 0 !important;
    box-sizing: border-box !important;
    height: 1rem;
  }

  body.category-materialien .archive-filter input[type="checkbox"] {
    flex: 0 0 auto !important;
    margin-top: 0.25em !important;
  }

  body.category-materialien .archive-filter select,
  body.category-materialien .archive-filter .select-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.category-materialien .archive-filter .wp-block-button.opp-btn {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }

  body.category-materialien .archive-filter button.wp-block-button__link {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.category-materialien .chronologie-grid {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-top: 24px !important;
    box-sizing: border-box !important;
  }

  body.category-materialien .chronologie-grid article.opp-gridbox {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 0 20px 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.category-materialien .cat-img {
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
  }

  body.category-materialien .cat-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    border: 0 !important;
    box-sizing: border-box !important;
  }

  body.category-materialien .opp_top h3 {
    margin-top: 20px !important;
    margin-bottom: 12px !important;
  }

  body.category-materialien .fix-bottom {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-top: 20px !important;
    box-sizing: border-box !important;
  }

  body.category-materialien .fix-bottom .wp-block-button,
  body.category-materialien .fix-bottom .wp-block-button__link {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.category-materialien .navigation.pagination {
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 415px) {
  body.category-materialien .archive-filter label {
    height: 2rem;
  }
}
/* =====================================================
   Mobile Fix – Textabstand in Materialien-Karten
===================================================== */

@media (max-width: 980px) {

  body.category-materialien .chronologie-grid article.opp-gridbox {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  body.category-materialien .chronologie-grid article.opp-gridbox .cat-img {
    /* margin-left: -20px !important;
    margin-right: -20px !important;
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important; */
    margin-top: 1rem;
  }

  body.category-materialien .chronologie-grid article.opp-gridbox .opp_top,
  body.category-materialien .chronologie-grid article.opp-gridbox .datum,
  body.category-materialien .chronologie-grid article.opp-gridbox p {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.category-materialien .chronologie-grid article.opp-gridbox .opp_top h3 {
    margin-top: 20px !important;
    margin-bottom: 14px !important;
  }

  body.category-materialien .chronologie-grid article.opp-gridbox .datum p {
    margin-bottom: 14px !important;
  }

  body.category-materialien .chronologie-grid article.opp-gridbox .fix-bottom {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

}
/* =====================================================
   Mobile Fix – Überschriften nicht mitten im Wort brechen
===================================================== */

@media (max-width: 980px) {

  body.category-materialien .opp-gridbox h3,
  body.category-materialien .opp_top h3 {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: auto !important;
    line-height: 1.25 !important;
  }

}

@media (max-width: 980px) {

  h1, h2, h3, h4,
  .wp-block-heading {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: auto !important;
  }

}

/* =========================================================
   Chronik – Header + Accordion Mobile
========================================================= */

.category-chronologie-rechter-angriffe h1{
    margin: 0 0 1.5rem;
    padding: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    text-wrap: balance;
}

/* Weißer Introblock */
.chrono-suche{
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    margin-bottom: 2rem;
}

/* Introtext */
.chrono-suche h3{
    font-size: clamp(1.3rem, 3vw, 2rem);
    line-height: 1.25;
    margin-bottom: 1.5rem;
    max-width: 32ch;
}

/* Accordion allgemein */
.opp-accordion details{
    border: 1px solid #e5e5e5;
    background: #f8f8f8;
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
}

/* Accordion Kopf */
.opp-accordion summary{
    font-size: 1rem;
    line-height: 1.35;
    padding: 1rem 3.5rem 1rem 1rem;
    cursor: pointer;
    position: relative;
    list-style: none;
}

/* Standardmarker entfernen */
.opp-accordion summary::-webkit-details-marker{
    display: none;
}

/* Plus / Minus */
.opp-accordion summary::after{
    content: "+";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 300;
}

.opp-accordion details[open] summary::after{
    content: "−";
}

/* Inhalt */
.opp-accordion details > *:not(summary){
    padding: 0 1rem 1rem;
}

/* Mobile */
@media (max-width: 480px){

    .category-chronologie-rechter-angriffe h1{
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .chrono-suche{
        padding: 1.25rem;
    }

    .chrono-suche h3{
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .opp-accordion summary{
        font-size: 0.95rem;
        line-height: 1.3;
        padding: .85rem 3rem .85rem .85rem;
    }

    .opp-accordion summary::after{
        font-size: 1.5rem;
        right: .85rem;
    }

}

/* =====================================================
   Chronik – Mobile Außenabstand korrigieren
===================================================== */

@media (max-width: 980px) {

  body.category-chronologie-rechter-angriffe #main-content.container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }

  body.category-chronologie-rechter-angriffe #main-content > h1 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.category-chronologie-rechter-angriffe .chrono-suche {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

	/*********** SPACER MOBIL ausblenden ***************/

	.wp-block-spacer {
	max-height: 15px !important;
	}
	
	.wp-block-spacer.spacerspacer {
		max-height: 60px !important;
		height: 50px !important;
	}
	

	/*********** Beratungsblöcke MOBIL anpassen ***************/
	.wp-block-group.opp-service-body{
    	padding: 0px !important;
	}
	.wp-block-column.opp-service-card.opp-gridbox.padding-40.is-layout-flow.wp-block-column-is-layout-flow{
    	padding: 0 20px 20px 20px !important;
	}
	/*********** Beratungsblöcke Headlines  MOBIL anpassen ***************/
	h3.wp-block-heading.h4.opp-service-head {
		padding: 20px 20px 0 0 !important;
	}

/* =====================================================
   Barrierefreiheit – Links klar sichtbar machen
===================================================== */

/* Allgemeine Linkoptik */
a{
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.15em;
}

/* Überschriften-Links */
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a{
    color: var(--opp-lila);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.12em;
}

/* Hover */
h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover{
    text-decoration-thickness: 2px;
}

/* Fokus */
a:focus-visible{
    outline: 3px solid var(--opp-lila);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Kategorien / Archivlinks */
.category-materialien .cat-title a,
.category-materialien .more-link,
.category-materialien .archive-link,
.category-materialien .wp-block-heading a{
    color: var(--opp-lila);
    text-decoration: underline;
}

/* Große Startseiten-Kacheln */
.startseiten-box a,
.startseiten-box h2 a,
.startseiten-box h3 a{
    color: var(--opp-lila);
    text-decoration: underline;
}

/* Textlinks im Fließtext */
.entry-content a,
.editor-styles-wrapper a{
    color: var(--opp-lila);
    text-decoration: underline;
}

/* Buttons NICHT unterstreichen */
.wp-block-button__link,
button,
.button{
    text-decoration: none !important;
}

/* =====================================================
   Barrierefreie Linkdarstellung
===================================================== */

/* Normale Textlinks */
.entry-content a,
.editor-styles-wrapper a{
    color: var(--opp-lila);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.15em;
}

/* Hover */
.entry-content a:hover,
.editor-styles-wrapper a:hover{
    text-decoration-thickness: 2px;
}

/* Fokus */
a:focus-visible{
    outline: 3px solid var(--opp-lila);
    outline-offset: 3px;
    border-radius: 3px;
}

/* =====================================================
   Teaser-/Card-Überschriften
   NICHT unterstreichen
===================================================== */

.opp-gridbox h2 a,
.opp-gridbox h3 a,
.opp-gridbox h4 a,
.teaser-title a,
.archive-card h2 a,
.archive-card h3 a{
    color: var(--opp-text);
    text-decoration: none;
}

/* Hover nur leicht */
.opp-gridbox h2 a:hover,
.opp-gridbox h3 a:hover,
.opp-gridbox h4 a:hover{
    color: var(--opp-lila);
}

/* =====================================================
   Archiv-/Kategorie-Links
===================================================== */

.archive-link a,
.category-link a,
.materialien-link a{
    color: var(--opp-lila);
    text-decoration: underline;
}

/* =====================================================
   Buttons niemals unterstreichen
===================================================== */

.wp-block-button__link,
button,
.button{
    text-decoration: none !important;
}

/* =====================================================
   Wörter niemals umbrechen lassern
===================================================== */
.no-break {
    white-space: nowrap;
	}
}


@media (max-width: 980px) {
    .mobile-abstand-fix {
        padding: 0px !important;
    }

  body:not(.home) .wp-block-group.opp-container .mobile-abstand-fix  {
    padding-left: 0px !important;
    padding-right: 0px !important;
    box-sizing: border-box !important;
  }

}