/*
Theme Name: ARSIO - Arbeiten, aber sicher - 2027
Theme URI: https://arsio.de/
Description: Praxisnahe Organisation des Arbeitsschutzes
Version: 7.0
Author: Klaus Oppermann
Author URI: https://www.klausoppermann.de/
*/

/* https://gwfh.mranftl.com/fonts */

/* open-sans-300 - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/open-sans-v36-latin-300.woff2') format('woff2');
}

/* open-sans-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/open-sans-v36-latin-regular.woff2') format('woff2');
}

/* open-sans-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/open-sans-v36-latin-700.woff2') format('woff2');
}

/* open-sans-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/open-sans-v36-latin-800.woff2') format('woff2');
}

/* https://mycolor.space/?hex=%23134093&sub=1 */

:root {
  --body-bg: #fff;

  --weiss: #fff;
  --hell: #f7f8ff;
  --medium: #E9EBF8;
  --dunkel: #152C59;
  --dunkel-grau: #2b303a;
  --schwarz: #000;
  --blau: #1a6ef5;

  --vibrant: #FFB703;
  --on-vibrant: #000;
  --vibrant-hov: #e09f00; /* Farbkontrast beim Hover definiert */
  --on-vibrant-hov: #000;

  --warning: #a23b00;
  --success: #497b00;

  --gradient: linear-gradient(135deg, var(--dunkel) 0%, var(--vibrant) 100%);

  --trans-dunkel--1: rgba(0, 0, 0, 0.05);
  --trans-dunkel-1: rgba(0, 0, 0, 0.1);
  --trans-dunkel-2: rgba(0, 0, 0, 0.2);
  --trans-dunkel-4: rgba(0, 0, 0, 0.4);
  --trans-dunkel-6: rgba(0, 0, 0, 0.6);
  --trans-dunkel-8: rgba(0, 0, 0, 0.8);
  --trans-dunkel-9: rgba(0, 0, 0, 0.9);
  --trans-hell-1: rgba(255, 255, 255, 0.1);
  --trans-hell-2: rgba(255, 255, 255, 0.2);
  --trans-hell-4: rgba(255, 255, 255, 0.4);
  --trans-hell-8: rgba(255, 255, 255, 0.9);

  /* Typografie Skala */
  --step--2: clamp(0.8781rem, 0.8744rem + 0.0185vw, 0.8888rem);
  --step--1: clamp(0.9375rem, 0.9158rem + 0.1087vw, 1rem);
  --step-0: clamp(1rem, 0.9565rem + 0.2174vw, 1.125rem);
  --step-1: clamp(1.0669rem, 0.9977rem + 0.3457vw, 1.2656rem);
  --step-2: clamp(1.1388rem, 1.0396rem + 0.4957vw, 1.4238rem);
  --step-3: clamp(1.215rem, 1.0804rem + 0.6728vw, 1.6019rem);
  --step-4: clamp(1.2963rem, 1.1204rem + 0.8793vw, 1.8019rem);
  --step-5: clamp(1.3831rem, 1.159rem + 1.1207vw, 2.0275rem);
  --step-6: clamp(1.4756rem, 1.1956rem + 1.4vw, 3rem);

  --but-pad: 0.5rem;
  --min: 24ch;
  --min2: 50ch;
  --max: 45ch;
  --gap: 1.5rem;
  --gap2: 1rem;

  --mwidth: 68rem;
  --bwidth: 120rem; 
  --bigwidth: 90rem;
  --biggerwidth: 105rem;
  --fullwidth: 120rem;

  --font-text: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-headlines: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-secondary: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset */

*, *::before, *::after {
  box-sizing: inherit;
}

a, abbr, acronym, address, applet, big, blockquote, body, caption, cite, code, dd, del, dfn, div, dl, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, html, hr, iframe, img, ins, kbd, label, legend, object, ol, p, pre, q, s, samp, small, span, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, ul, var {
  border: 0;
  color: inherit;
  font: inherit;
  list-style: none;
  margin: 0;
  padding: 0;
  text-decoration: none;
  vertical-align: baseline;
}

/* Fokus-Ring für Tastaturbedienung erhalten */
:focus-visible {
  outline: 2px solid var(--dunkel);
  outline-offset: 2px;
}

label, select, input[type=checkbox], input[type=radio], input[type=button], input[type=submit] {
  cursor: pointer;
}

article, aside, figcaption, figure, footer, header, hgroup, nav, section, time {
  display: block;
}

/* Allgemein */

html {
  background: var(--dunkel);
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 125px;
  box-sizing: border-box;
}

body {
  background: var(--body-bg);
  color: var(--dunkel-grau);
  font-family: var(--font-text);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  text-align: center;
  position: relative;
  overflow-y: scroll;
  overflow-x: clip;
}

/* Bereinigte Link-Definition */
a {
  color: var(--dunkel);
  text-decoration: underline;
}

a:hover, a:focus {
  color: var(--blau);
  text-decoration: none;
}

a.break {
  word-break: break-all;
  overflow-wrap: break-word;
  hyphens: auto;
}

a.icon-mobile {
  text-decoration: none;
  cursor: text;
}

address {
  margin: 15px 0;
  font-style: normal;
}

blockquote {
  background: var(--trans-hell-8);
  border: none;
  border-radius: 0;
  display: grid;
  place-items: center;
  font-size: var(--step-0);
  margin: 3em auto;
  padding: 2.5em;
  position: relative;
  isolation: isolate;
}

blockquote h2, blockquote h3 {
  margin: 10px auto;
  padding: 0;
  text-align: center;
}

blockquote p {
  margin-inline: auto;
}

blockquote .phone, blockquote .mail {
  display: block;
  margin-inline: auto;
}

code {
  font-family: 'Courier New', Courier, monospace;
  font-style: normal;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--dunkel);
  font-family: var(--font-headlines);
  font-weight: 400;
  line-height: 1.3;
  margin: 1.5rem auto 1rem auto;
  text-align: left;
  text-wrap: balance;
}

h1, .h1 {
  font-size: var(--step-5);
  letter-spacing: 1px;
  margin: 1.5rem auto;
  max-width: var(--bigwidth);
  font-weight: 700;
  text-align: center;
}

h1 b {
  display: inline-block;
  font-size: var(--step-6);
  letter-spacing: 1px;
  font-style: normal;
}

h1 span {
  display: block;
  font-size: var(--step-2);
  margin: 0.5rem auto 0 auto;
}

h2, .h2 { font-size: var(--step-4); }
h3, .h3 { font-size: var(--step-3); }
h4, .h4 { font-size: var(--step-2); }
h5, .h5 { font-size: var(--step-2); }
h6, .h6 { font-size: var(--step-1); }

h4, .h4, h5, .h5, h6, .h6 {
  margin-inline: auto;
}

h1 a, h2 a, h3 a, h4 a, h5 a,
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover {
  text-decoration: none;
}

.single-referenzen h1 {
  font-size: var(--step-2);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.single-referenzen h2.first {
  margin-top: 50px;
}

hr {
  background: var(--dunkel);
  border: none;
  color: transparent;
  clear: both;
  display: block;
  height: 0;
  margin: 25px 0;
  padding: 1px 0 0 0;
}

hr.abstand {
  background: transparent;
  margin: 35px 0;
}

img, picture {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

p {
  margin: 1.5rem 0;
}

p.frame {
  margin: 0;
}

p:empty {
  margin: 0;
  padding: 0;
}

p a, ul li a, ol li a {
  position: relative;
}

ol {
  display: block;
  margin: 25px auto;
  padding: 0;
  counter-reset: list-number;
  position: relative;
}

ol li {
  display: block;
  margin: 0;
  padding: 12px 25px 12px 60px;
  position: relative;
}

ol li:before {
  counter-increment: list-number;
  content: counter(list-number);
  margin-inline: auto;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--step-1);
  font-weight: 700;
  background-color: var(--vibrant);
  border-radius: 50%;
  color: var(--on-vibrant);
  position: absolute;
  left: 10px;
  top: 20px;
  line-height: 1;
}

ul {
  margin: 25px;
}

ul li, ul.postinfos li {
  list-style-type: square;
}

ul li {
  padding: 5px;
  position: relative;
}

ul ul, ul ul ul {
  margin: 0 15px;
}

ul ul li, ul ul ul li {
  background-image: none;
  padding: 5px;
}

ul.cols, p.cols, div.cols {
  columns: 30ch 3;
  gap: 2em;
  break-inside: avoid;
}

ul.cols li {
  break-inside: avoid;
  padding: 0.5rem;
}

ul.sprungmarken {
  clear: both;
  display: block;
  margin: 25px auto;
  text-align: center;
}

ul.sprungmarken li {
  display: inline-block;
  padding: 0;
  text-align: center;
}

ul.sprungmarken li:before {
  display: none;
}

ul.sprungmarken li a {
  background: var(--dunkel);
  border: 1px solid var(--dunkel);
  color: var(--weiss);
  display: block;
  font-weight: 500;
  margin: 5px;
  padding: 8px 10px;
  position: relative;
  text-decoration: none;
  transition: all 0.5s;
}

ul.sprungmarken li a:hover {
  background: var(--medium);
  border-color: var(--dunkel);
  color: var(--dunkel);
}

ul.internenavi {
  clear: both;
  display: block;
  margin: 25px auto;
  text-align: center;
}

ul.internenavi li, ul.internenavi li ul.sub-menu li {
  display: inline-block;
  margin: 0;
  padding: 0 10px 0 0;
  text-align: center;
}

ul.internenavi li:before {
  display: none;
}

ul.internenavi li a:after, ul.internenavi ul.sub-menu li a:after {
  content: ', ';
}

ul.internenavi li:last-child a:after, ul.internenavi ul.sub-menu li:last-child a:after {
  content: '';
}

ul.internenavi li a {
  background: transparent;
  color: var(--dunkel);
  font-weight: 500;
  position: relative;
  text-decoration: underline;
  transition: color 0.5s;
}

ul.internenavi li a:hover {
  color: var(--schwarz);
}


ul.flex-list {
  /* Bulletpoints und Standard-Abstände entfernen */
  list-style: none;
  margin: 0;
  padding: 0;

  /* Flexbox aktivieren */
  display: flex;
  flex-wrap: wrap;
  gap: 16px; /* Abstand zwischen den Elementen */
  width: 100%;
}

ul.flex-list > li {
  background:var(--weiss);
  border-radius:5px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  list-style: none;
  padding:1rem;
  /* 
    flex-grow: 1   -> Nimmt den gesamten freien Platz ein, wenn ein Element allein umbricht
    flex-shrink: 1 -> Schrumpft bei Bedarf mit
    flex-basis: calc(25% - (3 * 16px / 4)) -> Exakt 4 Spalten abzüglich des Gap-Anteils
  */
  flex: 1 1 calc(25% - (3 * 16px / 4));

  /* Optional: Mindestbreite festlegen, ab der ein Element umbrechen MUSS */
  min-width: 280px;
}

small {
  font-size: var(--step--1);
  line-height: 1.4;
  font-style: italic;
}

cite, em {
  font-style: italic;
}

pre {
  margin: 15px 0;
  overflow: auto;
}

pre a {
  font-weight: 400;
}

strong, b {
  font-weight: 700;
}

sup, sub {
  font-size: var(--step--1);
  height: 0;
  line-height: 1;
  vertical-align: baseline;
  position: relative;
}

sup { top: -0.35rem; }
sub { bottom: -0.25rem; }

table {
  margin: 50px auto;
  border-collapse: collapse;
  width: 100%;
  outline: 1px solid var(--trans-dunkel-2);
}

tr {
  background: var(--trans-dunkel--1);
  display: table-row;
}

tr:nth-child(even) {
  background: var(--trans-hell-1);
}

th, td {
  color: var(--schwarz);
  text-align: left;
  padding: 0.5rem;
}

th {
  background: var(--dunkel);
  color: var(--weiss);
  display: none;
  font-weight: 700;
}

td {
  display: block;
}

/* Syntax korrigiert: Leerzeichen im Pseudo-Element-Content */
td:before {
  content: attr(data-cell) ": ";
  font-weight: 700;
  width: 6.5em;
  display: inline-block;
}

.dunkel table th, .dunkel table td {
  color: var(--weiss);
}

.dunkel table th {
  background: var(--trans-dunkel-4);
}

@media screen and (min-width: 40rem) {
  th, td { display: table-cell; }
  td::before { display: none; }
}

/* Sonstiges */

a.post-edit-link {
  background: var(--warning);
  color: var(--weiss);
  display: inline-block;
  margin: 0;
  padding: 10px 25px;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  border-radius: 5px;
  z-index: 9999;
}

.clear {
  clear: both;
  display: block;
  margin-inline: auto;
  padding: 25px 0;
}

.clearer {
  clear: both;
  display: block;
  margin-inline: auto;
  padding: 1px 0;
}

.group:after, #nav:after, #wrapper:after {
  content: "";
  display: table;
  clear: both;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.mail {
  display: inline-block;
}

.shadow {
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s;
}

.shadow:hover {
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}

.big-shadow {
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5), -5px -5px 10px 0px rgba(0, 0, 0, 0.08), 0 8px 10px -5px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.big-shadow:hover {
  box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.5), 0 0 5px 0px rgba(0, 0, 0, 0.05), 0 5px 5px -5px rgba(0, 0, 0, 0.05);
}

.drop-shadow {
  filter: drop-shadow(-2px 5px 5px rgba(0, 0, 0, 0.5));
  transition: filter 0.3s;
}

.drop-shadow:hover {
  filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
}

.hyphens {
  hyphens: auto;
}

.aligncenter.vcard span {
  text-align: left;
  background: var(--hell);
}

.line-up {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  justify-content: space-between;
  height: 100%;
}

.ko-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 3.5em;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.ko-logos a {
  flex: 0 1 115px;
}

.ko-logos a img {
  filter: grayscale(100%);
  transition: filter 2s;
  max-height: 85px;
  margin: 0 auto;
}

.ko-logos a:hover img {
  filter: grayscale(0);
  transition: filter 0.3s;
}

.tooltipp {
  color: var(--hell);
  margin: 0 auto;
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.tooltipp .tooltipptext {
  visibility: hidden;
  width: 250px;
  background-color: var(--vibrant);
  color: var(--on-vibrant);
  text-align: center;
  border-radius: 6px;
  font-size: 0.85em;
  line-height: 1.4;
  padding: 7px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -125px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltipp:hover .tooltipptext {
  visibility: visible;
  opacity: 1;
}

.tooltipp::before {
  font-size: var(--step-2);
}

#searchform {
  line-height: 1;
  margin: 25px auto;
  padding: 0;
  position: relative;
  text-align: center;
  display: flex;
  max-width: 600px;
}

#searchform input {
  border: 1px solid var(--dunkel);
  border-radius: 100vh;
  caret-color: var(--vibrant);
  margin: 0 auto;
  padding: 0.8rem;
  flex-grow: 1;
}

#searchform button {
  background: var(--vibrant);
  border: 2px solid var(--vibrant);
  color: var(--on-vibrant);
  cursor: pointer;
  font-size: var(--step-2);
  margin: 0 0 0 5px;
  padding: 0;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  width: 50px;
  transition: all 0.3s;
}

#searchform button:hover {
  background: var(--dunkel);
  border-color: var(--dunkel);
}

#searchform button::before {
  color: var(--on-vibrant);
  margin: 0;
}

#searchform button:hover::before {
  color: var(--weiss);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Back-to-Top Button */

.back-to-top {
  position: fixed;
  bottom: calc(25px + env(safe-area-inset-bottom, 0px));
  right: calc(25px + env(safe-area-inset-right, 0px));
  z-index: 990;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dunkel);
  color: var(--weiss);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #0d1d3a;
  transform: translateY(-3px);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--dunkel);
  outline-offset: 4px;
}

/* Der SVG-Ring umschließt den gesamten Button */
.progress-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* -90deg Drehung, damit der Balken oben auf 12 Uhr startet */
  transform: rotate(-90deg);
  pointer-events: none;
}

/* Kreis-Grundeinstellungen */
.progress-ring__track,
.progress-ring__bar {
  fill: none;
  stroke-width: 5px; /* Dicke des Rings */
}

/* Schwache Spur im Hintergrund */
.progress-ring__track {
  stroke: rgba(255, 255, 255, 0.15);
}

/* Der eigentliche Füllring */
.progress-ring__bar {
  stroke: var(--weiss); /* Alternativ Akzentfarbe, z. B. var(--primaer) */
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283; /* Am Anfang leer */
  transition: stroke-dashoffset 0.1s ease-out;
}

/* Pfeil-Icon */
.back-to-top .arrow-icon {
  position: relative;
  z-index: 1;
  display: block;
  transition: transform 0.2s ease;
}

.back-to-top:hover .arrow-icon {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top,
  .progress-ring__bar,
  .back-to-top .arrow-icon {
    transition: none;
  }
}

/* Header */

#wrapheader {
  background: var(--dunkel);
  display: block;
  position: sticky;
  top: 0;
  left: 0;
  text-align: left;
  width: 100%;
  z-index: 800;
}

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  margin-inline: auto;
  padding: 0 25px;
  position: relative;
  max-width: var(--biggerwidth);
}

#header .logo {
  max-height: 80px;
  text-align: left;
  overflow: hidden;
}

#header .logo.bild img {
  max-height: 80px;
  max-width: 260px;
  padding: 5px;
}

#header .logo a, #header .logo a:hover {
  color: var(--weiss);
  text-decoration: none;
}

#header .logo a:hover {
  filter: grayscale(100%);
}

#header .logo .titel {
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0;
  padding: 0;
  line-height: 1.25;
}

#header .logo .beschreibung {
  color: var(--weiss);
  font-size: var(--step-0);
  font-weight: 700;
  margin: 5px 0;
  padding: 0;
  line-height: 1.25;
  display: none;
}

/* Top-Info Headerbox */
#headerbox {
  background: var(--hell);
  color: var(--dunkel);
  display: block;
  font-size:var(--step--2);
  text-align: center;
  z-index: 801;
}

.headerbox-inner {
  display: block;
  position: relative;
  margin: 0 auto;
  padding: 2px 0;
  max-width: var(--bigwidth);
}

#headerbox .phone {
  display: inline-block;
  margin: 0 15px;
}

#headerbox .mail {
  margin: 0 15px;
}

#headerbox .phone a, #headerbox .mail a {
  color: var(--dunkel);
}

#headerbox2 {
  max-width: 200px;
  position: absolute;
  right: 15px;
  top: 100px;
  z-index: 801;
}

.breadcrumb {
  font-size: var(--step--2);
  padding: 0 0 10px 0;
}

.breadcrumb span + span::before {
  content: '>';
  display: inline-block;
  margin: 0 5px;
}

/* Navigation Mobile */

@media all and (max-width: 67.999rem) { 
  /* Hamburger Button */
  .ko-menu { 
    background: transparent; 
    border: 0; 
    width: 35px; 
    height: 27px; 
    margin: 10px; 
    position: relative; 
    cursor: pointer; 
    display: inline-block; 
    z-index: 10001; /* Liegt immer über Backdrop und Drawer */
  } 

  .ko-menu span { 
    background-color: var(--weiss); 
    position: absolute; 
    border-radius: 3px; 
    transition: .3s cubic-bezier(.8, .5, .2, 1.4); 
  } 

  .ko-menu span:first-child { width: 100%; height: 3px; display: block; top: 0; left: 0; } 
  .ko-menu span:nth-child(2) { width: 100%; height: 3px; display: block; top: 12px; left: 0; } 
  .ko-menu span:nth-child(3) { width: 100%; height: 3px; display: block; bottom: 0; left: 0; } 

  /* Hamburger-Animation zu Pfeil/Kreuz */
  .ko-menu.open { 
    transform: rotate(-90deg); 
  } 

  .ko-menu.open span:first-child { left: 3px; top: 12px; width: 30px; transform: rotate(90deg); transition-delay: 150ms; } 
  .ko-menu.open span:nth-child(2) { left: 2px; top: 20px; width: 20px; transform: rotate(45deg); transition-delay: 50ms; } 
  .ko-menu.open span:nth-child(3) { left: 14px; top: 20px; width: 20px; transform: rotate(-45deg); transition-delay: 0.1s; } 

  /* Vollbild-Wrapper für Backdrop & Positionierung */
  nav#konavigation { 
    position: fixed; 
    inset: 0; 
    width: 100%; 
    height: 100dvh; 
    z-index: 9999; 
    visibility: hidden; 
    pointer-events: none; 
    transition: visibility 0.4s ease-in-out; 
    margin: 0; 
    background: transparent; 
  } 

  nav#konavigation.open { 
    visibility: visible; 
    pointer-events: auto; 
  } 

  /* Halbtransparenter Backdrop-Hintergrund */
  nav#konavigation::before {
    content: '';
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  nav#konavigation.open::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Der eigentliche einschiebbare Menü-Drawer */
  .nav__container { 
    position: absolute; 
    top: 0; 
    right: 0; 
    width: 70%; 
    max-width: 400px; 
    height: 100%; 
    background-color: var(--dunkel); 
    font-size: var(--step-1); 
    padding: 60px 15px 25px 15px; 
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
    scrollbar-color: var(--hell) var(--dunkel); 
    scrollbar-width: thin; 
    transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    will-change: transform;
  } 

  nav#konavigation.open .nav__container { 
    transform: translateX(0); 
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4); 
  } 

  /* Scrollbar Styling */
  .nav__container::-webkit-scrollbar { width: 10px; } 
  .nav__container::-webkit-scrollbar-track { background: var(--dunkel); } 
  .nav__container::-webkit-scrollbar-thumb { background: var(--hell); border: 1px solid var(--dunkel); border-radius: 3rem; } 

  /* Listen & Menü-Links */
  nav#konavigation ul, 
  nav#konavigation li { 
    background: transparent; 
    display: block; 
    margin: 0; 
    padding: 0; 
    text-align: left; 
    width: auto; 
    list-style: none; 
  } 

  nav#konavigation ul a { 
    background: transparent; 
    color: var(--weiss); 
    display: block; 
    font-weight: 700; 
    margin: 0; 
    padding: 10px 12px; 
    position: relative; 
    text-decoration: none; 
    border-radius: 4px;
    transition: background 0.2s ease;
  } 

  nav#konavigation ul a:hover, 
  nav#konavigation ul a:focus, 
  nav#konavigation ul ul a:hover { 
    color: var(--weiss); 
    background: var(--trans-dunkel-2); 
  } 

  nav#konavigation ul a:not([href]) { 
    cursor: text; 
  } 

  nav#konavigation li.menu-item-has-children > a:after { 
    font-size: var(--step-0); 
    text-decoration: none; 
    margin: 0 0 0 10px; 
  } 

  nav#konavigation li.menu-item-has-children li a:after { 
    content: ''; 
    margin: 0; 
    padding: 0; 
    width: 0; 
  } 

  nav#konavigation li.current_page_ancestor a:after { 
    color: var(--weiss); 
  } 

  nav#konavigation li.menu-item-has-children { 
    position: relative; 
  } 

  nav#konavigation ul.sub-menu { 
    margin: 0 0 0 20px; 
  } 

  /* Fallback: Falls JavaScript im Browser deaktiviert ist */
  body.nojs nav#konavigation {
    position: static;
    visibility: visible;
    pointer-events: auto;
    height: auto;
  }
  body.nojs nav#konavigation .nav__container {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 20px 0;
  }
  body.nojs .ko-menu {
    display: none;
  }
}

/* ==========================================================================
   Navigation Desktop (ab 68rem / 1088px)
   ========================================================================== */

@media all and (min-width: 68rem) { 
  /* Mobilen Hamburger-Button ausblenden */
  .ko-menu { 
    display: none; 
  } 

  /* Reset des Hauptcontainers aus der Mobilansicht */
  nav#konavigation, 
  nav#konavigation.open { 
    display: block; 
    position: relative; 
    inset: auto; 
    width: auto; 
    height: auto; 
    margin: 0; 
    padding: 0; 
    border: none; 
    box-shadow: none; 
    transform: none; 
    visibility: visible; 
    pointer-events: auto; 
    background: transparent; 
    overflow: visible; 
    text-align: center; 
    font-size: var(--step-0); 
    z-index: 900; 
  } 

  /* Mobiles Backdrop-Pseudoelement auf Desktop deaktivieren */
  nav#konavigation::before,
  nav#konavigation.open::before { 
    display: none; 
  } 

  /* Reset des inneren Containers aus der Mobilansicht */
  .nav__container { 
    position: static; 
    inset: auto; 
    width: auto; 
    max-width: none; 
    height: auto; 
    padding: 0; 
    overflow: visible; 
    transform: none; 
    background: transparent; 
    box-shadow: none; 
  } 

  /* -------------------------------
     Hauptmenü (Root-Ebene)
  --------------------------------- */
  nav#konavigation ul { 
    display: inline-flex; 
    align-items: center; 
    font-size: var(--step-0);
    margin: 0 auto; 
    padding: 0; 
    list-style: none; 
    text-align: left; 
    z-index: 901; 
  } 

  nav#konavigation ul li { 
    display: inline-block; 
    padding: 5px 10px; 
    position: relative; 
  } 

  nav#konavigation a { 
    display: inline-flex; 
    align-items: center; 
    position: relative; 
    margin: 0; 
    padding: 8px 12px; 
    color: var(--hell); 
    text-decoration: none; 
    border-bottom: 2px solid transparent; 
    transition: color 0.2s ease; 
  } 

  nav#konavigation a[aria-current="page"] { 
    color: var(--weiss); 
  } 

  /* Animierter Hover-Unterstrich */
  nav#konavigation a::before { 
    content: ''; 
    position: absolute; 
    left: 12px; 
    right: 12px; 
    bottom: 2px; 
    height: 2px; 
    background: var(--weiss); 
    transform: scaleX(0); 
    transform-origin: center; 
    transition: transform 250ms ease-out; 
  } 

  nav#konavigation a:hover:not(li.kontakt > a)::before, 
  nav#konavigation a:focus-visible:not(li.kontakt > a)::before,
  nav#konavigation a[aria-current="page"]:not(li.kontakt > a)::before { 
    transform: scaleX(1); 
  } 

  /* Pfeil-Indikator Hauptmenü */
  nav#konavigation li.menu-item-has-children > a::after { 
    content: '▾'; 
    font-size: 0.75em; 
    margin-left: 6px; 
    display: inline-block; 
  } 

  /* -------------------------------
     CTA-Button: Kontakt
  --------------------------------- */
  nav#konavigation li.kontakt { 
    padding-right: 0; 
    margin-left: 10px; 
  } 

  nav#konavigation li.kontakt > a { 
    background: transparent; 
    color: var(--hell); 
    border: 1px solid var(--hell); 
    padding: 0.6rem 1.4rem; 
    border-radius: 4px; 
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease; 
  } 

  nav#konavigation li.kontakt > a:hover, 
  nav#konavigation li.kontakt > a:focus, 
  nav#konavigation li.kontakt > a[aria-current="page"] { 
    background: var(--vibrant); 
    border-color: var(--vibrant); 
    color: var(--schwarz); 
  } 

  nav#konavigation li.kontakt > a::before { 
    display: none; 
  } 

  /* -------------------------------
     1. Ebene: Sub-Menü
  --------------------------------- */
  nav#konavigation ul.sub-menu { 
    display: block; 
    font-size: var(--step--1);
    hyphens: auto;
    position: absolute; 
    top: 100%; 
    left: 0; 
    
    /* Variable, komfortable Breite */
    min-width: 260px; 
    max-width: 360px; 
    width: max-content; 
    
    background: var(--dunkel); 
    border-radius: 6px; 
    padding: 8px 0; 
    margin: 0; 
    list-style: none; 
    z-index: 1000; 
    
    /* Unsichtbar & leicht nach oben versetzt */
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(6px); 
    pointer-events: none; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25); 
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease; 
  } 

  /* Unsichtbare Brücke nach oben zum Elternlink */
  nav#konavigation ul.sub-menu::before { 
    content: ''; 
    position: absolute; 
    top: -10px; 
    left: 0; 
    width: 100%; 
    height: 10px; 
    background: transparent; 
  } 

  /* Einblenden bei Hover und bei Tastaturfokus */
  nav#konavigation li:hover > ul.sub-menu, 
  nav#konavigation li:focus-within > ul.sub-menu { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
    pointer-events: auto; 
  } 

  /* -------------------------------
     Elemente innerhalb des Submenüs
  --------------------------------- */
  nav#konavigation ul.sub-menu li { 
    display: block; 
    padding: 0; 
    width: 100%; 
    position: relative; /* Dreh- und Angelpunkt für die 3. Ebene */
  } 

  nav#konavigation ul.sub-menu a { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 12px; 
    width: 100%; 
    padding: 10px 18px; 
    color: var(--weiss); 
    border: none; 
    box-sizing: border-box; 
    
    /* Zeilenumbruch erlauben & Zeilenhöhe anpassen */
    white-space: normal; 
    line-height: 1.35; 
    text-align: left; 
    
    transition: background 0.15s ease, color 0.15s ease; 
  } 

  nav#konavigation ul.sub-menu a:hover, 
  nav#konavigation ul.sub-menu a:focus { 
    background-color: var(--trans-hell-2); 
    color: var(--weiss); 
  } 

  nav#konavigation ul.sub-menu a::before { 
    display: none; 
  } 

  /* Pfeil-Indikator Submenü (nach rechts zeigend) */
  nav#konavigation ul.sub-menu li.menu-item-has-children > a::after { 
    content: '▸'; 
    font-size: 0.85em; 
    flex-shrink: 0; 
    margin-left: auto; /* Schiebt Pfeil immer ganz nach rechts */
  } 

  /* -------------------------------
     2. Ebene: Sub-Sub-Menü (Flyout)
  --------------------------------- */
  nav#konavigation ul.sub-menu ul.sub-menu { 
    top: -8px; 
    left: 100%; /* Exakt rechts bündig andocken */
    margin: 0; 
    z-index: 1001; 
  } 

  /* Unsichtbare Brücke nach links (verhindert Abreißen der Maus) */
  nav#konavigation ul.sub-menu ul.sub-menu::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -15px; 
    width: 15px; 
    height: 100%; 
    background: transparent; 
  } 
}

@media all and (min-width: 68rem) {

  /* Sub-Sub-Menü klappt IMMER nach links auf */
  nav#konavigation ul.sub-menu ul.sub-menu { 
    top: -8px; 
    left: auto;
    right: 100%; /* Dockt links an die Außenkante an */
    margin: 0; 
    z-index: 1001; 
  } 

  /* Die unsichtbare Hover-Brücke nach rechts verlegen */
  nav#konavigation ul.sub-menu ul.sub-menu::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: auto;
    right: -15px; /* Reicht 15px nach rechts ins Elternmenü hinein */
    width: 15px; 
    height: 100%; 
    background: transparent; 
  }

  /* Pfeil-Indikator im 1. Submenü nach links zeigen lassen */
  nav#konavigation ul.sub-menu li.menu-item-has-children > a::after { 
    content: '◂'; /* Pfeil nach links statt nach rechts */
    font-size: 0.85em; 
    flex-shrink: 0; 
    margin-left: auto; 
  } 

}

/* Main & Layout-Struktur (zusammengeführter #wrapper) */

#wrapper {
  display: block;
  margin:0 auto;
  text-align: left;
  overflow: hidden;
  padding: 25px;
  position: relative;
  max-width: var(--mwidth);
}

.page-template-page-parallax-php #wrapper,
.post-template-page-parallax-php #wrapper,
.post-template-single-parallax-php #wrapper {
  padding: 0;
  max-width: 100%;
}

.blog #wrapper,
.search #wrapper,
.archive #wrapper {
  max-width: var(--bigwidth);
}

.page-template-page-breit #wrapper {
  max-width: var(--bwidth);
}

.page-template-page-breit #wrapper {
  display: grid;
  gap: 2.5rem; /* Optionaler Abstand zwischen den Spalten */
  width: 100%;
  box-sizing: border-box;

  /* 1. Standard (Mobil / Sehr kleine Bildschirme): 
     Alles einspaltig untereinander */
  grid-template-columns: 1fr;
  grid-template-areas:
    "content"
    "sidebar-left"
    "sidebar-right";
}

/* Zuordnung der Elemente zu den Grid-Bereichen */
.page-template-page-breit .content {
  grid-area: content;
  min-width: 0; /* Verhindert Überlaufen bei großen Inhalten/Bildern */
}

.page-template-page-breit .sidebar-left {
  grid-area: sidebar-left;
}

.page-template-page-breit .sidebar-right {
  grid-area: sidebar-right;
}


/* 2. Mittlere Bildschirme: 
   Rechte Sidebar bricht nach unten um. 
   Sidebar Links bleibt stehen (350px), Content nimmt den Rest (1fr). */
@media (min-width: 800px) {
  .page-template-page-breit #wrapper {
    grid-template-columns: 350px 1fr;
    grid-template-areas:
      "sidebar-left content"
      "sidebar-right sidebar-right";
  }
   .page-template-page-breit .sidebar-left {
    padding-top:100px;
  }

  /* Optional: Wenn die rechte Sidebar über die volle Breite gehen soll, 
     oder sie bleibt auf 350px zentriert/linksbündig: */
  .page-template-page-breit .sidebar-right {
    width: 100%;
  }
}


/* 3. Große Bildschirme: 
   Vollständiges 3-Spalten-Layout.
   [350px Links] [Flexibler Content] [350px Rechts] */
@media (min-width: 1280px) {
  .page-template-page-breit #wrapper {
    gap: 3.5rem;
    grid-template-columns: 350px 1fr 350px;
    grid-template-areas:
      "sidebar-left content sidebar-right";
  }
  .page-template-page-breit .sidebar-right {
    padding-top:100px;
  }
}

/* Pagenavi */

.wp-pagenavi {
  clear: both;
  display: block;
  margin: 15px 0;
  padding: 15px 0;
  text-align: center;
}

.wp-pagenavi a, .wp-pagenavi span {
  background: var(--hell);
  color: var(--dunkel);
  display: inline-block;
  margin: 5px;
  padding: 5px 15px;
  text-align: center;
  border-radius: 5px;
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.wp-pagenavi a:hover {
  background: var(--vibrant);
  color: var(--on-vibrant);
}

.wp-pagenavi span.current {
  background: var(--dunkel);
  color: var(--weiss);
}

.wp-pagenavi span.pages {
  padding: 5px 10px;
}

/* Footer */

#footer {
  display: block;
  background: var(--dunkel);
  color: var(--trans-hell-8);
  clear: both;
  font-size: var(--step--1);
  margin-inline: auto;
  position: relative;
  text-align: center;
}

#footer .inner {
  background: transparent;
  color: var(--weiss);
  line-height: 1.7;
  margin-inline: auto;
  padding: 1.5rem var(--gap2);
  text-align: left;
  max-width: var(--bigwidth);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap2);
  hyphens: auto;
}

#footer .inner > * {
  flex: 0 1 40ch;
}

#footer .inner:empty {
  padding: 0;
}

#footer a, #footer strong {
  color: inherit;
}

#footer a:hover {
  color: var(--weiss);
}

#footer ul {
  margin: 25px auto;
}

#footer ul.sub-menu {
  margin: 0 auto;
}

#footer ul li {
  display: block;
  margin: 0;
  padding: 0;
  text-align: left;
}

#footer ul li a {
  border: none;
  color: inherit;
  display: block;
  padding: 8px 5px;
  z-index: 1;
}

#footer ul li a:hover, #footer ul li a[aria-current="page"] {
  color: var(--weiss);
  text-decoration: underline;
  text-decoration-skip-ink: auto;
}

#footer ul li a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--trans-dunkel-2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease-in;
  z-index: -1;
}

#footer ul li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

#footer ul li.menu-item-has-children > a {
  font-weight: 700;
}

#footer p {
  margin: 25px 0;
  line-height: 1.9;
}

#footer p a, #footer ul li a {
  text-decoration: none;
  position: relative;
}

#footer strong {
  font-weight: 700;
}

#footer h3, #footer h3 a, #footer h4, #footer h4 a {
  color: var(--trans-hell-8);
  font-size: var(--step-2);
  font-weight: 700;
  text-align: left;
  margin-left: 5px;
}

#footer .fullbox {
  clear: both;
  display: block;
  font-size: var(--step-0);
  line-height: 1.7;
  float: none;
  padding: 0;
  width: 100%;
}

#footer .fullbox .fullboxinner {
  background: transparent;
  color: var(--weiss);
  display: block;
  margin-inline: auto;
  padding: 25px 25px 65px 25px;
  text-align: center;
  max-width: var(--bigwidth);
}

#footer .fullbox ul {
  margin: 50px auto;
}

#footer .fullbox ul li {
  border: none;
  display: inline;
}

#footer .fullbox ul li + li::before {
  content: '|';
  display: inline-block;
  margin: 0 5px 0 0;
  vertical-align: middle;
}

#footer .fullbox ul li a {
  display: inline-block;
  padding: 5px 10px;
  vertical-align: middle;
}

#footer .footerbox {
  display: block;
  margin: 0 auto;
  text-align: center;
}

#footer .phone, #footer .email {
  display: block;
  margin: 10px 25px;
}

#footer .phone::before, #footer .email::before {
  margin-left: 0;
}

#footer .fullbox.formularbox .fullboxinner {
  padding: 25px;
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}

#footer .fullbox.formularbox p {
  margin: 10px 0;
  text-align: left;
}

#footer div.wpcf7 form {
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0 auto;
  padding: 0;
  text-align: left;
  position: relative;
}

#footer div.wpcf7 form h2, #footer div.wpcf7 form h3 {
  text-align: left;
}

#footer div.wpcf7 input[type=submit] {
  margin: 25px 0 0 0;
}

#footer div.wpcf7 textarea {
  height: 120px;
}

#footer .tooltipp {
  margin: 0;
  display: block;
  text-align: left;
}

#footer .tooltipp .tooltipptext {
  width: 290px;
  text-align: left;
  left: 0;
  margin-left: 0;
}

/* Kontakt */

#footer address.vcard {
  display: block;
  line-height: 1.95rem;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  position: relative;
  text-align: left;
  width: auto;
}

#footer address.vcard .innervcard {
  display: inline-block;
  margin: 0 auto;
  padding: 0 0 0 5px;
  vertical-align: top;
}

#footer address.vcard span {
  display: block;
  padding: 8px 0;
  text-align: left;
}

#footer address.vcard span.plz,
#footer address.vcard span.ort {
  display: inline-block;
  text-align: left;
  vertical-align: top;
}

#footer address.vcard .adr {
  text-align: left;
}

#footer address.vcard img {
  border-radius: 50%;
  display: block;
  margin: 0 auto 10px auto;
  text-align: center;
}

#footer .phone {
  display: inline-block;
  vertical-align: middle;
}

#footer .adress {
  display: inline-block;
  padding: 0 10px;
  vertical-align: middle;
}

aside.wrapchildpages {
  background: var(--hell);
  border: 1px solid var(--medium);
  border-radius:8px;
  color: var(--dunkel);
  display: block;
  padding: 0;
  text-align: left; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wrapchildpages details.aufklapp-liste {
  max-width: 100%;
  background: var(--hell);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  cursor:pointer;
}

.wrapchildpages summary.childpages-summary {
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--blau);
  color: var(--weiss);
  user-select: none;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.wrapchildpages summary.childpages-summary:hover {
  background-color: var(--dunkel);
}

.wrapchildpages ul.childpages {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  text-align: left;
}

.wrapchildpages ul li {
  list-style: none;
  padding: 0;
}

.wrapchildpages ul.childpages li a {
  display: block;
  font-size:var(--step--1);
  line-height: 1.2;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--dunkel);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.wrapchildpages ul.childpages li a:hover {
  background-color: var(--trans-hell-5);
  color: var(--blau);
}

.wrapchildpages li.page_item_has_children > a{
  color: var(--dunkel);
  font-weight: 600;
}

.wrapchildpages a[aria-current="page"],
.wrapchildpages li.current_page_item > a{
  color: var(--schwarz) !important;
  font-weight: 600;
  text-decoration: underline !important;
}

/* Standard: Wenn zugeklappt */
.aufklapp-liste summary .label-close {
    display: none;
}
.aufklapp-liste summary .label-open {
    display: inline;
}

/* Wenn aufgeklappt (details[open]) */
.aufklapp-liste[open] summary .label-open {
    display: none;
}
.aufklapp-liste[open] summary .label-close {
    display: inline;
}
aside.wrapdetailsbox { 
  background: var(--hell); 
  border: 1px solid var(--medium); 
  border-radius: 8px; 
  color: var(--dunkel); 
  display: block; 
  padding: 0; 
  text-align: left; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
} 
 
.wrapdetailsbox details.aufklapp-box { 
  max-width: 100%; 
  background: var(--hell); 
  border: 1px solid #e2e8f0; 
  border-radius: 8px; 
  overflow: hidden; 
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
} 
 
.wrapdetailsbox summary.details-summary { 
  padding: 12px 16px; 
  font-weight: 600; 
  cursor: pointer; 
  background-color: var(--blau); 
  color: var(--weiss); 
  user-select: none; 
  transition: background-color 0.2s ease; 
} 
 
.wrapdetailsbox summary.details-summary:hover { 
  background-color: var(--dunkel); 
} 

/* Inhaltsbereich für Text, Absätze und Links */
.wrapdetailsbox .details-content { 
  padding: 16px; 
  font-size: var(--step--1); 
  line-height: 1.5; 
  color: var(--dunkel); 
  text-align: left; 
} 

/* Saubere Randabstände für Absätze innerhalb des Inhalts */
.wrapdetailsbox .details-content > *:first-child { 
  margin-top: 0; 
} 

.wrapdetailsbox .details-content > *:last-child { 
  margin-bottom: 0; 
} 

.wrapdetailsbox .details-content a { 
  color: var(--dunkel); 
  text-decoration: underline; 
} 

.wrapdetailsbox .details-content a:hover { 
  color: var(--blau); 
} 
 
/* Standard: Wenn zugeklappt */ 
.aufklapp-box summary .label-close { 
  display: none; 
} 
.aufklapp-box summary .label-open { 
  display: inline; 
} 
 
/* Wenn aufgeklappt (details[open]) */ 
.aufklapp-box[open] summary .label-open { 
  display: none; 
} 
.aufklapp-box[open] summary .label-close { 
  display: inline; 
}

/* Videos */

video {
  margin-inline: auto;
  max-width: 100%;
  height: auto;
  text-align: center;
}

.video-wrapper {
  background: transparent;
  border: none;
  margin-inline: auto;
  width: 100%;
  max-width: 100%;
}

#wrapper .video-wrapper {
  margin: 25px auto;
}

#wrapper .full .video-wrapper {
  margin-inline: auto;
}

.video-container {
  background: transparent;
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
  background: transparent;
  margin-inline: auto;
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Map */

.my-frame, iframe.map-frame {
  border: none;
  padding: 0;
  text-align: center;
  min-height: 600px;
  height: 100%;
  width: 100%;
}

/* Align */

img.alignleft, .alignleft,
img.alignright, .alignright,
img.aligncenter, .aligncenter,
img.alignnone, .alignnone {
  display: block;
  float: none;
  text-align: center;
  margin: 25px auto;
}

img.center {
  text-align: center;
  margin: 5px auto;
}

img.kreis.alignleft {
  float: left;
  border-radius: 50%;
  height: 250px;
  width: 250px;
  shape-outside: circle(50%);
  margin: 1rem 2rem 1rem 0;
}

img.kreis.alignright {
  float: right;
  border-radius: 50%;
  height: 250px;
  width: 250px;
  shape-outside: circle(50%);
  margin: 1rem 0 1rem 2rem;
}

.beitragsbild {
  display: block;
  margin: 50px auto;
}

.beitragsbild img {
  margin: 0 auto;
  text-align: center;
}

/* WP-Caption */

.wp-caption {
  height: auto;
  margin: 50px auto;
  padding: 0;
  position: relative;
  text-align: center;
  width: auto;
  max-width: 100%;
}

.wp-caption img {
  display: block;
  margin-inline: auto;
  padding: 0;
  text-align: center;
}

.wp-caption p {
  background: var(--hell);
  display: block;
  font-style: italic;
  margin: 15px auto;
  padding: 1rem;
  text-align: center;
}

/* News / Blogartikel */

ul.news {
  color: var(--dunkel-grau);
  display: block;
  margin-inline: auto;
  padding: 0;
}

ul.news li {
  background: var(--trans-hell-8);
  display: block;
  list-style: none;
  margin: 75px auto;
  padding: 0;
  position: relative;
  text-align: center;
}

ul.news li:before {
  content: '';
  display: none;
}

ul.news .text {
  padding: 1rem 1.2rem;
}

ul.news .text h2, ul.news .text h3 {
  border: none;
  margin: 10px 0;
  font-size: var(--step-1);
  font-weight: 700;
  text-align: left;
  hyphens: auto;
}

ul.news .text p {
  font-size: var(--step-0);
  margin: 10px 0;
  text-align: left;
  text-wrap: pretty;
  hyphens: auto;
}

ul.news a {
  color: inherit;
  display: block;
  text-decoration: none;
  margin: 0;
  padding: 0;
  transition: color 0.5s;
  height: 100%;
}

ul.news a:hover h2, ul.news a:hover h3 {
  color: var(--dunkel);
}

ul.news .more,
.cats .more,
article.post .more {
  color: inherit;
  display: block;
  margin: 0;
  padding: 0;
  position: relative;
  text-align: right;
  text-decoration: underline;
  text-decoration-skip-ink: auto;
}

ul.news li .thumbnail {
  display: block;
  float: none;
  height: auto;
  margin-inline: auto;
  padding: 0;
  overflow: hidden;
  position: relative;
  text-align: center;
  width: 100%;
}

ul.news li img {
  display: block;
  margin: 0 auto;
  text-align: center;
  transition: scale 0.3s;
  object-fit: cover;
  width: 100%;
}

ul.news li:hover img {
  scale: 1.1;
}

ul.news.grid {
  display: block;
}

ul.news.grid li {
  margin: 0;
  padding: 0;
}

ul.news.grid li .thumbnail {
  position: relative;
  left: auto;
  top: auto;
  width: auto;
  max-width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

ul.news.grid li img {
  display: block;
  height: 100%;
  margin: 0 auto;
  text-align: center;
  object-fit: cover;
}

ul.news.grid li .text {
  padding-bottom: 1rem;
}

ul.news.grid li .text h2, ul.news.grid li .text h3, ul.news.grid li .text p {
  margin-inline: auto;
}

ul.news.grid li .text p.datum {
  position: absolute;
  bottom: 0.6rem;
  left: 1.2rem;
  background: var(--hell);
  padding: 3px 5px;
}

ul.news.grid2 h3 {
  font-size: var(--step-0);
  padding: 5px 1.2rem;
}

/* =========================================================
   1. Äußeres Grid: Zeilen & Spalten
   ========================================================= */
.freeteaserboxen {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

/* 2 Spalten: Tablet */
@media (min-width: 600px) {
    .freeteaserboxen {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3 Spalten: Mittlere Screens (z. B. 900px bis 1199px)
   Wenn 4 Boxen vorhanden sind: Die 4. Box spannt über alle 3 Spalten! */
@media (min-width: 900px) and (max-width: 1199px) {
    .freeteaserboxen {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 4. Box wird 100% breit und teilt sich per Grid in 2 Spalten auf */
    .freeteaserboxen > li:nth-child(4) {
        grid-column: 1 / -1;            /* Volle 3-Spalten-Breite */
        display: grid !important;       /* Grid statt Flexbox verhindert Kollaps */
        grid-template-columns: 320px 1fr; /* Links exakt 320px Bild, rechts der gesamte Text */
        min-height: 240px;
    }

    /* Linke Spalte (Bild/Icon) */
    .freeteaserboxen > li:nth-child(4) .thumbnail {
        width: 100% !important;
        height: 100% !important;
        min-height: 100%;
    }

    .freeteaserboxen > li:nth-child(4) .bq-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .freeteaserboxen > li:nth-child(4) .bq-icon {
        width: 80px;
        height: 80px;
        margin: auto;
    }

    /* Rechte Spalte (Text) */
    .freeteaserboxen > li:nth-child(4) .text {
        width: 100%;
        padding: 30px 35px;
    }

    .freeteaserboxen > li:nth-child(4) .text h3 {
        font-size: 1.4rem;
    }
}

/* 4 Spalten: Große Bildschirme (alle 4 nebeneinander als normale Kacheln) */
@media (min-width: 1200px) {
    .freeteaserboxen {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================================================
   2. Standard-Karten-Design (Kacheln 1-3 bzw. Desktop)
   ========================================================= */
.freeteaserboxen li.shadow {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.freeteaserboxen li.shadow:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   3. Bild- und Icon-Bereich
   ========================================================= */
.freeteaserboxen .thumbnail {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.freeteaserboxen .thumbnail:has(img) {
    height: 250px;
}

.freeteaserboxen .thumbnail a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

/* Beitragsbild */
.freeteaserboxen .bq-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.freeteaserboxen li:hover .bq-image {
    transform: scale(1.04);
}

/* Icon (PNG oder SVG) */
.freeteaserboxen .bq-icon,
.flex-list li svg {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
    margin: auto;
}

.freeteaserboxen li svg,
.flex-list li svg {
  color: var(--dunkel); /* Bestimmt die Hauptlinien */
  transition: color 0.3s ease;
}
.freeteaserboxen li:hover svg,
.flex-list li:hover svg {
  color: var(--blau); /* Schaltet beim Hover auf Akzentblau */
}

/* =========================================================
   4. Textbereich & Typografie
   ========================================================= */
.freeteaserboxen .text {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;                 /* Zieht die Box nach unten */
}

.freeteaserboxen .text h3 {
    margin: 0 0 12px 0;
    font-size: var(--step-1);
    font-weight:700;
    line-height: 1.35;    
}

.freeteaserboxen .text h3 a {
    color: var(--dunkel);
    text-decoration: none;
    transition: color 0.2s ease;
}

.freeteaserboxen .text h3 a:hover {
    color: var(--blau);
}

.freeteaserboxen .teaser-content {
    font-size: var(--step-0);
    hyphens: auto;
    line-height: 1.55;
    color: var(--dunkel);
    margin-bottom: 20px;
}

/* =========================================================
   5. Weiter-Link (immer exakt unten am Kachelende)
   ========================================================= */
.freeteaserboxen .teaser-action {
    margin-top: auto;             /* Schiebt den Link zwingend ganz nach unten */
    padding-top: 10px;
}

.freeteaserboxen .teaser-btn {
    display: inline-flex;
    align-items: center;
    font-size: var(--step-0);
    font-weight: 600;
    color: var(--dunkel);
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.freeteaserboxen .teaser-btn:hover {
    color: var(--blau);
    transform: translateX(4px);
}

.zweiboxen-grid {
  display: flex;
  align-items: start;
  justify-content: start;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto;
}

.zweiboxen-grid.center {
  align-items: center;
  justify-content: center;
  justify-items: center;
  text-align: center;
}

.zweiboxen-grid.center > * {
  margin-left: auto;
  margin-right: auto;
}

.zweiboxen-grid.maximal {
  max-width: var(--mwidth);
  margin: 1.5rem auto;
}

.zweiboxen-item {
  flex: 1 1 360px;
  box-sizing: border-box;
  padding: 0;
}

.zweiboxen-item h2 {
  margin: 1rem 0;
  text-align: left;
}

.zweiboxen-grid.center .mail.is-cta-button,
.zweiboxen-grid.center .phone-btn {
  margin: 0 auto;
}

/* News / Blogartikel II */

article.post {
  background: var(--trans-hell-8);
  border: none;
  color: var(--dunkel-grau);
  display: block;
  margin: 35px auto;
  padding: 25px;
  position: relative;
  vertical-align: middle;
  max-width: 800px;
}

article.post:hover {
  background: var(--weiss);
}

article.post a {
  color: inherit;
  display: block;
  text-decoration: none;
}

article.post h2, article.post h3 {
  font-size: var(--step-1);
  font-weight: 700;
  margin: 15px 0;
}

article.post p {
  margin: 15px 0;
}

article.post .text {
  padding: 0 0 25px 0;
}

article.post .thumbnailbox {
  background: transparent 50% 50% / 100% auto no-repeat;
  margin: 15px auto;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  max-width: 100%;
  transition: transform 0.5s;
}

article.post .thumbnailbox img {
  display: block;
  margin-inline: auto;
  transition: scale 0.5s;
}

article.post:not(.rund) .thumbnailbox:hover img {
  scale: 1.1;
}

article.post.rund .thumbnailbox:hover img {
  filter: grayscale(100%);
}

article.post.rund .thumbnailbox, article.post.rund .thumbnailbox img {
  border-radius: 50%;
}

article.post .postbody {
  position: relative;
}

article.post .postmeta {
  clear: both;
  display: block;
  font-size: var(--step-0);
  padding: 10px 0;
}

article.post .postmetadata a, article.post .postmeta a {
  color: #000;
  display: inline;
  margin: 0;
  padding: 0;
  width: auto;
}

article.post .postinfo span {
  margin-right: 10px;
}

article.post .entrybody p {
  margin: 10px 0;
}

article.mypost {
  color: var(--dunkel-grau);
  margin: 0 auto;
  padding: 1rem;
}

article.mypost a {
  color: inherit;
  list-style: none;
}

article.mypost h2, article.mypost h3, article.mypost p {
  margin: 10px 0;
}

/* Grids */

ul.vergleiche,
ul.referenzen,
ul.news.grid,
.postwrap {
  margin: 2.5em 0;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min)), 1fr));
}

.mythumbnails {
  display: block;
  margin: 50px auto;
  position: relative;
}

.mobile-screenshot {
  max-width: 240px;
}

.mobile-screenshot.links {
  transform: rotate(-3deg);
  float: left;
  margin: 0.5rem 3rem 0.5rem 0;
}

.mobile-screenshot.rechts {
  transform: rotate(3deg);
  float: right;
  margin: 0.5rem 0 0.5rem 3rem;
}

.leistung {
  background: var(--hell);
  display: inline-block;
  margin: 10px 15px 10px 0;
  padding: 3px 10px;
  position: relative;
  vertical-align: middle;
}

.leistungen {
  background: var(--hell);
  display: block;
  margin: 50px auto;
  padding: 15px;
}

.inner-post-nav {
  background: var(--hell);
  color: var(--dunkel);
  display: block;
  margin: 50px auto;
  padding: 15px;
}

.inner-post-nav > * {
  display: block;
  padding: 10px 0;
}

.inner-post-nav a {
  color: var(--schwarz);
}

.inner-post-nav > .next {
  text-align: right;
}

/* Segmente / Parallax */

section.module {
  clear: both;
  display: block;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
}

section.module article.wrap-inner-section {
  display: block;
  margin-inline: auto;
  padding: 1.5em;
  position: relative;
  max-width: var(--mwidth);
}

section.module.schmal .wrap-inner-section {
    min-height: unset;
    padding: 5px 1.5rem;
}

section.module.center, section.module.center h2 {
  text-align: center;
}

section.module h2:first-of-type:not(.innertextsplits h2, .infoboxen h2, .zweiboxen-item h2) {
  margin: 1.5em auto;
}

section.module img {
  display: block;
  margin-inline: auto;
}

section.module.parallax {
  background-color: var(--dunkel);
  background-position: 50% 0;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  min-height: 600px;
  display: grid;
  place-items: center;
}

section.module.parallax article.wrap-inner-section {
  display: grid;
  place-items: center;
  max-width: 100%;
  position: absolute;
  inset: 0;
  padding: 0;
}

section.module.parallax article.wrap-inner-section div.ptxt {
  background: var(--trans-dunkel-2);
  display: block;
  margin: 0 1em;
  padding: 1.5em;
  max-width: 1280px;
  border-radius: 1rem;
}

section.module.parallax article.wrap-inner-section div.ptxt:empty {
  background: transparent;
  padding: 0;
}

section.module.parallax h1, section.module.parallax h3 {
  color: var(--weiss);
  font-weight: 400;
  letter-spacing: 2px;
  margin: 10px 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
}

section.module.parallax h2 {
  color: var(--weiss);
  font-size: var(--step-6);
  font-weight: 800;
  letter-spacing: 4px;
  margin: 15px 0;
}

section.module.parallax a:not(a.button), section.module.parallax strong {
  color: var(--weiss);
}

section.module.parallax p {
  color: var(--weiss);
  margin: 10px auto;
  text-align: center;
}

section.module.parallax.overlay {
  isolation: isolate;
}

section.module.parallax.overlay article.wrap-inner-section {
  position: absolute;
  inset: 0;
  padding: 0;
}

section.module.parallax.overlay article.wrap-inner-section::after {
  content: "";
  background-color: var(--dunkel);
  position: absolute;
  inset: 0;
  z-index: -1;
  mix-blend-mode: multiply;
}

.page-template-page-parallax-php h1:not(.wrapsplits .innertextsplits h1),
.post-template-single-parallax-php h1:not(.wrapsplits .innertextsplits h1) {
  margin: 50px auto;
  padding: 0 2rem;
  text-align: center;
}

.page-template-page-parallax-php section.module h1:not(.wrapsplits .innertextsplits h1),
.post-template-single-parallax-php section.module h1:not(.wrapsplits .innertextsplits h1) {
  margin: 25px auto;
  padding: 0;
}

section.module.big article.wrap-inner-section { max-width: var(--bigwidth); }
section.module.bigger article.wrap-inner-section { max-width: var(--biggerwidth); }
section.module.full article.wrap-inner-section { padding: 0; max-width: 100%; }
section#aktuelles article.wrap-inner-section { padding: 1px 0; }
section.module.full article.wrap-inner-section ul.galerie { margin-inline: auto; }
section.module.full article.wrap-inner-section ul.galerie li a { margin: 0; }

section.module.hell {
  background: var(--hell);
}

section.module.hell ul.referenzen li h2,
section.module.hell ul.referenzen li h3 {
  background: var(--hell);
  color: var(--dunkel);
}

section.module.medium {
  background: var(--medium);
  color: var(--dunkel-grau);
}

section.module.medium article.post,
section.module.medium ul.news li {
  background: var(--trans-dunkel-2);
}

section.module.medium h1,
section.module.medium h2,
section.module.medium h3 {
  background: transparent;
  color: inherit;
}

section.module.medium ul.news li,
section.module.medium article.post h2,
section.module.medium article.post h3 {
  border-color: var(--medium);
  color: var(--weiss);
}

section.module.medium ul.news li a,
section.module.medium a:not(a.button) {
  color: var(--weiss);
}

section.module.medium ul.news li a:hover h3,
section.module.medium article.post a:hover h3 {
  color: var(--vibrant);
}

section.module.medium blockquote {
  background: var(--trans-dunkel-2);
}

section.module.medium ul.vergleiche li {
  background: var(--trans-dunkel-2);
}

section.module.dunkel {
  background: var(--dunkel);
  color: var(--weiss);
}

section.module.dunkel article.post,
section.module.dunkel ul.news li {
  background: var(--trans-dunkel-2);
}

section.module.dunkel h1,
section.module.dunkel h2,
section.module.dunkel h3 {
  background: transparent;
  color: inherit;
}

section.module.dunkel ul.news li,
section.module.dunkel article.post h2,
section.module.dunkel article.post h3 {
  border-color: var(--dunkel);
  color: var(--weiss);
}

section.module.dunkel ul.news li a,
section.module.dunkel a:not(a.button) {
  color: var(--weiss);
}

section.module.dunkel ul.news li a:hover h3,
section.module.dunkel article.post a:hover h3 {
  color: var(--vibrant);
}

section.module.dunkel blockquote {
  background: var(--trans-dunkel-2);
}

section.module.dunkel ul.vergleiche li {
  background: var(--trans-dunkel-2);
}

/* Wrapsplits */

.wrapsplits {
  display: block;
  margin-inline: auto;
  padding: 0;
  position: relative;
  text-align: center;
  max-width: var(--mwidth);
}

.big .wrapsplits { max-width: var(--bigwidth); }
.bigger .wrapsplits { max-width: var(--biggerwidth); }
.full .wrapsplits { max-width: 100%; }

.wrapsplits .splits {
  display: block;
  padding: 1em 1.5em;
  position: relative;
  text-align: center;
}

.wrapsplits .splits.bild {
  background-color: transparent;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  margin-inline: auto;
  min-height: 400px;
  max-width: 100%;
  width: 100%;
}

.full .wrapsplits .splits.bild {
  max-width: 100%;
}

.wrapsplits .splits.bild h2 {
  color: var(--weiss);
  margin: 25px auto;
  text-align: center;
  font-weight: 700;
}

.wrapsplits .innertextsplits {
  display: block;
  margin-inline: auto;
  padding: 0;
  max-width: 70ch;
  text-align: left;
}

.wrapsplits .innertextsplits h1,
.wrapsplits .innertextsplits h2,
.wrapsplits .innertextsplits h3 {
  margin: 0 0 1em 0;
  text-align: left;
}

.wrapsplits .innertextsplits p {
  margin: 1.5em 0;
  text-wrap: pretty;
  hyphens: auto;
}

.grafik .wrapsplits .splits.bild {
  min-height: 1px;
  padding-top: 2em;
}

.grafik.rund .wrapsplits .splits.bild img {
  clip-path: circle(50% at 50% 50%);
  max-width: 400px;
}

section.back article {
  isolation: isolate;
  position: relative;
}

section.back article .backy {
  background-position: 50% 0;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.2;
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* --- Overlay Elemente über dem Bild --- */

.wrapsplits .splits.bild {
  position: relative; /* Wichtig für die absolute Positionierung der Overlays */
}

/* Logo: Oben Rechts */
.split-overlay-logo-wrap {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.split-overlay-logo-wrap::after {
 content:'Anerkannter Seminarveranstalter';
 display:block;
 background:var(--trans-dunkel-4);
 color:#fff;
 font-size:0.85rem;
 font-weight:400;
 padding:3px 5px;
 text-align:center;
}

.split-overlay-logo-wrap .split-overlay-logo {
  max-height: 150px;
  width: auto;
  height: auto;
  display: block;
}

/* Text: Unten Links */
.split-overlay-text {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 3;
  max-width: calc(100% - 2.5rem);
  padding: 0.45rem 0.85rem;
  background-color: rgba(0, 0, 0, 0.65);
  color: #fff;
  border-radius: 4px;
  font-size: var(--step-0);
  font-weight:600;
  line-height: 1.35;
  text-align: left;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Kommentare */

#comments h3 {
  margin: 50px auto;
}

#comments h3 em {
  color: var(--dunkel);
  font-size: var(--step-1);
}

.commentsblock {
  border: none;
  margin: 50px 0;
  padding: 0;
  hyphens: auto;
}

.commentsblock form { border: none; margin: 0; }
.commentsblock fieldset { border: none; margin: 0; padding: 0; }
.commentsblock label,
.commentsblock select,
.commentsblock input[type=checkbox],
.commentsblock input[type=radio],
.commentsblock input[type=button],
.commentsblock input[type=submit] {
  cursor: pointer;
}

.commentsblock label {
  clear: left;
  display: block;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

.commentsblock input,
.commentsblock textarea,
.commentsblock select {
  background: var(--trans-dunkel--1);
  border: 1px solid var(--weiss);
  color: var(--dunkel-grau);
  margin: 10px 0;
  padding: 10px;
  width: 100%;
  border-radius: 3px;
}

.commentsblock input {
  caret-color: var(--vibrant);
}

.commentsblock input:hover,
.commentsblock textarea:hover {
  background: var(--weiss);
  border: 1px solid var(--dunkel);
}

.commentsblock input[type=checkbox],
.commentsblock input[type=radio] {
  background: transparent;
  border: none;
  color: var(--dunkel-grau);
  display: inline-block;
  margin: 0 0.2em 0 0;
  width: 1.0em;
}

.commentsblock textarea {
  overflow: auto;
}

ol.commentlist {
  color: var(--dunkel-grau);
  margin: 0;
}

ol.commentlist li.comment {
  margin: 25px 0;
  padding: 0 0 0 60px;
  z-index: 10;
}

ol.commentlist li.comment ul { padding: 0; }
ol.commentlist li.comment ul ul { padding: 0; }
ol.commentlist li:before { position: absolute; left: 0; top: 28px; }
ol.commentlist li li:before { background-color: var(--hell); color: var(--dunkel); left: -60px; top: 25px; }

ol.commentlist li.comment > .innercomment {
  background: var(--trans-dunkel--1);
  border-radius: 1rem;
  padding: 25px;
  position: relative;
}

ol.commentlist li.comment > .innercomment::after {
  content: '';
  position: absolute;
  display: block;
  width: 0;
  z-index: 1;
  border-style: solid;
  border-color: transparent var(--trans-dunkel--1);
  border-width: 20px 20px 20px 0;
  top: 45px;
  left: -20px;
  margin-top: -20px;
}

ol.commentlist li.comment div.vcard cite.fn {
  font-style: normal;
}

ol.commentlist li.comment div.comment-meta {
  font-size: var(--step--1);
  text-align: center;
}

ol.commentlist li.comment p {
  margin: 25px 0;
}

ol.commentlist li.comment div.reply {
  text-align: center;
}

ol.commentlist li.comment ul.children {
  list-style: none;
  margin: 1rem 0;
}

ol.commentlist li.comment ul.children li {
  list-style: none;
  padding: 0;
}

ol.commentlist li.comment ul.children li.depth-2 {
  padding: 0;
}

ol.commentlist li.comment.author-admin,
ol.commentlist li.comment.bypostauthor > .innercomment {
  background: var(--hell);
  z-index: -1;
}

ol.commentlist li.comment.bypostauthor > .innercomment::after {
  border-color: transparent var(--hell);
}

ol.commentlist li.pingback > .innercomment {
  background: #ddd;
  padding: 25px;
}

/* Formulare */

div.wpcf7 form {
  background: var(--trans-hell-8);
  border: none;
  border-radius: 0;
  margin: 35px auto;
  padding: 1rem;
  text-align: left;
  position: relative;
}

div.wpcf7 fieldset {
  border: none;
  color: #000;
  clear: both;
  margin: 0;
  padding: 0;
}

div.wpcf7 label {
  font-weight: 400;
  margin: 0;
  padding: 0;
}

div.wpcf7 input, div.wpcf7 textarea, div.wpcf7 select {
  background: var(--weiss);
  border: 1px solid var(--trans-dunkel-4);
  color: var(--schwarz);
  margin: 5px 0 10px 0;
  padding: 0.8rem;
  width: 100%;
  box-sizing: border-box;
}

div.wpcf7 input {
  caret-color: var(--vibrant);
}

div.wpcf7 select {
  max-width: 400px;
}

input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required.wpcf7-not-valid,
select.wpcf7-form-control.wpcf7-select.wpcf7-validates-as-required.wpcf7-not-valid {
  border-color: var(--warning) !important;
}

.wpcf7-not-valid-tip {
  display: inline-block;
  margin: -20px 0 5px 0;
}

div.wpcf7 textarea {
  height: 200px;
  overflow: auto;
}

div.wpcf7 .upload input {
  background: var(--weiss);
  color: var(--dunkel);
  margin: 5px 5px 0 0;
  padding: 5px;
  width: 70%;
}

div.wpcf7 input:hover, div.wpcf7 textarea:hover, div.wpcf7 select:hover {
  background: var(--weiss);
  border-color: var(--trans-dunkel-6);
  color: var(--schwarz);
}

div.wpcf7 input[type=checkbox], div.wpcf7 input[type=radio] {
  background: transparent;
  border: none;
  color: var(--schwarz);
  margin: 0 5px 0 10px;
  padding: 0;
  width: 1.0rem;
}

div.wpcf7 input::placeholder {
  color: var(--trans-dunkel-4);
  opacity: 1;
  font-size: var(--step-1);
}

div.wpcf7 { display: block; margin: 0; }
span.wpcf7-list-item { margin: 0; }
div.wpcf7 p { margin: 15px 0 5px 0; }

.wpcf7 form .wpcf7-response-output {
  vertical-align: middle;
}

.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
  color: var(--weiss) !important;
  background: var(--warning) !important;
  border: none !important;
  padding: 25px !important;
}

.wpcf7 form.sent .wpcf7-response-output {
  background: var(--success) !important;
  color: var(--weiss) !important;
}

div.wpcf7 input[type=submit],
.commentsblock input[type=submit],
.commentsblock button[type=submit] {
  background: var(--vibrant);
  border: 1px solid var(--vibrant);
  color: var(--on-vibrant);
  clear: both;
  display: block;
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: 3px;
  margin: 25px 0;
  padding: var(--but-pad);
  text-align: center;
  text-decoration: none;
  width: auto;
  border-radius: 0.5em;
  transition: all 0.3s ease-in-out;
}

div.wpcf7 input[type=submit]:hover,
.commentsblock input:hover[type=submit],
.commentsblock button:hover[type=submit] {
  background: var(--vibrant-hov);
  border: 1px solid var(--vibrant-hov);
  color: var(--on-vibrant-hov);
  scale: 1.05;
}

/* Shortcode-CSS */

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  inline-size: fit-content;
  margin: 0 auto;
}

.buttons li {
  flex: 0 1 350px;
  margin: 10px;
}

a.button {
  background: var(--vibrant);
  border: 1px solid var(--vibrant);
  color: var(--on-vibrant);
  display: inline-block;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 20px auto;
  padding: var(--but-pad);
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: scale .3s ease-in-out;
  border-radius: 0.5em;
  vertical-align: middle;
}

a.button::after {
  content: '';
  margin: 0 0 0 8px;
  font-size: var(--step-0);
  text-decoration: none;
  transition: transform 0.3s;
}

a.button:hover {
  scale: 1.05;
}

a.button:hover::after {
  transform: translateX(5px);
}

a.button.center, #topsegment a.button {
  display: block;
  max-width: 36ch;
}

.dunkel a.button {
  background: var(--trans-dunkel-1);
  border: 1px solid var(--weiss);
  color: var(--weiss);
}

a.button.info {
  background: transparent;
  border: 1px solid var(--dunkel);
  color: var(--dunkel);
}

.dunkel a.button.info {
  background: transparent;
  border: 1px solid var(--weiss);
  color: var(--weiss);
}

.share {
  clear: both;
  display: block;
  margin: 15px auto;
  text-align: left;
  width: 100%;
}

.share a {
  background: transparent;
  color: var(--hell);
  border-radius: 50%;
  display: inline-block;
  font-size: 2rem;
  line-height: 100%;
  margin: 5px 15px 5px 0;
  padding: 5px;
  text-align: center;
  text-decoration: none;
  transition: transform .3s, color .3s, background .3s;
}

.share a:hover, #footer .share a:hover {
  background: var(--hell);
  color: var(--vibrant);
}

.share a span { display: none; }
.share a::before { margin: 0; padding: 0; }
#footer .share a { display: inline-block; }

.h-review {
  background: var(--trans-hell-8);
  color: var(--dunkel);
  border-radius: 1rem;
  text-align: center;
  margin: 50px auto;
  padding: 1.5em;
  position: relative;
  display: grid;
  place-items: center;
}

.h-review h3 { margin: 10px auto; text-align: center; }
.h-review p { margin: 10px auto; }
.h-review span { color: var(--vibrant); font-size: var(--step-3); }
.h-review img { border-radius: 50%; display: block; margin: 0 auto 10px auto; text-align: center; height: 110px; width: 110px; }

/* FAQ - Accordion */

.accordion {
  background-color: var(--medium);
  color: var(--dunkel);
  cursor: pointer;
  border-radius: 1rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 5px 0;
  padding: 1rem 1.5rem;
  width: 100%;
  border: none;
  text-align: left;
  outline-color: transparent;
  font-size: var(--step-1);
  transition: 0.5s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.active, .accordion:hover {
  background-color: var(--dunkel);
  color: var(--medium);
}

.accordion::after {
  content: '\002B';
  color: var(--dunkel);
  font-weight: bold;
  transition: all 0.3s ease-in-out;
}

.accordion:hover::after {
  color: var(--medium);
}

.active::after {
  color: var(--medium);
  transform: rotate(45deg);
}

.panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.panel .innerpanel {
  background-color: var(--medium);
  border-radius: 1rem;
  color: var(--dunkel);
  display: block;
  margin: 1rem;
  padding: 2rem;
}

.panel ul {
  margin:0.5rem 1rem;
}


.box-grid-wrapper .accordion {
  background-color: var(--blau);
  color: var(--weiss);
  border-radius: 9px;
  font-weight: 600;
  font-size: var(--step-0);
  padding: 1rem 1.5rem;
}
.box-grid-wrapper .accordion.accordion::after {
  color: var(--weiss);
}
.box-grid-wrapper .active,
.box-grid-wrapper .accordion:hover  {
  background-color: var(--dunkel);
  color: var(--weiss);
}
.box-grid-wrapper .panel .innerpanel {
  background-color: var(--hell);
  border-radius: 5px;
  color: var(--dunkel);
  font-size:var(--step--1);
  margin: 0;
  padding: 1rem;
  text-align:left;
}

.klickmichan a {
  background: var(--vibrant);
  color: var(--on-vibrant);
  border: 1px solid var(--vibrant);
  font-size: var(--step-0);
  font-weight: 700;
  height: 160px;
  width: 160px;
  line-height: 1.25;
  text-align: center;
  margin: 50px auto;
  padding: 15px;
  position: relative;
  transition: all 0.5s ease;
  border-radius: 50%;
  transform: scale(1);
  animation: pulse-grau 2s infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.klickmichan a:hover {
  background: var(--vibrant-hov);
  border-color: var(--vibrant-hov);
  color: var(--on-vibrant-hov);
}

.klickmichan a::before {
  display: block;
  margin: 0 auto;
  font-size: var(--step-3);
}

@keyframes pulse-grau {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

@media screen and (min-width: 60rem) {
  .klickmichan {
    margin: 0;
    padding: 15px;
    position: fixed;
    right: 10px;
    top: 25%;
    z-index: 5000;
  }
}

/* Textbegrenzung */
ul.news li h2,
article.post h2,
.mytext h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media screen and (min-width: 40rem) {
  ul.news:not(.grid) li {
    clear: both;
    margin: 75px auto;
    padding: 1rem 2rem;
    position: relative;
    max-width: var(--mwidth);
  }

  ul.news:not(.grid) li a {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 0;
  }

  ul.news:not(.grid) li .thumbnail {
    flex-shrink: 0;
    width: 280px;
    height: auto;
    margin: 0;
    padding: 0;
    border-radius: 5px;
  }

  ul.news:not(.grid) li .text {
    flex-grow: 1;
  }

  ul.news:not(.grid) li h2,
  ul.news:not(.grid) li h3 {
    margin: 10px 0;
  }

  ul.news:not(.grid) li .thumbnail img {
    margin: 0;
  }

  .inner-post-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
  }
}

@media screen and (min-width: 50rem) {
  #header .logo .beschreibung {
    display: block;
  }

  ul.news:not(.grid) li .thumbnail {
    width: 400px;
  }

  ol.commentlist li.comment ul {
    padding: 0 0 0 2rem;
  }

  #footer ul li {
    text-align: left;
  }

  .zoomfadein {
    opacity: 0;
    scale: 0.9;
    transition: opacity 0.5s linear, scale 0.5s ease-in-out;
  }

  .zoomfadein.go, .nojs .zoomfadein.got {
    opacity: 1;
    scale: 1;
  }

  .upfadein {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.5s linear, transform 0.5s ease-in-out;
  }

  .upfadein.go, .nojs .upfadein.got {
    opacity: 1;
    transform: translateY(0);
  }

  .push {
    opacity: 0;
    transform: translateX(-5rem);
    transition: opacity 0.5s linear, transform 0.5s ease-in-out;
  }

  .push.go, .nojs .push {
    opacity: 1;
    transform: translateX(0);
  }

  .textbox {
    scale: 0.9;
    transition: scale 0.3s ease-in-out;
  }

  .textbox.go, .nojs .textbox {
    scale: 1.0;
  }

  .fadeInLeft {
    animation: fadeInLeft 1s cubic-bezier(0.68, 0, 0.265, 1) both;
  }

  @keyframes fadeInLeft {
    from {
      opacity: 0;
      transform: translate3d(-30px, 0, 0);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media all and (min-width: 62.5rem) {
  #header {
    height: 120px;
    padding: 0 25px;
  }

  #header .logo.bild {
    max-height: 120px;
    max-width: 500px;
    margin: 0;
    padding: 0;
    position: relative;
    top: auto;
    left: auto;
  }

  #header .logo.bild img {
    max-height: 120px;
    max-width: 500px;
  }

  /* Wrapsplits */
  .wrapsplits {
    display: grid;
    grid-template-columns: 45% 55%;
    padding: 2rem 0;
  }

  .wrapsplits.links {
    grid-template-columns: 55% 45%;
  }

  #topsegment .wrapsplits {
    padding: 2rem 1.5rem;
  }

  .wrapsplits .splits {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .wrapsplits .splits.bild {
    margin: inherit;
    padding: 0 25px;
  }

  .grafik .wrapsplits .innertextsplits {
    padding: 0;
  }

  .grafik .wrapsplits .splits.bild {
    padding-top: 0;
  }

  .wrapsplits.links .innertextsplits {
    padding: 1rem;
  }

  .wrapsplits.rechts .innertextsplits {
    padding: 1rem;
  }

  .wrapsplits.rechts .splits.bild {
    order: 2;
  }

  .wrapsplits.rechts .splits.text {
    order: 1;
  }

  /* Referenzen */
  article.myref {
    margin: 100px auto;
    padding: 0;
  }

  article.myref .mythumbnail {
    transform: perspective(3000px) rotateY(15deg);
    transition: transform 0.5s ease-in-out;
  }

  article.myref:hover .mythumbnail {
    transform: perspective(3000px) rotateY(0deg);
  }

  article.myref a {
    display: flex;
    align-items: center;
  }

  article.myref a > * {
    flex: 1;
  }

  article.myref .date {
    position: absolute;
    left: 15px;
    bottom: 25px;
  }

  article.myref .mytext {
    padding: 1.5rem;
  }

  .clip-pfeil-links {
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 15% 100%, 0% 50%);
  }

  .clip-pfeil-rechts {
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
  }

  img.alignleft, .alignleft {
    float: left;
    margin: 10px 50px 10px 0;
  }

  img.alignright, .alignright {
    float: right;
    margin: 10px 0 10px 50px;
  }

  img.alignnone, .alignnone {
    display: block;
    float: none;
    text-align: left;
    margin: 25px 0;
  }

  #topsegment a.button {
    margin: 35px 0 10px 0;
  }

  section.module.dunkel.verlauf {
    background: radial-gradient(circle at 66% 50%, rgba(255, 255, 255, 1) 0%, rgba(98, 128, 184, 1) 0%, rgba(0, 54, 103, 1) 50%, rgba(0, 54, 103, 1) 100%);
  }

  section.module.dunkel.verlauf2 {
    background-image: linear-gradient(to right, var(--dunkel), rgba(0, 69, 131, 0.6));
  }
}

@media all and (min-width: 90rem) {
  #header {
    padding: 0 25px;
  }
  
  article.myref {
  overflow: hidden; /* Verhindert das Herausragen des 3D-Objekts */
  }

  article.myref {
    margin: 100px auto 200px auto;
  }

  article.myref .mythumbnail {
    transform: perspective(3000px) rotateY(20deg) translateX(75px);
  }

  article.myref:hover .mythumbnail {
    transform: perspective(3000px) rotateY(0deg) translateX(75px);
  }

  article.myref .mytext {
    transform: translateX(-75px);
    padding: 4rem 2rem;
  }

  .wrapsplits .splits.bild, .wrapsplits .splits.text {
    padding: 0;
  }

  .wrapsplits.links .innertextsplits {
    padding: 1.5rem 0 1.5rem 4rem;
  }

  .wrapsplits.rechts .innertextsplits {
    padding: 1.5rem 4rem 1.5rem 0;
  }
}

.box-grid-wrapper {
  display: grid;
  /* Baut dynamisch Spalten auf (mind. min-width, max. 1fr) */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min-width, 250px)), 1fr));
  gap: var(--grid-gap, 1.5rem);
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  /* Zentriert die Boxen horizontal, wenn sie umbrechen */
  justify-content: center;
}

/* Begrenzung auf maximal X Spalten auf großen Bildschirmen */
@media (min-width: 60rem) {
  .box-grid-wrapper.cols-1 { grid-template-columns: repeat(1, 1fr); }
  .box-grid-wrapper.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .box-grid-wrapper.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .box-grid-wrapper.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Styling der einzelnen Box */
.box-grid-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-inline: auto; /* Sorgt bei Umbrüchen für mittige Ausrichtung */
}

.box-grid-item-inner {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center; /* Bei Bedarf auf left ändern */
}
