/*
 * Startseite: Hero, Logos, Projekt, Schritte, Gewerke, Stimmen, FAQ, Kontakt.
 */

.ds-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 112px;
  background: linear-gradient(180deg, var(--ds-bg-soft) 0%, var(--ds-white) 100%);
  --pattern-width: 55%;
}

.ds-hero > .container {
  position: relative;
  z-index: 1;
}

.ds-hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.125rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 24px;
}

.ds-hero h1 .ds-mark::after {
  height: 0.3em;
  bottom: 0.04em;
}

.ds-hero-lead {
  max-width: 540px;
  margin: 0 0 32px;
  font-size: 1.1875rem;
  line-height: 1.6;
}

.ds-hero-lead strong {
  color: var(--ds-ink);
  font-weight: 600;
}

.ds-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ds-hero-media {
  position: relative;
  margin-left: auto;
  max-width: 600px;
}

.ds-hero-media > img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--ds-shadow-lg);
}

/* Einzelne Waben als Akzent hinter dem Bild */
.ds-hero-hexes {
  position: absolute;
  inset: -48px -56px auto auto;
  width: 220px;
  z-index: -1;
  color: var(--ds-blue);
  opacity: 0.35;
}

/* Dunkles, halbtransparentes Overlay über dem Hero-Bild: Motiv bleibt
   erkennbar, der Play-Button tritt in den Vordergrund. */
.ds-hero-media::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 50%, rgba(6, 18, 38, 0.38), rgba(6, 18, 38, 0.58));
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s;
}

.ds-hero-media:has(.ds-play:hover)::after {
  opacity: 0.7;
}

/* Play-Button: heller Kreis mit durchscheinendem Ring auf dem dunklen Bild */
.ds-play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--ds-white);
  color: var(--ds-navy);
  font-size: 2.25rem;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.22), 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}

.ds-play::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  animation: ds-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes ds-pulse {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(1.55); opacity: 0; }
}

.ds-play:hover {
  color: var(--ds-navy);
  transform: scale(1.08);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.28), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.ds-play i {
  margin-left: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .ds-play::before {
    animation: none;
  }
}

/* Schwebende Karte "Nächster Termin" */
.ds-next {
  position: absolute;
  z-index: 2;
  left: -40px;
  bottom: -36px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 380px;
  padding: 14px 20px 14px 14px;
  background: var(--ds-white);
  border-radius: var(--ds-radius);
  box-shadow: var(--ds-shadow-lg);
  color: var(--ds-text);
}

.ds-next:hover {
  color: var(--ds-text);
}

.ds-next .ds-date {
  width: 64px;
  height: 68px;
}

.ds-next .ds-date .d {
  font-size: 1.625rem;
}

.ds-next .ds-date .my {
  font-size: 0.625rem;
}

.ds-next small {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-muted);
}

.ds-next strong {
  display: block;
  color: var(--ds-navy);
  font-weight: 800;
  line-height: 1.25;
  margin: 2px 0 4px;
}

.ds-next .ds-link {
  font-size: 0.875rem;
}

@media (max-width: 991px) {
  .ds-hero {
    padding: 120px 0 96px;
  }
  .ds-hero-media {
    margin: 48px auto 0;
  }
  .ds-next {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: none;
    margin: -36px 16px 0;
  }
}

/* Partner und Förderprogramm: Karten im Slider (components/slider.css) */
.ds-partners {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--ds-line);
  background: var(--ds-white);
}

.ds-partners-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ds-partners-head h2 {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-muted);
}

.ds-partner a {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: var(--ds-white);
  color: var(--ds-text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ds-partner a:hover {
  color: var(--ds-text);
  border-color: color-mix(in srgb, var(--trade, var(--ds-blue)), transparent 55%);
  box-shadow: var(--ds-shadow);
  transform: translateY(-2px);
}

.ds-partner a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ds-blue), transparent 50%);
  outline-offset: 3px;
}

/* Einheitliche Logo-Fläche; Höhe je Logo über --logo-h (hg_logo_height) */
.ds-partner-logo {
  display: grid;
  place-items: center;
  height: 104px;
  padding: 16px 24px;
}

.ds-partner-logo img {
  display: block;
  max-width: 100%;
  height: var(--logo-h, 50px);
  width: auto;
  object-fit: contain;
}

/* Unterer Abschnitt: nur die Rolle, rechts oben das Symbol für externe Seiten */
.ds-partner-body {
  position: relative;
  display: block;
  padding: 12px 34px 13px 16px;
  border-top: 1px solid var(--ds-line);
}

.ds-partner-role {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--trade, var(--ds-blue));
}

.ds-partner-role::before {
  content: "";
  flex: none;
  width: 8px;
  height: 9px;
  background: currentColor;
  -webkit-mask: var(--ds-hex-mask) center / 100% 100% no-repeat;
  mask: var(--ds-hex-mask) center / 100% 100% no-repeat;
}

.ds-partner-external {
  position: absolute;
  top: 13px;
  right: 12px;
  line-height: 1;
  font-size: 0.875rem;
  color: var(--ds-muted);
  transition: color 0.2s;
}

.ds-partner a:hover .ds-partner-external {
  color: var(--ds-blue);
}

.ds-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 480px;
}

.ds-collage figure {
  position: relative;
  margin: 0;
  border-radius: var(--ds-radius-lg);
  overflow: hidden;
}

.ds-collage figure:first-child {
  grid-row: span 2;
}

.ds-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.ds-collage figure:hover img {
  transform: scale(1.04);
}

.ds-collage figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ds-navy);
  font-size: 0.8125rem;
  font-weight: 700;
}

.ds-collage::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 260px;
  height: 260px;
  background-image: var(--ds-pattern-dark);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
  mask-image: radial-gradient(closest-side, #000 30%, transparent);
  z-index: -1;
}

@media (max-width: 767px) {
  .ds-collage {
    height: 360px;
    gap: 10px;
  }
}

/* Vorteile als ruhige Reihe */
.ds-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 88px;
  border-top: 1px solid var(--ds-line);
}

.ds-benefit {
  display: flex;
  gap: 16px;
  padding: 32px 24px 0 0;
}

.ds-benefit + .ds-benefit {
  padding-left: 24px;
  border-left: 1px solid var(--ds-line);
}

.ds-benefit h3 {
  font-size: 1.0625rem;
  margin: 4px 0 6px;
}

.ds-benefit p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ds-muted);
}

@media (max-width: 991px) {
  .ds-benefits {
    grid-template-columns: 1fr 1fr;
  }
  .ds-benefit:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 575px) {
  .ds-benefits {
    grid-template-columns: 1fr;
    margin-top: 56px;
  }
  .ds-benefit,
  .ds-benefit + .ds-benefit {
    padding: 24px 0 0;
    border-left: 0;
  }
}

.ds-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Verbindungslinie durch die Waben */
.ds-steps::before {
  content: "";
  position: absolute;
  top: 43px;
  left: 38px;
  right: calc((100% - 64px) / 3 - 38px);
  border-top: 2px dashed color-mix(in srgb, var(--ds-navy), transparent 75%);
}

.ds-step h3 {
  font-size: 1.25rem;
  margin: 24px 0 14px;
}

.ds-step .ds-checks {
  gap: 10px;
  font-size: 0.9375rem;
}

.ds-step-label {
  display: block;
  margin-top: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ds-muted);
}

.ds-step-label + h3 {
  margin-top: 4px;
}

.ds-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding: 24px 28px;
  border-radius: var(--ds-radius);
  background: var(--ds-white);
  border: 1px solid var(--ds-line);
}

.ds-note .ds-btn {
  flex: none;
  white-space: nowrap;
}

.ds-note p {
  margin: 0;
  font-weight: 600;
  color: var(--ds-ink);
}

@media (max-width: 991px) {
  .ds-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ds-steps::before {
    top: 43px;
    bottom: 43px;
    left: 37px;
    right: auto;
    border-top: 0;
    border-left: 2px dashed color-mix(in srgb, var(--ds-navy), transparent 75%);
  }
  .ds-step {
    display: grid;
    grid-template-columns: 76px 1fr;
    column-gap: 24px;
  }
  .ds-step > .ds-hex {
    grid-row: span 3;
  }
  .ds-step-label {
    margin-top: 0;
  }
  .ds-note {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Gewerk-Zuordnung: setzt --trade für alle Kinder */
.ds-trade-all {
 --trade: var(--ds-navy); 
}

.ds-trade-dach {
 --trade: var(--ds-trade-dach); 
}

.ds-trade-geruest {
 --trade: var(--ds-trade-geruest); 
}

.ds-trade-maler {
 --trade: var(--ds-trade-maler); 
}

/* Zahlenkacheln = Reiter der Gewerke */
.ds-trades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 48px;
}

.ds-trade {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: var(--ds-white);
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ds-trade::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--trade);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.ds-trade:hover {
  border-color: color-mix(in srgb, var(--trade), transparent 60%);
  transform: translateY(-2px);
}

.ds-trade.active {
  border-color: var(--trade);
  box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--trade), transparent 30%);
}

.ds-trade.active::after {
  transform: scaleX(1);
}

.ds-trade:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--trade), transparent 50%);
  outline-offset: 3px;
}

.ds-trade-media {
  display: block;
  height: 104px;
  overflow: hidden;
}

.ds-trade-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.ds-trade:hover .ds-trade-media img {
  transform: scale(1.05);
}

.ds-trade-body {
  display: block;
  padding: 16px 20px 20px;
}

.ds-trade-body strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--trade);
}

.ds-trade-body span {
  display: block;
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--ds-muted);
}

.ds-trade-body em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ds-ink);
}

/* Gesamt-Kachel in Navy mit Wabenmuster statt Foto */
.ds-trade.ds-trade-all {
  background: var(--ds-navy);
  border-color: var(--ds-navy);
  --pattern-width: 100%;
  --pattern-fade: to top;
}

.ds-trade.ds-trade-all > * {
  position: relative;
  z-index: 1;
}

.ds-trade.ds-trade-all .ds-trade-media {
  height: 104px;
}

.ds-trade.ds-trade-all strong {
  color: var(--ds-white);
}

.ds-trade.ds-trade-all span {
  color: rgba(255, 255, 255, 0.78);
}

.ds-trade.ds-trade-all em {
  color: var(--ds-blue-light);
}

.ds-trade.ds-trade-all::after {
  background: var(--ds-cyan);
}

.ds-trade.ds-trade-all.active {
  box-shadow: 0 0 0 3px var(--ds-cyan), 0 14px 30px -16px rgba(11, 42, 85, 0.6);
}

@media (max-width: 991px) {
  .ds-trades {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .ds-trades {
    gap: 10px;
  }
  .ds-trade-media,
  .ds-trade.ds-trade-all .ds-trade-media {
    height: 72px;
  }
  .ds-trade-body {
    padding: 12px 14px 16px;
  }
  .ds-trade-body strong {
    font-size: 2rem;
  }
  .ds-trade-body span {
    font-size: 0.8125rem;
    hyphens: auto;
    overflow-wrap: break-word;
  }
  .ds-trade-body em {
    display: none;
  }
}

.ds-tab-pane h3 {
  font-size: 1.625rem;
  margin: 14px 0 16px;
}

.ds-tab-pane h4 {
  font-size: 1rem;
  margin: 28px 0 14px;
}

.ds-tab-pane .ds-checks li::before {
  background: color-mix(in srgb, var(--trade, var(--ds-blue)), transparent 86%);
  color: var(--trade, var(--ds-blue));
}

.ds-tab-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--ds-radius);
}

.ds-faq {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ds-line);
}

.ds-faq details {
  border-bottom: 1px solid var(--ds-line);
}

.ds-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ds-navy);
}

.ds-faq summary::-webkit-details-marker {
  display: none;
}

.ds-faq summary .ds-hex i {
  transition: transform 0.25s;
}

.ds-faq details[open] summary .ds-hex i {
  transform: rotate(45deg);
}

.ds-faq-body {
  padding: 0 64px 24px 4px;
}

.ds-faq-body p:last-child,
.ds-faq-body ul:last-child {
  margin-bottom: 0;
}

/* Bühne: eine Stimme groß, mit Foto in Wabenform und Kernaussage */
.ds-voice {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 56px;
  border-radius: var(--ds-radius-lg);
  background: var(--ds-white);
  border: 1px solid var(--ds-line);
  box-shadow: var(--ds-shadow);
}

.ds-voice[hidden] {
  display: none;
}

.ds-voice.is-entering {
  animation: ds-fade-in 0.35s ease-out;
}

@keyframes ds-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.ds-voice-key {
  margin: 18px 0 18px;
  font-size: clamp(1.375rem, 2.3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ds-navy);
}

.ds-voice-key::before {
  content: "„";
}

.ds-voice-key::after {
  content: "“";
}

.ds-voice blockquote {
  margin: 0 0 24px;
  padding-left: 18px;
  border-left: 3px solid var(--trade);
  color: var(--ds-text);
  line-height: 1.7;
}

.ds-voice-person strong {
  display: block;
  color: var(--ds-navy);
  font-size: 1.0625rem;
}

.ds-voice-person span {
  display: block;
  font-size: 0.875rem;
  color: var(--ds-muted);
}

/* Auswahl der Personen */
/* Auswahl steht über der Stimme, wie Reiter über ihrem Inhalt */
.ds-voice-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.ds-voice-picker {
  display: flex;
  flex: 1;
  gap: 10px;
  margin: 0;
  padding: 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.ds-voice-picker::-webkit-scrollbar {
  display: none;
}

.ds-voice-picker button {
  flex: none;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  box-shadow: 0 0 0 2px var(--ds-white), 0 0 0 4px transparent;
  opacity: 0.55;
  filter: saturate(0.6);
  transition: opacity 0.2s, filter 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ds-voice-picker button:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-2px);
}

.ds-voice-picker button[aria-selected="true"] {
  opacity: 1;
  filter: none;
  box-shadow: 0 0 0 2px var(--ds-white), 0 0 0 4px var(--trade);
}

.ds-voice-picker button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ds-blue), transparent 50%);
  outline-offset: 4px;
}

.ds-voice-picker img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ds-voice-count {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ds-muted);
}

@media (max-width: 991px) {
  .ds-voice {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
  }
  .ds-voice-nav .ds-icon-btn,
  .ds-voice-count {
    display: none;
  }
}

/* Nur so hoch wie der Inhalt: keine leere Navy-Fläche über dem Navy-Footer */
.ds-contact-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 44px 40px;
  border-radius: var(--ds-radius-lg);
  background: var(--ds-navy);
  color: rgba(255, 255, 255, 0.82);
  --pattern-width: 80%;
  --pattern-fade: to top;
}

.ds-contact-panel::before {
  inset: auto 0 0 0;
  width: auto;
  height: 55%;
}

.ds-contact-panel > * {
  position: relative;
  z-index: 1;
}

.ds-contact-panel .ds-contact-list {
  margin-bottom: 40px;
}

.ds-contact-panel h3 {
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.ds-contact-panel h2 {
  font-size: 2rem;
  margin: 10px 0 12px;
}

.ds-contact-list {
  display: grid;
  gap: 22px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.ds-contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ds-contact-list small {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-blue-light);
}

.ds-contact-list a,
.ds-contact-list span {
  color: var(--ds-white);
  font-weight: 600;
}

@media (max-width: 575px) {
  .ds-contact-panel,
  .ds-form {
    padding: 32px 22px;
  }
}

/* Abschnitt "So läuft es ab": schmaleres Wabenmuster von links */
.ds-steps-section {
  --pattern-width: 35%;
}
