/* ========== Basis / Reset ========== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111827;
  background-color: #f9fafb;
}

img {
  width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1b5192;
  text-decoration: none;
}

button {
  font: inherit;
}

/* ========== Layout-Grundstruktur ========== */

.section {
  padding: 3.5rem 1.25rem;
}

.section__inner {
  max-width: 85rem; /* ~1152px */
  margin: 0 auto;
}

.section__header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section__header h2 {
  margin: 0 0 0.5rem;
  font-size: 5.7vw;
}

.section__header p {
  color: #4b5563;
  font-size:1.4rem;
}

/* ========== Header / Navigation ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo img {
  max-height: 48px;
}

/* Standard-Navigation (Desktop / Tablet) */

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.site-nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: #111827;
  position: relative;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background-color: #1b5192;
  transition: width 0.2s ease;
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
  width: 100%;
}

/* Burger-Button (nicht genutzt, da oben fixe Navi) */

.site-nav__toggle {
  display: none;
}

/* ========== Flyout-Trigger (Kontakt / Impressum unten rechts) ========== */

.flyout-trigger {
  position: fixed;
  right: 1.25rem;
  z-index: 30;
  background-color: #1b5192;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 1.5rem;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(27, 81, 146, 0.35);

  @media (max-width:505px) {
    font-size: 1.1rem;
  }
}

/* Menü-Trigger ist per hidden im HTML ausgeblendet */

.flyout-trigger--contact {
  top: auto;
  bottom: 5.5rem!important;

  @media (max-width:505px) {
    bottom: 5rem !important;
  }
}

.flyout-trigger--imprint {
  top: auto;
  bottom: 1.5rem;
  background-color: #4b5563; /* Impressum bewusst neutral/grau */
}

.flyout-trigger:hover,
.flyout-trigger:focus-visible {
  filter: brightness(1.05);
  text-decoration: none;
}

/*@media (min-width: 960px) {*/
  .flyout-trigger {
    right: 4rem;
  }
/*}*/

/* ========== Hero / Home ========== */

.section--hero {
  padding-top: 3.5rem; /* Platz für Sticky-Header */
}

.section__inner--hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero__content {
  max-width: 34rem;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: #1b5192;
  margin: 0 0 0.5rem;
}

.hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.hero__subtitle {
  margin: 0 0 0.75rem;
  color: #4b5563;
  font-size: 1rem;
}

.hero__text {
  margin: 0 0 1.5rem;
  color: #4b5563;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.button--primary {
  background-color: #1b5192;
  color: #ffffff;
}

.button--secondary {
  background-color: #e3edf9; /* abgeschwächte CI-Farbe */
  color: #1b5192;
  border-color: #1b5192;
}

.button--ghost {
  background-color: transparent;
  color: #111827;
  border-color: #d1d5db;
}

.button:hover,
.button:focus-visible {
  filter: brightness(1.03);
  text-decoration: none;
}

.hero__image {
  max-width: 36rem;
}

@media (min-width: 768px) {
  .section__inner--hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero__content {
    flex: 1 1 50%;
  }

  .hero__image {
    flex: 1 1 50%;
  }
}

/* ========== Kompetenzen ========== */

.section--kompetenzen {
  background-color: #ffffff;
}

.kompetenzen__grid {
  display: grid;
  gap: 5rem;
}

.kompetenzen__item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.kompetenzen__item p {
  margin: 0;
  color: #4b5563;
  font-size:20px;
}

@media (min-width: 640px) {
  .kompetenzen__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .kompetenzen__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ========== Slider / Bildergalerie ========== */

.section--slider {
  background-color: #a2a2a2;        /* dunkler Hintergrund rund um den Slider */
  padding-left: 0;
  padding-right: 0;
  padding-block: 3rem !important;
}

.section__inner--slider {
  max-width: none;               /* volle Breite */
  margin: 0;
}

.section__header--slider {
  max-width: 72rem;
  margin: 0 auto 1.5rem;
  padding: 0 1.25rem;
  text-align: left;
  color: #f9fafb;
}

.section__header--slider p {
  color: #e5e7eb;
}

.slider {
  position: relative;
  width: 100%;
  margin-top: 45px;
}

.slider__track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.slider__track::-webkit-scrollbar {
  height: 6px;
}

.slider__track::-webkit-scrollbar-thumb {
  background-color: #4b5563;
  border-radius: 999px;
}

.slider__slide {
  position: relative;
  flex: 0 0 100%;                /* jede Slide = volle Breite */
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;          /* Höhe steuern */
  overflow: hidden;
}

.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider__caption {
  position: absolute;
  inset: auto 0 0 0;             /* unten über die gesamte Breite */
  padding: 1.25rem 1.5rem 1.75rem;
  /*background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.85),
    rgba(15, 23, 42, 0.0)
  );*/
  color: #f9fafb;

  animation-name: fadeInUp;
      animation-duration: 1.25s;
}

.slider__caption h3 {
  margin: 0 0 0.25rem;
  font-size: 5.7vw;
  text-shadow:
    0 0 30px rgba(0, 0, 0, 0.5),
    0 2px 30px rgba(0, 0, 0, 0.5),
    0 0 12px rgba(0, 0, 0, 0.5);
}

.slider__caption p {
  margin: 0;
  font-size: 22px;
  color: #e5e7eb;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 0 12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 960px) {
  .slider__caption {
    max-width: 32rem;
    padding-left: 4rem;
    padding-bottom: 2.25rem;
  }

  .slider__caption h3 {
    font-size: 5.7vw
  }
}

/* Slider-Buttons bleiben optional ausgeblendet */
.slider__controls {
  display: none;
}

.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: none;
  background-color: rgba(15, 23, 42, 0.65);
  color: #f9fafb;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.slider__arrow:hover,
.slider__arrow:focus-visible {
  background-color: rgba(15, 23, 42, 0.9);
}

.slider__prev {
  left: 1rem;
}

.slider__next {
  right: 1rem;
}

@media (max-width: 640px) {
  .slider__arrow {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.2rem;
  }
}


/* ========== Leistungen ========== */

/* ========== Leistungen ========== */

.section--leistungen {
  background-color: #ffffff;
}

.section--leistungen .leistungen__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.section--leistungen .leistung {
  padding-bottom: 2rem;
}

.section--leistungen .leistung h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.75rem;
}

.section--leistungen .leistung p {
  margin: 0;
  color: #4b5563;
  font-size:1.25rem;
}

.section--leistungen .leistung__image {
  width: 100%;
  display: block;
}

/* Desktop / Tablet */
@media (min-width: 768px) {
  .section--leistungen .leistungen__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  /* Pulverbeschichtung = erster sichtbarer Artikel -> volle Breite */
  .section--leistungen .leistungen__grid > .leistung:first-child {
    grid-column: 1 / -1;
  }
}

/* ========== Branchen ========== */

.section--branchen {
  background-color: #f9fafb;
}

.branchen__grid {
  display: grid;
  gap: 1.5rem;
}

.branche h3 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.branche p {
  margin: 0;
  color: #4b5563;
  font-size:20px;
}

@media (min-width: 640px) {
  .branchen__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .branchen__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.branche {
  position: relative;
}

/* Icon links oben, Text fließt herum */
.branche__icon {
  max-width: 200px;      /* ggf. an deine Icons anpassen */
  height: auto;
  margin: 0 0.75rem 0.5rem 0;
  display: block;
}

/* Float auf sehr kleinen Screens aufheben, falls es zu eng wird */
@media (max-width: 480px) {
  .branche__icon {
    float: none;
    display: block;
    margin: 0 0 0.5rem 0;
  }
}

/* Sicherstellen, dass der Float den Artikel nicht "sprengt" */
.branche::after {
  content: "";
  display: block;
  clear: both;
}


/* ========== Unternehmen / Über uns ========== */

.section--unternehmen {
  ackground-color: #f3f4f6;
}

.section__inner--unternehmen {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: end;
}

.unternehmen__image {
  flex: 1 1 50%;
  margin-bottom: 1.2rem;
}

.unternehmen__content {
  flex: 1 1 50%;
}

.unternehmen__content article {
  margin-top: 1rem;
}

.unternehmen__content h3 {
  margin: 0 0 0.75rem;
  font-size:1.75rem;
}

.unternehmen__content p {
  margin: 0 0 0.75rem;
  color: #4b5563;
  font-size:1.25rem;
}

@media (min-width: 768px) {
  .section__inner--unternehmen {
    flex-direction: row;
    align-items: end;
  }
}

/* ========== Anfahrt ========== */

.section--anfahrt {
  background-color: #f3f4f6;
}

.anfahrt__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items:end;
}

.anfahrt__details h3 {
  margin: 0 0 0.75rem;
  font-size:1.75rem;
}

.anfahrt__details p {
  margin: 0 0 0.75rem;
  color: #4b5563;
  font-size:20px;
}

.map-placeholder {
  text-align: center;

  iframe {
    width: 600px;
    height: 450px;

    @media (max-width: 905px) {
      max-width: 100%;
    }
  }
}

@media (min-width: 768px) {
  .anfahrt__grid {
    flex-direction: row;
  }

  .anfahrt__details,
  .anfahrt__map {
    flex: 1 1 50%;
  }
}

.anfahrt__image {
  margin:2rem 0 0 0;
  overflow: hidden;
}

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


/* ========== Kontakt ========== */

.section--kontakt {
  background-color: #ffffff;
}

.section__inner--kontakt {
  max-width: 72rem;
}

.kontakt__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.kontakt__info h3 {
  margin: 0 0 0.75rem;
  font-size:1.75rem;
}

.kontakt__info p {
  margin: 0 0 0.75rem;
  color: #4b5563;
  font-size:20px;
}

/* Formular */

.contact-form {
  padding: 1.5rem 1.25rem;
}

.contact-form__field {
  margin-bottom: 1rem;
}

.contact-form__field label {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border: none;
  border-bottom: 1px solid #d1d5db;
  font: inherit;
}

.contact-form__field input:focus-visible,
.contact-form__field textarea:focus-visible {
  outline: 2px solid #1b5192;
  outline-offset: 1px;
  border-color: transparent;
}

.contact-form__field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.contact-form__field--checkbox input {
  width: auto;
  margin-top: 0.2rem;
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.contact-form__actions button {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  cursor: pointer;
  font-size:1.25rem;
}

.contact-form__actions button[type="submit"] {
  background-color: #1b5192;
  color: #ffffff;
  border-color: #1b5192;
}

.contact-form__actions button:hover,
.contact-form__actions button:focus-visible {
  filter: brightness(1.03);
}

.contact-form__hint {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  color: #6b7280;
}

@media (min-width: 768px) {
  .kontakt__grid {
    flex-direction: row;
  }

  .kontakt__info,
  .kontakt__form {
    flex: 1 1 50%;
  }

  .contact-form {
    padding: 1.75rem 1.75rem;
  }
}

/* ========== Footer ========== */

.site-footer {
  background-color: #111827;
  color: #e5e7eb;
  padding: 1.5rem 1.25rem;
  margin-top: 1rem;
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
  font-size: 1.25rem;
}

.site-footer__inner p {
  margin: 0.2rem 0;
}

.site-footer__link {
  color: #e5e7eb;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  text-decoration: underline;
}

/* ========== Flyouts (Menü / Kontakt / Impressum) via :target ========== */

.flyout {
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: rgba(15, 23, 42, 0.6);
  display: flex;
  /* zentriert, aber mit Scrollbar, falls Inhalt höher ist */
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  overflow-y: auto; /* WICHTIG: Overlay selbst kann scrollen */
}

.flyout__content {
  width: 100%;
  max-width: 32rem;              /* etwas breiter als vorher */
  max-height: calc(100vh - 3rem);/* passt in den Viewport */
  overflow-y: auto;              /* Inhalt im Overlay scrollt bei Bedarf */
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
  position: relative;
}

.flyout__content h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.flyout:target {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.flyout__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: none;
  background-color: #e5e7eb;
  color: #111827;
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flyout__close:hover,
.flyout__close:focus-visible {
  filter: brightness(0.95);
}

/* Menü-Flyout Navigation */

.flyout__nav-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.flyout__nav-list a {
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
}

/* Kontakt-Flyout */

.flyout--contact p {
  margin: 0.35rem 0;
}

/* Impressum-Flyout */

.flyout--imprint .flyout__content {
  max-width: 60rem;
}

.flyout--imprint section {
  margin-top: 1rem;
}

.flyout--imprint h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.flyout--imprint p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: #4b5563;
}

/* ========== Responsive Navigation (kleine Screens) ========== */

@media (max-width: 767.98px) {
  .site-header__inner {
    justify-content: flex-start;
    gap: 1rem;
  }

  .site-nav__list {
    display: none; /* mobil Navigation über Flyout-Menü möglich, wenn wieder aktiviert */
  }
}

/* ========== Sonstiges ========== */

@media (min-width: 960px) {
  .section {
    padding-block: 4.5rem;
  }
}

.flyout--success .flyout__content {
  max-width: 28rem;
  text-align: left;
}

.flyout-trigger--menu {
  top: 1rem;
}

/* Nur auf kleinen Screens anzeigen */
@media (max-width: 767.98px) {
  .flyout-trigger--menu {
    display: inline-flex;
  }
}

/* Auf größeren Bildschirmen ausblenden (weil dort die Hauptnavi sichtbar ist) */
@media (min-width: 768px) {
  .flyout-trigger--menu {
    display: none;
  }
}

/* Nach-oben-Button (standardmäßig versteckt) */
.flyout-trigger--top {
  top: auto;
  bottom: 9.5rem;            /* über Kontakt & Impressum stapeln */
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Wenn sichtbar */
.flyout-trigger--top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ========== Hero im Stil passt-coating ========== */

.hero {
  position: relative;
  min-height: 100vh;
  color: #f9fafb;
  overflow: hidden;
}

/* Hintergrundbild (voller Screen) */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.15)),
    url("hero_titelbild.png");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Dreieck oben links */
.hero__triangle {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
        width: 45vw;
    height: 80vh;
    background-color: #f6f6f6;
    backdrop-filter: blur(6px);
    clip-path: polygon(0% 0%, 100% 0%, 0% 100%, 0% 100%);

    @media (max-width: 950px) {
      width: 56vw;
    }

    @media (max-width: 767px) {
          width: 400px;
          height: 500px;
    }
}

/* Inhaltsebene */
.hero__inner {
  position: relative;
  z-index: 3;
  padding: 1.5rem 1.5rem 3.5rem;
  min-height: 100vh;
}

/* Logo oben links im Dreieck */
.hero__logo {
  display: inline-block;
      margin-top: 30px;
    margin-left: 30px;

    @media (max-width: 505px) {
      margin-left:15px;
    }
}

.hero__logo img {
  max-height: 70px;
}

/* Sekundäres Menü links mittig */
.hero__side-nav {
position: absolute;
    top: 56%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    background-color: #1c5194;
    padding: 1rem 7rem 1rem 4rem;
    clip-path: polygon(0% 100%, 100% 100%, 83% 0%, 0% 0%);
    z-index: 3;

    @media (max-width:880px) {
      top:37%;
    }
}

.hero__side-nav a {
    font-size: 1rem;
    letter-spacing: 0.14em;
    color: #ffffff;
    text-decoration: none;
}

.hero__side-nav a:hover,
.hero__side-nav a:focus-visible {
  opacity: 1;
}

/* Headline zentriert, ca. 1/4 von unten */
.hero__headline-block {
    position: absolute;
    left: 50%;
    bottom: 19%;
    transform: translateX(-22%);
    text-align: center;
    padding: 1.3rem 1.4rem;
    backdrop-filter: blur(6px);
    background-color: rgb(15 23 42 / 18%);

    @media (min-width:880px) and (max-width:950px) {
      transform: translateX(-9%);
    }

    @media (min-width:700px) and (max-width:879px) {
          max-width: 624px;
    margin-left: -312px;
    transform: unset;
    }

    @media (max-width:699px) {
          width: auto;
    left: 0;
    transform: unset;
    bottom: 20%;
    margin-right: 2rem;
    margin-left: 2rem;
    }

    @media (max-width: 464px) {
      bottom: 23%;
    }
}

/* vorhandene Hero-Typo farblich fürs neue Layout anpassen */
.hero .hero__eyebrow {
  color: #f9fafb;
  letter-spacing: 0.18em;
      font-size: 1.4rem;

      @media (max-width: 464px) {
        font-size: 1rem;
      }
}

.hero .hero__title {
  color: #f9fafb;
  font-size: clamp(2.2rem, 5vw, 3.0rem);
  margin: 0;
      display: none;
}

.hero .hero__subtitle {
  color: #e5e7eb;
  margin: 0.35rem 0 0;
  font-size: 2rem;

  @media (max-width:464px) {
        font-size: 1.5rem;
  }
}

/* Hamburger oben rechts, sticky/fixed */
.hero__hamburger {
  display:none;
  position: fixed;
      top: 58px;
    right: 4rem;
  z-index: 50;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: none;
  background-color: rgba(15, 23, 42, 0.8);
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  @media (max-width:505px) {
    right:2rem;
  }
}

.hero__hamburger-bars {
  width: 1.7rem;
  height: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__hamburger-bars span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background-color: currentColor;
}

/* Off-Canvas Menü rechts */
.hero-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(20rem, 80vw);
  height: 370px;
  background-color: #111827;
  color: #f9fafb;
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  padding: 1.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
}

.hero-menu--open {
  transform: translateX(0);
}

.hero-menu__close {
  align-self: flex-end;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: none;
  background-color: #374151;
  color: #f9fafb;
  font-size: 1.3rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-menu__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero-menu__list a {
  color: inherit;
  font-size: 1.05rem;
  text-decoration: none;
}

.hero-menu__list a:hover,
.hero-menu__list a:focus-visible {
  text-decoration: underline;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .hero__side-nav {
    display: none_;
  }

  .hero__headline-block_ {
    bottom: 16%;
    width: calc(100% - 3rem);
    padding-inline: 1.3rem;
    border-radius: 1.5rem;
  }

  .hero__logo img {
    max-height: 56px;
  }
}

@media (max-width: 370px) {
  .hero__side-nav {
    /* an die Screenbreite anpassen */
    position: absolute;      /* oder was du aktuell nutzt */
    left: 0;                 /* links bündig */
    right: 1rem;             /* Abstand nach rechts */
    width: auto;
    max-width: none;
    padding-left: 2rem;

    /* optional, falls nötig */
    box-sizing: border-box;

    a {
      font-size:14px;
    }
  }
}

/* Startzustand: leicht nach oben versetzt und unsichtbar */
.slider__caption {
  opacity: 0;
  transform: translateY(-280px);
  transition: opacity 1.45s ease-out, transform 1.45s ease-out;
  will-change: opacity, transform;
}

/* Wenn Slide aktiv -> Caption fährt von oben rein und blendet ein */
.slider__slide--active .slider__caption {
  opacity: 1;
  transform: translateY(0);
}
