/* ==============================================
   KOMPONENTEN: Hero, Angebote, Editorial, Slideshow
   Gemeinsame Stylesheets der statischen KoelnSamba-Website.
   Hinweise: Abschnitte unten sind nach Funktion sortiert.
   ============================================== */


/* -------- 01 / Hero-Bereiche und Faktenstreifen -------- */
/* Startseite: Hero-Bereich, Faktenstreifen und responsiver Aufbau */

.facts-strip[data-komponente="facts-strip"] {
  background: var(--color-brand);
  color: #fff;
  width: 100%;
}

.fact-boxes[data-komponente="facts-strip"] {
  grid-template-columns: repeat(var(--facts-count),minmax(0,1fr));
  gap: 14px 0;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 24px;
  list-style: none;
  display: grid;
}

.fact-boxes[data-komponente="facts-strip"] li[data-komponente="facts-strip"] {
  text-align: center;
  border-left: 1px solid #ffffff45;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: 5px 22px;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.45;
  display: flex;
}

.fact-boxes[data-komponente="facts-strip"] li[data-komponente="facts-strip"]:first-child {
  border-left: 0;
}

.fact-boxes[data-komponente="facts-strip"] span[data-komponente="facts-strip"] {
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (width<=760px) {
  .fact-boxes[data-komponente="facts-strip"] {
    padding: 16px 12px;
  }

  .fact-boxes[data-komponente="facts-strip"] li[data-komponente="facts-strip"] {
    padding: 10px;
    font-size: clamp(.68rem,2.2vw,.8125rem);
  }
}

.service-hero:before {
  background: linear-gradient(90deg,#0c0f1240,#0c0f1205 75%);
}

.service-hero-copy,.hero-copy {
  background: #0c0f12b0;
  border-radius: 18px;
  max-width: 620px;
  padding: 26px;
}

.service-hero h1 {
  font-size: clamp(2rem,3.2vw,3.3rem);
}

.service-hero-photo img {
  object-position: 65% 42%;
}

.hero-about .service-hero-photo img {
  object-position: 35% center;
  transform: scaleX(-1);
}

.hero-privateLesson .service-hero-photo img {
  object-fit: contain;
  object-position: right center;
  width: 58%;
  margin-left: auto;
}

.hero-teamWorkshop .service-hero-photo img {
  object-position: 35% center;
  transform-origin: 20%;
  transform: scale(1.08);
}

.hero-mediaHero .service-hero-photo img {
  object-position: 66% center;
}

.hero-hero .service-hero-photo img {
  object-position: 65% 45%;
}

.home-hero {
  isolation: isolate;
  background: #1b1d20;
  align-items: center;
  min-height: 100svh;
  padding: 140px 0 100px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.home-slides,.home-slide {
  z-index: -2;
  position: absolute;
  inset: 0;
}

.home-slide {
  opacity: 0;
  transition: opacity 1.8s;
}

.home-slide.is-active {
  opacity: 1;
}

.home-slide picture,.home-slide img {
  object-fit: cover;
  object-position: 40% 47%;
  width: 100%;
  height: 100%;
}

.home-hero-content {
  width: min(1320px,100% - 72px);
}

.hero-copy {
  max-width: 580px;
}

.hero-copy h1 {
  color: #fff;
  margin: 14px 0 20px;
  font-size: clamp(2rem,3.2vw,3.5rem);
}

.hero-copy p,.hero-copy .eyebrow {
  color: #fff;
}

.hero-copy p {
  font-size: 1rem;
  line-height: 1.7;
}

.slide-controls {
  gap: 8px;
  max-width: calc(100% - 24px);
  display: flex;
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%);
}

.slide-controls button {
  color: #fff;
  white-space: nowrap;
  background: #151515b8;
  border: 1px solid #ffffff70;
  border-radius: 8px;
  min-height: 44px;
  padding: 9px 13px;
  font-size: .75rem;
}

.slide-controls button[aria-pressed=true] {
  background: var(--color-brand);
}

.home-facts {
  padding: 6px 0;
}

@media (width<=760px) {
  .service-hero,.home-hero {
    align-items: end;
    min-height: max(850px,100svh);
    padding: 380px 0 70px;
  }

  .service-hero-copy {
    max-width: none;
    margin: 0;
    padding: 20px;
  }

  .service-hero-copy>p {
    font-size: .9375rem;
  }

  .service-hero:before {
    background: linear-gradient(#0000 25%,#0c0f1260);
  }

  .service-hero-photo img {
    object-position: 65% top;
  }

  .hero-about .service-hero-photo img {
    object-position: 70% top;
  }

  .hero-privateLesson .service-hero-photo img {
    object-position: center top;
    width: 100%;
    height: 65%;
  }

  .hero-teamWorkshop .service-hero-photo img {
    object-position: 43% top;
    transform: none;
  }

  .hero-mediaHero .service-hero-photo img {
    object-position: 64% top;
  }

  .home-hero {
    padding-bottom: 84px;
  }

  .home-hero-content {
    width: calc(100% - 36px);
  }

  .hero-copy {
    padding: 20px;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero-copy p {
    font-size: .9375rem;
  }

  .home-slide img {
    object-position: 53% top;
  }

  .home-slide picture,.home-slide img {
    height: 70%;
  }

  .home-slide picture img {
    height: 100%;
  }

  .home-slide {
    background: #1b1d20;
  }

  .slide-controls {
    bottom: 20px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .home-slide {
    transition: none;
  }
}

.service-hero-copy,.hero-copy {
  text-shadow: 0 2px 22px #0009;
  background: 0 0;
  border-radius: 0;
  padding: 0;
}

.service-hero-copy {
  margin-left: 0;
}

.service-hero:before,.home-hero:before {
  content: "";
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg,#080b10b8 0%,#080b1080 32%,#080b101c 65%,#0000 90%);
  position: absolute;
  inset: 0;
}

.hero-privateLesson {
  background: #020304;
}

.hero-privateLesson:before {
  background: linear-gradient(90deg,#020304 32%,#02030480 52%,#0000 72%);
}

.hero-privateLesson .service-hero-photo {
  background: #020304;
}

.hero-privateLesson .service-hero-photo img {
  object-fit: contain;
  object-position: right center;
  width: 100%;
  height: 100%;
}

@media (width<=760px) {
  .service-hero:before,.home-hero:before {
    background: linear-gradient(#0000 10%,#080b1020 32%,#080b10c0 74%,#080b10e8 100%);
  }

  .service-hero-copy,.hero-copy {
    padding: 0;
  }

  .hero-privateLesson .service-hero-photo img {
    object-position: center top;
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .home-hero {
    padding-bottom: 45px;
  }

  .home-slide picture,.home-slide img {
    height: 100%;
  }

  .home-slide img {
    object-position: 54% top;
  }

  .hero-privateLesson:before {
    background: linear-gradient(#0000 20%,#02030490 58%,#020304ec);
  }
}

html .service-hero-copy,html .hero-copy {
  text-shadow: 0 2px 22px #0009;
  background: 0 0;
  border-radius: 0;
  padding: 0;
}

html .service-hero-copy {
  margin: 0;
}

html .service-hero:before {
  background: linear-gradient(90deg,#080b10b8 0%,#080b1080 32%,#080b101c 65%,#0000 90%);
}

html .hero-privateLesson .service-hero-photo img {
  mask-image: linear-gradient(90deg,#0000 38%,#000 64%);
}

html .hero-privateLesson:before {
  background: linear-gradient(90deg,#020304 30%,#0000 78%);
}

@media (width<=760px) {
  html .service-hero:before {
    background: linear-gradient(#0000 10%,#080b1020 32%,#080b10c0 74%,#080b10e8 100%);
  }

  html .hero-privateLesson .service-hero-photo img {
    mask-image: none;
  }
}

html .service-hero-copy,html .hero-copy {
  text-shadow: 0 2px 12px #000e,0 0 32px #000b;
}

/* Anzahl der Spalten im Faktenstreifen (HTML ohne Inline-CSS) */
.fakten-3 { --facts-count: 3; }
.fakten-4 { --facts-count: 4; }


/* -------- 02 / Teamwork- und Teambuilding-Elemente -------- */
/* Teambuilding: spezielle Seitenelemente und responsive Regeln */

.design-page {
  color: #25252a;
  --design-width: 1320px;
  background: #fff;
  padding-bottom: 56px;
}

.design-page main {
  padding-top: 0;
}

.design-page .masthead {
  position: absolute;
  top: 22px;
}

.design-page .nav-glass {
  backdrop-filter: none;
  background: #fff;
  border: 1px solid #e4dfdc;
  box-shadow: 0 8px 28px #0000000b;
}

.design-page .logo-link img {
  object-fit: contain;
}

.team-design {
  overflow: clip;
}

.team-design h1,.team-design h2,.team-design h3 {
  text-wrap: balance;
  letter-spacing: -.045em;
}

.team-design h1 {
  max-width: 15ch;
  margin: 22px 0 26px;
  font-size: clamp(2.7rem,4.8vw,5.4rem);
  line-height: 1.03;
}

.team-design h2 {
  margin: 0;
  font-size: clamp(2rem,3.2vw,3.35rem);
  line-height: 1.1;
}

.team-design p {
  line-height: 1.8;
}

.team-design .eyebrow {
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 750;
}

.team-design .button {
  text-align: center;
  border-radius: 5px;
  max-width: 100%;
  min-height: 50px;
  transition: transform .18s,background .18s;
}

.team-design .button:hover {
  transform: translateY(-2px);
}

.team-hero {
  isolation: isolate;
  align-items: center;
  min-height: 800px;
  display: grid;
  position: relative;
}

.team-hero-image {
  overflow: hidden;
}

.team-hero-image picture,.team-hero-image img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  display: block;
}

.team-hero-content {
  z-index: 1;
  position: relative;
}

.team-hero-content>p {
  max-width: 60ch;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.hero-more {
  align-items: center;
  gap: 20px;
  width: fit-content;
  min-height: 44px;
  margin-top: 24px;
  font-size: .85rem;
  font-weight: 650;
  text-decoration: none;
  display: flex;
}

.hero-more span {
  font-size: 1.4rem;
}

.design-breadcrumb,.team-facts,.team-jump,.section-inner,.team-faq,.team-close {
  width: min(var(--design-width),calc(100% - 96px));
  margin-inline: auto;
}

.design-breadcrumb .container {
  width: 100%;
  max-width: none;
}

.design-breadcrumb .breadcrumbs {
  padding-block: 22px;
}

.team-facts {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0;
  padding: 22px 0 32px;
  list-style: none;
  display: grid;
}

.team-facts li {
  align-items: baseline;
  gap: 15px;
  padding: 15px 22px 15px 0;
  font-size: .93rem;
  font-weight: 600;
  display: flex;
}

.team-facts li span {
  color: #b50d24;
  letter-spacing: .05em;
  font-size: .7rem;
}

.team-jump {
  border-block: 1px solid #dedbd7;
  flex-wrap: wrap;
  gap: 10px 30px;
  padding: 10px 0;
  display: flex;
}

.team-jump a {
  min-height: 44px;
  padding: 10px 0;
  font-size: .88rem;
  font-weight: 650;
}

.team-jump a:last-child {
  color: #b50d24;
  margin-left: auto;
}

.team-section {
  padding: 88px 0;
  position: relative;
}

.section-inner {
  grid-template-columns: 1fr 1.1fr;
  gap: 40px 90px;
  display: grid;
  position: relative;
}

.section-heading {
  min-width: 0;
}

.chapter {
  color: #b50d24;
  letter-spacing: .12em;
  margin-bottom: 20px;
  font-size: .78rem;
  font-weight: 700;
  display: block;
}

.section-body {
  min-width: 0;
}

.section-body>p {
  max-width: 66ch;
  margin: 0 0 20px;
}

.section-body p:last-child {
  margin-bottom: 0;
}

.team-story-image {
  grid-column: 1/-1;
  margin: 16px 0 0;
  overflow: hidden;
}

.team-story-image picture,.team-story-image img {
  object-fit: cover;
  width: 100%;
  max-height: 580px;
  display: block;
}

.design-divider {
  object-fit: cover;
  width: min(760px,75%);
  height: 90px;
  margin: 45px auto -40px;
  display: block;
}

.design-steps {
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.design-steps li {
  border-top: 1px solid #d8d3d0;
  grid-template-columns: 45px 1fr;
  gap: 15px;
  padding: 20px 0;
  display: grid;
}

.design-steps li span {
  color: #b50d24;
  font-size: 1.2rem;
  font-weight: 750;
}

.design-steps li p {
  margin: 0;
}

.design-cards {
  gap: 28px;
  display: grid;
}

.design-cards article {
  border-top: 2px solid #b50d24;
  padding-top: 20px;
}

.design-cards h3 {
  margin: 0 0 12px;
  font-size: 1.65rem;
  line-height: 1.2;
}

.design-cards p {
  margin: 0;
  font-size: .98rem;
}

.design-occasions {
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.design-occasions li {
  border-bottom: 1px solid #d8d3d0;
  gap: 16px;
  padding: 16px 0;
  display: flex;
}

.design-occasions li:before {
  content: "↗";
  color: #b50d24;
}

.team-design .service-reference-names {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0;
  margin-top: 0;
}

.team-design .service-reference-names li {
  box-shadow: none;
  background: 0 0;
  border: 0;
  border-bottom: 1px solid #d8d3d0;
  border-radius: 0;
  padding: 22px 10px 22px 0;
  font-size: 1.05rem;
}

.team-design .service-video {
  max-width: none;
  margin: 0;
}

.team-design .service-video video {
  border-radius: 0;
}

.section-einblick .section-inner {
  grid-template-columns: 1fr;
}

.section-einblick .section-heading {
  max-width: 650px;
}

.team-faq {
  padding: 70px 0;
}

.team-faq .service-section {
  border: 0;
  padding: 0;
}

.team-faq .faq-list {
  max-width: 900px;
  margin: 32px 0 0 auto;
  display: block;
}

.team-faq .faq-list details {
  background: 0 0;
  border: 0;
  border-bottom: 1px solid #d8d3d0;
  border-radius: 0;
  padding: 0;
}

.team-faq .faq-list summary {
  min-height: 74px;
  padding: 22px 0;
  font-size: 1rem;
}

.team-faq .faq-list details>p {
  max-width: 66ch;
}

.team-close {
  padding: 70px 0 50px;
}

.team-close h2 {
  max-width: 19ch;
  margin: 20px 0;
}

.team-close p {
  max-width: 60ch;
  margin-bottom: 26px;
}

.city-edge {
  background: #fff;
  width: 100%;
  margin-top: 20px;
  line-height: 0;
  overflow: hidden;
}

.city-edge img {
  object-fit: fill;
  width: 100%;
  height: auto;
  max-height: 400px;
  display: block;
}

.design-page .site-footer {
  background: #b50d24;
  border: 0;
  margin: 0;
  padding-top: 48px;
}

.design-page .site-footer:before {
  display: none;
}

.design-switch {
  z-index: 80;
  color: #25252a;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  font-size: 12px;
  display: flex;
  position: fixed;
  bottom: 12px;
  right: 18px;
  box-shadow: 0 3px 20px #0002;
}

.design-switch>span {
  padding: 0 12px 0 5px;
}

.design-switch a {
  border-radius: 4px;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  font-weight: 700;
  display: grid;
}

.design-switch a[aria-current] {
  color: #fff;
  background: #b50d24;
}

.team-design :is(h2,h1) {
  scroll-margin-top: 30px;
}

.team-design :focus-visible {
  outline-offset: 5px;
  outline: 3px solid #b50d24;
}

@media (width>=1800px) {
  .team-hero {
    min-height: 880px;
  }
}

@media (width<=1000px) {
  .section-inner {
    gap: 32px;
  }

  .design-breadcrumb,.team-facts,.team-jump,.section-inner,.team-faq,.team-close {
    width: calc(100% - 56px);
  }
}

@media (width<=800px) {
  .design-page .masthead {
    top: 16px;
  }

  .team-design h1 {
    font-size: clamp(2.55rem,9.5vw,4.3rem);
  }

  .team-design h2 {
    font-size: clamp(1.9rem,7vw,2.7rem);
  }

  .team-hero {
    min-height: 0;
  }

  .team-hero-content>p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .design-breadcrumb,.team-facts,.team-jump,.section-inner,.team-faq,.team-close {
    width: calc(100% - 40px);
  }

  .team-facts {
    grid-template-columns: 1fr 1fr;
    padding: 10px 0 24px;
  }

  .team-facts li {
    gap: 8px;
    padding: 12px 10px 12px 0;
    font-size: .82rem;
  }

  .team-facts li span {
    display: none;
  }

  .team-jump {
    gap: 0 24px;
  }

  .team-jump a:last-child {
    margin-left: 0;
  }

  .team-section {
    padding: 52px 0;
  }

  .section-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .chapter {
    margin-bottom: 14px;
  }

  .team-story-image {
    margin-top: 8px;
  }

  .team-story-image img {
    min-height: 240px;
  }

  .design-divider {
    width: 90%;
    height: 60px;
    margin: 24px auto -20px;
  }

  .team-faq {
    padding: 48px 0;
  }

  .team-close {
    padding: 48px 0 18px;
  }

  .team-close h2 {
    max-width: 22ch;
  }

  .city-edge img {
    object-fit: cover;
    object-position: center;
    min-height: 140px;
  }

  .design-page .site-footer {
    padding-top: 35px;
  }

  .team-design .service-links {
    display: flex;
  }

  .team-design .button {
    padding-inline: 18px;
    font-size: .88rem;
  }

  .design-switch {
    bottom: 8px;
    right: 8px;
  }

  .design-switch>span {
    font-size: 11px;
  }

  .team-design .service-reference-names {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion:reduce) {
  .team-design *,.team-design :before,.team-design :after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

body.design-page:not(.home-page) main {
  padding-top: 0;
}

.design-page .team-design p,.design-page .team-design h1,.design-page .team-design h2,.design-page .team-design h3 {
  color: inherit;
}

.design-page .team-design .service-video figcaption {
  color: inherit;
  opacity: .8;
}

[data-design=b] .section-ablauf p {
  color: #fff;
}

.design-page .team-design .instrument-art {
  height: auto;
}

@media (prefers-reduced-motion:no-preference) {
  .team-hero-content {
    animation: .55s ease-out both design-enter;
  }

  .team-story-image img {
    transition: transform .5s;
  }

  .team-story-image:hover img {
    transform: scale(1.025);
  }
}

@keyframes design-enter {
  0% {
    opacity: .65;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* -------- 03 / Videoplayer der Angebotsseiten -------- */
/* Seitenspezifische CSS-Regeln: privatunterricht-samba-percussion-koeln/index.html */

.workshop-video-wrap[data-komponente="service-video"] {
  border-radius: 26px 0;
  position: relative;
  overflow: hidden;
}

.workshop-video-wrap[data-komponente="service-video"] video[data-komponente="service-video"] {
  border-radius: 26px 0;
  display: block;
}

.workshop-play[data-komponente="service-video"] {
  z-index: 1;
  color: #fff;
  background: 0 0;
  border: 0;
  place-items: center;
  width: 100%;
  height: 100%;
  display: grid;
  position: absolute;
  inset: 0;
}

.workshop-play[data-komponente="service-video"][hidden] {
  display: none;
}

.workshop-play[data-komponente="service-video"] span[data-komponente="service-video"] {
  background: var(--color-brand);
  border: 2px solid #fff;
  border-radius: 50%;
  place-items: center;
  width: 84px;
  height: 84px;
  padding-left: 5px;
  font-size: 32px;
  display: grid;
}


/* -------- 04 / Angebotsseiten und Service-Komponenten -------- */
/* Dienstleistungen: Unterricht, Workshops, Bands und FAQ */

.service-page {
  padding-bottom: 54px;
}

.service-hero {
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: clamp(24px,4vw,56px);
  padding: 34px 0;
  display: grid;
}

.service-hero h1 {
  max-width: 22ch;
  margin: 15px 0 22px;
  font-size: clamp(2rem,3.3vw,3.5rem);
  line-height: 1.13;
}

.service-hero-copy>p {
  max-width: 64ch;
  font-size: 1rem;
  line-height: 1.75;
}

.service-hero .service-cta {
  margin-top: 24px;
}

.service-hero-photo {
  border-radius: var(--radius);
  height: clamp(380px,38vw,550px);
  overflow: hidden;
}

.service-hero-photo picture,.service-hero-photo img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.service-facts {
  border-block: 1px solid var(--color-line);
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 20px 0;
  font-size: .875rem;
  font-weight: 650;
  display: flex;
}

.service-facts li {
  align-items: baseline;
  gap: 10px;
  display: flex;
}

.service-facts li:before {
  content: "✓";
  color: var(--color-brand);
}

.service-index {
  padding: 24px 0 30px;
}

.service-index ul {
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 10px;
  display: flex;
}

.service-index a {
  color: var(--color-brand);
  min-height: 44px;
  padding: 8px 0;
  font-size: .875rem;
  display: inline-block;
}

.service-index a:hover {
  text-underline-offset: 4px;
  text-decoration: underline;
}

.service-content {
  max-width: 1120px;
  margin: auto;
}

.service-section {
  border-top: 1px solid var(--color-line);
  padding: 38px 0;
}

.service-section h2,.service-close h2 {
  max-width: 32ch;
  scroll-margin-top: 155px;
  font-size: clamp(1.65rem,2.6vw,2.5rem);
  line-height: 1.2;
}

.service-section>p {
  max-width: 80ch;
  margin-top: 18px;
  line-height: 1.8;
}

.service-section>.service-cta {
  margin-top: 24px;
}

.service-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  margin-top: 24px;
  display: grid;
}

.service-card {
  background: var(--color-glass);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  padding: 24px;
}

.service-card h3 {
  letter-spacing: -.025em;
  font-size: 1.25rem;
  line-height: 1.3;
}

.service-card p {
  margin-top: 12px;
  font-size: .9375rem;
  line-height: 1.75;
}

.teaching-groups {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.group-card {
  flex-direction: column;
  align-items: flex-start;
  display: flex;
}

.group-card h3 {
  margin-top: 8px;
  font-size: 1.5rem;
}

.group-card dl {
  margin: 18px 0 24px;
}

.group-card dl>div {
  grid-template-columns: 46px 1fr;
  gap: 10px;
  margin-top: 8px;
  display: grid;
}

.group-card dt {
  color: var(--color-muted);
  font-size: .875rem;
}

.group-card dd {
  margin: 0;
}

.group-card .button {
  margin-top: auto;
}

.instrument-list {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  display: flex;
}

.instrument-list li {
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: .9375rem;
}

.service-definition {
  flex-wrap: wrap;
  gap: 20px 40px;
  margin: 24px 0 0;
  display: flex;
}

.service-definition dt {
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--color-muted);
  font-size: .75rem;
  font-weight: 700;
}

.service-definition dd {
  margin: 4px 0 0;
  font-weight: 650;
}

.service-steps {
  grid-template-columns: repeat(auto-fit,minmax(155px,1fr));
  gap: 20px;
  margin-top: 26px;
  display: grid;
}

.service-steps li {
  border-top: 2px solid var(--color-brand);
  padding-top: 12px;
}

.service-steps span {
  color: var(--color-brand);
  font-size: 1.55rem;
  font-weight: 700;
}

.service-steps p {
  margin-top: 8px;
  font-size: .9375rem;
}

.service-bullets {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px 30px;
  margin-top: 22px;
  display: grid;
}

.service-bullets li {
  padding-left: 18px;
  position: relative;
}

.service-bullets li:before {
  content: "";
  background: var(--color-brand);
  border-radius: 50%;
  width: 5px;
  height: 5px;
  position: absolute;
  top: 11px;
  left: 0;
}

.service-links {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  display: flex;
}

.service-case {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
  margin: 14px 0 36px;
  padding: clamp(24px,4vw,48px);
}

.service-case h2 {
  color: var(--color-brand-dark);
}

.service-case>p {
  color: var(--color-ink);
}

.rewe-facts {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
  display: grid;
}

.rewe-facts>div:last-child {
  grid-column: span 2;
}

.service-references {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  margin-top: 24px;
  font-size: .9375rem;
}

.service-references th,.service-references td {
  text-align: left;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
  overflow-wrap: anywhere;
  padding: 15px 12px;
}

.service-references thead th {
  color: var(--color-muted);
  font-size: .8rem;
  font-weight: 600;
}

.service-references th:first-child {
  width: 43%;
}

.service-references th:last-child {
  width: 70px;
}

.service-references tbody th {
  font-weight: 600;
}

.service-references th:first-child {
  padding-left: 0;
}

.service-faq .eyebrow {
  margin-bottom: 12px;
}

.faq-list {
  margin-top: 24px;
}

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

.faq-list summary {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 56px;
  padding: 20px 0;
  font-weight: 650;
  line-height: 1.5;
  list-style: none;
  display: flex;
}

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

.faq-mark {
  height: 14px;
  color: var(--color-brand);
  flex: 0 0 14px;
  position: relative;
}

.faq-mark:before,.faq-mark:after {
  content: "";
  background: currentColor;
  width: 14px;
  height: 2px;
  position: absolute;
  top: 6px;
  left: 0;
}

.faq-mark:after {
  transform: rotate(90deg);
}

.faq-list details[open] .faq-mark:after {
  transform: none;
}

.faq-list details>p {
  max-width: 80ch;
  padding: 0 32px 22px 0;
  line-height: 1.8;
}

.service-close {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  text-align: center;
  margin: 22px 0 0;
  padding: 32px;
}

.service-close h2 {
  max-width: 36ch;
  margin: auto;
}

.service-close p {
  max-width: 70ch;
  margin: 18px auto 22px;
}

.service-page .button {
  text-align: center;
  max-width: 100%;
  min-height: 48px;
}

@media (width<=1024px) {
  .service-hero {
    grid-template-columns: 1.1fr 1fr;
    gap: 26px;
  }

  .service-hero h1 {
    font-size: 2.35rem;
  }

  .service-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .service-hero-photo {
    height: 450px;
  }
}

@media (width<=760px) {
  .service-page {
    padding-bottom: 32px;
  }

  .service-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 26px 0;
  }

  .service-hero h1 {
    max-width: 25ch;
    font-size: clamp(1.9rem,7.5vw,2.5rem);
  }

  .service-hero-photo {
    aspect-ratio: 1.45;
    height: auto;
  }

  .service-hero-copy>p {
    font-size: .9375rem;
  }

  .service-facts {
    gap: 12px;
    padding: 18px 0;
    display: grid;
  }

  .service-index {
    padding: 20px 0;
  }

  .service-index ul {
    gap: 0;
    display: grid;
  }

  .service-section {
    padding: 28px 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    padding: 22px;
  }

  .service-steps {
    grid-template-columns: 1fr 1fr;
  }

  .service-bullets {
    grid-template-columns: 1fr;
  }

  .service-case {
    margin: 12px 0 28px;
    padding: 24px 20px;
  }

  .rewe-facts {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .rewe-facts>div:last-child {
    grid-column: 1/-1;
  }

  .service-references {
    font-size: .8rem;
  }

  .service-references th,.service-references td {
    padding: 12px 7px;
  }

  .service-references th:last-child {
    width: 48px;
  }

  .service-close {
    padding: 26px 20px;
  }

  .service-links {
    justify-items: stretch;
    display: grid;
  }

  .service-definition {
    gap: 18px;
  }

  .faq-list summary {
    font-size: .9375rem;
  }

  .faq-list details>p {
    padding-right: 0;
    font-size: .9375rem;
  }
}

.service-page .sr-only {
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.service-page dt,.service-page dd {
  overflow-wrap: anywhere;
  min-width: 0;
}

.service-grid>* {
  min-width: 0;
}

.group-card dl {
  max-width: 100%;
}

.group-card dl>div {
  grid-template-columns: 46px minmax(0,1fr);
}

.service-definition>div {
  min-width: 0;
  max-width: 100%;
}

.service-page {
  margin-top: -106px;
}

.service-page .container {
  width: min(1120px,100% - 72px);
}

.service-hero {
  isolation: isolate;
  background: #202125;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 740px;
  padding: 160px 0 70px;
  display: grid;
  position: relative;
}

.service-hero-photo {
  z-index: -2;
  aspect-ratio: auto;
  border-radius: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.service-hero-photo img {
  object-position: center 42%;
}

.service-hero:before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg,#0c0f12e0,#0c0f12b8 48%,#0c0f1247);
  position: absolute;
  inset: 0;
}

.service-hero-copy {
  max-width: 700px;
}

.service-hero .eyebrow {
  color: #fff;
}

.service-hero h1 {
  color: #fff;
  max-width: 24ch;
  font-size: clamp(2rem,3.6vw,3.55rem);
}

.service-hero-copy>p {
  color: #fff;
  max-width: none;
}

.service-hero .service-cta:focus-visible {
  outline-color: #fff;
}

.service-content,.service-section>p,.service-section h2 {
  max-width: none;
}

.service-facts {
  margin-top: 22px;
  margin-bottom: 14px;
}

.service-reference-names {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  margin-top: 24px;
  display: grid;
}

.service-reference-names li {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  align-items: center;
  padding: 20px;
  font-weight: 650;
  display: flex;
}

.faq-list {
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: start;
  gap: 14px;
  display: grid;
}

.faq-list details {
  border: 1px solid var(--color-line);
  background: #fff;
  border-radius: 16px;
  min-width: 0;
  padding: 0 22px;
}

.faq-list summary {
  gap: 18px;
  min-height: 82px;
  line-height: 1.5;
}

.faq-list details>p {
  color: var(--color-ink);
  max-width: none;
  padding: 0 0 22px;
}

.service-video {
  margin-top: 24px;
  max-width: 960px;
  margin-inline: auto;
}

.service-video video {
  aspect-ratio: 848/480;
  background: #151515;
  border-radius: 18px;
  width: 100%;
  height: auto;
  display: block;
}

.service-video figcaption {
  color: var(--color-muted);
  margin-top: 12px;
  font-size: .875rem;
}

@media (width<=1024px) {
  .service-hero {
    grid-template-columns: 1fr;
  }

  .service-reference-names {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (width<=760px) {
  .service-page .container {
    width: calc(100% - 36px);
  }

  .service-hero {
    gap: 0;
    min-height: 780px;
    padding: 142px 0 46px;
  }

  .service-hero-photo {
    aspect-ratio: auto;
    height: 100%;
  }

  .service-hero:before {
    background: #0c0f12c2;
  }

  .service-hero h1 {
    font-size: clamp(2rem,7.8vw,2.7rem);
  }

  .service-hero-copy>p {
    font-size: .9375rem;
  }

  .faq-list,.service-reference-names {
    grid-template-columns: 1fr;
  }

  .faq-list details {
    padding: 0 20px;
  }

  .faq-list summary {
    min-height: 76px;
  }

  .service-video video {
    border-radius: 12px;
  }
}


/* -------- 05 / Projektlogos und Kooperationen -------- */
/* Seitenspezifische CSS-Regeln: projekte/index.html */

.tijuca-logo[data-komponente="partner-logo"] {
  object-fit: contain;
  width: 130px;
  height: auto;
  margin: 22px 0;
}

.endorsement[data-komponente="partner-endorsement"] {
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  display: flex;
}

.endorsement[data-komponente="partner-endorsement"] img[data-komponente="partner-endorsement"] {
  width: 220px;
  max-width: 100%;
  height: auto;
}

.endorsement[data-komponente="partner-endorsement"] p[data-komponente="partner-endorsement"] {
  font-size: .9375rem;
}

.endorsement-compact[data-komponente="partner-endorsement"] {
  border-top: 1px solid var(--color-line);
  margin-top: 30px;
  padding-top: 24px;
}

.endorsement-compact[data-komponente="partner-endorsement"] img[data-komponente="partner-endorsement"] {
  width: 135px;
}

.endorsement-compact[data-komponente="partner-endorsement"] p[data-komponente="partner-endorsement"] {
  font-size: .8125rem;
}


/* -------- 06 / Redaktionelle Layouts, Personen und Projekte -------- */
/* Redaktionelle Seiten: Projektkarten, Teambereich und Bilder */

.project-grid,.team-grid,.choice-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 24px;
  margin-top: 26px;
  display: grid;
}

.project-card,.team-card {
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  border-radius: 18px;
  flex-direction: column;
  min-width: 0;
  display: flex;
  overflow: hidden;
}

.project-card picture,.team-card picture {
  aspect-ratio: 500/211;
  overflow: hidden;
}

.project-card img,.team-card img {
  object-fit: cover;
  height: 100%;
}

.project-copy,.team-copy {
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  gap: 14px;
  padding: 26px;
  display: flex;
}

.project-copy h3 {
  font-size: 1.65rem;
}

.project-copy .service-links {
  margin-top: auto;
  padding-top: 8px;
}

.project-copy p,.team-copy p {
  font-size: .9375rem;
}

.project-status {
  color: var(--color-muted);
  margin-top: auto;
  font-size: .8rem;
}

.choice-grid>div {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
}

.choice-grid dt {
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.choice-grid dd {
  color: var(--color-muted);
  margin: 0;
}

.profile-main {
  grid-template-columns: .85fr 1.15fr;
  align-items: start;
  gap: 38px;
  display: grid;
}

.profile-main picture {
  border-radius: 18px;
  overflow: hidden;
}

.profile-main img {
  height: auto;
}

.profile-main h2 {
  margin-bottom: 20px;
}

.profile-main p+p {
  margin-top: 16px;
}

.team-grid {
  max-width: 850px;
}

.team-card picture {
  aspect-ratio: auto;
  background: #fff;
  height: 260px;
}

.team-card img {
  object-fit: contain;
  object-position: center;
}

.editorial-page .audio-card {
  background: #fff;
  max-width: 900px;
  margin: 24px auto 0;
}

.editorial-page .audio-title {
  min-height: 0;
  font-size: 1.1rem;
}

.editorial-page .track-label strong {
  font-size: .9375rem;
}

.editorial-page .track-label small {
  font-size: .8125rem;
}

.track-description {
  color: var(--color-muted);
  margin-top: 5px;
  font-size: .8125rem;
  line-height: 1.5;
  display: block;
}

.player-navigation {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0;
  display: flex;
}

.player-navigation button {
  font: inherit;
  background: #fff;
  border: 1px solid #b9a4a6;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 14px;
  font-size: .875rem;
}

.player-navigation button:hover {
  background: #fff;
}

.player-navigation button:disabled {
  opacity: .55;
  cursor: default;
}

.editorial-page .service-section[id] {
  scroll-margin-top: 135px;
}

.editorial-page .service-section>p+p {
  margin-top: 16px;
}

@media (width<=760px) {
  .project-grid,.team-grid,.choice-grid,.profile-main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-copy,.team-copy {
    padding: 22px;
  }

  .profile-main picture {
    max-width: 440px;
  }

  .editorial-page .service-hero {
    min-height: 780px;
  }

  .editorial-page .playlist button {
    grid-template-columns: 20px minmax(0,1fr) 15px;
  }
}

.profile-main {
  grid-template-columns: 360px minmax(0,1fr);
}

.profile-main picture {
  aspect-ratio: 1;
}

.profile-main picture img {
  object-fit: cover;
  height: 100%;
}

.team-grid {
  gap: 22px;
  width: 100%;
  max-width: none;
}

.team-card {
  grid-template-columns: 180px minmax(0,1fr);
  align-items: start;
  display: grid;
}

.team-card picture {
  aspect-ratio: 1;
  background: 0 0;
  width: 180px;
  height: 180px;
  overflow: hidden;
}

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

.team-shari img {
  object-position: 50% 53%;
}

.team-serrinha img {
  object-position: 50% 43%;
  transform-origin: 50% 40%;
  transform: scale(1.42);
}

.team-copy {
  gap: 10px;
  padding: 20px;
}

.team-copy h3 {
  font-size: 1.35rem;
}

.team-copy .eyebrow {
  font-size: .66rem;
}

.team-copy p {
  font-size: .875rem;
}

.project-card picture {
  aspect-ratio: 3/2;
}

.project-card img,.project-card#roda img {
  object-position: center 60%;
}

.project-card#muamba img {
  object-position: center 74%;
}

@media (width<=1024px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    grid-template-columns: 200px minmax(0,1fr);
  }

  .team-card picture {
    width: 200px;
    height: 200px;
  }
}

@media (width<=760px) {
  .profile-main {
    grid-template-columns: 1fr;
  }

  .profile-main picture {
    max-width: 360px;
  }

  .team-card {
    grid-template-columns: 110px minmax(0,1fr);
  }

  .team-card picture {
    width: 110px;
    height: 110px;
  }

  .team-copy {
    padding: 16px;
  }

  .team-copy h3 {
    font-size: 1.2rem;
  }
}

#show picture {
  aspect-ratio: 500/211;
}

#turma img {
  object-position: center 15%;
}

#capangas img {
  object-position: center 38%;
  transform: scale(1.1);
}

.profile-main picture img {
  transform-origin: 50% 35%;
  transform: scale(1.14);
}

.team-serrinha img {
  transform-origin: 50% 39%;
  transform: scale(1.85);
}

.logo-content {
  grid-template-columns: 160px minmax(0,1fr);
  align-items: center;
  gap: 32px;
  display: grid;
}

.logo-content>img {
  width: 160px;
  margin: 0;
}

.logo-content>div>*+* {
  margin-top: 16px;
}

.logo-content .endorsement {
  margin: 0;
}

.logo-content .endorsement p {
  display: none;
}

.logo-content .endorsement img {
  width: 160px;
}

@media (width<=560px) {
  .logo-content {
    grid-template-columns: 95px minmax(0,1fr);
    gap: 20px;
  }

  .logo-content>img,.logo-content .endorsement img {
    width: 95px;
  }
}

#show picture {
  aspect-ratio: 3/2;
  background: #fff;
}

#show img {
  object-fit: contain;
  object-position: center;
}

.profile-main picture img {
  transform-origin: 50% 0;
}

.team-serrinha img {
  transform-origin: 50% 17%;
}

.endorsement-section {
  grid-template-columns: minmax(0,1fr) 190px;
  align-items: center;
  gap: 32px;
  display: grid;
}

.endorsement-section .endorsement {
  margin: 0;
}

.endorsement-section .endorsement p {
  display: none;
}

.endorsement-section .endorsement img {
  width: 190px;
}

.endorsement-section p {
  margin-top: 16px;
  line-height: 1.8;
}

@media (width<=560px) {
  .endorsement-section {
    grid-template-columns: minmax(0,1fr) 95px;
    gap: 20px;
  }

  .endorsement-section .endorsement img {
    width: 95px;
  }
}


/* -------- 07 / Steuerung der Startseiten-Slideshow -------- */
/* Startseite: Slideshow-Paginierung */

/* Kleine, zugaengliche Hero-Steuerung: Seitenzahl richtet sich nach den vorhandenen Bildern. */

.home-hero .hero-pagination {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: calc(100% - 24px);
}

.home-hero .hero-pagination[hidden] {
  display: none;
}

.home-hero .hero-pagination-dots {
  display: flex;
  align-items: center;
  gap: 3px;
}

.home-hero .hero-pagination button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  touch-action: manipulation;
}

.home-hero .hero-pagination-dot > span {
  display: block;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #10101566;
  box-shadow: 0 1px 6px #0009;
  transition: background-color .25s, transform .25s;
}

.home-hero .hero-pagination-dot[aria-pressed="true"] > span {
  background: #fff;
  transform: scale(1.12);
}

.home-hero .hero-pagination button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
  background: #0007;
}

.home-hero .hero-pagination button.hero-pagination-toggle {
  margin-left: 3px;
  border: 1px solid #ffffff73;
  background: #0005;
}

.home-hero .hero-pause-mark {
  box-sizing: border-box;
  display: block;
  width: 11px;
  height: 13px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.home-hero .hero-pagination button.hero-pagination-toggle.is-paused .hero-pause-mark {
  width: 0;
  height: 0;
  border-left: 10px solid currentColor;
  border-right: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

@media (max-width: 760px) {
  .home-hero {
    padding-bottom: max(88px, env(safe-area-inset-bottom, 0px) + 72px);
  }

  .home-hero .hero-pagination {
    bottom: max(12px, env(safe-area-inset-bottom, 0px) + 8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero .hero-pagination-dot > span {
    transition: none;
  }

  .home-hero .hero-pagination button.hero-pagination-toggle {
    display: none;
  }
}

/* Originaler Tablet-Abstand der Hero-Inhalte (frueher durch die Ladereihenfolge geregelt). */
@media (min-width: 761px) and (max-width: 900px) {
  .home-hero-content { width: calc(100% - 48px); }
}
