/* ============================================================
   SECTIONS.CSS — Hero · Services · Portfolio · About · Contact
   everspice.de · 2026
   Design: Bold Red · Bracket Motif · Dark (aufgehellt) · Punchy
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   HERO — Fullscreen mit rotem Gradient-Mesh + Bracket-Deko
   ──────────────────────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  padding-top: var(--nav-height);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Animiertes Rot-Gradient-Mesh — kräftiger */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 55% at 12% 58%, rgba(232, 25, 44, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 38% 48% at 78% 28%, rgba(232, 25, 44, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse 65% 32% at 50% 88%, rgba(181, 16, 32, 0.10) 0%, transparent 50%);
  animation: hero-mesh 20s ease-in-out infinite alternate;
}

/* Zweiter Layer für mehr Tiefe */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle 40% at 85% 70%, rgba(232, 25, 44, 0.06) 0%, transparent 60%),
    radial-gradient(circle 30% at 20% 20%, rgba(232, 25, 44, 0.04) 0%, transparent 50%);
  animation: hero-mesh-2 25s ease-in-out infinite alternate;
}

/* Glow Follow — weicher Lichtfleck, folgt der Maus per JS */
.hero__glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 25, 44, 0.10) 0%, rgba(232, 25, 44, 0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  will-change: transform;
}

.hero:hover .hero__glow {
  opacity: 1;
}

@media (pointer: coarse) {
  .hero__glow { display: none; }
}

/* Diagonale Akzent-Linie — Logo-Pfeil-Motiv */
.hero__diagonal {
  position: absolute;
  top: 18%;
  right: clamp(60px, 10vw, 180px);
  width: clamp(140px, 20vw, 320px);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(232, 25, 44, 0.40) 40%, rgba(232, 25, 44, 0.40) 60%, transparent 100%);
  transform: rotate(-45deg);
  pointer-events: none;
  z-index: 0;
}

/* Bracket-Deko rechts — direkt aus dem Logo-Motiv, kräftiger */
.hero__bracket-deco {
  position: absolute;
  top: 50%;
  right: clamp(40px, 7vw, 130px);
  transform: translateY(-50%);
  width: clamp(70px, 9vw, 140px);
  height: clamp(70px, 9vw, 140px);
  border-top: 1.5px solid rgba(255, 255, 255, 0.14);
  border-left: 1.5px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
  z-index: 0;
}

.hero__bracket-deco::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 55%;
  height: 55%;
  border-bottom: 1.5px solid rgba(232, 25, 44, 0.30);
  border-right: 1.5px solid rgba(232, 25, 44, 0.30);
}

/* Content */
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
  padding-block: var(--space-3xl) var(--space-2xl);
}

.hero__label {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-red);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-xl);
}

.hero__label::before { content: '['; opacity: 0.55; }
.hero__label::after  { content: ']'; opacity: 0.55; }

.hero__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: normal;
  font-size: var(--text-hero);
  line-height: 0.90;
  letter-spacing: -0.04em;
  color: var(--color-text-primary);
  text-transform: uppercase;
  max-width: 13ch;
  margin-bottom: var(--space-xl);
}

.hero__headline .spice {
  color: var(--color-red);
  display: inline;
}

/* Typewriter */
.hero__typed-wrap {
  display: inline;
  white-space: nowrap;
}

.hero__typed {
  display: inline;
}

.hero__typed-cursor {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  background: rgba(232, 25, 44, 0.45);
  margin-left: 2px;
  vertical-align: baseline;
  animation: typed-blink 0.8s steps(1) infinite;
  position: relative;
  top: 0.06em;
}

@keyframes typed-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Outline-Text — "die" als durchsichtiger Stroke */
.hero__headline .outline {
  -webkit-text-stroke: 1.5px var(--color-text-primary);
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__tagline {
  font-family: var(--font-ui);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 48ch;
  margin-bottom: var(--space-xl);
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Services-Tags unten links */
.hero__services-bar {
  position: absolute;
  bottom: clamp(28px, 5vh, 56px);
  left: clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  z-index: 1;
}

.hero__service-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__service-tag::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
}

/* Scroll-Indikator rechts unten */
.hero__aside {
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  bottom: clamp(28px, 5vh, 56px);
  z-index: 1;
}

.hero__scroll-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  writing-mode: vertical-rl;
}

.hero__scroll-indicator::after {
  content: '';
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@media (max-width: 767px) {
  .hero                { padding-top: calc(var(--nav-height) + 16px); }
  .hero__aside         { display: none; }
  .hero__services-bar  { display: none; }
  .hero__bracket-deco  { display: none; }
  .hero__diagonal      { display: none; }
  .hero__glow          { display: none; }
  .hero__content       { padding-block: var(--space-2xl) var(--space-xl); }
  .hero__headline {
    font-size: clamp(38px, 11vw, 56px);
    line-height: 0.92;
    max-width: none;
  }
  .hero__headline .outline {
    -webkit-text-stroke-width: 1px;
  }
  .hero__typed-wrap {
    white-space: normal;
    word-break: break-word;
  }
  .hero__typed-cursor {
    height: 0.78em;
    width: 2px;
  }
  .hero__label         { margin-bottom: var(--space-lg); }
  .hero__tagline       { margin-bottom: var(--space-lg); }
  .hero__cta           { flex-direction: column; align-items: stretch; }
  .hero__cta .btn      { justify-content: center; text-align: center; }
}


/* ────────────────────────────────────────────────────────────
   STATS BAR — Horizontal, kompakt
   ──────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(28px, 4vw, 48px);
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 80px);
}

.stats-bar__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.stats-bar__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-text-primary);
}

.stats-bar__suffix {
  color: var(--color-red);
}

.stats-bar__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

@media (max-width: 767px) {
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
  .stats-bar__num   { font-size: clamp(28px, 8vw, 40px); }
}

@media (max-width: 374px) {
  .stats-bar__inner { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
}


/* ────────────────────────────────────────────────────────────
   SERVICES — Editoriale Liste
   ──────────────────────────────────────────────────────────── */
.services { background: var(--color-bg-elevated); }

.services__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: end;
  margin-bottom: var(--space-2xl);
}

.services__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h2);
  letter-spacing: -0.04em;
  line-height: 1.0;
}

.services__intro {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 44ch;
  margin: 0;
}

@media (max-width: 767px) {
  .services__header { grid-template-columns: 1fr; gap: var(--space-lg); }
}


/* ────────────────────────────────────────────────────────────
   PORTFOLIO / WORK — 2x2 Grid, gleichmäßig
   ──────────────────────────────────────────────────────────── */
.work { background: var(--color-bg); }

.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 24px);
}

.work__grid .card__img-wrap {
  aspect-ratio: 16 / 10;
}

.work__grid .card__placeholder {
  min-height: 0;
}

.work__grid--hidden {
  display: none;
}

.work__grid--hidden.is-visible {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 24px);
  margin-top: clamp(12px, 2vw, 24px);
}

@media (max-width: 767px) {
  .work__grid--hidden.is-visible { grid-template-columns: 1fr; }
}

.work__footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

@media (max-width: 767px) {
  .work__grid { grid-template-columns: 1fr; }
}

/* Placeholder-Backgrounds — edel, dunkel, verschieden */
.card__placeholder--1 { background: linear-gradient(140deg, #1e1208 0%, #241608 60%, #120c04 100%); }
.card__placeholder--2 { background: linear-gradient(140deg, #0e1520 0%, #141f30 60%, #090f18 100%); }
.card__placeholder--3 { background: linear-gradient(140deg, #1a0d0d 0%, #221111 60%, #100808 100%); }
.card__placeholder--4 { background: linear-gradient(140deg, #101a10 0%, #0e1f14 60%, #0a140a 100%); }


/* ────────────────────────────────────────────────────────────
   ABOUT — Split Layout
   ──────────────────────────────────────────────────────────── */
.about { background: var(--color-bg-elevated); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.about__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h1);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--color-text-primary);
}

.about__headline .spice { color: var(--color-red); }

.about__body {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 44ch;
  margin: 0;
}

.about__signature {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-subtle);
}

.about__signature-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.about__signature-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.about__visual { position: relative; }

.about__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-bg-subtle);
}

.about__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s var(--ease-expo);
}
.about__img-wrap:hover img { transform: scale(1.03); }

/* Roter Bracket-Strich — Logo-Echo, kräftiger */
.about__img-frame {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 56px;
  height: 56px;
  border-top: 2px solid var(--color-red);
  border-left: 2px solid var(--color-red);
  pointer-events: none;
  border-radius: var(--radius-lg) 0 0 0;
}

/* Diagonale Akzent-Linie unten rechts am About-Bild */
.about__img-wrap::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 25, 44, 0.30), transparent);
  transform: rotate(-45deg);
  pointer-events: none;
}

@media (max-width: 767px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__visual { order: -1; }
  .about__img-wrap { aspect-ratio: 4 / 3; }
}


/* ────────────────────────────────────────────────────────────
   CONTACT — Full-width Headline, Info-Bar, zentrierte Form-Card
   ──────────────────────────────────────────────────────────── */
.contact {
  background: var(--color-bg);
  overflow: hidden;
}

/* ── Top: Headline + Subtext ── */
.contact__top {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.contact__top .section-label {
  justify-content: center;
}

.contact__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 100px);
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--color-text-primary);
  text-transform: uppercase;
}

.contact__headline .spice { color: var(--color-red); }

.contact__body {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin: var(--space-lg) auto 0;
  max-width: 44ch;
}

/* ── Info-Bar: horizontal, kompakt ── */
.contact__bar {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  margin-bottom: var(--space-2xl);
}

.contact__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  padding-block: clamp(16px, 2.5vw, 28px);
  flex-wrap: wrap;
}

.contact__bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

a.contact__bar-item:hover .contact__bar-value {
  color: var(--color-red);
}

.contact__bar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact__bar-value {
  font-family: var(--font-ui);
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

.contact__bar-value--status {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pulsierender grüner Dot — "verfügbar" */
.contact__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
  animation: contact-pulse 2s ease-in-out infinite;
}

@keyframes contact-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76, 175, 122, 0.4); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(76, 175, 122, 0); }
}

.contact__bar-item--social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-sm);
  margin-left: auto;
}

@media (max-width: 767px) {
  .contact__bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }
  .contact__bar-item--social { margin-left: 0; flex-direction: row; }
}

/* ── Form-Card: zentriert, erhöht, mit Akzenten ── */
.contact__card {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  padding: clamp(32px, 5vw, 64px);
}

/* Bracket-Akzent oben links */
.contact__bracket {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--color-red);
  border-left: 2px solid var(--color-red);
  pointer-events: none;
  z-index: 1;
}

/* Bracket unten rechts — Gegengewicht */
.contact__card::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 40px;
  height: 40px;
  border-bottom: 2px solid var(--color-red);
  border-right: 2px solid var(--color-red);
  pointer-events: none;
}

/* Statischer Glow hinter der Card */
.contact__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse 50% 50% at center, rgba(232, 25, 44, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Maus-Follow Glow auf der Contact-Card */
.contact__mouse-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 25, 44, 0.07) 0%, rgba(232, 25, 44, 0.02) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
}

.contact__card:hover .contact__mouse-glow {
  opacity: 1;
}

@media (pointer: coarse) {
  .contact__mouse-glow { display: none; }
}

/* 3-Spalten-Row für Name/Email/Projekttyp */
.form__row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 767px) {
  .form__row--3 { grid-template-columns: 1fr; }
}

/* Form Footer: Checkbox links, Button rechts */
.form__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.form__footer .form__field {
  flex: 1;
  min-width: 200px;
}

.form__footer .btn {
  flex-shrink: 0;
  align-self: flex-end;
}

@media (max-width: 767px) {
  .contact__headline {
    font-size: clamp(32px, 10vw, 52px);
  }
  .contact__top {
    margin-bottom: var(--space-xl);
  }
  .contact__bar {
    margin-bottom: var(--space-xl);
  }
  .contact__card {
    padding: clamp(24px, 6vw, 40px);
  }
  .contact__bracket,
  .contact__card::after {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 599px) {
  .form__footer { flex-direction: column; }
  .form__footer .btn { width: 100%; justify-content: center; }
}


/* ────────────────────────────────────────────────────────────
   PROCESS
   ──────────────────────────────────────────────────────────── */
.process { background: var(--color-bg-elevated); }

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.process__step {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-subtle);
  position: relative;
}

.process__step::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-red);
  transition: width 0.5s var(--ease-out);
}
.process__step:hover::before { width: 100%; }

.process__step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--color-red);
  font-weight: 400;
}

.process__step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  line-height: 1.1;
  transition: color 0.3s ease;
}

.process__step:hover .process__step-title {
  color: var(--color-red);
}

.process__step-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 1023px) { .process__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px)  { .process__grid { grid-template-columns: 1fr; } }


/* ────────────────────────────────────────────────────────────
   PAGE HERO — Unterseiten (Work, About, Services)
   ──────────────────────────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  position: relative;
}

.page-hero__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5.5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

.page-hero__text {
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 52ch;
  margin: 0;
}

@media (max-width: 767px) {
  .page-hero { padding-top: calc(var(--nav-height) + var(--space-2xl)); }
}


/* ────────────────────────────────────────────────────────────
   FILTER BAR — Work Page Kategorie-Filter
   ──────────────────────────────────────────────────────────── */
.filter-bar {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  padding-block: clamp(12px, 2vw, 18px);
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
}

.filter-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 20px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-bar__inner::-webkit-scrollbar { display: none; }

.filter-bar__btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: none;
  border: 1px solid transparent;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.filter-bar__btn:hover {
  color: var(--color-text-secondary);
}

.filter-bar__btn.active {
  color: var(--color-red);
  border-color: var(--color-red);
}


/* ────────────────────────────────────────────────────────────
   WORK PAGE — Erweitertes Grid (8 Projekte, 2 Spalten)
   ──────────────────────────────────────────────────────────── */
.work-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 24px);
}

.work-page__grid .card__img-wrap {
  aspect-ratio: 16 / 10;
}

.work-page__grid .card__placeholder {
  min-height: 0;
}

@media (max-width: 767px) {
  .work-page__grid { grid-template-columns: 1fr; }
}

/* Versteckte Cards — "Weitere Projekte" */
.card--hidden {
  display: none;
}

.work-page__grid.show-all .card--hidden {
  display: block;
  animation: slide-up 0.6s var(--ease-out) both;
}

.work-page__grid.show-all .card--hidden:nth-child(n+9) {
  animation-delay: calc((var(--i, 0)) * 0.08s);
}

/* Zusätzliche Placeholder-Farben */
.card__placeholder--5 { background: linear-gradient(140deg, #14100e 0%, #1e180f 60%, #0f0c08 100%); }
.card__placeholder--6 { background: linear-gradient(140deg, #120d18 0%, #1a1022 60%, #0d0812 100%); }
.card__placeholder--7 { background: linear-gradient(140deg, #0e1214 0%, #141c20 60%, #080e10 100%); }
.card__placeholder--8 { background: linear-gradient(140deg, #18140e 0%, #201a10 60%, #100e08 100%); }


/* ────────────────────────────────────────────────────────────
   SERVICE DETAIL — Einzelne Leistung, Split-Layout
   ──────────────────────────────────────────────────────────── */
.service-detail {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.service-detail--alt {
  background: var(--color-bg-elevated);
}

.service-detail__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: relative;
}

/* Hintergrund-Nummer — versteckt */
.service-detail__bg-num {
  display: none;
}

/* Diagonale Akzent-Linie — Logo-Pfeil-Motiv, wechselt Seite */
.service-detail__diagonal {
  position: absolute;
  top: 15%;
  right: clamp(40px, 6vw, 100px);
  width: clamp(80px, 12vw, 180px);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(232, 25, 44, 0.25) 50%, transparent 100%);
  transform: rotate(-45deg);
  pointer-events: none;
  z-index: 0;
}

.service-detail--alt .service-detail__diagonal {
  right: auto;
  left: clamp(40px, 6vw, 100px);
  transform: rotate(45deg);
}

@media (max-width: 767px) {
  .service-detail__diagonal { display: none; }
}

/* Bracket-Akzent oben links — Logo-Motiv */
.service-detail__bracket {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-top: 2px solid rgba(232, 25, 44, 0.20);
  border-left: 2px solid rgba(232, 25, 44, 0.20);
  pointer-events: none;
  z-index: 0;
  transition: border-color 0.5s ease;
}

.service-detail:hover .service-detail__bracket {
  border-color: rgba(232, 25, 44, 0.45);
}

/* Dezenter Glow — leuchtet beim Scrollen in den Viewport */
.service-detail__glow {
  position: absolute;
  top: 20%;
  left: -15%;
  width: 45%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(232, 25, 44, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.service-detail--alt .service-detail__glow {
  left: auto;
  right: -15%;
}

.service-detail:hover .service-detail__glow {
  opacity: 1;
}

.service-detail__header {
  display: flex;
  align-items: baseline;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}


.service-detail__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--color-red);
  display: block;
  margin-bottom: var(--space-md);
}

.service-detail__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.service-detail__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.service-detail__desc {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 70ch;
  margin: 0;
}

.service-detail__includes h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.service-detail__includes ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(24px, 4vw, 48px);
}

@media (max-width: 599px) {
  .service-detail__includes ul { grid-template-columns: 1fr; }
}

.service-detail__includes li {
  font-size: var(--text-body);
  font-weight: 300;
  color: var(--color-text-secondary);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-subtle);
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: baseline;
  gap: 0;
}

.service-detail__includes li:first-child {
  border-top: 1px solid var(--color-border-subtle);
}

.service-detail__includes li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-red);
  justify-self: center;
  margin-top: 2px;
}

@media (max-width: 767px) {
  .service-detail__header {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .service-detail__bg-num {
    font-size: 120px;
    right: -0.1em;
  }
  .service-detail__bracket {
    width: 24px;
    height: 24px;
  }
}


/* ────────────────────────────────────────────────────────────
   SKILLS GRID — About Page
   ──────────────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}

.skill-group {
  background: var(--color-bg);
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-lg);
  position: relative;
}

/* Bracket-Akzent oben links */
.skill-group::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--color-red);
  border-left: 2px solid var(--color-red);
  pointer-events: none;
}

.skill-group__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.skill-group__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-group__list li {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-secondary);
  padding-left: 16px;
  position: relative;
}

.skill-group__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text-muted);
}

@media (max-width: 1023px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px)  { .skills-grid { grid-template-columns: 1fr; } }


/* ────────────────────────────────────────────────────────────
   CTA BAND — Schlussbereich auf Unterseiten
   ──────────────────────────────────────────────────────────── */
/* ────────────────────────────────────────────────────────────
   LOGO SLIDER — Kunden-Logos, endlos scrollend
   ──────────────────────────────────────────────────────────── */
.logo-slider-section {
  background: #f5f5f5;
  overflow: hidden;
  padding-block: var(--space-md) var(--space-lg);
}

.logo-slider-section .section-label {
  display: block;
  text-align: center;
  margin-bottom: var(--space-sm);
}


.logo-slider {
  overflow: hidden;
  padding-block: var(--space-sm);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.logo-slider__track {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  width: max-content;
  animation: logo-scroll 40s linear infinite;
}

.logo-slider:hover .logo-slider__track {
  animation-play-state: paused;
}

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-slider__logo {
  height: clamp(56px, 8vw, 90px);
  width: clamp(130px, 14vw, 180px);
  object-fit: contain;
  object-position: center;
  opacity: 0.7;
  filter: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.logo-slider__logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 599px) {
  .logo-slider__logo { height: 40px; width: 120px; }
}


/* ────────────────────────────────────────────────────────────
   BRANCHEN TAGS — About Page
   ──────────────────────────────────────────────────────────── */
.branchen-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1.5vw, 14px);
}

.branchen-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.branchen-tag:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}


/* ────────────────────────────────────────────────────────────
   STANDORT FACTS — About Page
   ──────────────────────────────────────────────────────────── */
.standort-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.standort-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-lg);
  border: 1px solid var(--color-border-subtle);
  position: relative;
}

.standort-fact::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--color-red);
  border-left: 2px solid var(--color-red);
  pointer-events: none;
}

.standort-fact__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-text-primary);
}

.standort-fact__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}


/* ────────────────────────────────────────────────────────────
   CTA BAND — Schlussbereich auf Unterseiten
   ──────────────────────────────────────────────────────────── */
/* ────────────────────────────────────────────────────────────
   CASE STUDY — Einzelprojekt-Seite
   ──────────────────────────────────────────────────────────── */
.case-hero {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-xl);
}

.case-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: var(--space-lg);
  transition: color 0.2s ease, gap 0.2s ease;
}

.case-hero__back:hover {
  color: var(--color-red);
  gap: 12px;
}

/* Zurück-Link + Label auf Branchen/Case-Pages sauber stacken */
.page-hero .case-hero__back,
.case-hero .case-hero__back {
  display: flex;
  margin-bottom: var(--space-lg);
}

.page-hero .section-label,
.case-hero .section-label {
  margin-bottom: var(--space-md);
}

.case-hero__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.case-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 8vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.case-hero__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 8px;
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 6px 14px;
  border: 1px solid var(--color-border);
}

/* Hero Image */
.case-image {
  padding-bottom: var(--space-2xl);
}

.case-image__wrap {
  overflow: hidden;
  background: var(--color-bg-elevated);
}

.case-image__wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Project Info Bar */
.case-info {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-xl);
}

.case-info__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.case-info__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-info__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.case-info__value {
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--color-text-secondary);
}

@media (max-width: 767px) {
  .case-info__grid { grid-template-columns: repeat(2, 1fr); }
  .case-hero__header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .case-info__grid { grid-template-columns: 1fr; }
}

/* Content Blocks */
.case-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h2);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.case-block p {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 65ch;
}

/* Gallery Grid */
.case-gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 24px);
}

.case-gallery__grid:has(:only-child) {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin-inline: auto;
}

.case-gallery__item {
  overflow: hidden;
  background: var(--color-bg);
}

.case-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease-expo);
}

.case-gallery__item:hover img {
  transform: scale(1.03);
}

@media (max-width: 599px) {
  .case-gallery__grid { grid-template-columns: 1fr; }
}

/* Kundenzitat */
.case-quote {
  border-left: 2px solid var(--color-red);
  padding: var(--space-lg) var(--space-xl);
  margin-top: var(--space-2xl);
}

.case-quote p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2.5vw, 28px);
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.case-quote cite {
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Next Project Link */
.case-next__link {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.case-next__link:hover {
  color: var(--color-red);
}


/* ────────────────────────────────────────────────────────────
   BRANCH LINKS — Branchen-Übersicht auf Work-Seite
   ──────────────────────────────────────────────────────────── */
.branch-links {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
}

.branch-links .section-label {
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.branch-links__tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(8px, 1.5vw, 12px);
}

.branch-links__tags .branchen-tag {
  text-decoration: none;
}

.branch-links__grid {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 20px);
  flex-wrap: wrap;
}

.branch-links__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-lg) var(--space-xl);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: border-color 0.25s ease;
  position: relative;
  min-width: 200px;
}

.branch-links__item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 20px;
  height: 20px;
  border-top: 2px solid rgba(232, 25, 44, 0.20);
  border-left: 2px solid rgba(232, 25, 44, 0.20);
  pointer-events: none;
  transition: border-color 0.25s ease;
}

.branch-links__item:hover {
  border-color: var(--color-red);
}

.branch-links__item:hover::before {
  border-color: rgba(232, 25, 44, 0.50);
}

.branch-links__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  transition: color 0.2s ease;
}

.branch-links__item:hover .branch-links__title {
  color: var(--color-red);
}

.branch-links__count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

@media (max-width: 599px) {
  .branch-links__grid { flex-direction: column; }
  .branch-links__item { min-width: 0; }
}


/* ────────────────────────────────────────────────────────────
   BRANCH CASE — Projekt auf Branchen-Landingpage
   ──────────────────────────────────────────────────────────── */
.branch-case {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-top: var(--space-xl);
}

.branch-case--reverse {
  grid-template-columns: 1fr 1.2fr;
}

.branch-case--reverse .branch-case__image {
  order: 2;
}

.branch-case--reverse .branch-case__content {
  order: 1;
}

.branch-case__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.branch-case__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.branch-case__desc {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 50ch;
  margin: 0;
}

.branch-case__details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.branch-case__details li {
  font-size: var(--text-body);
  font-weight: 300;
  color: var(--color-text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-subtle);
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: baseline;
  gap: 0;
}

.branch-case__details li:first-child {
  border-top: 1px solid var(--color-border-subtle);
}

.branch-case__details li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-red);
  justify-self: center;
  margin-top: 2px;
}

@media (max-width: 767px) {
  .branch-case,
  .branch-case--reverse {
    grid-template-columns: 1fr;
  }
  .branch-case--reverse .branch-case__image,
  .branch-case--reverse .branch-case__content {
    order: unset;
  }
}


/* ────────────────────────────────────────────────────────────
   FAQ — Accordion
   ──────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-subtle);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border-subtle);
}

.faq-item__question {
  font-family: var(--font-ui);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  color: var(--color-text-primary);
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  transition: color 0.2s ease;
}

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

.faq-item__question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.faq-item[open] .faq-item__question::after {
  content: '\2212';
  color: var(--color-red);
}

.faq-item__question:hover {
  color: var(--color-red);
}

.faq-item__answer {
  font-size: var(--text-body);
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.75;
  padding-bottom: 20px;
  max-width: 65ch;
}


/* ────────────────────────────────────────────────────────────
   CTA BAND — Schlussbereich auf Unterseiten
   ──────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
}