/* ======================================================
   Services Archive – Sections
   ====================================================== */

.archive-section {
  scroll-margin-top: 120px;
  padding-block: var(--wp--preset--spacing--5);
  background: var(--wp--preset--color--light);
}

.archive-section + .archive-section {
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Header: links Text, rechts Link */
.archive-section-head {
  display: grid;
  gap: var(--wp--preset--spacing--3);
  margin-bottom: var(--wp--preset--spacing--4);
}

.archive-section-head h2 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.archive-section-lead {
  margin-top: var(--wp--preset--spacing--2);
  margin-bottom: 0;
  max-width: 70ch;
  color: var(--wp--preset--color--gray);
  line-height: 1.6;
}

/* „Alle anzeigen“ als ruhiger Secondary Link */
.archive-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  text-decoration: none;
  color: var(--wp--preset--color--primary);
  hyphens: none;
  word-break: normal;
  font-size: 1rem;
}

/* MOBILE OPTIMIERUNG */
@media (max-width: 899px) {

  .archive-section-link {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 8px;

    max-width: 260px;      /* kontrollierte Breite */
    margin-inline: auto;   /* zentriert */
    text-align: left;
  }

  .archive-section-link span {
    white-space: nowrap;   /* Pfeil bleibt kompakt */
  }
}

.archive-section-link:hover {
  text-decoration: underline;
}

/* Mobile: Link unter dem Grid */
.archive-section-link--mobile {
  margin-top: var(--wp--preset--spacing--4);
  text-align: center;
}

/* Desktop: Link im Header */
.archive-section-head__action {
  display: none;
}

/* ==========================
   Service Category Nav
========================== */

.service-category-nav {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.service-category-nav a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;

  /* Default = gefüllt */
  background: var(--wp--preset--color--primary);
  color: #000;
  border: 1px solid var(--wp--preset--color--primary);

  transition: all 0.2s ease;
}

/* Hover = nur Outline */
.service-category-nav a:hover {
  background: transparent;
  color: var(--wp--preset--color--primary);
}

.service-category-nav a:first-child {
  background: transparent;
  color: var(--wp--preset--color--primary);
}

/* Desktop linksbündig */
@media (min-width: 900px) {
  .service-category-nav {
    justify-content: flex-start;
  }
}

/* ======================================================
   Services Archive – Trust Zone
   ====================================================== */

.archive-trust {
  background: var(--wp--preset--color--primary);
  padding: 2.5rem 0;
  color: #000;
}

.trust-grid {
  display: grid;
  gap: var(--wp--preset--spacing--3);
}

.trust-item {
  background: color-mix(in srgb, var(--wp--preset--color--primary) 10%, white);
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  color: var(--wp--preset--color--dark);
}

/* ======================================================
   Service Category – Hero
   ====================================================== */

.page-hero {
  background: var(--wp--preset--color--dark);
  color: var(--wp--preset--color--white);
  padding-block: clamp(
    var(--wp--preset--spacing--4),
    6vw,
    var(--wp--preset--spacing--5)
  );
  position: relative;
  overflow: hidden;
}

/* Subtile Tiefe */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(245,170,32,0.08),
      transparent 60%
    );
  pointer-events: none;
}

/* Breadcrumbs */
.page-hero .breadcrumbs {
  margin-bottom: var(--wp--preset--spacing--3);
}

.page-hero .breadcrumbs a {
  color: rgba(255,255,255,0.75);
}

.page-hero .breadcrumbs a:hover {
  color: #fff;
}

.page-hero .breadcrumbs li[aria-current="page"] {
  color: #fff;
  opacity: 0.9;
}

/* Titel */
.page-hero h1 {
  margin: 0;
  font-size: clamp(
    var(--wp--preset--font-size--xl),
    4vw,
    var(--wp--preset--font-size--xxl)
  );
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

/* Lead */
.page-hero-lead {
  margin-top: var(--wp--preset--spacing--2);
  font-size: var(--wp--preset--font-size--m);
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 680px;
}

/* ======================================================
   Service Category – Grid Section
   ====================================================== */

.archive-services {
  padding-block: var(--wp--preset--spacing--5);
  background: var(--wp--preset--color--light);
}

/* ======================================================
   Service Category – Description
   ====================================================== */

.archive-description {
  padding-block: var(--wp--preset--spacing--5);
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.archive-description .container {
  max-width: var(--wp--preset--layout--contentSize, 720px);
}

.archive-description h2,
.archive-description h3 {
  margin-top: var(--wp--preset--spacing--4);
  margin-bottom: var(--wp--preset--spacing--2);
  font-weight: 600;
  line-height: 1.25;
}

.archive-description p {
  margin-bottom: var(--wp--preset--spacing--2);
  line-height: 1.7;
  color: var(--wp--preset--color--dark);
}

.archive-description ul,
.archive-description ol {
  margin: var(--wp--preset--spacing--2) 0;
  padding-left: 1.2rem;
}

.archive-description li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.archive-description strong {
  font-weight: 600;
}

.service-grid {
  display: grid;
  gap: var(--wp--preset--spacing--4);
}

.service-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--wp--preset--color--primary);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 5;
}

/* ======================================================
   Service Card – Kategorie
   ====================================================== */

.service-card--category {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  height: 100%;
  text-align: center;
}

/* Bild */
.service-card--category .service-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card--category .service-image:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.service-card--category .service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Inhalt */
.service-card--category h3 {
  margin: var(--wp--preset--spacing--3)
          var(--wp--preset--spacing--3)
          var(--wp--preset--spacing--2);
  line-height: 1.25;
}

/* Subline */
.service-card--category .service-subline {
  margin: 0 var(--wp--preset--spacing--3)
          var(--wp--preset--spacing--2);
  font-size: var(--wp--preset--font-size--s);
  color: var(--wp--preset--color--gray);
}

/* Highlights */
.service-card--category .service-highlights {
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
  list-style: none;
  padding: 0;
  text-align: left; /* ← entscheidend */
}

.service-card--category .service-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.service-card--category .service-highlights li::before {
  content: "✓";
  font-weight: 800;
  color: var(--wp--preset--color--primary);
  flex-shrink: 0;
  margin-top: 0.15em;
}

/* Bottom fixieren */
.service-card--category .service-card-bottom {
  margin-top: auto;
  padding: var(--wp--preset--spacing--3);
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--2);
}

.service-card--category .service-price {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

/* ======================================================
   ABOUT PAGE – BASE
====================================================== */

.about-page {
  background: var(--wp--preset--color--light);
}

/* ======================================================
   HERO
====================================================== */

.about-hero {
  padding-block: clamp(4rem, 8vw, 6rem);
  background: var(--wp--preset--color--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.about-hero h1 {
  margin-top: var(--wp--preset--spacing--3);
  font-size: clamp(
    var(--wp--preset--font-size--xl),
    4vw,
    var(--wp--preset--font-size--xxl)
  );
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.about-lead {
  font-size: clamp(
    var(--wp--preset--font-size--m),
    1.4vw,
    var(--wp--preset--font-size--l)
  );
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 650px;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(245,170,32,0.08),
      transparent 60%
    );
  pointer-events: none;
}

/* ======================================================
   INTRO + COLLAGE (Combined About Block)
====================================================== */

.about-intro {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: #fff;
  position: relative;
}

/* Grid Layout */
.about-intro-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

/* Text */
.about-intro-copy {
  max-width: 760px;
}

.about-intro p {
  font-size: var(--wp--preset--font-size--m);
  line-height: 1.75;
  margin-bottom: 1.2rem;
  color: var(--wp--preset--color--dark);
}

.about-intro strong {
  font-weight: 700;
}

/* ======================================================
   COLLAGE – Layered Editorial (Desktop)
====================================================== */

.collage-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-block: 1rem;
}

/* Basis-Bild */
.collage-item {
  width: 100%;
  max-width: 300px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.12),
    0 6px 16px rgba(0,0,0,0.06);
  transition: transform .45s ease, box-shadow .45s ease;
}

/* Überlappung erzeugen */
.collage-item + .collage-item {
  margin-top: -60px;   /* negativer Abstand */
}

/* Unregelmäßige Versätze */
.collage-item:nth-child(2) {
  transform: translateX(60px);
  z-index: 2;
}

.collage-item:nth-child(3) {
  transform: translateX(-40px);
  z-index: 3;
}

.collage-item:nth-child(4) {
  transform: translateX(30px);
  z-index: 4;
}

.collage-item:nth-child(5) {
  transform: translateX(-20px);
  z-index: 5;
}

/* Hover */
.collage-item:hover {
  transform: translateX(0) translateY(-8px) scale(1.02);
  z-index: 10;
  box-shadow:
    0 30px 70px rgba(0,0,0,0.18),
    0 10px 24px rgba(0,0,0,0.08);
}

.collage-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile Bilder */

.about-mobile-hero,
.about-mobile-inline{
  margin:1.5rem 0;
}

.about-mobile-hero img,
.about-mobile-inline img{
  width:100%;
  height:auto;
  border-radius:12px;
}

/* Inline Bild im Editor (nur mobil) */

.about-inline-image{
  display:block;
  margin:1.5rem 0;
  width:100%;
  border-radius:12px;
}

@media (min-width:768px){
  .about-inline-image{
    display:none;
  }
}


/* Mobile Gallery */

.about-mobile-gallery{
  padding:2rem 0;
}

.mobile-gallery-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.mobile-gallery-item img{
  width:100%;
  height:auto;
  border-radius:12px;
}

@media (min-width:768px){
  .about-mobile-gallery{
    display:none;
  }
}

/* Desktop */

@media (min-width:768px){

  .about-mobile-hero,
  .about-mobile-inline{
    display:none;
  }

}

/* Mobile: Desktop-Collage ausblenden */

@media (max-width:767px){

  .about-intro-media{
    display:none;
  }

}

/* ======================================================
   TEAM
====================================================== */

.about-team {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: #fff;
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  font-size: clamp(
    var(--wp--preset--font-size--l),
    3vw,
    var(--wp--preset--font-size--xl)
  );
  margin-bottom: var(--wp--preset--spacing--2);
}

.section-head p {
  color: var(--wp--preset--color--gray);
  font-size: var(--wp--preset--font-size--s);
}

/* Team Grid */

.team-grid {
  display: grid;
  gap: 50px;
  justify-content: center;
  grid-template-columns: 1fr;
}

/* Team Card */

.team-card {
  text-align: center;
  padding: 0 1rem;
  transition: transform .3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-image {
  position: relative;
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: center;
}

.team-image img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transition: transform .4s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.04);
}

.team-card h3 {
  font-size: var(--wp--preset--font-size--m);
  margin-bottom: 0.5rem;
}

.team-role {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
  margin-bottom: 0.6rem;
}

.team-card p {
  font-size: var(--wp--preset--font-size--s);
  line-height: 1.65;
  color: var(--wp--preset--color--gray);
  max-width: 50ch;
  margin-inline: auto;
}

/* ======================================================
   404
====================================================== */

.error-404{
  padding:80px 0;
  text-align:center;
}

.error-actions{
  margin-top:30px;
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
}

.error-contact{
  margin-top:24px;
}

.error-services{
  padding:80px 0;
}

.error-services-cta{
  margin-top:30px;
  text-align:center;
}

/* ======================================================
   RESPONSIVE ADJUSTMENTS
====================================================== */

/* About Intro */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about-intro-copy {
  max-width: 760px;
  margin-inline: auto;
}

/* Collage – Horizontal Scroll */
.collage-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.collage-item {
  flex: 0 0 auto;
  width: clamp(260px, 75vw, 420px);
  max-width: 420px;
  scroll-snap-align: start;
  transform: none;
  margin-top: 0;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.team-image img {
  width: 150px;
  height: 150px;
}

/* Hero / Section spacing */
.about-hero {
  padding-block: 2.5rem;
}

.about-team {
  padding-block: 2.5rem;
}


/* ======================================================
   TABLET (≥700px)
====================================================== */

@media (min-width: 700px) {

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 1200px;
    margin-inline: auto;
  }

  .collage-item {
    width: clamp(320px, 55vw, 460px);
    max-width: 460px;
  }

}


/* ======================================================
   DESKTOP (≥900px)
====================================================== */

@media (min-width: 900px) {

  /* Intro 2-Spalten Layout */
  .about-intro-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .about-intro-copy {
    max-width: none;
  }

  /* Collage wird vertikal & sticky */
  .about-intro-media {
    position: sticky;
    top: 110px;
  }

  .collage-grid {
    display: flex;
    flex-direction: column;
    overflow: visible;
    gap: 0;
  }

  .collage-item {
    width: 100%;
    max-width: 300px;
  }

  .collage-item + .collage-item {
    margin-top: -60px;
  }

  .collage-item:nth-child(2) { transform: translateX(60px); }
  .collage-item:nth-child(3) { transform: translateX(-40px); }
  .collage-item:nth-child(4) { transform: translateX(30px); }
  .collage-item:nth-child(5) { transform: translateX(-20px); }

}

/* ======================================================
   Mobile Anpassung
   ====================================================== */

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

@media (min-width: 900px) {
  .archive-hero .breadcrumbs {
    margin-bottom: var(--wp--preset--spacing--4);
  }
  
  .archive-section-link--mobile {
    display: none;
  }
  
  .archive-section-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .archive-section-head__action {
    display: block;
  }
  
  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--wp--preset--spacing--4);
  }
}

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

@media (max-width: 600px) {

  .archive-hero {
    padding-block: var(--wp--preset--spacing--4);
  }

  .archive-hero h1 {
    font-size: var(--wp--preset--font-size--xl);
  }

  .archive-hero .archive-lead {
    font-size: var(--wp--preset--font-size--s);
  }

}
