/* =========================================================
   Root Vars (Design System)
========================================================= */
:root {
  --font-primary: 'Sansation', sans-serif;
  --fw-regular: 400;
  --fw-bold: 600;

  --fs-base: clamp(15px, 1.1vw, 20px);
  --lh-base: 1.45;
  --ls-base: 0.02rem;

  --c-primary: #C11120;
  --c-primary-hover: #C11120;
  --c-text: #292929;
  --c-bg: #FAFAFA;
  --c-bg-grey: #e6e6e6;
  --c-dark-grey: #CBCBCB;
  --c-surface: #FAFAFA;

  /* Einheitliches Container-System */
  --container: 1600px;
  --gutter: clamp(1rem, 5vw, 5rem);   /* 16px → 80px fließend */
  --header-h: clamp(80px, 9vw, 130px);

  --section-gap: clamp(2rem, 6vw, 6rem);

  --radius: 12px;
  --shadow: 0 4px 8px rgba(0,0,0,.15);
  --shadow-soft: 0 0 10px rgba(0,0,0,.18);

  --t-fast: .25s ease;
  --t-slow: .5s ease;
}

/* =========================================================
   Base / Typography
========================================================= */
* { box-sizing: border-box; }

body {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  letter-spacing: .05em;
  margin: 0;
  padding: 0;
  color: var(--c-text);
  background-color: var(--c-bg);
  overflow-x: hidden;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  
}

a { color: inherit; text-decoration: none; }

article div a { border-bottom: .5px dotted #444; }

article div.inhalt2spalten a:after {
  font-family: "Font Awesome 6 Free";
  content: "\f35d";
  font-weight: 900;
  font-size: .7em;
  margin-left: .2em;
  margin-right: .5em;
  opacity: .8;
  color: #000;
  vertical-align: middle;
  display: inline-block;
}

strong { font-weight: var(--fw-bold); color: #292929; }
em     { font-style: normal; font-weight: var(--fw-bold); }

/* =========================================================
   Headings
========================================================= */
p {
  letter-spacing: 0.01rem;
  color: var(--c-text);
  margin-block: 0.9rem;
}

h1, h2, h3, h4 {
  margin: 0 0 15px 0;
  font-family: var(--font-primary);
  font-weight: var(--fw-bold);
  color: var(--c-primary);
  letter-spacing: 0.02rem;
}

h1, h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.35em);
  line-height: 1.25;
  letter-spacing: 0.01rem;
  margin-bottom: 2.5rem;
  padding-bottom: 0;
}

h1:has(+ h3),
h2:has(+ h3) { margin-bottom: 0.4rem; }

h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.75rem);
  line-height: 1.2;
}
.shortcuts-wrapper h3 {
hyphens:auto;
}
h4 {
  font-size: clamp(1.2rem, 1.6vw, 1.75rem);
  line-height: 1.2;
  padding: 0;
  margin: 0;
  color: var(--c-text);
}

.shortcuts-wrapper .gridinfo br {
    display: none;
}

.shortcuts-wrapper .gridinfo {
    max-width: 80ch;
}


sup { font-size: 0.4em; vertical-align: baseline; }

/* =========================================================
   Buttons
========================================================= */
.btn {
  display: inline-block;
  padding: 7px 80px 5px 20px;
  font-size: var(--fs-base);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  margin-top: 1rem;
  background: var(--c-primary);
  clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0% 100%);
  -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0% 100%);
  transition: transform 0.25s ease, background-color 0.2s ease;
}
.btn:hover {
  background-color: #AC0E1C;
  transform: translateX(5px) scaleX(1.04);
}

a.button {
  background-color: var(--c-primary);
  color: var(--c-surface);
  border: 2px solid var(--c-primary);
  border-radius: var(--radius);
  padding: .55rem 1.5rem;
  font-weight: var(--fw-bold);
  display: inline-block;
  transition: var(--t-fast);
}
a.button:hover {
  background-color: var(--c-primary-hover);
  border-color: var(--c-primary-hover);
  color: var(--c-surface);
}
.bg a.button {
  background-color: transparent;
  color: var(--c-surface);
  border-color: var(--c-surface);
}
.bg a.button:hover {
  background-color: var(--c-surface);
  color: var(--c-primary);
}
a.button::after {
  font-family: "FontAwesome";
  content: "\f061";
  display: inline-block;
  margin-left: .5em;
  color: currentColor;
}
a.button.back::after { display: none; }
a.button.back::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f060";
  display: inline-block;
  margin-right: .5em;
}

a.pdf:before {
  content: " ";
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 2px;
  padding: 9px 10px 9px 0;
  background-repeat: no-repeat;
  background-size: 76%;
  background-position: center left;
  background-image: url(../../media/pdf-icon-gruen.png);
}
.bg a.pdf:before        { background-image: url(../../media/pdf-icon-weiss.png); }
a.pdf:hover::before     { background-image: url(../../media/pdf-icon-weiss.png); }
.bg a.pdf:hover::before { background-image: url(../../media/pdf-icon-gruen.png); }

/* =========================================================
   UNIVERSELLER CONTAINER  (Single Source of Truth)
========================================================= */
.container,
.headerinner,
.header-container,
.hero .slideshow,
.galerie,
footer .inhalt3spalten .container, 
section.kontaktformlar .container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

footer .textrahmen-bg .container {
margin-bottom:0;

}

/* Vertikale Abstände für .container (Content-Abschnitte) */
.container {
  margin-top: var(--section-gap);
  margin-bottom: var(--section-gap);
}

/* =========================================================
   Header / Navigation
========================================================= */
header.header,
header#header {
  width: 100%;
  height: var(--header-h);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  background-color: var(--c-bg-grey);
}

header.sticky {
  transition: background-color var(--t-slow);
  background-color: rgba(248, 249, 250, 1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  /* padding/max-width kommen aus Universal-Container */
  margin-bottom:0;
  margin-top:0;
}

.logo {
  width: clamp(200px, 20vw, 290px);
  aspect-ratio: 290 / 80;
  display: inline-block;
  position: relative;
  background-image: url(../../media/sigwarth-logo.svg);
  background-size: 100%;
  background-position: center center;
  background-repeat: no-repeat;
}



.logo a { display: block; width: 100%; height: 100%; }

/* Burger – Desktop versteckt */
.menuumgebend { display: none; }

header .buttonmenu button {
  background: transparent;
  width: 60px;
  height: 30px;
  border: 0;
  outline: 0;
  cursor: pointer;
  text-align: right;
}

nav {
  opacity: 1;
  width: 70%;
  height: 90px;
  position: relative;
  display: inline-flex;
  font-weight: var(--fw-regular);
  z-index: 100;
  top: 0;
    align-items: center;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul li {
  width: auto;
  height: 60px;
  display: inline-block;
  position: relative;
  text-align: center;
}

nav ul li a {
  color: var(--c-primary);
  display: block;
  width: auto;
  padding: 5px 2px 0 0;
  text-align: left;
  letter-spacing: var(--ls-base);
font-size: clamp(1.2rem, 1.6vw, 1.75rem);
  position: relative;
}

.slick-dots {
right:5%;
}


/* =========================================================
   Desktop Nav (≥ 1000px)
========================================================= */
@media screen and (min-width: 1000px) {
  nav ul > li > a { position: relative; }

  nav ul > li > a:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100px;
    height: 8px;
    background-image: url(../../media/menu-zeiger-leer.svg);
    background-repeat: no-repeat;
    background-size: 0px 8px;
    background-position: 0 0;
    transition: background-size .3s;
      bottom: -0.5em;     /* war -15px */
  width: 2.2em;       /* war 48px */
  height: 0.4em;  
  }

  nav ul li.rex-active > a:after,
  nav ul li.rex-current > a:after,
  nav ul li:hover > a:hover:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 48px;
    height: 9px;
    background: #C11120;
    clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 0% 100%);
      bottom: -0.5em;     /* war -15px */
  width: 2.0em;       /* war 48px */
  height: 0.3em;  
  }

  nav ul ul li.rex-active > a:after,
  nav ul ul li.rex-current > a:after,
  nav ul ul li:hover > a:hover:after {
    content: "";
    position: absolute;
    left: 10px;
    bottom: 15px;
    width: 78px;
    height: 4px;
    background: #C11120;
    clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 0% 100%);
      bottom: -0.4em;     /* war -15px */
  width: 2.0em;       /* war 48px */
  height: 0.3em;  
  }

  nav ul ul {
    display: none;
    position: absolute;
    top: 76%;
    left: 0;
    background-color: var(--c-surface);
    padding: 10px 30px 15px 10px;
    min-width: 250px;
    height: auto;
    z-index: 10000;
    box-shadow: var(--shadow);
  }
nav ul li:last-child ul {
    display: none;
    position: absolute;
    top: 76%;
    left: -150px;
    background-color: var(--c-surface);
    padding: 10px 30px 15px 10px;
    min-width: 250px;
    height: auto;
    z-index: 10000;
    box-shadow: var(--shadow);
  }
  nav ul ul li {
    display: block;
    height: 65px;
    text-align: left;
  }

  nav ul ul a { 
  
  	padding: 10px 10px 0px 10px;
   	display: block; 
   }
	
  nav > ul > li:hover > ul { display: block; }

  nav > ul > li:has(ul)::after {
    content: "";
    position: absolute;
    right: -15px;
    top: 45%;
    display:inline-block;
    transform: translateY(-50%);
    width: 15px;
    height: 9px;
    background-image: url("data:image/svg+xml,%3Csvg width='15' height='9' viewBox='0 0 15 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.04883 5.58398L11.6914 0.25L13.5488 0.25L7.07227 7.71191L7.04883 7.67285L7.02539 7.71191L0.548828 0.25L2.40625 0.25L7.04883 5.58398Z' fill='%23C11120'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
  }
}

/* =========================================================
   Hero / Slideshow
========================================================= */
.hero {
  margin-top: var(--header-h);
  width: 100%;
  height: auto;
  position: relative;
  background-color: var(--c-bg-grey);
  padding-bottom: 20px;
}

.hero .slideshow {
  /* width/max-width/padding kommen aus Universal-Container */
  margin-top: clamp(20px, 3vw, 50px);
  margin-bottom: clamp(40px, 5vw, 80px);
  position: relative;
  z-index: 1;
  background-color: transparent;
  height: auto;
  line-height: 0;
}

.slick-slide { height: auto; }

.slide {
  aspect-ratio: 16 / 8;
  background-size: cover;
  background-position: center;
}
@media (min-width:1000px) {
body:not(#article1) .slide {
  aspect-ratio: 16 / 8;
  background-size: cover;
  background-position: center;
}
}
.hero .slideshow img {
  width: 100%;
  height: auto;
  opacity: 0;
}

.hero .slideshow.slick-initialized button.slick-prev,
.hero .slideshow.slick-initialized button.slick-next,
.slick-initialized button.slick-prev,
.slick-initialized button.slick-next {
  position: absolute;
  border: 0;
  height: 45px;
  width: 45px;
  top: 50%;
  z-index: 10;
  color: transparent;
  cursor: pointer;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 45%;
  background-position: center;
}

.slick-next {
right:10px;

}
.slick-prev {
left: 10px;
}
.hero .slideshow.slick-initialized button.slick-prev,
.slick-initialized button.slick-prev { background-image: url("../../media/pfeil-links.svg"); }
.hero .slideshow.slick-initialized button.slick-next,
.slick-initialized button.slick-next { background-image: url("../../media/pfeil-rechts.svg"); }
.hero .slideshow .slick-prev:before,
.hero .slideshow .slick-next:before,
.slick-prev:before, .slick-next:before { content: none; }
.hero .slideshow ul.slick-dots,
body > .slideshow ul.slick-dots { display: none; }

body > .slideshow .rsContent {
  opacity: 1;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.slideshowtextbereich {
  display: flex;
  justify-content: space-between;
  width: 50%;
  max-width: 1550px;
  position: absolute;
  right: var(--gutter);
  bottom: 10%;
  height: 200px;
  align-items: flex-end;
}
.slideshowtextbereich > div.textRahmen {
  display: inline-block;
  padding: 10px 3%;
}
body:not(#article1) .slideshowtextbereich > div.textRahmen { display: none; }

/* =========================================================
   Content Layout
========================================================= */
main.inhalt {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  height: auto;
  position: relative;
  padding-top: 30px;
  padding-bottom: 30px;
  z-index: 5;
  background-color: var(--c-bg);
}

body.open main.inhalt { display: none; }

/* Listen */
main.inhalt ul { padding: 0; }
main.inhalt section:not(.kontaktformular) li {
  list-style: none;
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
  line-height: var(--lh-base);
}
main.inhalt section:not(.kontaktformular) li::before {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.9em;
  color: var(--c-primary);
}




.bildspalten.einzeln,
.bildspalten.einzeln * {
    box-sizing: border-box;
}

.bildspalten.einzeln {
    width: 100%;
    background: #f5f5f5;
    padding: 3rem;
}

.bildspalten.einzeln .bild img {
    width: 100%;
    height: auto;
    display: block;
}




/* Tabellen */
table, table td, table tr { border: 0; }
table td { vertical-align: top; }

/* =========================================================
   Zwei Spalten
========================================================= */
.inhalt2spalten .container {
  display: grid;
  grid-template-columns: 2fr 1.25fr;
  gap: clamp(30px, 5vw, 90px);
}
.inhalt2spalten .spalte2 { background: #e6e6e6; }
.inhalt2spalten .spalte2 .innerspalte {
  padding: clamp(25px, 4vw, 70px);
  height: 100%;
}

/* =========================================================
   Shortcuts
========================================================= */
section { padding: 0; }

.shortcuts-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(15px, 2vw, 30px);
}

.shortcuts-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--c-bg-grey);
  text-decoration: none;
  padding: clamp(1.25rem, 2.5vw, 2.5rem);
  min-height: 320px;
  transition: 0.2s ease;
}
.shortcuts-content { width: 100%; flex: 1; }
.shortcuts-button  { margin-top: 1.25rem; }

/* =========================================================
   Footer
========================================================= */
footer {
  background-color: var(--c-bg-grey);
  color: var(--c-text);
  padding-top: 10px;
  padding-bottom: 0;
  position: relative;
}

footer a { border-bottom: .5px dotted #444; }

footer .textRahmen {
  background-color: transparent;
  border-bottom: 2px solid var(--c-surface);
  width: 80%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
footer .textRahmen h2:after { display: none; }
footer .textRahmen h2 { color: var(--c-surface); margin: 0; }

footer .inhalt3spalten .container {
  /* Universal-Container regelt padding/max-width */
  padding-bottom: 0px;
  margin-bottom: -20px;
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

footer .inhalt3spalten#inhalt3spalten4 .container {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1.6fr;
  gap: clamp(40px, 7vw, 150px);
  align-items: start;
}

footer .inhalt3spalten#inhalt3spalten4 .spalte3 p { margin-top: 0; }
footer .inhalt3spalten#inhalt3spalten4 h3 { margin-bottom: 0.5rem; margin-top: 2rem; }
footer .inhalt3spalten#inhalt3spalten4 p  { margin: 0; }

footer .textrahmen-bg {
  background: #C8C8C8;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
}

footer .textrahmen-bg .textrahmen-inner {
  /* Universal-Container regelt padding/max-width */
  padding-top: clamp(25px, 3vw, 35px);
  padding-bottom: clamp(30px, 4vw, 50px);
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

@media (max-width: 1000px) {
  footer .inhalt3spalten#inhalt3spalten4 .container {
    grid-template-columns: 1fr;
    gap:1.5rem;
    padding-right:15%;
    }
}


.pagination {
  margin-top: 3rem; /* Abstand nach oben für den gesamten Block */
}

.pagination a {
  display: inline-block;
  margin-right: 10px; /* Abstand zwischen den Zahlen */
  padding: 5px 10px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s;
}

.pagination a.active {
  background-color: #C11120;
  color: #FBF5ED;
  font-weight: 900;
}


/* =========================================================
   FAQ – Clean Style
========================================================= */
.faq-inner br {
  display: none;
}

.faq-inner {
  box-sizing: border-box;
  width: 100%;
  margin: auto;
  padding: 1.25rem;
  background-color: #E2E2E2; /* hellgrau */
  border-radius: 0;          /* keine Rundung */
  box-shadow: none;          /* kein Schatten */
}

/* optional: Wrapper Abstand */
.faq-eintrag-wrapper .container {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.faq-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

/* Titel */
.faq-header h3 {
  margin: 0;
  margin-top: 0.4rem;
  max-width: 80%;
  width: 80%;
  word-break: break-word;
  cursor: pointer;
  display: inline-block;
}

/* =========================================================
   Toggle Button – komplett reduziert
========================================================= */

.faq-toggle-button.button {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);

  width: auto;
  height: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  background: transparent;   /* kein Kreis */
  border: none;
  box-shadow: none;          /* kein Schatten */
  border-radius: 0;          /* keine Rundung */
}

/* Icon */
.faq-toggle-button i {
  font-size: 1.6rem;
  font-weight: 900;
  color: #C11120; /* dunkelrot */
}

/* Icons umschalten */
.faq-toggle-button .icon-open { display: none; }
.faq-toggle-button[aria-expanded="true"] .icon-open { display: inline; }
.faq-toggle-button[aria-expanded="true"] .icon-closed { display: none; }

/* Antwort */
.faq-antwort {
  max-width: 1100px;
  margin-right: auto;
  margin-top: 2.4rem;
}
/* =========================================================
   Breakpoint 1200px – nur Galerie
========================================================= */
@media screen and (max-width: 1000px) {
  .galerie > a {
    width: calc(33.333% - clamp(10px, 1.4vw, 20px));
  }
}

/* =========================================================
   Breakpoint 1000px  (Übergang Desktop → Mobile)
========================================================= */
@media screen and (max-width: 1000px) {

  body > .slideshow,
  body > .slideshow.slick-slider.slick-dotted {
    width: 100%;
    margin-top: 100px;
    margin-bottom: 0;
  }

  .slideshowtextbereich {
    width: 100%;
    position: relative;
    left: 0;
    right: auto;
    bottom: 0;
    height: auto;
    display: block;
    padding: 10px 0;
  }

  .inhalt2spalten { display: block; }
  .inhalt2spalten > div { width: 100%; margin-bottom: 20px; }

  footer .textRahmenVB4sp > div { width: 100%; }
}

/* =========================================================
   Breakpoint 900px – Mobile Nav + Layout
========================================================= */
@media screen and (max-width: 1000px) {

  /* Header */
  header.header,
  header#header { height: var(--header-h); }
  .headerinner { align-items: center; }

  /* Burger sichtbar */
  .menuumgebend {
    display: block;
    position: absolute;
    right: var(--gutter);
    margin-right: 5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1300;
  }

  #openMenu {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 26px;
    position: relative;
    padding: 0;
  }

  #openMenu span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--c-primary);
    left: 0;
    transition: .3s ease;
    clip-path: polygon(0% 0%, 100% 0%, 92% 100%, 0% 100%);
  }

  #openMenu span:nth-child(1) { top: 0; }
  #openMenu span:nth-child(2) { top: 10px; }
  #openMenu span:nth-child(3) { top: 20px; }

  #openMenu.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  }
  #openMenu.open span:nth-child(2) { opacity: 0; }
  #openMenu.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  }

  /* ── Nav Overlay ── */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--c-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform .4s ease;
    z-index: 1200;
    overflow-y: auto;
  }

  body.open nav {
    transform: translateY(0);
    margin-top: 18%;
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
    height: 90%;
    position:fixed;
  }

  body.open { overflow: hidden; }

  /* Pseudo-Elemente Desktop ausblenden */
  nav > ul > li:has(ul)::after { display: none; }
  nav ul > li > a:after,
  nav ul ul li > a:after { display: none; }

  /* ── Haupt-Liste ── */
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    height: auto;
    width: 86%;
  }

  /* ── Jedes li bekommt eine Trennlinie unten ── */
  nav ul > li {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    border-bottom: 1px solid color-mix(in srgb, var(--c-primary) 15%, transparent);
    padding: 14px 0;
  }

  nav ul > li:first-child {
    border-top: 1px solid color-mix(in srgb, var(--c-primary) 15%, transparent);
  }

  /* Haupt-Links */
  nav ul li a {
    font-size: 1.5rem;
    color: var(--c-primary);
    height: auto;
    padding: 0;
    display: block;
    text-align: left;
  }
  nav ul li.rex-active > a:before,
  nav ul li.rex-current > a:before,
  nav ul li:hover > a:hover:before {
    content: "";
    position: relative;
    left: 0px;

    width: 78px;
    height: 4px;
    background: #C11120;
    clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 0% 100%);
      bottom: .12em;     /* war -15px */
  width: 2.0em;       /* war 48px */
  height: 0.3em;  
  margin-right:.5em;
  display:inline-block;
  }
  /* ── Hauptpunkte mit Sub: Chevron rechts ── */
  nav ul > li:has(ul) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    cursor: pointer;
    padding-right: 30px; /* Platz für Chevron */
  }

nav ul > li:has(ul) {
  position: relative;
}

/* Chevron bleibt auf Höhe des ersten Links */
nav ul > li:has(ul)::after {
  content: "";
  display: block;
  width: 23px;
  height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='23' height='14' viewBox='0 0 23 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.573 8.376L17.537 0.375L20.323 0.375L10.608 11.568L10.573 11.509L10.538 11.568L0.823 0.375L3.609 0.375L10.573 8.376Z' fill='%23C11120'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform .3s ease;
  position: absolute;
  top: 20px;                        /* ← Oberkante des li */
  right: 0;
  height: 1.6rem;                /* ← Höhe des Links nachbilden */
  width: 23px;
  /* vertikal innerhalb dieser Höhe zentrieren */
  display: flex;
  align-items: center;
  transform: none;
}

nav ul > li.open::after {
  transform: rotate(180deg);     /* ← kein translateY mehr nötig */
}

  /* ── Submenü collapsed ── */
  nav ul ul {
    position: static;
    display: none;
    box-shadow: none;
    padding: 0;
    min-width: unset;
    background: transparent;
    height: auto;
    flex: 0 0 100%;
    width: 100%;
    /* Linke Linie als Einrückungshinweis */
    border-left: 2px solid color-mix(in srgb, var(--c-primary) 25%, transparent);
    margin-top: 10px;
    padding-left: 14px;
  }

  nav ul li.open > ul { display: block; }

  /* Sub-Items */
  nav ul ul li {
    height: auto;
    border-bottom: none;
    border-top: none;
    padding: 6px 0;
  }

  nav ul ul li a {
    font-size: 1.1rem;
    opacity: 0.8;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* ── Chevron › vor aktivem Submenü-Link ── */
  nav ul ul li.rex-active > a::before,
  nav ul ul li.rex-current > a::before,
  nav ul ul li.active > a::before {
    content: "›";
    font-size: 1.3rem;
    line-height: 1;
    color: var(--c-primary);
    opacity: 1;
    flex-shrink: 0;
  }




  /* Hero */
  .hero {
    margin-top: var(--header-h);
    padding-bottom: 0px;
  }

  .hero .slideshow {
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  .slide { aspect-ratio: 16 / 10; }
  .hero .slideshow img { opacity: 1; }

  .slick-initialized button.slick-prev,
  .slick-initialized button.slick-next {
    width: 35px;
    height: 35px;
  }

  /* Layout */
  .inhalt2spalten .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .galerie > a { width: calc(50% - 10px); }

  /* Shortcuts */
  .shortcuts-section { grid-template-columns: 1fr; gap: 20px; }
  .shortcuts-card    { min-height: auto; }
}

section.kontaktformular {


}

section.kontaktformular .container  {


}

section.kontaktformular .container .yform {
	    background: var(--c-bg-grey);
	    padding:2rem;
}

.kontakt-headline {

    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-grid .full {
    grid-column: 1 / -1;
}

/* Inputs */
.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    padding: 12px;
    border: none;
    font-size:1.0em;
}

/* Textarea Höhe */
.form-grid textarea {
    min-height: 200px;
}

@media (max-width: 1000px) {

  .form-grid {
    grid-template-columns: 1fr; /* nur 1 Spalte */
    gap: 1rem;
  }

  .form-grid .full {
    grid-column: auto; /* Reset */
  }

  .btn {
    grid-column: auto;
    justify-self: stretch; /* Button volle Breite */
    width: 100%;
    text-align: center;
  }

  section.kontaktformular .container .yform {
    padding: 1.5rem;
  }

}


/* Datenschutz */
.datenschutz-text {
    font-size: 1.0em;;
}

/* Button */
.btn {
    grid-column: 2;
    justify-self: end;

    color: #fff;
    padding: 12px 50px 12px 30px;
    border: none;
    cursor: pointer;
    border:0;
    outline:0;
      appearance: none;          /* wichtig (Browser-Style killen) */
    -webkit-appearance: none;  /* Safari */
    
    background-image: none;    /* entfernt Gradient */
    box-shadow: none;          /* entfernt Schatten */
    border: none;              /* optional */

    outline: none;             /* Fokus-Rand entfernen (optional!) */
}

/* =========================================================
   Galerie
========================================================= */
.galerie {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 2vw, 30px);
}

.galerie > a {
    width: calc(50% - (clamp(20px, 2vw, 30px) / 2));
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    outline: 0;
}

.galerie > a img {
    width: 100%;
    height: auto;
    display: block;
    visibility: hidden;
}

/* Mobile */
@media (max-width: 768px) {
    .galerie > a {
        width: 100%;
    }
}


