/* Hint im Entwicklungsmodus. Mit Launch ausschalten in grid.scss */
body:after {
  content: "S";
}

.only-s {
  display: block !important;
}

.no-s {
  display: none !important;
}

.only-l {
  display: none !important;
}


/* ------------[ Farben ]------------ */

:root {
  --color-white: #ffffff;
  --color-cream: #FDF0E9;
  --color-grey: #676767;
  --color-orange: #EB661B;
  --color-red: #65140E;
  --color-light-red: #7C1912;

  --color-dark-grey: #676767;
  --color-light-grey: #D8D8D8;
  --color-blue: #0077ae;
  --color-light-blue: #01A6E0;
  --color-dark-blue: #1C405D;
}


/* ------------[ Schriften ]------------ */

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Rubik Regular'),local('Rubik-Regular'),
  url('/inc/fonts/rubik-v28-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local('Rubik Bold'),local('Rubik-Bold'),
  url('/inc/fonts/rubik-v28-latin-300.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  src: url('/inc/fonts/rubik-v28-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: bold;
  font-display: swap;
  src: local('Rubik Bold'),local('Rubik-Bold'),
  url('/inc/fonts/rubik-v28-latin-600.woff2') format('woff2');
}

/* lexend */
@font-face {
  font-display: swap;
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 300;
  src: url('/inc/fonts/lexend-v23-latin-300.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 600;
  src: url('/inc/fonts/lexend-v23-latin-600.woff2') format('woff2');
}


/* ------------[ Body ]------------ */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lexend', sans-serif;
  font-size: 16px;
  line-height: 24px;
  hyphens: manual;
  color: #333;
  margin: 0;
}


/* ==============================[ Begrenzung Inhalt ]============================== */

.inner {
  width: 100%;
  max-width: 1480px;
  padding: 0 18px;
  margin: 0 auto;
}

.small-width {
  max-width: 1100px;
}


/* ==============================[ Formate für Sektionen ]============================== */

section {
  padding: 60px 0;
}


/* ------------[ spezielle Klassen für Sektionen ]------------ */

section.cream-stripe {
  background: var(--color-cream);
}

section.orange-stripe {
  color: var(--color-white);
  background: var(--color-orange);
}

section.orange-stripe h2,
section.orange-stripe h3,
section.orange-stripe h4 {
  color: var(--color-white);
}


/* ------------[ Abstände steuern ]------------ */

section.no-padding {
  padding: 0;
}

section.no-padding-top {
  padding: 0 0 60px;
}

section.no-padding-bottom {
  padding: 60px 0 0;
}


/* ========================[ universelle Klassen ]======================== */

/* ------------[ Positionierung der Elmente ]------------ */

.center {
  align-items: center;
}

.bottom {
  align-items: flex-end;
}

.top {
  align-items: flex-start;
}


/* ------------[ verschiedene Abstände ]------------ */

.no-margin {
  margin: 0;
}

.margin-top {
  margin-top: 30px !important;
}

.margin-top-big {
  margin-top: 42px !important;
}

.margin-top-small {
  margin-top: 18px !important;
}

.margin-bottom {
  margin-bottom: 30px !important;
}

.margin-bottom-small {
  margin-bottom: 18px !important;
}


/* ------------[ verschiedene Abstände im Grid ]------------ */

.no-grid-gap {
  grid-gap: 0;
}

.small-grid-gap {
  grid-gap: 12px;
}

.big-grid-gap {
  grid-gap: 30px;
}


/* ------------[ Klassen für Texte ]------------ */

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.bigtext {
  font-size: 18px;
  line-height: 26px;
}

.minitext {
  font-size: 14px;
  line-height: 22px;
}

.tab {
  display: block;
  width: 4.5em;
  float: left;
  clear: left;
}

.tab-big {
  display: block;
  width: 7em;
  float: left;
  clear: left;
}


/* ------------[ Sonstiges ]------------ */

.clickbox {
  cursor: pointer;
}

p.no-java {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--color-white);
  background-color: var(--color-orange);
  padding: 30px;
  margin: 0;
  z-index: 99;
}

abbr {
  border-bottom: 1px dotted #a1a1a1;
  cursor: help;
}

abbr[title],
acronym[title] {
  text-decoration: none;
}

::selection {
  background: #ddd;
  text-shadow: none;
}


/* ========================[ einmalige Scroll-Animation beim Laden ]======================== */

.has-js .fade-in-top,
.has-js .fade-in-top-later {
  transform: translate3d(0, -120px, 0);
  transition: transform 4250ms cubic-bezier(0.19, 1, 0.22, 1), opacity 4250ms cubic-bezier(0.19, 1, 0.22, 1);
  opacity: 0;
}

.has-js .fade-in-bottom,
.has-js .fade-in-bottom-later {
  transform: translate3d(0, 120px, 0);
  transition: transform 4250ms cubic-bezier(0.19, 1, 0.22, 1), opacity 4250ms cubic-bezier(0.19, 1, 0.22, 1);
  opacity: 0;
}

.has-js .fade-in-left,
.has-js .fade-in-right-later {
  transform: translate3d(-120px, 0, 0);
  transition: transform 4250ms cubic-bezier(0.19, 1, 0.22, 1), opacity 4250ms cubic-bezier(0.19, 1, 0.22, 1);
  opacity: 0;
}

.has-js .fade-in-right,
.has-js .fade-in-right-later {
  transform: translate3d(120px, 0, 0);
  transition: transform 4250ms cubic-bezier(0.19, 1, 0.22, 1), opacity 4250ms cubic-bezier(0.19, 1, 0.22, 1);
  opacity: 0;
}

.has-js .fade-in-top.inview,
.has-js .fade-in-top-later.inview,
.has-js .fade-in-bottom.inview,
.has-js .fade-in-bottom-later.inview,
.has-js .fade-in-left.inview,
.has-js .fade-in-left-later.inview,
.has-js .fade-in-right.inview,
.has-js .fade-in-right-later.inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.has-js .animation-popup {
  transform: scale(0);
  transition: transform 4000ms cubic-bezier(0.2, 1, 0.22, 1), opacity 3000ms cubic-bezier(0.2, 1, 0.22, 1);
  opacity: 0;
}

.has-js .animation-popup.inview {
  opacity: 1;
  transform: scale(1);
}


/* ========================[ Parallax-Animationen ]======================== */

.scroll-container-rotate {
  transform: rotate(calc((var(--onscroll-fraction) - 1) * 280deg));
  transform-origin: center center;
}

/* ------------[ Animationen oben - unten ]------------ */

.scroll-container-top {
  transform: translateY(calc((var(--onscroll-fraction) - 0.5) * -30%));
  transform-origin: center center;
}

.scroll-container-bottom {
  transform: translateY(calc((var(--onscroll-fraction) - 0.5) * +30%));
  transform-origin: center center;
}


/* ------------[ Animationen rechts - links ]------------ */

.scroll-container-left {
  transform: translateX(calc((var(--onscroll-fraction) - 0.5) * -12%));
  transform-origin: center center;
}

.scroll-container-right {
  transform: translateX(calc((var(--onscroll-fraction) - 0.5) * +12%));
  transform-origin: center center;
}


/* ========================[ Header-Bereich ]======================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  box-shadow: 1px 1px 4px -1px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
  z-index: 100;
}

section.header-section {
  padding: 30px 0;
  margin: 0 auto;
}

.header-flex {
  display: flex;
  flex-direction: column;
}

.header-flex .header-contact p {
  text-align: center;
  margin: 12px 0 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  background: var(--color-white);
  font-size: 14px;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 9999;
  transition: all 0.3s ease;
}

.skip-link:focus {
  top: 10px;
  transition: all 0.3s ease;
}


/* ------------[ Logo ]------------ */

a.logo {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}


/* ========================[ Fixierte Abschnittsnavigation ]======================== */

/* Auf kleinen Viewports ausgeblendet — wird ab 1100px eingeblendet (3large.css) */
.section-nav {
  display: none;
}


/* ========================[ Standard-Elemente ]======================== */

/* ------------[ Überschriften ]------------ */

h1, h2, h3, h4 {
  font-family: 'Lexend', 'sans-serif';
  font-weight: 600;
  color: var(--color-red);
}

h1 {
  font-size: 42px;
  line-height: 50px;
  margin: 0 0 18px;
}

h2 {
  font-size: 30px;
  line-height: 38px;
  margin: 36px 0 18px;
}

div > h2:first-child {
  margin: 0 0 18px;
}

h3 {
  font-size: 22px;
  line-height: 30px;
  margin: 30px 0 12px;
}

div > h3:first-child {
  margin: 0 0 12px;
}

h4 {
  font-size: 18px;
  line-height: 26px;
  margin: 30px 0 12px;
}

div > h4:first-child {
  margin: 0 0 12px;
}


/* ------------[ Absätze ]------------ */

p {
  margin: 0 0 18px;
}

div > p:last-child {
  margin: 0;
}


/* ------------[ Verlinkungen ]------------ */

a {
  color: var(--color-red);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

a:hover, a:focus, a:active {
  color: var(--color-light-red);
  transition: all 0.3s ease-in-out;
}

p a {
  text-decoration: none;
}

p a:hover, p a:focus, p a:active {
  text-decoration: underline;
}

p a.text-link {
  text-decoration: underline;
}

/* Buttons */
.button {
  display: inline-block;
  color: var(--color-white);
  text-align: center;
  background-color: var(--color-red);
  background-image: linear-gradient(var(--color-light-red), var(--color-light-red));
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left center;
  border-radius: 40px;
  padding: 12px 24px;
  margin: 24px 0 0;
  transition: all 0.35s ease-in-out;
}

.button:hover,
.button:focus,
.button:active {
  color: var(--color-white);
  background-size: 100% 100%;
  padding: 18px 24px;
  transition: all 0.35s ease-in-out;
}


/* ------------[ Bilder ]------------ */

.pic {
  display: block;
  width: 100%;
  height: auto;
}

.rounded-pic-left {
  border-radius: 60px 0 60px 0;
}

.rounded-pic-right {
  border-radius: 0 60px 0 60px;
}

.pic-description {
  font-size: 16px;
  line-height: normal;
}


/* ------------[ Bild größer klicken ]------------ */

.fancybox {
  display: block;
  width: 100%;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.fancybox:after {
  content: '';
  width: 42px;
  height: 42px;
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--color-red);
  background-image: url('/inc/img/icons/icon-plus.svg');
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: center;
  border-top-left-radius: 24px;
  transition: all 0.3s ease-in-out;
  z-index: 9;
}

.fancybox:hover:after,
.fancybox:focus:after,
.fancybox:active:after {
  background-color: var(--color-light-red);
  transition: all 0.3s ease-in-out;
}


/* ------------[ Text-Bild-Element ]------------ */

.pic-img.left {
  margin-bottom: 30px;
}

.pic-img.right {
  margin-top: 30px;
}


/* ------------[ Unnummerierte Listen ]------------ */

ul {
  padding-left: 0;
  margin: 18px 0;
}

ul > li {
  list-style-type: none;
  background: url('/inc/img/icons/icon-list-dot.svg') 0 0.5em no-repeat;
  background-size: 6px 6px;
  padding-left: 18px;
}

li ul {
  padding-left: 30px;
  margin: 12px 0;
}

li ul > li {
  background-size: 6px 6px;
  padding-left: 18px;
}


/* ------------[ Nummerierte Listen ]------------ */

ol {
  padding-left: 20px;
  margin: 0;
}

ol > li {
  padding-left: 6px;
  margin: 0;
}

li ol {
  padding-left: 30px;
  margin: 12px 0;
}

li ol > li {
  padding-left: 6px;
}


/* ------------[ Listen mit mehr Abstand ]------------ */

.listspace > li {
  margin: 6px 0;
}

.listspace li ul {
  margin: 18px 0;
}


/* ------------[ Tabellen ]------------ */

table {
  width: 100%;
  border: none;
  border-collapse: collapse;
}

tr {
  border: 2px solid #eee;
  border-width: 2px 0;
}

th, td {
  vertical-align: top;
  border-width: 0;
  padding: 12px;
  text-align: left;
}


/* ========================[ Sonderelmente ]======================== */

/* ------------[ Infobox ]------------ */

.infobox {
  height: 100%;
  background-color: var(--color-cream);
  padding: 30px;
}

section.grey-stripe .infobox {
  color: var(--color-white);
  background-color: var(--color-blue);
}

section.grey-stripe .infobox a {
  color: var(--color-white);
}


/* ------------[ Teaser ]------------ */

.teaser {
  background: var(--color-cream);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.teaser-text {
  padding: 30px;
}

.teaser h2,
.teaser h3 {
  margin: 0;
}

.teaser img {
  margin: 0;
}

.teaser p {
  margin: 12px 0;
}

.teaser .button {
  width: 100%;
  margin: 12px auto 0;
}

.teaser:hover,
.teaser:focus {
  background: var(--color-grey);
  cursor: pointer;
}


/* ------------[ Akkordeon ]------------ */

.accordion .title {
  cursor: pointer;
}

.accordion .title a {
  display: block;
  padding: 0;
  text-decoration: none;
  color: inherit;
}

.accordion .title h2,
.accordion .title h3 {
  display: block;
  position: relative;
  font-size: 20px;
  line-height: 28px;
  padding: 12px 36px 12px 0;
  margin: 0;
  background: none;
}

.accordion .title h2::before,
.accordion .title h3::before,
.accordion .title h2::after,
.accordion .title h3::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 24px;
  height: 3px;
  background: var(--color-red);
  transform-origin: center;
  transition: transform 0.38s cubic-bezier(0.34, 1.3, 0.64, 1);
}

/* Horizontaler Balken */
.accordion .title h2::before,
.accordion .title h3::before {
  transform: translateY(-50%);
}

/* Vertikaler Balken */
.accordion .title h2::after,
.accordion .title h3::after {
  transform: translateY(-50%) rotate(90deg);
}

/* Geöffnet: beide 45° → × */
.accordion .open h2::before,
.accordion .open h3::before {
  transform: translateY(-50%) rotate(45deg);
}

.accordion .open h2::after,
.accordion .open h3::after {
  transform: translateY(-50%) rotate(-45deg);
}

.accordion .acc-content {
  padding: 0 0 30px;
}

.accordion .acc-item::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--color-light-grey);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--acc-line-delay, 0s);
}

/* Linie einblenden sobald Accordion im Viewport ist */
.accordion .acc-item.inview::after {
  transform: scaleX(1);
}


/* ------------[ Videoplayer ]------------ */

.video-overlay a {
  display: block;
  position: relative;
  cursor: pointer;
}

.youtube-button {
  display: block;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
  width: 84px;
  height: 60px;
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.youtube-play-button {
  fill: #1f1f1f;
  fill-opacity: 0.8;
  transition: fill 0.2s cubic-bezier(0.4, 0, 1, 1) 0s, fill-opacity 0.2s cubic-bezier(0.4, 0, 1, 1) 0s;
}

.video-overlay a:hover .youtube-play-button {
  fill: #cc181e;
  fill-opacity: 1;
  transition: fill 0.2s cubic-bezier(0, 0, 0.2, 1) 0s, fill-opacity 0.2s cubic-bezier(0, 0, 0.2, 1) 0s;
}


/* ------------[ Formulare ]------------ */

.form-content {
  margin: 12px 0;
}

legend {
  display: block;
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 0.5em;
}

fieldset:not(.field) > legend {
  font-family: "open sans bold";
}

label {
  display: block;
  font-size: 18px;
  margin-bottom: .5em;
  color: var(--color-dark-grey);
  cursor: pointer;
}

input,
textarea,
select,
.input-radio-content,
.input-checkbox-content {
  width: 100%;
  margin: 10px 0;
}

input,
textarea {
  display: block;
  font-size: 16px;
  line-height: 22px;
  background-color: var(--color-white);
  border: 1px solid var(--color-grey);
  padding: 12px 18px;
  resize: none;
}

.error input,
.error textarea {
  border: 1px solid #b40000;
}

fieldset {
  border: none;
  clear: both;
  padding: 0;
  margin: 0;
}

textarea {
  width: 100%;
  min-height: 120px;
  font-family: 'Open Sans', sans-serif;
}

select {
  color: var(--color-dark-grey);
  width: 100%;
  font-size: 16px;
  line-height: 22px;
  background-color: var(--color-white);
  background-image: url('/inc/img/arrow-down-grey.svg');
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 18px;
  border: 1px solid var(--color-light-grey);
  padding: 12px 18px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border: 1px solid var(--color-light-blue);
}

label:has(input) {
  display: grid;
  grid-template-columns: 1em auto;
  gap: 0.5em;
  align-items: center;
  accent-color: #019fd7;
  font-family: "open sans";
}

input[type="radio"]:checked,
input[type="radio"]:not(:checked),
input[type="checkbox"]:checked,
input[type="checkbox"]:not(:checked) {
  margin: 0;
  height: 18px;
}

input[type="radio"]:checked + label,
input[type="radio"]:not(:checked) + label,
input[type="checkbox"]:checked + label,
input[type="checkbox"]:not(:checked) + label {
  position: relative;
  font-size: 16px;
  line-height: 24px;
  padding-left: 30px;
  cursor: pointer;
}

option {
  padding: 0.3em 1em 0.3em 1em;
  border-top: 1px solid #444;
  background: var(--color-white);
}

input[type="submit"] {
  color: var(--color-white);
  background-color: var(--color-blue);
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  width: auto;
}

button {
  font-size: 16px;
  line-height: 22px;
  border: none;
  outline: none;
  cursor: pointer;
  width: auto;
}

input[type="submit"]:hover {
  background-color: var(--color-light-blue);
}

.field {
  margin-bottom: 16px;
}

input[type="file"]::file-selector-button {
  display: inline-block;
  color: var(--color-white);
  text-decoration: none;
  text-align: center;
  background: var(--color-grey);
  border-radius: 42px;
  padding: 8px 16px;
  margin-right: 12px;
  transition: all 0.3s ease-in-out;
  border: none;
}

input[type="file"]::file-selector-button:hover {
  background: #dedede;
}

.fieldError {
  border: 1px solid #a94442;
}

.labelError {
  color: #a94442;
}

select::-ms-expand {
  display: none;
}

.alert.error{
  padding: 12px 24px;
  background: #b40000;
  color: white;
}

.kontaktformular .alert.error + ul {
  border: 1px solid #b40000;
  padding: 24px 0 12px;
  margin: -12px 0 24px;
  background: none;
}

.kontaktformular .alert.error + ul > li {
  background: none;
}

.alert.success {
  padding: 12px 24px;
  background: #1ba01b;
  color: white;
}

.kontaktformular {
  position: relative;
}

.kontaktformular button {
  margin: 0 0 40px;
}

form.loading {
  position: relative;
}

form.loading:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffffbb;
}

.lds-ripple {
  display: none;
  position: relative;
  width: 80px;
  height: 80px;
}

form.loading + .loading-icon {
  display: inline-block;
  position: absolute;
  top: calc(50% - 40px);
    left: calc(50% - 40px);
}

.lds-ripple div {
  position: absolute;
  border: 4px solid var(--color-blue);
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
  animation-delay: -0.75s;
}

@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 0;
  }

  4.9% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 0;
  }

  5% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

.hinweistext {
  margin-bottom: 24px;
}


/* ----------[ Formularerweiterung tooltip ] ---------- */

.icon-tooltip {
  display: inline-block;
  height: 18px;
  width: 18px;
  top: 3px;
  margin-left: 8px;
  position: relative;
  cursor: pointer;
}

.icon-tooltip abbr {
  display: inline-block;
  width: 100%;
  height: 100%;
  border-bottom: none;
}

.icon-tooltip path {
  fill: var(--color-blue);
}

#tooltip-box {
  position: absolute;
  font-size: 0.85em;
  line-height: 20px;
  color: var(--color-white);
  background: var(--color-blue);
  padding: 12px;
  transition: all 0.3s ease-in-out;
  z-index: 100;
}

#tooltip-box:after {
  content: '';
  width: 0;
  height: 0;
  position: absolute;
  left: 50%;
  bottom: -10px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid  var(--color-blue);
  margin-left: -10px;
}

#tooltip-box.top:after {
  top: -20px;
  bottom: auto;
  border-top-color: transparent;
  border-bottom: 10px solid var(--color-blue);
  transition: all 0.3s ease-in-out;
}

#tooltip-box.left:after {
  left: 12px;
  margin: 0;
}

#tooltip-box.right:after {
  right: 12px;
  left: auto;
  margin: 0;
}


/* ----------[ Formularerweiterung help ] ---------- */

.help {
  font-size: 0.8em;
  color: var(--color-grey);
}


/* ========================[ Sonderelmente Website ]======================== */

/* ------------[ Keyvisual ]------------ */

/* Container: unsichtbar bis Bild geladen, kein clip-path — Button kann rechts rausragen */
.keyvisual-image {
  height: auto;
  padding-top: 280px; /* Höhe des Bildbereichs */
  position: relative;
  border-radius: 0;
  margin: 0;
  opacity: 0; /* versteckt bis .is-loaded via JS gesetzt wird */
}

/* Backdrop: separater Hintergrund-Layer, bekommt alle Animationen. Liegt hinter dem Content — clip-path clippt den Button nicht. */
.keyvisual-backdrop {
  position: absolute;
  inset: 0;
  bottom: auto; /* Mobil: nur den Bildbereich abdecken */
  height: 280px;
  border-radius: 60px 0 60px 0;
  overflow: hidden;
  --kv-radius: 60px 0 60px 0; /* Mobil: nur unten-rechts gerundet */
  clip-path: inset(14% 8% round var(--kv-radius));
  z-index: 0;
}

/* Hintergrundbild — erbt --bg-image vom Elternelement */
.keyvisual-backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: var(--bg-position, center center);
  transform-origin: center;
  transform: scale(1.1); /* Startzustand Ken Burns */
}

/* Dunkles Overlay */
.keyvisual-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(30, 20, 18, 0.62) 100%);
}

.keyvisual-content {
  position: static;
  color: var(--color-grey);
  text-align: center;
  margin: 30px 0 0;
  z-index: auto;
  opacity: 0; /* wartend auf .is-loaded */
}

.keyvisual-content .keyvisual-text h1 {
  color: var(--color-red);
}

.keyvisual-image.is-loaded {
  opacity: 1;
}

.keyvisual-image.is-loaded .keyvisual-backdrop {
  animation: keyvisual-reveal 1.6s cubic-bezier(0.76, 0, 0.24, 1) both;
}

.keyvisual-image.is-loaded .keyvisual-backdrop::before {
  animation: keyvisual-kenburns 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.keyvisual-image.is-loaded .keyvisual-content {
  animation: keyvisual-content-in 0.9s ease 0.7s both;
}

/* ------------[ Keyvisual Keyframes ]------------ */

/* Backdrop wächst von klein auf voll */
@keyframes keyvisual-reveal {
  from { clip-path: inset(14% 8% round var(--kv-radius)); }
  to   { clip-path: inset(0%  0%  round var(--kv-radius)); }
}

/* Bild zoomt sanft auf Normalgröße zurück */
@keyframes keyvisual-kenburns {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* Text fährt von unten ein */
@keyframes keyvisual-content-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .keyvisual-image                      { opacity: 1; }
  .keyvisual-backdrop                   { clip-path: none; }
  .keyvisual-backdrop::before           { transform: none; }
  .keyvisual-content                    { opacity: 1; }
  .keyvisual-image.is-loaded .keyvisual-backdrop,
  .keyvisual-image.is-loaded .keyvisual-backdrop::before,
  .keyvisual-image.is-loaded .keyvisual-content { animation: none; }
}

/* ------------[ Termin-Button ]------------ */

.keyvisual-button a {
  display: block;
  color: var(--color-white);
  text-align: center;
  font-size: 18px;
  line-height: 26px;
  background-color: var(--color-red);
  background-image: linear-gradient(var(--color-light-red), var(--color-light-red));
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left center;
  border-radius: 60px 0 60px 0;
  padding: 18px 30px;
  margin-top: 24px;
  transition: all 0.42s ease-in-out;
}

.keyvisual-button a:hover,
.keyvisual-button a:focus {
  background-size: 100% 100%;
  transform: translateY(-6px) scale(1.03);
}


/* ------------[ Kontaktdaten ]------------ */

section.keyvisual-contact {
  padding: 42px 0 60px;
}

section.keyvisual-contact .keyvisual-contact-flex {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

section.keyvisual-contact .keyvisual-contact-flex hr {
  border: none;
  height: 2px;
  width: 100%;
  background: var(--color-light-grey);
  /* Mobile: horizontal → von links nach rechts */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 24px 0;
}

section.keyvisual-contact .keyvisual-contact-flex hr:nth-of-type(2) {
  transition-delay: 0.25s;
}

section.keyvisual-contact.inview .keyvisual-contact-flex hr {
  transform: scaleX(1);
}

section.keyvisual-contact .keyvisual-contact-flex h2 {
  font-size: 20px;
  line-height: 28px;
}


/* ------------[ Text-Bild-Box ]------------ */

.text-bild-box {
  max-width: 540px;
  margin: 0 auto;
}

.text-bild-box .text-box {
  color: var(--color-white);
  background-color: var(--color-orange);
  border-radius: 60px 0 0 0;
  padding: 60px 24px 42px;
}

.text-bild-box .text-box h2,
.text-bild-box .text-box h3 {
  color: var(--color-white);
}

.text-bild-box .text-box a {
  color: var(--color-white);
}

.text-bild-box .text-box a:hover,
.text-bild-box .text-box a:focus {
  color: var(--color-white);
  text-decoration: underline;
}

.text-bild-box .text-image {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* clippt den Button während er von unten reinfährt */
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.text-bild-box .text-image .zoom-img {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 0 0 60px 0;
}

.text-bild-box .text-image img {
  object-fit: cover;
  object-position: top center;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0 0 60px 0;
  transform: scale(1.1);
  transition: transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.text-bild-box .text-image.inview img {
  transform: scale(1);
}

.text-bild-box .text-image .button {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 18px 30px;
  transform: translateY(110%);
  transition: all 0.6s ease-in-out;
  border-radius: 30px 0 30px 0;
  z-index: 2;
}

.text-bild-box .text-image.inview .button {
  transform: translateY(0);
  transition: all 0.6s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .text-bild-box .text-image img {
    transform: none; transition: none;
  }

  .text-bild-box .text-image .button {
    transform: none; transition: none;
  }
}


/* ------------[ Stärken ]------------ */

section.strengthen {
  padding: 120px 0 60px;
  margin: -60px 0 0;
}

.strength {
  margin-top: 24px;
}

.strength-icon {
  background-color: var(--color-white);
  border-radius: 100%;
  padding: 36px;
  width: 180px;
  height: 180px;
  margin: 0 0 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ------------[ Zitat ]------------ */

section.quote {
  padding: 60px 0 0;
}

.quote-picture {
  max-width: 300px;
  position: relative;
  order: 1; /* S: Foto nach dem Text — ab M wieder normale DOM-Reihenfolge (Foto zuerst) */
  margin: 0 auto;
}

.quote-picture-circle {
  display: block;
  width: 300px;
  height: 300px;
  position: absolute;
  top: 60px;
  right: 30px;
  background-color: var(--color-orange);
  border-radius: 100%;
  z-index: -1;
}

.quote-text {
  text-align: center;
  margin: 0 0 30px;
}

.quote-text strong {
  color: var(--color-red);
}


/* ------------[ Anfahrt ]------------ */

section.directions {
  padding: 120px 0 60px;
  margin: -60px 0 0;
}

/* Maps-Bild mit Hover-Overlay — gleicher Effekt wie Team-Kreise (rotes Overlay) */
.maps-link {
  display: block;
  position: relative;
  border-radius: 0 120px 0 120px; /* spiegelt .rounded-pic-right */
  overflow: hidden;
}

.maps-link__overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(101, 20, 14, 0.82); /* --color-red mit Transparenz */
  color: var(--color-white);
  text-align: center;
  padding: 0 10%;
  opacity: 0;
  transform: scale(0);
  transition: opacity  0.2s ease,
              transform 0.38s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.maps-link:hover .maps-link__overlay,
.maps-link:focus .maps-link__overlay {
  opacity: 1;
  transform: scale(1);
}

.maps-link__text {
  display: block;
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity  0.18s ease 0.12s,
              transform 0.18s ease 0.12s;
}

.maps-link:hover .maps-link__text,
.maps-link:focus .maps-link__text {
  opacity: 1;
  transform: none;
}

section.directions h2 {
  text-align: center;
  margin: 42px 0 0;
}

.iconlist li {
  display: flex;
  grid-gap: 18px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: none;
  padding: 0;
  margin-top: 24px;
}

.iconlist__dot {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 18px;
  background-color: var(--color-white);
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.iconlist__dot img {
  width: auto;
  height: 44px;
  display: block;
}


/* ========================[ Bildergalerie-Slider ]======================== */

.gallery-slider {
  background: var(--color-cream);
  padding: 0;
}

.gallery-track-wrap {
  overflow: hidden;
  mask: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

@keyframes gallery-scroll {
  0%   {transform: translateX(0);}
  100% {transform: translateX(-50%);}
}

.gallery-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: gallery-scroll 90s linear infinite;
}

/* Animation pausiert bei Hover */
.gallery-track:hover {
  animation-play-state: paused;
}

.gallery-item {
  flex-shrink: 0;
  width: 260px;
  height: 200px;
  overflow: hidden;
}

.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}


/* ========================[ Leistungen ]======================== */

#Leistungen h2 {
  margin: 0;
}

.leistungen-diagram {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 42px;
  padding: 24px 0;
}

/* ------------[ Linke & rechte Spalte ]------------ */

.leistungen-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.leistung {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  text-align: left;
}

.leistungen-col--left .leistung__dot {
  order: -1;
}

.leistung__dot {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  padding: 18px;
  border-radius: 50%;
  background: var(--color-orange);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Feste Höhe überschreibt .pic (width:100%) — alle Icons gleich hoch und mittig */
.leistung__dot img {
  width: auto;
  height: 22px;
  flex-shrink: 0;
}

.leistung__text h3 {
  margin: 0 0 6px;
}

.leistung__text p {
  margin: 0;
}

/* ------------[ 7. Leistung — unten zentriert ]------------ */

/* S: volle Breite, gleiche Darstellung wie andere Einträge */
.leistungen-bottom {
  width: 100%;
}


/* ------------[ Mitte ]------------ */

.leistungen-mitte {
  order: -1;
  position: relative;
  width: 180px;
  height: 180px;
  display: none;
  align-items: center;
  justify-content: center;
}

.leistungen-mitte__ringe {
  display: none;
}

.leistungen-mitte__kreis {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  padding: 24px;
}


/* ========================[ Team-Collage ]======================== */

section.team {
  padding: 0;
}

.team-canvas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 60px 18px;
}

.team-text {
  width: 100%;
  text-align: left;
  margin-bottom: 24px;
}

.team-circle {
  position: relative;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-cream);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: block;
  padding: 0;
  /* Pop-in: startet unsichtbar, Animation wird per JS (.inview) ausgelöst */
  opacity: 0;
  will-change: transform, opacity;
}

.team-circle.inview {
  animation: tc-popin 0.7s cubic-bezier(0.34, 1.45, 0.64, 1) var(--tc-delay, 0s) both;
}

@keyframes tc-popin {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .team-circle        { opacity: 1; }
  .team-circle.inview { animation: none; }
}

button.team-circle {
  font-size: 14px;
    line-height: 26px;
  cursor: pointer;
}

button.team-circle:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 4px;
}


.team-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Mobil: alle Kreise gleich groß, 3 pro Zeile */
.team-circle--l,
.team-circle--m,
.team-circle--s,
.team-circle--xs {
  flex: 0 0 calc(33.333% - 8px);
  width: calc(33.333% - 8px);
  height: auto;
  aspect-ratio: 1;
}

.team-circle__hover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(235, 102, 27, 0.8);
  color: var(--color-white);
  text-align: center;
  padding: 0 9%;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s ease,
              transform 0.38s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.team-circle--l .team-circle__hover {
  background: rgba(101, 20, 14, 0.8);
}

.team-circle:hover .team-circle__hover,
.team-circle:focus .team-circle__hover {
  opacity: 1;
  transform: scale(1);
}

.team-circle__name,
.team-circle__role,
.team-circle__cta {
  display: block;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.team-circle__name {
  font-weight: 600;
  font-size: 2.8vw; /* Proportional zur Kreisgröße (~33% Viewport) */
  transition-delay: 0.12s;
}

.team-circle__role {
  font-weight: 300;
  font-size: 2.2vw;
  transition-delay: 0.18s;
}

.team-circle__cta {
  font-weight: 600;
  font-size: 2.0vw;
  margin-top: 1em;
  letter-spacing: 0.03em;
  transition-delay: 0.24s;
}

.team-circle:hover .team-circle__name,
.team-circle:focus .team-circle__name,
.team-circle:hover .team-circle__role,
.team-circle:focus .team-circle__role,
.team-circle:hover .team-circle__cta,
.team-circle:focus .team-circle__cta {
  opacity: 1;
  transform: none;
}


/* ------------[ Team-Popup ]------------ */

/* Gemeinsames Overlay ersetzt ::backdrop — bleibt beim Navigieren sichtbar */
#team-overlay {
  position: fixed;
  inset: 0;
  background: rgba(235, 102, 27, 0.8);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

#team-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease-in-out;
}

/* Dialog selbst transparent — alles Visuelle liegt auf __inner damit es mitanimiert */
.team-popup {
  border: none;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 36px);
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

/* Natives Backdrop komplett ausblenden */
.team-popup::backdrop {
  background: transparent;
}

/* Hintergrund, Schatten und Radius auf __inner → animieren mit dem Inhalt */
.team-popup__inner {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--color-white);
  border-radius: 120px 0 120px 0;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.team-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-white);
  color: var(--color-dark-grey);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1;
  transition: all 0.3s ease-in-out;
}

.team-popup__close:hover {
  background: var(--color-light-grey);
  transition: all 0.3s ease-in-out;
}

/* ------------[ Popup-Navigation (Pfeile) ]------------ */

.team-popup__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--color-red);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  transition: all 0.3s ease-in-out;
}

.team-popup__nav:hover,
.team-popup__nav:focus-visible {
  background: var(--color-light-red);
  transition: all 0.3s ease-in-out;
}

.team-popup__nav:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
  transition: all 0.3s ease-in-out;
}

.team-popup__nav--prev { left: -90px; }
.team-popup__nav--next { right: -90px; }

.team-popup__photo {
  width: 100%;
  aspect-ratio: 4 / 2;
  overflow: hidden;
  border-radius: 120px 0 0 0;
  background: var(--color-cream);
}

.team-popup__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 120px 0 0 0;
}

.team-popup__content {
  padding: 42px 24px;
}

.team-popup__content h3,
section.orange-stripe .team-popup__content h3 {
  color: var(--color-red);
  margin: 0 0 6px;
}

.team-popup__content p {
  color: var(--color-grey);
  margin: 0 0 12px;
}

.team-popup__content ul > li {
  font-size: 18px;
  line-height: 26px;
  margin: 12px 0;
}


/* ------------[ Popup-Animationen ]------------ */

@keyframes popup-enter {
  from { opacity: 0; transform: scale(0.93) translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes popup-exit {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: scale(0.96) translateY(12px); }
}

@keyframes popup-enter-right {
  from { opacity: 0; transform: translateX(52px); }
  to   { opacity: 1; transform: none; }
}

@keyframes popup-exit-left {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateX(-52px); }
}

@keyframes popup-enter-left {
  from { opacity: 0; transform: translateX(-52px); }
  to   { opacity: 1; transform: none; }
}

@keyframes popup-exit-right {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateX(52px); }
}


/* ========================[ Footer-Bereich ]======================== */

footer {
  background-color: var(--color-white);
  padding: 24px 0;
}

footer section {
  padding: 0;
}

footer .tab {
  padding: 8px 0;
}

footer a {
  padding: 8px 0;
  display: inline-block;
}
