/* Eigene CSS-Anpassungen hier eintragen – wird nach style.css geladen. */

/* ---- Team-Seite ---- */
.team-stats-wrap { position: relative; z-index: 5; margin-top: -2.75rem; }
.team-stats { display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; border: 1.5px solid hsl(var(--primary) / 0.18); border-radius: 1.5rem; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.18); overflow: hidden; max-width: 64rem; margin: 0 auto; }
.team-stats > div { padding: 1.5rem 1rem; text-align: center; border-right: 1px solid hsl(var(--border) / 0.5); border-bottom: 1px solid hsl(var(--border) / 0.5); }
.team-stats > div:nth-child(2n) { border-right: 0; }
.team-stats > div:nth-last-child(-n+2) { border-bottom: 0; }
.team-stats strong { display: block; font-size: 2rem; font-weight: 700; line-height: 1.1; color: hsl(var(--primary)); }
.team-stats span { display: block; margin-top: .375rem; font-size: .8125rem; color: hsl(var(--muted-foreground)); }
@media (min-width: 768px) {
  .team-stats { grid-template-columns: repeat(4, 1fr); }
  .team-stats > div { border-bottom: 0; border-right: 1px solid hsl(var(--border) / 0.5); padding: 1.75rem 1rem; }
  .team-stats > div:nth-child(2n) { border-right: 1px solid hsl(var(--border) / 0.5); }
  .team-stats > div:last-child { border-right: 0; }
  .team-stats strong { font-size: 2.5rem; }
}

.team-nav { margin-top: 0; background: hsl(var(--background)); border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border) / 0.5); }
.team-nav__inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; padding: 1.25rem 0; }
.team-nav a { text-align: center; }
.team-nav a:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; min-width: 50%; }
@media (min-width: 640px) { .team-nav__inner { display: flex; flex-wrap: wrap; justify-content: center; } .team-nav a:last-child:nth-child(odd) { min-width: 0; } }
.team-nav a { padding: .5rem 1rem; border-radius: 9999px; font-size: .8125rem; font-weight: 600; color: hsl(var(--muted-foreground)); border: 1px solid hsl(var(--border)); background: #fff; transition: all .2s; white-space: nowrap; }
.team-nav a:hover { color: #fff; background: hsl(var(--primary)); border-color: hsl(var(--primary)); }
@media (min-width: 1024px) {
  .team-nav { margin-top: 0; }
  .team-nav__inner { padding: 1rem 0; }
}

.team-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 1.75rem; margin: 0 auto; }
.team-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1.5px solid hsl(var(--primary) / 0.2); border-radius: 1.5rem;
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color .4s, box-shadow .4s, transform .4s;
}
.team-card:hover { border-color: hsl(var(--primary) / 0.5); box-shadow: 0 28px 60px -22px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.05); transform: translateY(-3px); }
.team-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: hsl(var(--muted)); }
.team-card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, hsl(var(--primary) / 0.55), transparent 55%),
    linear-gradient(to right, hsl(var(--primary) / 0.5), hsl(var(--primary) / 0.12) 50%, transparent);
}
.team-card__img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s; }
.team-card:hover .team-card__img { transform: scale(1.04); }
.team-card__badge { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; padding: .375rem .75rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; color: #fff; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(6px); }
.team-card__body { display: flex; flex-direction: column; flex: 1; padding: 0 var(--card-pad, 1.75rem) var(--card-pad, 1.75rem); }
.team-card__name { font-size: 1.625rem; font-weight: 600; line-height: 1.15; color: hsl(var(--foreground)); }
.team-card__role { display: inline-block; align-self: flex-start; margin-top: .625rem; padding: .25rem .625rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; color: hsl(var(--primary)); background: hsl(var(--primary) / 0.08); }
.team-card__text { font-size: .9375rem; line-height: 1.65; color: hsl(var(--muted-foreground)); margin-top: 1rem; }
.team-card__text + .team-card__text { margin-top: .75rem; }
.team-card__list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-direction: column; gap: .625rem; }
.team-card__list li { display: flex; align-items: center; gap: .625rem; font-size: .875rem; font-weight: 600; color: hsl(var(--foreground)); }
.team-card__list svg { flex: 0 0 auto; width: 1.125rem; height: 1.125rem; color: hsl(var(--primary)); }
.team-card__links { display: flex; align-items: center; gap: .625rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px dashed hsl(var(--border)); }
.team-card__btn { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: .625rem; font-size: .8125rem; font-weight: 600; color: #fff; background: hsl(var(--primary)); border: 1px solid hsl(var(--primary)); transition: all .2s; }
.team-card__btn:hover { background: hsl(var(--primary) / 0.88); }
.team-card__btn--ghost { color: hsl(var(--primary)); background: transparent; }
.team-card__btn--ghost:hover { color: #fff; background: hsl(var(--primary)); }
.team-card__btn svg { width: .9375rem; height: .9375rem; }
@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Einheitliche Cards: Foto, Name, Rolle, Text, Liste und Trennlinie/Button sitzen
   in jeder Zeile des Rasters auf gleicher Höhe (Subgrid). */
.team-card { --card-pad: 1.5rem; }
.team-card__name { margin-top: var(--card-pad); }
.team-card__links { min-height: 3.5rem; }
@media (min-width: 640px) { .team-card { --card-pad: 1.75rem; } }
@supports (grid-template-rows: subgrid) {
  .team-grid { grid-auto-rows: auto; row-gap: 0; column-gap: 1.75rem; margin-bottom: -1.75rem; }
  .team-card { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; margin-bottom: 1.75rem; }
  .team-card__body { display: contents; }
  .team-card__media { grid-row: 1; }
  .team-card__name { grid-row: 2; }
  .team-card__role { grid-row: 3; justify-self: start; }
  .team-card__text { grid-row: 4; }
  .team-card__list { grid-row: 5; align-self: start; }
  .team-card__links { grid-row: 6; align-self: end; }
  .team-card__name, .team-card__role, .team-card__text, .team-card__list, .team-card__links { margin-inline: var(--card-pad); }
  .team-card__links { margin-top: 1.5rem; margin-bottom: var(--card-pad); padding-top: 1.25rem; box-sizing: border-box; }
}
@media (min-width: 1024px) {
  .team-grid { column-gap: 2rem; }
  @supports (grid-template-rows: subgrid) { .team-grid { row-gap: 0; margin-bottom: -2rem; } .team-card { margin-bottom: 2rem; } }
}

/* Gruppen nach Funktion: Titel + eigenes Raster, Einzelkarten zentriert */
.team-group + .team-group { margin-top: 4rem; }
@media (min-width: 768px) { .team-group + .team-group { margin-top: 5rem; } }
/* Immer höchstens zwei Cards pro Reihe, großzügig breit und zentriert */
.team-grid { max-width: 64rem; margin-inline: auto; }
@media (min-width: 640px) { .team-card__media { aspect-ratio: 4 / 3; } .team-card__img { object-position: center 10%; } 
  .team-card__img[src*="oskar-rudolph"] { object-position: center 20%; }
  .team-card__img[src*="niklas-kose"] { object-position: center 16%; }
  .team-card__img[src*="rick-schmaehling"] { object-position: center 7%; }
  .team-card__img[src*="frank-roensch"] { object-position: center 0%; }
  .team-card__img[src*="nicolas-guenther"] { object-position: center 15%; }
  .team-card__img[src*="maurice-kriegel"] { object-position: center 45%; } }
@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 30rem)); justify-content: center; }
  .team-grid[data-count="1"] { grid-template-columns: minmax(0, 30rem); }
}


/* ---- Startseite: Team-Teaser (Text links, Foto-Mosaik rechts) ---- */
.team-teaser { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.team-teaser__cta { display: flex; align-items: center; gap: 1.25rem; margin-top: 2rem; flex-wrap: wrap; }
.team-teaser__avatars { display: flex; }
.team-teaser__avatars img { width: 2.75rem; height: 2.75rem; border-radius: 9999px; object-fit: cover; object-position: top; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
.team-teaser__avatars img + img { margin-left: -.625rem; }
.team-teaser__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: .75rem; aspect-ratio: 1.45 / 1; }
.team-teaser__photo { position: relative; overflow: hidden; border-radius: 1.25rem; background: hsl(var(--muted)); min-height: 0; }
.team-teaser__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-teaser__photo--tall { grid-row: 1 / span 2; }
@media (min-width: 1024px) {
  .team-teaser { grid-template-columns: 1fr 1.15fr; gap: 4rem; }
  .team-teaser__grid { gap: .875rem; }
}

/* ---- Team-Seite: Intro (Wer wir sind) ---- */
.team-intro { padding: 4.5rem 0 4rem; background: hsl(var(--background)); }
.team-intro__head { max-width: 48rem; margin: 0 auto; text-align: center; }
.team-intro__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 80rem; margin: 3rem auto 0; }
.team-intro-card { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 2rem; border-radius: 1rem; background: #fff; border: 1px solid hsl(var(--border) / 0.3); box-shadow: 0 8px 30px -14px rgba(0, 0, 0, 0.12); transition: border-color .3s, box-shadow .3s; }
.team-intro-card:hover { border-color: hsl(var(--primary) / 0.3); box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.18); }
.team-intro-card__bg { position: absolute; right: -1.25rem; bottom: -1.25rem; width: 9.5rem; height: 9.5rem; color: hsl(var(--primary) / 0.05); transition: transform .5s, color .5s; pointer-events: none; }
.team-intro-card:hover .team-intro-card__bg { transform: scale(1.1); color: hsl(var(--primary) / 0.08); }
.team-intro-card__bg svg { width: 100%; height: 100%; stroke-width: 1; }
.team-intro-card__icon { position: relative; display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: .75rem; color: hsl(var(--primary)); background: hsl(var(--primary) / 0.08); }
.team-intro-card__icon svg { width: 1.375rem; height: 1.375rem; }
.team-intro-card__label { position: relative; margin-top: 1.75rem; font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.team-intro-card h3 { position: relative; margin-top: .625rem; font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: hsl(var(--foreground)); }
.team-intro-card__text { position: relative; margin-top: .875rem; font-size: .9375rem; line-height: 1.7; color: hsl(var(--muted-foreground)); }
.team-intro-card--dark { color: #fff; border-color: transparent; background: linear-gradient(145deg, hsl(var(--primary)), hsl(var(--primary) / 0.78)); box-shadow: 0 20px 50px -22px hsl(var(--primary) / 0.7); }
.team-intro-card--dark:hover { border-color: transparent; box-shadow: 0 26px 60px -22px hsl(var(--primary) / 0.8); }
.team-intro-card--dark .team-intro-card__bg { color: rgba(255, 255, 255, 0.08); }
.team-intro-card--dark:hover .team-intro-card__bg { color: rgba(255, 255, 255, 0.13); }
.team-intro-card--dark .team-intro-card__icon { color: #fff; background: rgba(255, 255, 255, 0.16); }
.team-intro-card--dark .team-intro-card__label { color: rgba(255, 255, 255, 0.75); }
.team-intro-card--dark h3 { color: #fff; }
.team-intro-card--dark .team-intro-card__text { color: rgba(255, 255, 255, 0.85); }
@media (min-width: 768px) { .team-intro { padding-top: 6rem; } }
@media (min-width: 1024px) { .team-intro__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* ---- Team-Seite: Hero-Höhe ---- */
.team-hero { display: flex; align-items: center; min-height: 20rem; }
.team-hero > .container-custom { width: 100%; padding-top: 6rem; padding-bottom: 3.5rem; }
@media (min-width: 768px) { .team-hero { min-height: 26rem; } .team-hero > .container-custom { padding-top: 7rem; padding-bottom: 5rem; } }

.team-section__head { max-width: 44rem; margin: 0 auto 2.5rem; text-align: center; }
@media (min-width: 768px) { .team-section__head { margin-bottom: 3rem; } }

/* ---- Team-Seite: Karriere-CTA ---- */
.team-career__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transition: transform 1.2s; }
.group:hover .team-career__bg { transform: scale(1.04); }
.team-career__shade { position: absolute; inset: 0; background: linear-gradient(to right, hsl(var(--primary) / 0.88), hsl(var(--primary) / 0.74) 55%, hsl(var(--primary) / 0.6)); }
.team-career__btn { display: inline-flex; align-items: center; gap: .75rem; height: 2.75rem; padding: 0 .5rem 0 2rem; border-radius: .375rem; font-size: .875rem; font-weight: 500; color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.12); border: 1px dashed rgba(255, 255, 255, 0.4); cursor: not-allowed; user-select: none; }
.team-career__soon { padding: .25rem .625rem; border-radius: 9999px; font-size: .6875rem; font-weight: 600; letter-spacing: .02em; color: hsl(var(--primary)); background: #fff; }
.team-career__shade ~ div .section-label, .team-career__shade ~ div h2, .team-career__shade ~ div p { color: #fff !important; }
.team-career__btn { color: #fff; }

/* ---- Footer-Watermark (Logo) ---- */
footer.dark-section { position: relative; overflow: hidden; }
footer.dark-section::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6%;
  transform: translateX(-50%);
  width: min(62%, 760px);
  aspect-ratio: 900 / 307;
  background: url("logo.svg") no-repeat center / contain;
  filter: brightness(0) invert(1);
  opacity: .08;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}
footer.dark-section > * { position: relative; z-index: 1; }
@media (max-width: 767px) { footer.dark-section::after { width: 92%; bottom: -2%; } }
/* Team: Detailseite einer Person */
.member-hero { padding: 7rem 0 4rem; }
@media (min-width: 768px) { .member-hero { padding: 9rem 0 6rem; } }
.member-back { display: inline-block; margin-bottom: 1.75rem; font-size: .875rem; font-weight: 600; color: hsl(var(--primary)); }
.member-back:hover { text-decoration: underline; }
.member-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .member-grid { grid-template-columns: 9fr 15fr; gap: 5rem; } .member-photo { position: sticky; top: 7rem; } }
.member-photo__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 1.5rem; }
.member-lead { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.65; color: hsl(var(--muted-foreground)); }
.team-card__profile { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 1rem; margin: 1.5rem 0 0; padding: 1rem; border-radius: 1rem; background: hsl(var(--primary) / 0.05); }
.team-card__profile dt { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: hsl(var(--muted-foreground)); }
.team-card__profile dd { margin: .125rem 0 0; font-size: .875rem; font-weight: 600; color: hsl(var(--foreground)); }
.team-card__profile .wide { grid-column: 1 / -1; }
.team-card__subhead { margin-top: 1.75rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: hsl(var(--primary)); }
.team-card__timeline { list-style: none; margin: .75rem 0 0; padding: 0 0 0 1rem; border-left: 2px solid hsl(var(--primary) / 0.2); display: flex; flex-direction: column; gap: .75rem; }
.team-card__timeline strong { display: block; font-size: .875rem; color: hsl(var(--foreground)); }
.team-card__timeline span { font-size: .875rem; line-height: 1.5; color: hsl(var(--muted-foreground)); }
.member-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.member-actions .team-card__btn { padding: .625rem 1.125rem; }

/* Team: Vermerk "Folgt in Kürze" */
.team-card__soon { display: inline-flex; align-items: center; min-height: 2.125rem; padding: 0 .75rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; color: hsl(var(--muted-foreground)); background: hsl(var(--muted)); }

.team-card__btn .team-card__logo { width: 1.25rem; height: 1.25rem; }

/* "So arbeiten wir": Zickzack-Timeline (Desktop) – 1 links, 2 rechts, 3 links, 4 rechts, 5 links */
@media (min-width: 768px) {
  #prozess .container-custom > .relative.max-w-3xl { max-width: 64rem; }
  #prozess .container-custom > .relative.max-w-3xl > .absolute { left: 50%; }
  #prozess .container-custom > .relative.max-w-3xl > .space-y-5 > .relative {
    width: 50%;
    padding-left: 0;
    padding-right: 2.5rem;
  }
  #prozess .container-custom > .relative.max-w-3xl > .space-y-5 > .relative:nth-child(even) {
    margin-left: 50%;
    padding-left: 2.5rem;
    padding-right: 0;
  }
  #prozess .container-custom > .relative.max-w-3xl > .space-y-5 > .relative:not(:first-child) { margin-top: -3rem; }
  #prozess .container-custom > .relative.max-w-3xl > .space-y-5 > .relative:nth-child(odd) > .absolute { left: auto; right: -2rem; }
  #prozess .container-custom > .relative.max-w-3xl > .space-y-5 > .relative:nth-child(even) > .absolute { left: -2rem; }
}

/* Timeline: mitlaufende Linie in Markenblau, ohne Punkte */
#prozess .tl-line { background: hsl(var(--border)); width: 3px; margin-left: -1px; }
#prozess .tl-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0;
  background: hsl(var(--primary));
  border-radius: 999px;
}
@media (min-width: 768px) {
  #prozess .container-custom > .relative.max-w-3xl > .space-y-5 > .relative > .absolute { display: none; }
}

/* Timeline mobil: Linie ganz links */
@media (max-width: 767px) {
  #prozess .container-custom > .relative.max-w-3xl > .tl-line { display: block; left: 6px; }
  #prozess .container-custom > .relative.max-w-3xl > .space-y-5 { padding-left: 1.5rem; }
}

/* Hero mit Hintergrundbild, Text linksbündig (Erstgesprächsseite) */
.hero-bild { min-height: 36rem; display: flex; align-items: center; }
.hero-bild__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-bild__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, hsl(var(--dark-section) / .94) 0%, hsl(var(--dark-section) / .82) 40%, hsl(var(--dark-section) / .25) 75%, hsl(var(--dark-section) / .1) 100%);
}
.hero-bild__inner { width: 100%; padding-top: 8rem; padding-bottom: 5rem; }
@media (max-width: 767px) {
  .hero-bild { min-height: 0; }
  .hero-bild__overlay { background: hsl(var(--dark-section) / .85); }
  .hero-bild__inner { padding-top: 7rem; padding-bottom: 4rem; }
}

/* Erstgesprächsseite: Kundenstimmen (Video links, Text rechts) */
.kundenstimmen { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) {
  .kundenstimmen { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.video-platzhalter { background: #e5e7eb; color: #6b7280; }
.video-platzhalter span { color: inherit; }
.video-platzhalter span:first-child { border-color: rgba(107,114,128,.45); background: rgba(107,114,128,.12); }
