

/* ===========================
   Globaler Reset
=========================== */


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font: 100%/1.6 'Trebuchet MS', sans-serif;' 
}

body {
min-height: 100vh;  margin: 0;
background: linear-gradient(to bottom, #577593 0px, #577593 100px, #ffffff 100px);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.big1{font-size:300%;font-weight:bold; line-height: 110%; float: left;}
.big2{font-size:150%;clear: left; padding-top: 20px;}
.big{font-size:250%;font-weight:bold;text-transform: uppercase;}
.quelle{font-size:60%;font-weight:normal;}

body.unterseite .navbar {
  position: static; /* nicht sticky */
  z-index: 1000; /* wird ignoriert bei static, also: */
  position: relative; /* damit z-index greift */
}

body.unterseite .subnav {
  position: sticky;
  top: 0; /* klebt ganz oben */
  z-index: 100;
}
body,
.unterseite,
.kontakt-wrapper/*,
.kontakt-hero*/ {
  overflow: visible !important;
}

body.startseite .navbar {
  position: relative;
  z-index: 1000;
}

body.startseite .subnav {
  display: none;
}


/* ==============
   Navbar
==================*/

/* === Desktop Navigation === */
.navbar,
.subnav {
  display: block;
  /* weitere Desktop-Stile */
}

@media (max-width: 768px) {
  .navbar,
  .subnav {
    display: none;
  }
}

.navbar {
  background: rgba(87, 117, 147, 0.7);
  backdrop-filter: blur(5px);
  border-bottom: 10px solid rgba(255, 255, 255, 1);
  position: sticky;
  top: 0px;
  z-index: 1000;
}

.navbar-inner {
    position: relative; /* Damit .mobile-submenu sich daran orientiert */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0px;
}

.navbar-top {
  display: flex;
  justify-content:space-between;
  align-items: center;
  height: 70px;
}

.logo img {
  height: 45px;
  width: auto;
  margin-top: 10px;
}

.logo {
  font-size: 1.0rem;
  margin-top: 10px;
}

.menu {
  display: flex;
  list-style: none;
  margin-left: auto;
}

.menu li {
  margin-left: 10px;
}

.menu a {
  position: relative;
  display: inline-block;
  padding: 2.2rem 1rem 0.3rem 1rem;
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: #ffffff;
}

.menu a:active {
  color: #a20002;
  background-color: #ffffff;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.menu a:hover::after {
  width: 100%;
}

/* === Mobile Navigation === */
.mobile-nav {
  display: none;
}
@media (max-width: 1199px) {
.logo{
  margin-left: 20px;
}
}
@media (max-width: 768px) {
  /* Container */
  .mobile-nav {
    display: block;
    position: fixed;
  width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(87, 117, 147, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 10px solid #fff;
  }

  /* Header mit Logo und Hamburger */
  .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 10px 0px;
  }

  /* Hamburger-Button */
  .hamburger-toggle {
    width: 25px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
  }
  .hamburger-toggle span {
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* Hamburger → X */
  .hamburger-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .hamburger-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Menü-Container */
  .mobile-submenu {
    position: fixed;
    top: 100px; /* Höhe des Headers */
    left: 0;
    width: 100vw;
    height: calc(100vh - 100px);
    background-color: rgba(87, 117, 147, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .mobile-submenu.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  /* Menülisten sichtbar/versteckt */
  .mobile-submenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none; /* Standard: unsichtbar */
  }
  .mobile-submenu ul.active {
    display: block; /* Nur aktive Liste sichtbar */
  }

  /* Menülinks */
  .mobile-submenu li a,
  .mobile-submenu li button {
    display: block;
    width: 100%;
    padding: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
  }
  .mobile-submenu li a:hover,
  .mobile-submenu li button:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
  }

  /* Body scroll lock */
  body.menu-open,
  html.menu-open {
    overflow: hidden;
    height: 100vh;
  }

.mobile-submenu li a,
.mobile-submenu li button {
  position: relative;
  display: block;
  width: 100%;
  padding: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Effektlinie unten */
.mobile-submenu li a::after,
.mobile-submenu li button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #fff;
  transition: width 0.4s ease;
}

.mobile-submenu li a:hover::after,
.mobile-submenu li button:hover::after {
  width: 100%;
}

.mobile-submenu li.submenu-item a {
  padding-left: 40px;   /* Einrückung */
  font-size: 1.0rem;      /* etwas kleiner */
   background-color: rgba(67, 97, 127, 0.95);
  color: #fff;
}

.mobile-submenu li.submenu-titel a {
   background-color: rgba(67, 97, 127, 0.95);
  color: #fff;
}
.mobile-submenu li.submenu-titel a:hover,
.mobile-submenu li.submenu-item a:hover,
.mobile-submenu li a:hover,
.mobile-submenu li button:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}




.mobile-submenu ul {
  display: none;
}
.mobile-submenu ul.active {
  display: block;
}

.submenu-group-title {
  padding-left: 20px;
  margin: .25rem 0 .25rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  opacity: .65;
  color: #fff;
}

.mobile-archive{
padding: 20px;
color: #fff;

   background-color: rgba(67, 97, 127, 0.95);
}

}



/* ==============
   Megamenü
==================*/
.has-megamenu {
  position: relative;
}

.megamenu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100vw;
  background: rgba(255, 255, 255, 0.98);
  padding: 3rem 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: scaleY(0);
  transform-origin: top;
  transition: all 0.4s ease;
  z-index: 99999;
}

.megamenu.show {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
}



/* Innerer Container */
.megamenu .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  /*padding: 0 2rem;*/
}

/* Spalten */
.megamenu .column {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Überschriften */
.megamenu .column h3,
.megamenu .column h4 {
  margin-bottom: 10px;
  font-size: 0.8em;
  color: #577492;
}

.megamenu .column h4 {
  margin-top: 30px;
}

/* Linkliste */
.megamenu .column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.megamenu .column li {
  margin: 0;
  padding: 0;
}

.megamenu .column a {
  position: relative;
  display: block;
  width: 100%;
  padding: 6px 0;
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
  line-height: 1.4;
}

.megamenu .column a:hover {
  color: #a20002;
}

.megamenu .column a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #a20002;
  transition: width 0.3s ease;
}

.megamenu .column a:hover::after {
  width: 100%;
}

/* News-Spalte */
.megamenu .news-column {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0rem;
  box-sizing: border-box;
}

.megamenu .column-motive .motive-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.megamenu .motive-card{
  padding: 0;              /* überschreibt das 6px 0 padding */
  border: 1px solid #ddd;
  background: #f9f9f9;
  height: 260px;           /* kompakter im Megamenu */
  overflow: hidden;
}

/* Bild & Overlay im Megamenu – du kannst deine bisherigen .motive-card-bg/-overlay übernehmen */
.megamenu .motive-card .motive-card-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  filter: brightness(.9);
}

.megamenu .motive-card .motive-card-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.9rem 0.9rem 1rem;
 /* background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0),
    rgba(255,255,255,0.7),
    rgba(255,255,255,0.95)
  );*/
}

.megamenu .motive-card .motive-card-overlay h3{
  margin: 0 0 .25rem;
  font-size: 1rem;
}

.megamenu .motive-card .motive-card-overlay p{
  margin: 0;
  font-size: .85rem;
  color:#333;
}



#megamenu-motive .motive-card{
  padding: 0;
  border: 1px solid #ddd;
  background: #f9f9f9;
  height: 260px;
  overflow: hidden;
  position: relative; /* sicherstellen, dass ::after an der Card hängt */
}

/* Rahmenwechsel */
#megamenu-motive .motive-card:hover{
  border-color:#a20002;
}


/* Linie der Motive-Card im Megamenu – spezifischer als .megamenu .column a::after */
#megamenu-motive .motive-card::after{
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:0;
  height:3px;
  background:#a20002;
  transition:width .35s ease;
}

#megamenu-motive .motive-card:hover::after{
  width:100%;
}



/* Responsive Anpassungen */
@media (max-width: 1210px) {
.megamenu {
  padding: 3rem 20px;
}}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .megamenu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: none !important;
  }
.menu {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

}


/* Unter 1050px: "Über uns" ausblenden */
@media (max-width: 1099px) {
  .menu-item-ueberuns {
    display: none;
  }
}

/* Unter 850px: zusätzlich "Aktuelles" ausblenden */
@media (max-width: 1029px) {
  .menu-item-aktuelles {
    display: none;
  }
}

/* Unter 850px: zusätzlich "Aktuelles" ausblenden */
@media (max-width: 989px) {
  .menu-item-motiv {
    display: none;
  }
}


#subnav-trigger {
  background-color:#fff;
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 100%;
  z-index: -1;
}

  
/* ===========
  Subnav
  =========*/
  
.subnav {
   position: sticky;
  top: 70px; /* exakt die Höhe deiner .navbar-top */
  z-index: 100;
  background: rgba(234, 244, 254, 0.9);
  backdrop-filter: blur(5px);
  padding: 10px 0px;
  border-bottom: 10px solid #fff;
  transform: none;
  opacity: 1;

}

.subnav-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2px 20px 2px 0px;
  position: relative; /* erlaubt Positionierung des Logos */
  z-index: auto; /* kein eigener Kontext */
}

.subnav ul {
  list-style: none;
  display: flex;
 justify-content: right;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.subnav a {
  position: relative;
  display: inline-block;
  color: #577593;
  text-decoration: none;
  transition: color 0.3s ease;
}

.subnav a:hover {
  color: #a20002;
}

.subnav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #a20002;
  transition: width 0.3s ease;
}

.subnav a:hover::after {
  width: 100%;
}

.subnav a.active {
  color: #a20002;
}
.subnav a.active::after {
  width: 100%;
}

.subnav a.active-link {
 /* font-weight: bold;*/
  color: #a20002;
  border-bottom: 2px solid #a20002;
}


.reverse-underline {
  position: relative;
}

.reverse-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0; /* statt left */
  width: 0;
  height: 2px;
  background: #a20002;
  transition: width 0.3s ease;
}

.reverse-underline:hover::after {
  width: 100%;
  right: 0;
  left: auto;
}

.subnav-logo {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: absolute;
  left: 0;
  margin-top: -10px;
  z-index: 9999;
}

.subnav.sticky .subnav-logo {
  opacity: 1;
  transform: translateY(0);
}
.subnav-logo img {
  width: 150px;
  height: auto;
  display: block;
}

.styled-dropdown {
  appearance: none;
  border: 0px solid #577593;
  color: #577593;
  padding: 0.0em 2em 0.0em 1em;
  border-radius: 0px;
  font-weight: bold;
  font-size: 1em;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7em center;
  background-size: 0.8em;
  cursor: pointer;
}
.styled-dropdown:focus {
  outline: none;
  border-color: #a20002;
}
.subnav-filter {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-left: auto;
}

@media (max-width: 1199px)
.subnav ul {
  gap: 20px;
}
}

@media (max-width: 768px) {
  .subnav {
    display: none;
  }

  .has-submenu .submenu {
    display: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
  }

  .has-submenu.open .submenu {
    display: block;
  }

  .submenu-toggle {
    background: none;
    border: none;
    font-weight: bold;
    color: #333;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}
/*===============
mobile -vor zurück
=================*/

/* standardmäßig verstecken */
/* Standard: Pager aus */
nav.pager-mobile {
  display: none;
  position: fixed;     /* vorbereitet */
  left: 0; right: 0;
  bottom: 0;
  top: auto !important;         /* überschreibt evtl. globale sticky-top Regeln */
  position: fixed !important;   /* falls global nav{position:sticky} existiert */
  z-index: 9999;
}


@media (max-width: 768px) {
  nav.pager-mobile {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px calc(12px + env(safe-area-inset-right)) 10px calc(12px + env(safe-area-inset-left));
     background: rgba(234, 244, 254, 0.9);
  backdrop-filter: blur(5px);
    border-top: 10px solid rgba(255,255,255,1.0);
  }

  .pager-btn{
    min-width: 96px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    font-size: 0.95rem;
background: rgba(234, 244, 254, 0.9);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .pager-title{
    flex: 1 1 auto;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Platz schaffen, damit die Leiste nichts überdeckt */
  body{ padding-bottom: 70px; }
}

/* ===========================
   Hauptinhalt
=========================== */
main {
  max-width: 100%;
  min-height: 400px;
  /*background-color: #ffffff;*/
}

main section { 
   /*background-color: #ffffff;*/
    overflow: hidden; 
  padding-top: 1px;
} 

main .text {
max-width: 1200px;
width: calc(100% - 0px);
margin: 20px auto;
}

/* Überschriften */
main h1 {
  margin-top: 50px;
  margin-bottom: 10px;
  font-size: 280%;
  font-weight: 1000;
  color: #a20002;
width: calc(100% - 0px);
}

main h2 {
  margin-top: 20px;
  font-size: 180%;
  font-weight: 600;
  color: #577492;
  border-bottom: 2px solid #a20002;
  text-align: left;
width: calc(100% - 0px);
}

main h3 {
  color: #a20002;
}


 h3 {
  color: #a20002;
  margin: 10px 0;
}

main h3 a {
  color: #a20002;
  text-decoration: underline;
  transition: color 0.3s ease;
}

main h3 a:visited {
  color: #567492;
}

main h3 a:active {
  color: #777777;
}

main h3 a:hover {
  color: #567492;
  text-decoration: none;
}
/* Fließtext */
main p {
  font-size: 100%;
  line-height: 1.6;
  margin-bottom: 20px;
}

@media (max-width: 1220px) {
main .ueberschriften,
main .text {
max-width: 1160px;
width: calc(100% - 60px);
margin: 20px auto;
}
}

@media (max-width: 768px) {
main .ueberschriften,
main .text {
max-width: 1160px;
width: calc(100% - 60px);
margin: 20px auto;
}
}

@media (max-width: 500px) {
main .ueberschriften,
main .text {
max-width: 500px;
width: calc(100% - 40px);
margin: 20px auto;
}
}




/* ===========================
   Hero-Bereich 
=========================== */

.hero {
  display: block;
  position: relative;
  color: #ffffff;
  border-bottom: 10px solid rgba(255, 255, 255, 1);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden; 
  z-index: 0;
}

/* Höhenvarianten */
.hero-height-small {
  height: 400px;
  margin-top: -140px;
}
.hero-height-medium {
  height: 700px;
}
.hero-height-full {
  height: 1000px;
}

.hero-height-home {
  height: 900px;
}

body.unterseite .hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #577593;
  mix-blend-mode: color;
  height: 82px;
  pointer-events: none;
  z-index: 1;
}

/* Innenbereich */
.hero-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-start;
  height: 100%;
padding-bottom: 25px;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* NEU: Hintergrundbild als separate Ebene */
.hero-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0.4; /* Stimmung */
}

/* NEU: Optionales Overlay fÃ¼r Lesbarkeit */
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.3); /* oder rgba(255,255,255,0.2) */
  z-index: 1;
}

/* Textblock */
.titel-text {
  max-width: 900px;
  color: inherit; /* NEU: übernimmt dynamische Textfarbe */
  text-align: left;
  text-shadow: 1px 1px 2px black;
  font-size: 130%;
  position: relative;
  z-index: 2;
}

/* Textgestaltung */
.hero h1,
.hero .big1 {
margin-top: -150px;
  font-size: 200%;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  color: inherit;
  text-align: left;
}


.hero p,
.hero .big2 {
  font-size: 20px;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Button */
.hero-button,
.hero .angebot a {
  display: inline-block;
  background: #0077cc;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.hero-button:hover,
.hero .angebot a:hover {
  background: #005fa3;
}

/* Desktop-Hintergründe */

.hero-rot-400 {
  background-image: url('https://www.bilder-plus.de/bilder/hero/rot_400.webp');
}
.hero-blau-400 {
  background-image: url('https://www.bilder-plus.de/bilder/hero/blau_400.webp');
}
.hero-produkt-neu {
  background-image: url('https://www.bilder-plus.de/bilder/titel/produkt_neu.jpg');
}
.hero-default {
  background-image: url('https://www.bilder-plus.de/bilder/titel/default.jpg');
}
@media (max-width: 1199px) {
  .titel-text {
    max-width: 90%;
margin-left: 20px;
  }
  .hero-button, {
margin-left: 20px;
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .hero-height-small {
    height: 480px;
  }
  .hero-height-medium {
    height: 700px;
  }
  .hero-height-full {
    height: 1000px;
  }

  .hero h1,
  .hero .big1 {
    font-size: 32px;
  margin-bottom: 10px;
  }

  .hero p,
  .hero .big2 {
    font-size: 16px;
  }
  .hero-button,
  .hero .angebot a {
    padding: 10px 20px;
    font-size: 14px;
  }

  .titel-text {
    font-size: 110%;
    max-width: 90%;
margin-left: 0px;
  }


  .hero-aktuell {
    background-image: url('https://www.bilder-plus.de/bilder/hero/rot_mobile.jpg');
  }
  .hero-produkt-neu {
    background-image: url('https://www.bilder-plus.de/bilder/titel/produkt_neu_mobile.jpg');
  }
  .hero-default {
    background-image: url('https://www.bilder-plus.de/bilder/titel/default_mobile.jpg');
  }
.hero-rot-400 {
  background-image: url('https://www.bilder-plus.de/bilder/hero/rot_400.webp');
}
.hero-blau-400 {
  background-image: url('https://www.bilder-plus.de/bilder/hero/hero-blau_768.webp');
}
}

/* ==========================
   Projektseiten – Hero
   ========================== */

body.projektseite {
  background: linear-gradient(to bottom, #577593 0px, #577593 80px, #ffffff 121px);
}

.hero-projekt-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.hero-projekt-background {
  position: relative;
  background-image: url('../bilder/hero/neufeldpraxis.webp');
  background-size: cover;
  background-position: center;
  height: 700px;
  display: flex;
  align-items: flex-end; /* statt center */
  justify-content: left;
  color: white;
  text-align: center;
  padding-bottom: 30px; /* Abstand zum unteren Rand */
}

.hero-anwendung-background {
  position: relative;
  background-image: url('../bilder/hero/neufeldpraxis.webp');
  background-size: cover;
  background-position: center;
  height: 600px;
  display: flex;
  align-items: flex-end; /* statt center */
  justify-content: left;
  color: white;
  text-align: center;
  padding-bottom: 30px; /* Abstand zum unteren Rand */
}

.hero-projekt-text {
  background: rgba(0, 0, 0, 0.5); /* optional für Lesbarkeit */
  padding: 1rem 2rem;
  border: solid #ffffff;
  border-width: 2px 2px 2px 0px;
  border-radius: 0px 12px 12px 0px;
}

.hero-projekt-text h1 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  text-align: left;
}
.hero-projekt-text p {
  font-size: 0.95 rem;
  text-align: left;
color: #ccc;
}

.hero-projekt-text h2 {
  font-size: 1.5rem;
}

.zoom-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .hero-projekt-text h1 {
    font-size: 1.5rem;
  }
  .hero-projekt-text h2 {
    font-size: 1.2rem;
  }
}




/* ===========================
   Glow-Effekt NUR für akustikleuchtbild
=========================== */

.hero-akustikleuchtbild .glow-text {
  position: relative;
  color: #ffffff;
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: 2px;
  filter: brightness(1.0);
  z-index: 1;
  text-shadow: 0 0 1px #fff, 0 0 5px #00cfff;
}
.hero-akustikleuchtbild .glow-text::before {
  content: attr(data-text);
  position: absolute;
  inset: -10px;
  background: linear-gradient(90deg, #00cfff, #a600ff, #ff006e, #ff8800);
  filter: blur(30px) brightness(0.6) saturate(1.4) hue-rotate(10deg);
  opacity: 0.7;
  border-radius: 50px;
  z-index: -2;
  pointer-events: none;
  background-size: 400% 400%;
  animation: gradientShift 6s ease-in-out infinite;
  will-change: transform;
}
.hero-akustikleuchtbild .glow-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  letter-spacing: inherit;
  background: linear-gradient(90deg, #00cfff, #a600ff, #ff006e, #ff8800);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  mix-blend-mode: color-burn;
  filter: blur(10px) brightness(1.3);
  z-index: -1;
  pointer-events: none;
  background-size: 50% 50%;
  animation: gradientShift 12s ease-in-out infinite;
  will-change: transform;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; transform: scale(1); }
  50%  { background-position: 100% 50%; transform: scale(1.05); }
  100% { background-position: 0% 50%; transform: scale(1); }
}

@media (max-width: 600px) {
  .hero-akustikleuchtbild .glow-text {
    font-size: 2rem;
  }
  .hero-akustikleuchtbild .glow-text::before {
    filter: blur(10px);
    background-size: 200% 200%;
  }

}

.hero-button:hover {
  background-color: #f2f2f2;
}

.hero-button {
  display: inline-block;
  background-color: #a20002;
  color: #fff;
  padding: 14px 28px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hero-button:hover {
  background-color: #fff;
  color: #a20002;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}



@media (max-width: 768px) {
  body.unterseite .hero::before {
    display: none;
    content: none;
  }


.hero-inner {
padding: 0 15px 20px 15px;
}
}
/*========================= 
Ruhiger Gradient-Glow – sehr dezent animiert 
============================*/

.hero-akustikleuchtbild .glow-gradient {
  position: relative;
  display: inline-block;         /* wichtig: begrenzt auf Textbreite */
  font-weight: 800;
  letter-spacing: 1px;
  color: transparent;

  /* Verlauf IN der Schrift */
  background: linear-gradient(
    90deg,
    #00cfff 0%,
    #27e0d5 22%,
    #ffd36a 55%,
    #ff9a2f 78%,
    #00cfff 100%
  );
  background-size: 260% 260%;
  -webkit-background-clip: text;
  background-clip: text;

  /* sanfter, ruhiger Glow – bleibt typografisch */
  text-shadow:
    0 0 5px rgba(255,255,255,.2),
    0 0 25px rgba(0,207,255,.1),
    0 0 35px rgba(255,154,47,.05);

  animation: glowGradientShift 16s ease-in-out infinite;
}

/* optionaler Halo hinter dem Text (sehr dezent) */
.hero-akustikleuchtbild .glow-gradient::before {
  content: "";
  position: absolute;
  inset: -0.25em -0.55em;        /* klein halten, damit es nicht „zu lang“ wirkt */
  border-radius: 0.8em;
  background: radial-gradient(
    closest-side,
    rgba(0,207,255,.18),
    rgba(255,154,47,.12),
    rgba(0,0,0,0)
  );
  filter: blur(10px);
  opacity: .85;
  z-index: -1;
  pointer-events: none;
}

@keyframes glowGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* falls Container irgendwo Glow abschneidet */
.hero-akustikleuchtbild .hero-wrapper,
.hero-akustikleuchtbild .hero-produkt-inner {
  overflow: visible;
}

/* Motion-Respect */
@media (prefers-reduced-motion: reduce) {
  .hero-akustikleuchtbild .glow-gradient {
    animation: none;
  }
}




/*========================= 
Ruhiger Gradient-Glow – sehr dezent animiert 
============================*/

.hero-leuchtbilder .glow-text-ambient {
  position: relative;
  display: inline-block;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 0 2px rgba(255,255,255,.35);
}

.hero-leuchtbilder .glow-text-ambient::before {
  content: "";
  position: absolute;
  inset: -0.25em -0.45em;
  border-radius: 0.7em;
  background: linear-gradient(90deg,
    rgba(0,207,255,.22),
    rgba(166,0,255,.14),
    rgba(255,0,110,.12)
  );
  background-size: 200% 200%;
  filter: blur(14px);
  opacity: .75;
  z-index: -1;
  pointer-events: none;
  animation: ambientShift 18s ease-in-out infinite;
}

@keyframes ambientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/*===================
Kontakt-Reiter
=====================*/


/* Basis-Styling */
.contact-tab {
  position: fixed;
  right: -200px; /* versteckt */
  width: 250px;
  height: 50px;
   background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 2px 2px rgba(0,0,0,0.7);
  color: #ffffff;
  display: flex;
  align-items: center;
  font-family: sans-serif;
  z-index: 9999;
  transition: right 0.3s ease;
  border-radius: 10px 0px 0px 10px ;
  
}
/* Sticky Positionierung */
.phone-tab {
  top: 200px;
}
.form-tab {
  top: 260px;
}

.tab-toggle {
  width: 50px;
  height: 50px;
  background:linear-gradient(#c10500, #4f1210);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: pointer;
  border-radius: 10px 0px 0px 10px ;
  border: 1px solid #fff;
}
.tab-toggle:hover{
  background:linear-gradient(#4f1210, #c10500); 
}


.tab-content {
  padding-left: 10px;
  white-space: nowrap;
  Color:#a20002;
}

.tab-content a{
  color:#a20002;
}

.tab-content a:hover{
 color:#577593;
    text-decoration: underline;
}

/* Geöffneter Zustand */
.contact-tab.open {
  right: 0;
}

/* Nach oben-Reiter */
.scroll-top-tab {
  bottom: 50px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.scroll-top-tab .tab-toggle {
  background: linear-gradient(#577593, #1e3655);
  border: 1px solid #fff;
  border-radius: 10px 0px 0px 10px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.scroll-top-tab .tab-toggle:hover {
  background: linear-gradient(#1e3655, #577593);
}

/* Sichtbar ab 2x Viewport-HÃ¶he */
.scroll-top-tab.visible {
  opacity: 1;
  pointer-events: auto;
}


/* Mobilgeräte ausblenden */
@media (max-width: 768px) {
  .contact-tab {
    display: none;
  }

  .scroll-top-tab {
    bottom: 80px; /* oder was gut passt */
  }
}

/* ===========================
  Zitat
=========================== */
.zitat{
  width:100%;
  margin-top:0;
  color:#ffffff;
  text-align:center;
  font-size:110%;
   font-weight: 500;
  background-color:#577593;           /* dein CI-Blau */
  border-bottom: 10px solid #ffffff;
  /* float:left;  <-- nicht mehr nötig */
  position: relative;                 /* für ::before */
  overflow: hidden;                   /* Deko-Zeichen sauber begrenzen */
}

.zitat::before{
  /* großes, leicht transparentes Anführungszeichen */
  content: "\201C";                   /* typografisches “ */
  position: absolute;
  top: 80%;
  left: 25%;
  transform: translate(-50%,-50%) rotate(0deg);
  font-family: 'Trebuchet MS', sans-serif;
  font-size: clamp(10rem, 22vw, 18rem); /* skaliert responsiv */
  line-height: 1;
  color: rgba(255,255,255, .08);      /* sehr dezent */
  pointer-events: none;
  user-select: none;
}

.zitat-wrapper{
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.4rem 1rem;               /* etwas mehr Luft, weil Deko dahinter */
  text-align: center;
  position: relative;                 /* Text über dem Deko-Zeichen */
  z-index: 1;
}

/* Text-Feinschliff für bessere Lesbarkeit */
.zitat-wrapper p{
  margin: 0;
  font-weight: 600;                   /* etwas leichter als bold wirkt ruhiger */
  letter-spacing: 0.2px;
}

/* Optionale Quelle */
.zitat-wrapper .quelle{
  display: block;
  margin-top: .5rem;
  opacity: .8;
  font-size: 80%;
  font-weight: 500;
}

@media (max-width: 768px){
  .zitat{ font-size:100%; }
  .zitat-wrapper{ padding: 1.6rem .9rem; }
}


/*================
breadcrump
=================*/

/* Containerbreite analog zu Hero/Content */
.breadcrumb{
  max-width: 1200px;
  margin: 0 auto;
  padding: .5rem 0rem;
  font-size: .9rem;
  color: #666;
}

/* optische Trennung zum Hero */
.hero + .breadcrumb{ margin-top: .25rem; }
.breadcrumb + .seiteninhalt{ margin-top: .25rem; }

.breadcrumb ol{
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.breadcrumb li{
  display: inline-flex; align-items: center;
  min-width: 0; /* erlaubt Truncation */
}
.breadcrumb li::after{
  content: "›"; margin-left: .35rem; color: #aaa;
}
.breadcrumb li:last-child::after{ content: none; }

.breadcrumb a{
  color: inherit; text-decoration: none;
  border-bottom: 1px dotted transparent;
}
.breadcrumb a:hover{ border-bottom-color: currentColor; }

/* Mobile: dezent kleiner & ggf. kürzen */
@media (max-width: 1200px){
  .breadcrumb{ font-size: .85rem; padding: .4rem .8rem; }
}
@media (max-width: 768px){
  /* zeigt: Startseite › … › Aktuelle Seite 
  .breadcrumb li:nth-child(n+3):not(:last-child){ display: none; }
  .breadcrumb li:nth-child(2)::after{ content: "…"; margin-left: .35rem; }*/
}




/*================
Produkt-Card
=================*/
/* feste Card-Größe 350×450 – unverändert und slider-tauglich */
.produkt-card{
  position: relative;
  display: block;                 /* <— WICHTIG: Breite/Höhe greifen jetzt */
  width: 100%;
  height: 450px;
  flex: 0 0 100%;
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid #fff;
  box-shadow: 0 4px 4px rgba(0,0,0,.3);
  overflow: hidden;
  color:#fff; 
  text-decoration:none;
  transition: transform .3s ease, border-color .2s ease;
}

.produkt-card:hover{
  transform: scale(1.02);
  border-color: #a20002;
  z-index: 2;
}

/* Overlay als unterer Balken */
.produkt-overlay{
  position: absolute;left: 0; right: 0; bottom: 0;
  height: 250px; padding: 1rem 1rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,.6), rgba(0,0,0,.3),transparent);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  text-align: center;
}

.produkt-overlay h3{
  font-size: 1.2rem;
  margin: 0 0 .3rem;
  color: #fff;
  border: 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.produkt-overlay p{
  font-size: .95rem;
  margin: 0 0 .5rem;
  color: #fff;
}

.produkt-overlay .button{
  background: #a20002; color: #fff;
  padding: .4rem 1rem; border-radius: 4px;
  font-size: .9rem; text-transform: uppercase;
  transition: background .3s ease, color .3s ease;
}
.produkt-overlay .button:hover
{ background:#fff; color:#a20002; }

.produkt-kategorie{
overflow: visible;
}

/* Grid (3–2–1 Spalten) */
.produkt-grid{
  max-width: 1200px; margin: 0 auto; padding: 0 0px 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;overflow: visible;
}

.produkt-grid .produkt-card{
  height: 360px;}

.produkt-grid .produkt-overlay{
  height: 180px; 
}

@media (max-width: 1230px){ .produkt-grid{ padding: 0 16px 32px;} }
@media (max-width: 1024px){ .produkt-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px){ .produkt-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .produkt-grid{ grid-template-columns: 1fr; } }

/* (i)-Button */
.produkt-card .info-btn{
  position: absolute; right: 10px; bottom: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(0,0,0,.4); color: #fff; font-weight: 700;
  cursor: pointer; font-size: 1rem; line-height: 1;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.produkt-card .info-btn:hover{
  background: rgba(255,255,255,.92); color: #a20002; border-color: #fff;
}
/* mehr Luft im Overlay, wenn (i) da ist */
.produkt-card.has-info .produkt-overlay{ padding-bottom: 2.5rem; }

/* Teaser-Layer */
.produkt-card__teaser{
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.7); backdrop-filter: blur(5px); color: #fff;
  padding: 1rem; font-size: .95rem; line-height: 1.4;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .3s ease, opacity .25s ease;
  border-top: 1px solid rgba(255,255,255,.12);
}
.produkt-card__teaser.is-open{ max-height: 160px; opacity: 1; }


/*========================
Produkt-Strip
====================*/

/* === Strip-Grundlayout === */
.product-strip{
  position: relative;
  background-color: #bbbbbb;
  width: 100%;
  margin-inline: auto;
  padding-block: var(--strip-y, 32px);
  --side: 30px;        /* Breite der Klick-Balken rechts/links */
  --gap-x: 16px;       /* Abstand zwischen Cards */
  --card-w: 350px;     /* Desktop: fixe Card-Breite */
}

/* einzeilige Reihe */
.product-strip__track{
  display: flex;
  gap: var(--gap-x);
  overflow-x: hidden;               /* Standard: ohne Scrollbar */
  overflow-y: visible;
align-items: stretch;
  scroll-snap-type: none;
  /* Platz für die Seitenbalken lassen */
  padding: 0 var(--side);
}


/* Item = Slot mit Card-Breite */
.product-item{
  flex: 0 0 var(--card-w,350px);
  width: var(--card-w,350px);
  position: relative;
  overflow: visible;    /* <— lässt das Skalieren aus dem Slot herausragen */
padding-block: 6px;
  z-index: 1;           /* kleine Sicherheit für Überlappungen */
}

/* === Slider-Modus (wird via JS gesetzt wenn nötig) === */
/* Strip wird nur im Slider-Modus scrollbar (JS setzt .is-slider) */
.product-strip.is-slider .product-strip__track{
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: var(--side);
  scroll-padding-right: var(--side);
}


.product-strip.is-slider .product-item{
  scroll-snap-align: start;       /* sauberer Snap links */
}

/* Optionale Navigationspfeile – nur anzeigen, wenn Slider aktiv */
.product-strip__nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width: var(--side); height: 100%;           /* exakt Card-Höhe */
  display:none; align-items:center; justify-content:center;
  background: linear-gradient(to left, rgba(255,255,255,0.9), rgba(255,255,255,0.0));
  z-index: 3; cursor: pointer; user-select: none;border:2px solid #bbb;
}
.product-strip.is-slider .product-strip__nav{ display: flex; }
.product-strip__nav.is-prev{
  left:0;
  background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0.0));
}
.product-strip__nav.is-next{ right:0;}

/* dein bestehendes Chevron passt: */
.product-strip__nav .chevron{
  width:12px; height:12px; border-right:3px solid #333; border-bottom:3px solid #333;
}
.product-strip__nav.is-prev .chevron{ transform: rotate(135deg); } /* ◀ */
.product-strip__nav.is-next .chevron{ transform: rotate(-45deg); } /* ▶ */

/* Optional: bei sehr schmalen Screens etwas schmalere Slides */
/* MOBILE: genau 1 Card sichtbar – Card-Breite dynamisch ausrechnen */
@media (max-width: 700px){
  .product-strip{
    /* Card füllt Viewportbreite abzüglich Seitenbalken links/rechts und einem Gap */
    --card-w: calc(100vw - (2 * var(--side)) - var(--gap-x));
  }
}

/* sehr schmal (unter ~430px): minimal etwas schmaler, falls nötig */
@media (max-width: 430px){
  .product-strip{
    /* leichte Reduktion, damit trotzdem 1 Card + Luft zu sehen ist */
    --card-w: calc(100vw - (2 * var(--side)) - var(--gap-x));
  }
}

/* =========================
   Scrollbar ausblenden & Fade-Hinweis
   ========================= */

.product-strip.is-slider .product-strip__track::-webkit-scrollbar{ display:none; }

/* Scrollbalken unsichtbar (aber weiter scrollbar) */
.product-strip__track::-webkit-scrollbar { display: none; } /* Chrome / Safari / Edge */
.product-strip__track { scrollbar-width: none; }            /* Firefox */


/* Fade nur aktiv, wenn Slider aktiv */
.product-strip.is-slider::after {
  opacity: 1;
}

/* Wenn man ganz am Ende ist → Fade leicht ausblenden */
.product-strip.is-slider[data-at-end="true"]::after {
  opacity: 0.2;
}

.product-strip.is-slider[data-at-start="false"]::before {
  opacity: 1;
}



.kategorie-header{
max-width: 1200px;
  margin: 30px auto;
}
.kategorie-header h2{
  margin-bottom:10px;
}

@media (max-width: 1230px){ .kategorie-header{ margin: 30px 20px;} }

/*==============
    Inhalt
====================*/
.inhalt{
  clear: both;
  margin-top: 0px;
}

.inhalt h2{
  text-align: left;
}

/* Zweispaltiges Layout */
.zweispaltig {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 100%;
  margin: 20px auto;
}

/* Spalteninhalte */
.spalte p {
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

.spalte-recht {
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
  max-width: 900px;
}

.infobox-projekt {
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  font-size: 1rem;
  color: #333;
  border-top: 1px solid #ddd;
}

.infobox-produkt {
  margin-top: 33px;
  max-width: 400px;
  width: 100%;
  margin: 0;
  font-size: 1rem;
  color: #333;
  border-top: 1px solid #ddd;
}
.infobox-holz {
  max-width: 740px;
  width: 100%;
  margin: 0 auto;
  font-size: 1rem;
  color: #333;
  border-top: 1px solid #ddd;
}


.spalte.links h3{
  max-width: 400px;
  width: 100%;
  margin-top: 33px;
}

.infopunkt-holz {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}
.infopunkt {
  display: grid;
  grid-template-columns: 125px 1fr;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.label {
  color: #577593;
  font-weight: bold;
  text-align: left;

}

.wert {
  text-align: left;
padding-left: 20px;
}

@media (max-width: 768px) {
  .zweispaltig {
    grid-template-columns: 1fr;
    gap: 0px; /* optional: etwas kleinerer Abstand */
  }
   .spalte {
    padding: 0px 0px;
  }

.infobox-projekt {
  max-width: 100%;
  margin: 0 auto;
  font-size: 1rem;
  color: #333;
border-top: 1px solid #ddd;
}
.infobox-produkt {
  max-width: 100%;
  margin: 0 auto;
  font-size: 1rem;
  color: #333;
border-top: 1px solid #ddd;
}
.spalte.links h3{
  max-width: 100%;
  width: 100%;
  margin-top: 33px;
}

}

/* ===========
Referenz- & Linkbox
========== */

.linkbox,
.referenzbox {
  border: 2px solid #577593;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  margin-bottom: 40px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.linkbox p,
.referenzbox p{
  font-size: 1.1em;
    color: #577593 !important;
text-decoration: none;
}


.linkbox:hover {
  transform: scale(1.02); /* leichte Vergrößerung */
  border-color: #a20002;  /* rote Rahmenfarbe beim Hover */
  cursor: pointer;
}

.referenzlink {
  text-decoration: none;
  color: inherit;
}

.referenzlink h3,
.referenzlink p {
  text-decoration: none;
}



/* =================
zweispaltig Projekt
=================== */


.zweispaltig-projekt {
  display: grid;
  grid-template-columns: 4.6fr 7fr;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
}
.zweispaltig-projekt h2{
text-align: left;
}
.zweispaltig-projekt .spalte p {
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}
.projektbeschreibung {
  padding: 10px;
}
h2.projekt-titel {
  margin-bottom: 30px;
}
.projektbeschreibung.ohne-referenz h2.projekt-titel {
  margin-top: -10px;
}

h3.projekt-titel {
  margin-top: 40px;
  font-size: 0.8em;
  color: #577492;
}

.projektbeschreibung ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.projektbeschreibung ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.projektbeschreibung ul li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: #a20002;
  font-weight: bold;
}



@media (max-width: 768px) {
  .zweispaltig-projekt {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 90%;
    margin: 40px auto;
  }

  .spalte {
    padding: 0 0px;
  }

  .projektbeschreibung {
    padding-left: 10px;
  }

  .spalte.links {
    order: 2; /* Infobox kommt nach dem Text */
  }

  .spalte.rechts {
    order: 1;
  }
}


/*=======
CTA-Boxen
===========*/
.cta-led,
.cta-holz,
.cta-farbe,
.cta-alu,
.cta-hex,
.cta-rund,
.cta-deckensegel {
  width: 100%; 
  max-width: 1200px; 
  height: 400px; 
  background-color: #444; 
  border: 2px solid #fff;
  box-shadow: 0 4px 4px rgba(0,0,0,0.2);
  border-radius: 0px;
  margin: 10px auto; 
  border-radius: 0px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cta-rund {
  background: url('/bilder/bilder/cta/rund_1200x400.webp') no-repeat center/cover;
}

.cta-left {
  position: relative;
  width:50%;
  padding: 40px;
  color: #fff;
  text-align: left;
  text-shadow: 1px 1px 1px black;
  height: 100%;
}
.cta-left p{
  margin-top: 20px;
   font-size: 140%; 
  font-weight: bold;
  text-transform: uppercase;
    }

   .cta-left h2 {
    font-size: 250%;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff;
     text-decoration: none;
      text-align: left;
     border-bottom: 0px solid #ffffff;
     margin-top: 0px;
}


.cta-left .angebot a {
  position: absolute;
  bottom: 20px;
  left: 40px; /* passt zum Padding der Box */
  width: 210px;
  height: auto;
  color: #fff;
  display: block;
  text-decoration: none;
  background: linear-gradient(#3fa24b, #023f00);
  padding: 4px 20px;
  text-align: center;
  margin-bottom: 40px;
}
.angebot a:visited{color:#E9E9E9}
.angebot a:active{color:#a20002}
.angebot a:hover{background:linear-gradient(#0E3049,#54738f); transform-style: preserve-3d; transform: scale(0.98); transition: all ease .3s; }



/* Responsives Verhalten */
@media (max-width: 768px) {

  .cta-left {
    width: 70%;
    bottom: 30px;
    padding-top: 50px;
    left: 10px;
    color: #fff;
    text-align: center;
    text-shadow: 2px 2px 2px black;
    font-size: 90%;
  }

  .an5-1,
  .an5-2,
  .an5-4,
  .an5-5 {
    width: 32.5%;
    margin-top: 8px;
    margin-bottom: 0px;
    margin-right: 1.2%;
    float: left;
    border: 2px solid #fff;
    box-shadow: 2px 2px 3px black;
  }

 .cta-left h2 {
    font-size: 200%;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    text-align: left;
    border-bottom: 0px solid #ffffff;
    margin-top: 20px;
}  
   .cta-left p {
    font-size: 120%;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    text-align: left;
    border-bottom: 0px solid #ffffff;
    margin-top: 20px;
}  
}
/*=========================
CTAs Render neu
===========================*/
.cta-grid {
  display: grid;
  background-color: #bbbbbb;
  grid-template-columns: repeat(6, 1fr); /* Standard: 6 Spalten */
  gap: 20px;
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
}

.cta-box {
  height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 4px 4px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.cta-box.medium {
  max-width: 690px;
  height: 300px;
  margin: 20px 0;
  background-image: var(--bg-700);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta-box.large {
  width: 100%;
  max-width: 1200px;
  height: 400px;
  margin: 20px auto;
  background-image: var(--bg-1200);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta-box:hover {
  transform: scale(1.01);
 border: 2px solid #a20002;
}

a.cta-box {
  display: block;
  text-decoration: none;
  color: inherit;
}

.cta-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 200px;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5), rgba(0,0,0,0.0), transparent);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 1.5rem;
}

.cta-overlay.side {
  position: absolute;
  left: 0;
  top: 0;
  width: 60%;
  height: 100%;
  padding: 2rem;
  background: linear-gradient(to right, rgba(0,0,0,0.95), rgba(0,0,0,0.4), rgba(0,0,0,0.0), transparent);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;

}


.cta-box.large p,
.cta-box.medium p {
color: #fff;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin: auto 0;
}

.cta-box.medium .button,
.cta-box.large .button{
  font-size: 1rem;
}
.cta-box.large h3 {
margin-top: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
 font-weight: 900;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
color: #ffffff;
border: none;
}

.cta-box.medium h3{
margin-top: 0;
  font-size: clamp(1.4rem, 2.0vw, 1.8rem);
 font-weight: 900;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
color: #ffffff;
border: none;
}


.cta-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
color: #ffffff;
border-bottom: none;
}

.cta-overlay.side p {
  margin: auto 0;
color: #ffffff;
}

.cta-overlay p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
color: #ffffff;
}

.cta-overlay.side .button {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.95rem;
  padding: 0.5rem 1.2rem;
}

.button {
  background: #a20002;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}

.button:hover {
  background: #fff;
  color: #a20002;
}

@media (max-width: 1210px) {

.cta-box.large {
  width: 96%;
}
}
@media (max-width: 768px) {
  
.cta-box.medium {
  height: 300px;
  width: 100%;
  background-image: var(--bg-700);
  }


.cta-box.medium h3,
.cta-box.large h3 {
 font-size: clamp(1.4rem, 1.8vw, 1.8rem);
 font-weight: 600;
}

.cta-box.large {
    height: 300px;
  width: 96%;
    background-image: var(--bg-700);
  }
}

@media (max-width: 700px) {
  .cta-grid {
    grid-template-columns: 1fr;
    padding: 40px 10px; /* 10px Abstand links & rechts */
  }

.cta-overlay.side {
  width: 90%;
}
}

@media (max-width: 450px) {
  
.cta-box.medium,
.cta-box.large {
    height: 300px;
    background-image: var(--bg-350);
  }

.cta-overlay.side {
  width: 90%;
}


}

/*======
zielgruppen 3spaltig
======*/

/* Zielgruppen-Abschnitt */
.zg-section {
  width: 100%;
  padding: 80px 0;
  background-color: #fff;
  overflow-x: hidden;
}

/* Drei Spalten nebeneinander */
.zg-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: stretch;
}

/* Allgemeine Box-Stile */
.zg-box {
  background-color: #efefef;
  border: 2px solid #ddd;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px 20px;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: felx-start;
}

/* Linke Box */
.zg-left-box {
  justify-content: flex-start;
  display: flex;
}

/* Rechte Box */
.zg-right-box {
  justify-content: flex-start;
  display: flex;
}
.zg-left-box,
.zg-right-box {
  flex: 1 1 0;
}

/* Mittlere Box */
.zg-center-box {
  width: 380px;
  flex-shrink: 0;
  border-radius: 0px;
  z-index: 2;
  align-items: flex-start;
  justify-content: felx-start;
}

/* Textbox innerhalb der äußeren Boxen */
.zg-textbox {
  width: 360px;
  max-width: 100%;
  box-sizing: border-box;
margin:0;
}

/* Typografie */
.zg-textbox h3,
.zg-center-box h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #a20002;
}

.zg-textbox p,
.zg-center-box p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #577593;
}

/* Linke Box: Textbox rechtsbÃ¼ndig */
.zg-left-box .zg-textbox {
  margin-left: auto;
  margin-right: 0;
  text-align: left;
}

/* Rechte Box: Textbox linksbÃ¼ndig */
.zg-right-box .zg-textbox {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

/* Mittlere Box: zentriert */
.zg-center-box {
  display: flex;
  justify-content: center;
  align-items: left;
}

@media (max-width: 1199px) {
  .zg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    margin: 15px;
  }

  .zg-left-box {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .zg-center-box {
    grid-column: 2 / 3;
    grid-row: 1;
    width: 100%; /* â† wichtig: Überschreibt feste Breite */
    flex-shrink: 1;
  }

  .zg-right-box {
    grid-column: 1 / span 2;
    grid-row: 2;
  }

  .zg-box {
    border-radius: 16px;
  }

  .zg-textbox {
    width: 100%;
    padding: 0 20px;
  }
}

/* Responsive: Boxen untereinander von rechts nach links */
@media (max-width: 768px) {
  .zg-row {
display: flex; 
    flex-direction: column-reverse;
    gap: 20px;
  }

  .zg-box {
    width: 100%;
    border-radius: 0px;
    justify-content: center;
    align-items: center;
  }

  .zg-textbox {
    width: 100%;
    padding: 0 20px;
  }

  .zg-center-box {
    width: 100%;
  }
}



/* =========================
   News/Teaser – Component + Layout
   ========================= */

/* ---------- Layout (optional wrapper) ---------- */
/* Wenn du diese Wrapper nicht auf Wissensseiten hast,
   ist das okay: die Komponente unten funktioniert allein. */
.news-teaser-wrapper{
  width: 100%;
  padding: 2rem 1rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.news-teaser-inner{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
}

.news-heading{
  text-align: left;
  font-size: 2rem;
  margin: 0 0 2rem;
  color: #577593;
  font-weight: 600;
}

/* Grid für mehrere Teaser */
.news-teaser-section{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Year grouping */
.news-year-block{
  margin-bottom: 4rem;
}

.year-heading{
  grid-column: 1 / -1;
  font-size: 1.5rem;
  font-weight: 700;
  color: #577593;
  margin: 0 0 1rem;
  border-bottom: 2px solid #a20002;
  padding-bottom: 0.3rem;
}

/* ---------- Component (teaser card) ---------- */
.news-teaser-container{
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 1rem;
  position: relative;
  transition: border 0.3s ease;
  box-sizing: border-box;
}

.news-teaser-container:hover{
  border-color: #a20002;
}

/* Bottom accent line */
.news-teaser-container::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: #a20002;
  transition: width 0.4s ease;
}

.news-teaser-container:hover::after{
  width: 100%;
}

/* Title row */
.news-teaser-container .teaser-title{
  font-size: 1.15rem;
  margin: 0 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #ddd;
}

.news-teaser-container .teaser-title a{
  color: #577593;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

.news-teaser-container .teaser-title a:hover{
  color: #a20002;
}

.news-teaser-container .teaser-date{
  color: #999;
  font-size: 0.9rem;
  margin-right: 0.0rem;
}

/* Click area (the inner link wrapper) */
.news-teaser-container > .teaser-link{
  display: block;           /* wichtig: kein Link-Padding von außen */
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* Content row: text + image */
.news-teaser-container .teaser-content{
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.news-teaser-container .teaser-content p{
  flex: 1;
  margin: 10px 0 0;
  font-size: 1rem;
  color: #666;
}

/* Image */
.news-teaser-container .teaser-image{
  width: 150px;
  flex-shrink: 0;
  position: relative;
  top: 5px;
}

.news-teaser-container .teaser-image img{
  width: 100%;
  height: auto;
  border: 1px solid #577593;
  border-radius: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-teaser-container:hover .teaser-image img{
  transform: scale(1.05);
  border-color: #a20002;
  box-shadow: 0 0 0 2px #a20002;
}

/* ---------- Variants ---------- */
.news-teaser-container.empty{
  visibility: hidden;
}

/* NUR eine Full-width-Variante: du hattest doppelte Klassen */
.news-teaser-container.full-width{
  background: rgba(234, 244, 254, 0.9);
  border-color: #577593;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px){
  .news-teaser-section{
    grid-template-columns: 1fr;
  }

  .news-teaser-container .teaser-image{
    width: 150px;
    margin-top: 1rem;
    top: 0;
  }
}

/*=====================
Motivecards
====================*/

/* ===========================
   Motive Cards – 280 × 360 px
=========================== */

.motive-card{
  position: relative;
  display: block;
  width: 280px;
  height: 360px;
  border: 1px solid #ddd;
  overflow: hidden;
  text-decoration: none;
  color: #577593;
  background: #f9f9f9;
  transition: border 0.3s ease;
}

/* Bild */
.motive-card .motive-card-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top;
  filter: brightness(.85);
}

/* Helles Overlay */
.motive-card .motive-card-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem 1rem;
  background: linear-gradient(
    to bottom,
rgba(255,255,255,0),
rgba(255,255,255,0),
    rgba(255,255,255,0),
    rgba(255,255,255,.7),
    rgba(255,255,255,.95)
  );
}

/* Texte */
.motive-card-overlay h3{
  margin: 0 0 .25rem;
  font-size: 1.15rem;
  font-weight: 600;
  color:#577593;
}

.motive-card-overlay p{
  margin: 0;
  font-size: .9rem;
  color:#333;
  line-height: 1.35;
}

/* Rahmen wird rot */
.motive-card:hover{
  border-color:#a20002;
}

/* Untere rote Linie fährt beim Hover auf */
.motive-card::after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width:0;
  height: 3px;
  background-color: #a20002;
  transition: width .35s ease;
}

.motive-card:hover::after{
  width:100%;
}
/* ===============================
   MOTIVE-SEITE – 2-Spalten-Layout
================================ */

/* Wrapper */
.motive-uebersicht, .motive-seite{
  max-width: 1200px;
  margin: 2rem auto 3rem;
  padding: 0;
}

/* Text-Spalte */
.motive-intro{
max-width: 700px;
  margin-bottom: 3rem;
}

/* Eine Reihe: Card + Text */
.motive-row{
  display: flex;
  align-items: stretch;     /* macht beide Spalten gleich hoch */
  gap: 40px;
  margin-bottom: 3rem;
}

/* Reverse-Variante */
.motive-row--reverse{
  flex-direction: row-reverse;
}

/* Card-Spalte */
.motive-col-card{
  width: 350px;
  flex: 0 0 350px;
}

.motive-col-text{
  flex:1;
  background:#f9f9f9;
  border:1px solid #ddd;
  padding:3rem;
  position:relative;
  transition:border .3s ease;
}

/* Ganze Box ist klickbar */
.motive-box-link{
  display:block;
  width:100%;
  height:100%;
  text-decoration:none;
  color:inherit;
}

/* Hover-Effekt */
.motive-col-text:hover{
  border-color:#a20002;
}

.motive-col-text::after{
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:0;
  height:3px;
  background:#a20002;
  transition:width .4s ease;
}

.motive-col-text:hover::after{
  width:100%;
}
.motive-col-text h2{
  margin-top: 0;
  font-size: 1.6rem;
  margin-bottom: .6rem;

}

.motive-col-text p{
  margin: 0 0 1rem;
  line-height: 1.6;
}

/* ===============================
   MOTIV-CARDS (Quadratisch)
================================ */

.motive-card{
  position: relative;
  width: 100%;
  height: 100%;              /* passt sich der Texthöhe an! */
  border: 1px solid #ddd;
  overflow: hidden;
  text-decoration: none;
  color: #111;
  background: #f9f9f9;
  transition: border .3s ease;
}

/* Bild */
.motive-card-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  filter: brightness(.85);
}

/* Overlay */
.motive-card-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem 1rem;
  background: linear-gradient(
    to bottom,
rgba(255,255,255,0),
rgba(255,255,255,0),
    rgba(255,255,255,0),
    rgba(255,255,255,.7),
    rgba(255,255,255,.95)
  );
}

.motive-card-overlay h3{
  margin: 0 0 .3rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.motive-card-overlay p{
  margin: 0;
  font-size: .9rem;
  color: #333;
}

/* Hover – roter Rahmen + rote Linie unten */
.motive-card:hover{
  border-color: #a20002;
}

.motive-card::after{
  content:"";
  position: absolute;
  bottom:0;
  left:0;
  width:0;
  height:3px;
  background:#a20002;
  transition:width .35s ease;
}

.motive-card:hover::after{
  width:100%;
}

/* Mobile (<900px) */
@media(max-width: 900px){
  .motive-row, .motive-row--reverse{
    flex-direction: column;
  }

  .motive-col-card{
    width: 100%;
    flex: none;
  }

  .motive-card{
    height: 300px;   /* mobile Sonderhöhe */
  }
}



/*==========
Referenzbild
========*/

.referenzbild-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 2em auto;
}

.referenzbild-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  border: 2px solid #ffffff;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.referenzbild-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;

}
.referenzbild-img-medium {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;

}


/* Cropping-Varianten */
.referenzbild-img.oben {
  object-position: top center;
}
.referenzbild-img.center {
  object-position: center center;
}
.referenzbild-img.unten {
  object-position: bottom center;
}

/* Overlay */
.referenzbild-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0,0,0,0.6);
  padding: 0.5em 1em;
  font-size: 1.1rem;
  color: #ffffff;
  max-width: 90%;
  border: 1px solid #ffffff;
  border-radius: 0px;
}
.referenzbild-overlay small {
  display: block;
  margin-top: 0.3em;
 font-size: 0.8rem;
  color: #777;
}
.referenzbild-img-medium:hover,
.referenzbild-img:hover,
.referenzbild-link:hover .referenzbild-overlay {
  transform: scale(1.01);
 border: 2px solid #a20002;
}


/* Responsive Anpassung */
@media screen and (max-width: 1300px) {
  .referenzbild-wrapper {
    max-width: 100%;
    padding: 0 1em;
  }
  .referenzbild-img {
    height: auto;
    aspect-ratio: 2 / 1; /* 1200x600 VerhÃ¤ltnis */
  }
}

/* Responsive Anpassung */
@media screen and (max-width: 768px) {
  .referenzbild-wrapper {
  margin: 1em auto;
  }
}

/*===========
Referenz
===========*/
.referenz{
  background-color: #efefef;
  border: 2px solid #ddd;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px 20px;
  box-sizing: border-box;
  position: relative;
  margin-top: 40px;
}

.referenz-innen {
  max-width: 1200px;
  margin: 20px auto;
  box-sizing: border-box;
  color: #567492;}


.referenz::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #a20002;
  transition: width 0.4s ease;
}


.referenz:hover::after {
  width: 100%;
}

.referenz-innen p{
  font-size: 1.0em;
  line-height: 1.6;
  color: #567492;
  text-decoration: none;
}

.referenz-innen {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.referenz-innen h2 {
    font-weight: 500;
color: #777777;}

.referenz-innen h2:hover{
 color: #a20002;
}
.referenz-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
*/.referenz-link {
  text-decoration: none;
  color: inherit;
}*/
a.referenz-link h2 {
color: #567492;}

.gray{
  color: #777777;
}

/* Bild */

.spalte img {
  max-width: 400px;
  margin: 0;
  float: right;
  border: 1px solid #567492;
  border-radius: 0px;
  /*box-shadow: 2px 2px 3px #000000;*/
}

.referenz-link img:hover {
  border: 2px solid #a20002;
}
.referenz:hover .spalte img {
  transform: scale(1.01);
}

.referenz:hover{
border: 2px solid #a20002;}

/* Responsive Anpassung */
@media (max-width: 768px) {
.referenz{
  width: 96%;
margin: 40px auto;
}



.spalte img {
  width: 100%;
  margin: 10px o;
  float: left;
  border: 1px solid #567492;
  border-radius: 0px;
  box-shadow: 2px 2px 3px #000000;
}
} 

/*===================
Lexikon
===========*/
.lexikon-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px 0;
   margin-bottom: 80px;
}

.lexikon-container h2 {
  font-size: 200%;
  margin-bottom: 40px;
  text-align: left;
    font-weight: 600;
  color: #577593;
}
.lexikon-container h3 {
  font-size: 120%;
  margin-bottom: 20px;
  text-align: left;
  color: #577593;
}

.lexikon-content {
margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.lexikon-einleitung,
.lexikon-teaser {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.lexikon-kreis {
  flex: 0 0 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*  Responsive Anpassungen */
@media (max-width: 900px) {
  .lexikon-content {
width: calc(100% - 60px);
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .lexikon-einleitung,
  .lexikon-teaser {
    max-width: 600px;
    margin-bottom: 20px;
    color: #577593;
  }

  .lexikon-kreis {
    margin-bottom: 20px;
  }
}

@media (max-width: 1199px) {
  .lexikon-container {
width: calc(100% - 60px);
    padding: 20px 0px;
  }

  .lexikon-container h2 {
    font-size: 1.5rem;
  }


  .lexikon-kreis svg {
    width: 300px;
    height: 300px;
  }
}


@media (max-width: 768px) {
  .lexikon-container {
width: calc(100% - 60px);
    padding: 20px 0px;
  }

  .lexikon-container h1 {
    font-size: 1.5rem;
  }


  .lexikon-kreis svg {
    width: 300px;
    height: 300px;
  }
}


.lexikon-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
}

.teaser-box {
  width: 200px;
  font-family: sans-serif;
  font-size: 14px;
  background: #f9f9f9;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.segment path {
stroke: #000;
  stroke-width: 1;
  transition: fill 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}


.segment text {
  font-family: sans-serif;
  font-size: 120%;
  font-weight: bold;
  fill: #000;
  pointer-events: none;
  text-anchor: middle;
    pointer-events: none;
    /*text-shadow: 2px 2px 4px black;*/
}
svg {
  overflow: visible;
}

.segment:hover path {
  filter: brightness(60%) contrast(120%) drop-shadow(2px 2px 4px rgba(0,0,0,0.4));
  transform: scale(1.05);  stroke: #fff;
  stroke-width: 1;
}
.segment:hover text{
 fill: #fff;
}

/* Aktives Segment (Default-Zustand der aktuellen Kategorie) */
.segment.is-active path{
  filter: brightness(110%) contrast(110%);  transform: scale(0.97); drop-shadow(2px 2px 4px rgba(0,0,0,0.4));
  stroke: #fff;
  stroke-width: 1;
}

.segment.is-active text{
  fill: #fff;
  font-weight: 600;
  text-shadow: 1px 1px 2px black;
}


 /*============
wald
===========*/
.wald{
  position: relative;
  height: 700px;
  overflow: hidden;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  padding-bottom: 48px;  /* Luft zur unteren Kante */
  box-sizing: border-box;
}

/* Bild füllt die Section */
.wald-media,
.wald-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wald-img{
  object-fit: cover;
  object-position: center;
}

/* Vollbreites Overlay (Gradient) */
.wald::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%);
  pointer-events:none;
  z-index: 1;
}

/* 1200px Wrapper für Text */
.wald-inner{
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1200px;
  padding: 0 16px;
  box-sizing: border-box;

  display: flex;
  justify-content: center;
}

/* Textbox */
.wald-text{
  background: rgba(0, 30, 0, 0.40);
  padding: 22px 28px;
  border-radius: 8px;
  color: #fff;
  text-align: center;

  max-width: 900px;
}

/* Headline */
.wald-text h2{
  margin: 0;
  color: #fff;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  line-height: 1.25;
}

@media (max-width: 768px){
  .wald{
    height: 480px;
    padding-bottom: 28px;
  }
  .wald-text{
    padding: 16px 18px;
    border-radius: 10px;
  }
}



/* ===========================
   Footer
=========================== */
.footer {
  background:#333 ;
  padding: 3rem 0;
  margin-top: 0rem;
  color: #f5f5f5;
  border-top: 10px solid #fff;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 0 1rem;
}

.footer-column h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  color: #b5d5fb;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.4rem;
}

.footer-column a {
  color: #f5f5f5;
  text-decoration: none;
  transition: color .3s;
}

.footer-column a:hover {
  color: #bbb;
border-bottom: 2px solid #999;
}





.footer-social a { 
  display: inline-block; 
  margin-bottom: .3rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: .8rem;
  color: #777;
  border-top: 1px solid #ddd;
}

.footer-social{
  display: flex;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.footer-social a{
  display: inline-flex;
  align-items: center;
}

.footer-social .icon{
  width: 22px;
  height: 22px;
  fill: #f5f5f5;                  /* ruhige Grundfarbe */
  transition: fill .3s ease;
}

.footer-social a:hover .icon{
  fill: #a20002;               /* dein typisches Rot */
}

→ Die SVGs verhalten sich wie Textlinks


@media(max-width: 900px){
  .footer-inner{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 600px){
  .footer-inner{
    grid-template-columns: 1fr;
  }
}

.social-media-block {
  color: #f5f5f5;
  max-width: 1200px;
  margin: 0 auto;
margin-bottom: 40px;
}

.social-media-block p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Layout: Einträge nebeneinander oder untereinander */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* Ein einzelner Social-Link */
.social-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #577492; /* dein Blau */
  position: relative;
  padding-bottom: 2px; /* Platz für Unterlinie */
}

/* Icon */
.social-entry .icon {
  width: 22px;
  height: 22px;
  fill: #577492; /* dein Blau */
  transition: fill .3s ease;
}

/* Text */
.social-entry span {
  font-size: 1rem;
  line-height: 1.4;
}


/* Hover */
.social-entry:hover {
  color: #a20002;
}

.social-entry:hover .icon {
  fill: #a20002;
}


/*===============
bildnachweise
==============*/

.bildnachweise-nav {
  margin: 1.5rem 0 2rem;
  padding: 1rem;
  background: #f7f7f7;
  border-left: 4px solid #577492;
}

.bildnachweise-nav ul {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
}

.bildnachweise-nav li {
  margin-bottom: .3rem;
}

.bildnachweise-nav a {
  color: #577492;
  text-decoration: none;
  position: relative;
}

.bildnachweise-nav a:hover {
  color: #a20002;
}

.bildnachweise-nav a::after {
  content:'';
  position:absolute;
  bottom:-2px; left:0;
  width:0; height:2px;
  background:#a20002;
  transition:width .3s ease;
}

.bildnachweise-nav a:hover::after {
  width:100%;
}

.angebot-grid3 h2[id] {
  scroll-margin-top: 100px; /* Wert an deine Navbar/Subnav-Höhe anpassen */
}


/* ===========
linkverhalten
========== */

.textlink {
  position: relative;
text-decoration: none;
    color: #577593;
}
.textlink:hover {
    color: #a20002;
}
.textlink::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; /* statt left */
  width: 0;
  height: 2px;
  background: #a20002;
  transition: width 0.3s ease;
}

.textlink:hover::after {
  width: 100%;
}


.projekt-empfehlungen {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 2rem 0;
}

.projekt-link {
  display: flex;
  align-items: baseline;
color: #ccc; 
}

.pluszeichen {
  color: #ccc; /* hellgrau */
  font-weight: bold;
  margin-right: 0.5rem;
  font-family: 'Courier New', monospace;
  font-size: 1.1em;
  line-height: 1;
}

.projekt-link:hover .pluszeichen {
  color: #a20002;
  transform: scale(1.2);
  transition: all 0.2s ease;
}

/*============
Listen
========*/

p ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

p ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.6;
}

p ul li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: #a20002;
  font-weight: bold;
}

.plusliste {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.plusliste li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.plusliste li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: #a20002;
  font-weight: bold;
}


/*============
Fehler
========*/

.fehlerbox {
  background-color: #ffe0e0;
  border: 1px solid #cc0000;
  padding: 1em;
  margin-bottom: 1em;
}

.fehler {
  color: #cc0000;
  font-weight: bold;
}
.fehlerfeld {
  border: 2px solid #cc0000;
  background-color: #fff0f0;
}


/* ====================== 
FAQ Bereich Grundlayout 
========================= */

.faq-bereich {
  max-width: 900px;
  margin: 0 auto;
margin-bottom: 40px;
  padding: 2rem 1.2rem;
}

.faq-bereich h2 {
  margin-bottom: 1.5rem;
  font-size: 1.9rem;
}

/* ===== FAQ-Item ===== */

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.15);
  padding: 1rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

/* ===== Summary Styling ===== */

.faq-item summary {
  cursor: pointer;
  list-style: none;         /* entfernt Standard-Dreieck */
  font-size: 1.15rem;
  font-weight: 600;
  position: relative;
  padding-right: 2rem;      /* Platz für Icon */
  transition: color 0.2s ease;
}

.faq-item summary:hover {
  color: #a20002;           /* dein Rot */
}

/* ===== Custom Icon (Chevrons) ===== */

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.4rem;
  color: #577593;          /* dein Blau */
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Beim Öffnen Pfeil drehen / ändern */
.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: #a20002;           /* Rot im geöffneten Zustand */
}

/* ===== Absatz unter der Frage ===== */

.faq-item p {
  margin: 0.8rem 0 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #333;
}

/* ===== Mobile Optimierung ===== */

@media (max-width: 600px) {
  .faq-bereich {
    padding: 1.5rem 1rem;
  }
  .faq-item summary {
    font-size: 1.05rem;
  }
}

.wissen-hinweis{
  margin: 28px 0;
}

.wissen-hinweis-inner{
  max-width: 740px;         /* bleibt in der Lesespalte */
  border: 1px solid #ddd;
  border-radius: 0px;
  background: #ffffff;
  padding: 14px 16px;
  margin-bottom: 20px; 
  color: #777;   
}


.wissen-hinweis p{
  margin: 0;
  color: #777;    
}

.farbhinweis{
  max-width: 280px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;  
margin-bottom: 10px; 
}
.farbhinweis p{
  margin: 0;
  font-size: 0.9rem;
  color: #777;    
}
.farbhinweis h4{
  margin: 0;
    font-size: 1.05rem;
  color: #a20002;    
}

.texthinweis{
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #666;    
  background: #fff;
  padding: 14px 16px;  
  margin-bottom: 10px; 
}

 p.texthinweis{
  margin: 0;
  font-size: 0.8rem;
  color: #aaa;    
}

.texthinweis h4{
  margin: 0;
    font-size: 1.05rem;
  color: #a20002;    
}
