/* ==========================================================================
   Tasci Group — tascigroup.de
   Vanilla CSS, mobile-first. Keine externen Requests.
   ========================================================================== */

/* --- Fonts (lokal, DSGVO-konform) ------------------------------------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Design-Tokens ----------------------------------------------------- */
:root {
  /*
   * Farben aus dem Bestand übernommen.
   *
   * Kontrast-Hinweis: das Marken-Rot #FF0000 erreicht auf Weiß nur 4,00:1
   * und auf #202020 nur 4,07:1 — beides unter WCAG AA (4,5:1). Es bleibt
   * deshalb der Flächen- und Dekorationsfarbe vorbehalten (Balken, Punkte,
   * Rahmen). Wo Text im Spiel ist, greifen die beiden abgeleiteten Töne:
   *   --rot-flaeche  weiße Schrift darauf   → 5,04:1
   *   --rot-text     roter Text auf Hell    → 5,53:1
   * Der Unterschied ist mit bloßem Auge kaum sichtbar, macht die Seite aber
   * konform. Die Altseite fiel an denselben Stellen durch.
   */
  --rot: #ff0000;
  --rot-flaeche: #e00000;
  --rot-text: #d40000;
  --rot-dunkel: #b00000;
  --schwarz: #000;
  --anthrazit: #202020;
  --anthrazit-hell: #2c2c2c;
  --weiss: #fff;
  /* #808080 des Bestands hatte nur 3,5:1 Kontrast — auf AA angehoben */
  --grau: #5a5a5a;
  --grau-hell: #8a8a8a;
  --linie: rgba(255, 255, 255, 0.16);
  --linie-dunkel: rgba(0, 0, 0, 0.1);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid Type Scale */
  --fs-hero: clamp(2.75rem, 9vw, 6rem);
  --fs-h2: clamp(1.9rem, 4.2vw, 3.25rem);
  --fs-h3: clamp(1.35rem, 2.6vw, 2rem);
  --fs-h4: clamp(1.05rem, 1.6vw, 1.25rem);
  --fs-body: clamp(0.95rem, 1.1vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-kicker: clamp(0.7rem, 1.1vw, 0.8125rem);

  --sp-section: clamp(4rem, 9vw, 8rem);
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1440px;
  --maxw-text: 68ch;
  --radius: 14px;
  --radius-lg: 24px;
  --pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 84px;
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--grau);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
  /* Sicherheitsnetz gegen horizontales Überlaufen (Bug B1 im Altsystem) */
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--anthrazit);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--rot);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Utilities --------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--sp-section);
}

.section--dark {
  background: var(--anthrazit);
  color: var(--grau-hell);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--weiss);
}

.section--black {
  background: var(--schwarz);
  color: var(--grau-hell);
}

.section--black h2,
.section--black h3,
.section--black h4 {
  color: var(--weiss);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -110%);
  padding: 0.75rem 1.5rem;
  background: var(--rot-flaeche);
  color: var(--weiss);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/*
 * Kicker: Text neutral, roter Balken als Akzent. Damit bleibt die rote
 * Signalwirkung erhalten, ohne dass kleiner roter Text den Kontrasttest
 * reißt (#FF0000 auf Weiß = 4,00:1).
 */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--anthrazit);
}

.kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  flex-shrink: 0;
  background: var(--rot);
}

.section--dark .kicker,
.section--black .kicker,
.pagehead .kicker {
  color: var(--weiss);
}

.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  max-width: var(--maxw-text);
}

.section-head {
  max-width: 60ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Roter Trennstrich, greift die Bestandsoptik auf */
.rule {
  width: 64px;
  height: 3px;
  border: 0;
  margin: 0 0 1.5rem;
  background: var(--rot);
}

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  border: 2px solid transparent;
  border-radius: var(--pill);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--rot-flaeche);
  border-color: var(--rot-flaeche);
  color: var(--weiss);
}

.btn--primary:hover {
  background: var(--rot-dunkel);
  border-color: var(--rot-dunkel);
}

.btn--ghost {
  background: transparent;
  border-color: var(--rot-text);
  color: var(--rot-text);
}

.btn--ghost:hover {
  background: var(--rot-flaeche);
  border-color: var(--rot-flaeche);
  color: var(--weiss);
}

.btn--sm {
  padding: 0.7rem 1.5rem;
  font-size: 0.8125rem;
}

.btn__arrow {
  transition: transform 0.2s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--linie);
}

.header.is-stuck {
  background: rgba(32, 32, 32, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.header.is-stuck::after {
  opacity: 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header__logo {
  flex-shrink: 0;
  line-height: 0;
}

.header__logo img {
  width: auto;
  height: clamp(38px, 5vw, 52px);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
}

.nav__link {
  position: relative;
  padding-block: 0.35rem;
  color: var(--weiss);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--rot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav__link:hover::after,
.nav__link[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav__cta {
  margin-left: 0.5rem;
}

/* Burger */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.burger__box {
  position: relative;
  display: block;
  width: 26px;
  height: 16px;
  margin-inline: auto;
}

.burger__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--weiss);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.burger__box span:nth-child(1) {
  top: 0;
}

.burger__box span:nth-child(2) {
  top: 7px;
}

.burger__box span:nth-child(3) {
  top: 14px;
}

.burger[aria-expanded="true"] .burger__box span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__box span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger__box span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    padding: var(--header-h) var(--gutter) 3rem;
    background: var(--anthrazit);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0.35s;
  }

  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav__link {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .nav__cta {
    margin: 0.75rem 0 0;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 900px);
  padding-block: calc(var(--header-h) + 3rem) clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  background: var(--anthrazit);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.6) 42%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin: 0 0 clamp(1rem, 2vw, 1.75rem);
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--weiss);
}

.hero__kicker span::after {
  content: "|";
  margin-left: 0.9rem;
  color: var(--rot);
}

.hero__kicker span:last-child::after {
  content: none;
}

.hero__title {
  margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
  font-size: var(--fs-hero);
  letter-spacing: -0.035em;
  color: var(--weiss);
}

.hero__claim {
  position: relative;
  max-width: 34ch;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  padding-left: clamp(1rem, 2.5vw, 2rem);
  font-size: clamp(1.0625rem, 1.9vw, 1.5rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--weiss);
}

.hero__claim::before {
  content: "";
  position: absolute;
  inset: 0.35em auto 0.35em 0;
  width: 3px;
  background: var(--rot);
}

.hero__scroll {
  display: none;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--weiss);
  font-size: var(--fs-small);
  text-decoration: none;
  opacity: 0.7;
}

@media (min-width: 901px) {
  /* eigene Zeile unter dem CTA — width:fit-content hält die Klickfläche klein */
  .hero__scroll {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
  }

  .hero__scroll svg {
    animation: bob 2s var(--ease) infinite;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* ==========================================================================
   Sektion: Wofür steht die Tasci Group
   ========================================================================== */
.pillars {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--anthrazit);
  color: var(--weiss);
  isolation: isolate;
}

.pillar__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.pillar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillar__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.88) 55%,
    rgba(0, 0, 0, 0.94) 100%
  );
}

.pillar__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}

.pillar__title {
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--weiss);
}

.pillar__list {
  display: grid;
  gap: 0.9rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.pillar__list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.5rem;
}

.pillar__list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.5rem;
  background: var(--rot);
  border-radius: 50%;
}

/* ==========================================================================
   Sektion: Die vier Unternehmen  (Fix B2 — einheitliche CTAs)
   ========================================================================== */
.brands {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: 1fr;
}

@media (min-width: 820px) {
  .brands {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*
 * Kern des B2-Fix: jede Karte ist ein eigenes Grid mit drei Zeilen
 * (Logo / Text / Button). Die mittlere Zeile ist 1fr und schluckt die
 * Höhendifferenz, dadurch sitzt der Button in ALLEN vier Karten auf
 * gleicher Höhe — unabhängig davon, wie lang der Fließtext ist.
 */
.brand {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: #fafafa;
  border: 1px solid var(--linie-dunkel);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.brand:hover {
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* Die Marken-SVGs sind für helle Flächen gezeichnet (TII fast schwarz,
   CTC blau) — die Karten bleiben deshalb hell. */
.brand__logo {
  display: flex;
  align-items: center;
  min-height: 52px;
}

.brand__logo img {
  width: auto;
  max-height: 52px;
}

.brand__text {
  color: var(--grau);
  font-size: var(--fs-small);
  line-height: 1.7;
}

.brand__text p + p {
  margin-top: 0.85em;
}

.brand__cta {
  justify-self: start;
}

/* ==========================================================================
   Sektion: Referenzen
   ========================================================================== */
.refs {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr;
}

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

@media (min-width: 1080px) {
  .refs {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Die letzten drei Kacheln füllen die zweite Reihe gleichmäßig */
  .refs__item:nth-child(5) {
    grid-column: span 2;
  }
}

.refs__item {
  position: relative;
  display: block;
  overflow: hidden;
  border: 0;
  padding: 0;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  background: var(--anthrazit);
  color: var(--weiss);
  text-align: left;
  cursor: pointer;
}

.refs__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.refs__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

.refs__item:hover img {
  transform: scale(1.06);
}

.refs__label {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--weiss);
}

.refs__count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  border-radius: var(--pill);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Sektion: Team
   ========================================================================== */
.gen {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.gen__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--anthrazit);
}

.gen__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--linie-dunkel);
}

.section--dark .gen__label::after,
.section--black .gen__label::after {
  background: var(--linie);
}

.people {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px) {
  .people {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1080px) {
  .people--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.person__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  background: var(--anthrazit-hell);
}

.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1);
  transition: filter 0.4s var(--ease), transform 0.6s var(--ease);
}

.person:hover .person__photo img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.person__name {
  font-size: var(--fs-h4);
  font-weight: 600;
}

.person__year {
  margin-top: 0.15rem;
  font-size: var(--fs-small);
  color: var(--rot-text);
  font-weight: 500;
}

.person__role {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--grau);
}

.section--dark .person__role,
.section--black .person__role {
  color: var(--grau-hell);
}

.person__role span {
  display: block;
}

/* ==========================================================================
   Sektion: Standorte  (Fix B1 — Karte bleibt im Fluss)
   ========================================================================== */

/*
 * Kern des B1-Fix: Karte und Textpanel liegen in einem Grid, beide IM
 * normalen Fluss — nichts ist aus dem Fluss genommen. Die Sektion bezieht
 * ihre Höhe damit immer vom höheren der beiden Kinder, und das Kartenbild
 * skaliert über width:100%/height:auto statt über eine feste Pixelhöhe.
 * Genau diese feste Höhe (613px) in einer absolut positionierten Box war
 * im Altsystem die Ursache dafür, dass die Karte 170px in den Footer ragte.
 */
.orte {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 1000px) {
  .orte {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    align-items: center;
  }
}

.orte__map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1c1c1c;
}

/*
 * width:100% + height:auto — die Höhe folgt immer dem Seitenverhältnis.
 * Die width/height-Attribute im HTML reservieren den Platz vorab (kein CLS).
 * Die Kartenbilder bringen ihren roten Standort-Pin bereits mit.
 */
.orte__map img {
  display: block;
  width: 100%;
  height: auto;
}

.orte__map picture {
  display: block;
}

.orte__panel {
  min-width: 0;
}

.orte__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  padding: 0;
}

.orte__tab {
  padding: 0.55rem 1.1rem;
  background: transparent;
  border: 1px solid var(--linie);
  border-radius: var(--pill);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.orte__tab:hover {
  border-color: var(--rot);
  color: var(--weiss);
}

.orte__tab[aria-selected="true"] {
  background: var(--rot-flaeche);
  border-color: var(--rot-flaeche);
  color: var(--weiss);
}

.orte__title {
  font-size: var(--fs-h3);
  margin-bottom: 0.75rem;
}

.orte__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--weiss);
}

.orte__meta svg {
  color: var(--rot);
}

.orte__desc {
  margin-bottom: 1.75rem;
  color: var(--grau-hell);
}

.orte__panel-body[hidden] {
  display: none;
}

/* ==========================================================================
   Kontakt-Band (neu — im Bestand fehlten Kontaktdaten komplett)
   ========================================================================== */
.kontaktband {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .kontaktband {
    grid-template-columns: 1.1fr 1fr;
  }
}

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

@media (min-width: 560px) {
  .kontaktband__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.kontaktband__item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.kontaktband__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 0, 0, 0.16);
  border-radius: 50%;
  color: #ff6b5c;
}

.kontaktband__label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grau-hell);
}

.kontaktband__value {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--weiss);
  text-decoration: none;
  font-style: normal;
}

.kontaktband a.kontaktband__value:hover {
  color: var(--rot);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  background: var(--schwarz);
  color: var(--grau-hell);
  padding-block: clamp(3rem, 6vw, 5rem) 0;
}

.footer__top {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

@media (min-width: 760px) {
  .footer__top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer__logo img {
  width: auto;
  height: 52px;
  margin-bottom: 1.25rem;
}

.footer__tagline {
  max-width: 34ch;
  font-size: var(--fs-small);
  line-height: 1.7;
}

.footer__heading {
  margin-bottom: 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--weiss);
}

.footer__list {
  display: grid;
  gap: 0.7rem;
  font-size: var(--fs-small);
}

.footer__list a {
  color: var(--grau-hell);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer__list a:hover {
  color: var(--rot);
}

.footer__list address {
  font-style: normal;
  line-height: 1.7;
}

.footer__social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--linie);
  border-radius: 50%;
  color: var(--grau-hell);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.footer__social a:hover {
  background: var(--rot-flaeche);
  border-color: var(--rot-flaeche);
  color: var(--weiss);
}

.footer__siegel {
  margin-top: 1.75rem;
}

.footer__siegel img {
  width: 78px;
  height: auto;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--linie);
  font-size: 0.8125rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__legal a {
  color: var(--grau-hell);
  text-decoration: none;
}

.footer__legal a:hover {
  color: var(--rot);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
/*
 * Wichtig: das Grid-Layout NUR im geöffneten Zustand setzen. Ein pauschales
 * display:grid auf .lightbox würde die Browser-Regel
 * dialog:not([open]) { display: none } überschreiben — der Dialog läge dann
 * bei jedem Seitenaufruf über dem Inhalt.
 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(0, 0, 0, 0.94);
  border: 0;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--weiss);
}

.lightbox__title {
  font-size: var(--fs-h3);
  color: var(--weiss);
}

.lightbox__close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 50%;
  color: var(--weiss);
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.lightbox__close:hover {
  background: var(--rot-flaeche);
}

.lightbox__stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding-block: clamp(1rem, 3vw, 2rem);
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: var(--weiss);
}

.lightbox__nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 50%;
  color: var(--weiss);
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.lightbox__nav:hover:not(:disabled) {
  background: var(--rot-flaeche);
}

.lightbox__nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.lightbox__counter {
  min-width: 5ch;
  text-align: center;
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Scroll-Reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Innenseiten (Kontakt, Impressum, Datenschutz, 404)
   ========================================================================== */
.pagehead {
  padding-block: calc(var(--header-h) + clamp(3rem, 7vw, 6rem))
    clamp(2.5rem, 5vw, 4rem);
  background: var(--anthrazit);
  color: var(--grau-hell);
}

.pagehead h1 {
  font-size: var(--fs-h2);
  color: var(--weiss);
}

.pagehead .lead {
  margin-top: 1.25rem;
}

.prose {
  max-width: var(--maxw-text);
}

.prose h2 {
  margin: 2.5rem 0 0.9rem;
  font-size: var(--fs-h3);
}

.prose h3 {
  margin: 2rem 0 0.7rem;
  font-size: var(--fs-h4);
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.25rem;
  list-style: disc;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose a {
  color: var(--rot-text);
}

.prose address {
  font-style: normal;
  line-height: 1.8;
}

.prose dl {
  display: grid;
  gap: 0.4rem 1.5rem;
  margin: 0 0 1.5rem;
}

@media (min-width: 560px) {
  .prose dl {
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  }
}

.prose dt {
  font-weight: 600;
  color: var(--anthrazit);
}

.prose dd {
  margin: 0;
}

/* ==========================================================================
   Kontaktformular
   ========================================================================== */
.kontakt-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1fr;
  align-items: start;
}

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

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

.field {
  display: grid;
  gap: 0.5rem;
}

.field__label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--anthrazit);
}

.field__req {
  color: var(--rot-text);
}

.field__hint {
  font-size: 0.8125rem;
  color: var(--grau);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font: inherit;
  font-size: var(--fs-body);
  color: var(--anthrazit);
  background: var(--weiss);
  border: 1.5px solid #d8d8d8;
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--rot);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.12);
  outline: none;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--rot);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field__error {
  min-height: 1.2em;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--rot);
}

.field__error:empty {
  min-height: 0;
}

/* Radio-Gruppe „Woran sind Sie interessiert?" */
.radios {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .radios {
    grid-template-columns: repeat(2, 1fr);
  }
}

.radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid #d8d8d8;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--anthrazit);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.radio:hover {
  border-color: var(--rot);
}

.radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio__dot {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid #bdbdbd;
  border-radius: 50%;
  transition: border-color 0.2s var(--ease);
}

.radio__dot::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--rot);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.2s var(--ease);
}

.radio:has(input:checked) {
  border-color: var(--rot);
  background: rgba(255, 0, 0, 0.04);
}

.radio input:checked ~ .radio__dot {
  border-color: var(--rot);
}

.radio input:checked ~ .radio__dot::after {
  transform: scale(1);
}

.radio input:focus-visible ~ .radio__dot {
  outline: 3px solid var(--rot);
  outline-offset: 3px;
}

/* Datenschutz-Checkbox */
.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  line-height: 1.6;
  cursor: pointer;
}

.consent input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0.15rem 0 0;
  accent-color: var(--rot);
}

.consent a {
  color: var(--rot-text);
}

/* Honeypot gegen Spam-Bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: 500;
}

.form__status[hidden] {
  display: none;
}

.form__status--ok {
  background: rgba(0, 140, 60, 0.1);
  border: 1px solid rgba(0, 140, 60, 0.35);
  color: #00602a;
}

.form__status--err {
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.35);
  color: #b30000;
}

.form button[type="submit"] {
  justify-self: start;
}

.form button[type="submit"][disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* Kontakt-Sidebar */
.kontakt-aside {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--anthrazit);
  border-radius: var(--radius-lg);
  color: var(--grau-hell);
}

.kontakt-aside h2 {
  margin-bottom: 1.5rem;
  font-size: var(--fs-h4);
  color: var(--weiss);
}

.kontakt-aside .kontaktband__list {
  grid-template-columns: 1fr;
}
