/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ════════════════════════════════════════ */
/* PARALLAX HERO (für Detail-Seiten)         */
/* ════════════════════════════════════════ */
.parallax-wrap {
  position: relative;
  overflow: hidden;
}
.parallax-img {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center 50%;
  will-change: transform;
  z-index: 0;
}
.parallax-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(12,12,20,0.80) 0%, rgba(12,12,20,0.60) 40%, rgba(12,12,20,0.40) 100%);
  z-index: 1;
}
.hero-dark .hero-inner {
  position: relative;
  z-index: 2;
}

/* ════════════════════════════════════════ */
  font-family: var(--font-display); font-weight: 400;
  line-height: 1.15; color: var(--text-heading); letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
@media (min-width: 768px) {
  h1 { font-size: var(--fs-5xl); }
  h2 { font-size: var(--fs-4xl); }
}

p { margin-bottom: 1.5rem; max-width: 65ch; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-dark); }

.container {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--container-pad);
}
.container-narrow {
  max-width: 720px; margin: 0 auto;
  padding: 0 var(--container-pad);
}
.section { padding: 6rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 10rem 0; }
.section-gray { background: var(--bg-section); }
.section-dark { background: var(--bg-dark); color: #D8D4CE; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--warm-white); }
.section-dark p { color: #A8A29E; }

/* Number badge */
.num-badge {
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-primary);
  display: block; margin-bottom: 1.5rem;
}

/* Buttons: Soft, nicht pushy */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem; font-family: var(--font-body); font-size: var(--fs-sm);
  font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: 2px; cursor: pointer; transition: all var(--transition-medium);
  border: none; white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary); color: var(--warm-white);
}
.btn-primary:hover {
  background: var(--color-primary-dark); transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}
.btn-ghost {
  background: transparent; color: var(--text-heading);
  border: 1.5px solid var(--border-medium);
}
.btn-ghost:hover {
  border-color: var(--color-primary); color: var(--color-primary);
  transform: translateY(-2px);
}

/* Ghost-Button auf dunklen Hero-Hintergründen */
.parallax-hero-inner .btn-ghost,
.hero-dark .btn-ghost,
.parallax-wrap .btn-ghost {
  color: var(--warm-white);
  border-color: rgba(255,255,255,0.5);
}
.parallax-hero-inner .btn-ghost:hover,
.hero-dark .btn-ghost:hover,
.parallax-wrap .btn-ghost:hover {
  color: var(--warm-white);
  border-color: var(--warm-white);
  background: rgba(255,255,255,0.1);
}

.btn-secondary {
  background: transparent; color: var(--warm-white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6);
}

/* Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 4px; padding: 2rem;
  transition: all var(--transition-medium);
}
.card:hover {
  border-color: var(--warm-stone); box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

/* Divider */
.divider {
  width: 40px; height: 2px; background: var(--color-primary); margin: 2rem 0;
}
.divider-center { margin-left: auto; margin-right: auto; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.15s; }
.reveal-d2 { transition-delay: 0.3s; }
.reveal-d3 { transition-delay: 0.45s; }

/* ════════════════════════════════════════ */
/* BILD-STYLES                             */
/* ════════════════════════════════════════ */
.img-cover {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 4px;
  transition: transform var(--transition-slow);
}
img {
  max-width: 100%;
  height: auto;
}
.img-wrap {
  position: relative; overflow: hidden; border-radius: 4px;
  min-height: 280px;
}
.img-wrap:hover .img-cover {
  transform: scale(1.03);
}
.img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(42,38,34,0.5) 0%, transparent 60%);
  border-radius: 4px;
}
.img-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem; color: var(--warm-white);
  font-size: var(--fs-sm);
}
.img-caption h4 {
  color: var(--warm-white); font-size: var(--fs-xl); margin-bottom: 0.5rem;
}

/* Hero mit Bild */
.hero-img {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('/assets/images/berlin-sky.jpg');
  background-size: cover; background-position: center 40%;
}
.hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(12,12,20,0.85) 0%, rgba(12,12,20,0.70) 40%, rgba(12,12,20,0.50) 100%);
}
.hero .hero-label,
.hero .hero-title,
.hero .hero-subtitle {
  color: #EDEAE6;
}

@media (max-width: 900px) {
  .img-wrap { min-height: 220px; }
}

@media (max-width: 767px) {
  .img-wrap { min-height: 180px; }
}

::selection { background: var(--color-primary); color: white; }

/* ════════════════════════════════════════ */
/* NAV SCROLL STATE                        */
/* ════════════════════════════════════════ */
.nav-scrolled {
  box-shadow: 0 1px 0 rgba(42,38,34,0.06);
  background: rgba(250,250,248,0.98) !important;
}

/* ════════════════════════════════════════ */
/* HERO – Drei Pfade                       */
/* ════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h);
  background: var(--bg-body);
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(33,0,133,0.03) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(237,234,230,0.6) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-label {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--color-primary); font-weight: 500; margin-bottom: 2rem;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-family: var(--font-display); font-weight: 400;
  line-height: 1.1; color: var(--text-heading); max-width: 14ch;
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: var(--fs-lg); color: var(--text-muted); max-width: 50ch;
  margin-bottom: 3rem; line-height: 1.7;
}
.hero-paths {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 2rem;
}
.hero-path {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 4px; padding: 2.5rem;
  transition: all var(--transition-medium); cursor: pointer; text-decoration: none;
  display: flex; flex-direction: column;
}
.hero-path:hover {
  border-color: var(--color-primary); transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}
.hero-path-num {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--color-primary); font-weight: 600; margin-bottom: 1rem;
}
.hero-path h3 {
  font-size: var(--fs-xl); margin-bottom: 0.75rem; color: var(--text-heading);
}
.hero-path p {
  font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 1.5rem;
  line-height: 1.6; flex: 1;
}
.hero-path .arrow {
  font-size: var(--fs-sm); color: var(--color-primary); font-weight: 500;
  display: flex; align-items: center; gap: 0.5rem;
}
@media (max-width: 900px) {
  .hero-paths { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 3rem) 0 4rem; }
}

/* ════════════════════════════════════════ */
/* 72 STUNDEN – TIMELINE                   */
/* ════════════════════════════════════════ */
.timeline {
  position: relative; padding-left: 2rem;
}
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--border-light);
}
.timeline-item {
  position: relative; padding-bottom: 3rem; padding-left: 2rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -2rem; top: 0.4rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-primary); border: 3px solid var(--warm-white);
  box-shadow: 0 0 0 2px var(--color-primary);
  transform: translateX(-5px);
}
.timeline-time {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--color-primary); font-weight: 600; margin-bottom: 0.5rem;
}
.timeline-item h4 { font-size: var(--fs-lg); margin-bottom: 0.5rem; }
.timeline-item p { font-size: var(--fs-base); color: var(--text-muted); margin-bottom: 0; }

/* ════════════════════════════════════════ */
/* GRID KOMPONENTEN                        */
/* ════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.grid-2.first-help-grid > div:nth-child(1) { order: 2; }
.grid-2.first-help-grid > div:nth-child(2) { order: 1; }
.grid-2.first-help-grid { align-items: start; /* Damit Sticky funktioniert: Spalten nicht gleich hoch ziehen */ }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════ */
/* TESTIMONIAL                             */
/* ════════════════════════════════════════ */
.testimonial {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 4px; padding: 3rem;
}
.testimonial-quote {
  font-family: var(--font-display); font-size: var(--fs-2xl);
  font-style: italic; color: var(--text-heading); line-height: 1.4;
  margin-bottom: 2rem;
}
.testimonial-author {
  font-size: var(--fs-sm); color: var(--text-muted);
}
.testimonial-author strong { color: var(--text-heading); }

/* ════════════════════════════════════════ */
/* CTA SECTION                             */
/* ════════════════════════════════════════ */
.cta-section {
  text-align: center; padding: 8rem 0;
}
.cta-section h2 { margin-bottom: 1.5rem; }
.cta-section p { margin: 0 auto 2.5rem; color: var(--text-muted); max-width: 55ch; }

/* ════════════════════════════════════════ */
/* PAGE HEADER                             */
/* ════════════════════════════════════════ */
.page-header {
  padding: calc(var(--header-h) + 5rem) 0 5rem;
  background: var(--bg-section);
}
.page-header h1 { margin-bottom: 1rem; }
.page-header p { color: var(--text-muted); max-width: 55ch; }

/* ════════════════════════════════════════ */
/* CONTACT / LEGAL                         */
/* ════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info address {
  font-style: normal; line-height: 2; margin-bottom: 2rem;
}
.contact-info strong { color: var(--text-heading); }
.contact-notruf {
  font-size: var(--fs-2xl); font-weight: 600; color: var(--color-primary);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-size: var(--fs-sm); font-weight: 500;
  color: var(--text-heading); margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 1rem; font-family: var(--font-body); font-size: var(--fs-base);
  border: 1.5px solid var(--border-light); border-radius: 4px;
  background: var(--bg-card); color: var(--text-body);
  transition: border-color var(--transition-fast);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--color-primary);
}
.legal-content h2 { margin-top: 3rem; margin-bottom: 1rem; font-size: var(--fs-2xl); }
.legal-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: var(--fs-xl); }
.legal-content p { margin-bottom: 1rem; color: var(--text-muted); }
.legal-content ul { margin-left: 1.5rem; margin-bottom: 1.5rem; color: var(--text-muted); }
.legal-content li { margin-bottom: 0.5rem; }

/* ════════════════════════════════════════ */
/* BREADCRUMB                              */
/* ════════════════════════════════════════ */
.breadcrumb {
  font-size: var(--fs-sm); color: var(--text-light);
  padding-top: calc(var(--header-h) + 1rem);
  padding-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span.sep { margin: 0 0.5rem; color: var(--warm-stone); }

/* ════════════════════════════════════════ */
/* ACCORDION FAQ                           */
/* ════════════════════════════════════════ */
.accordion-item {
  border-bottom: 1px solid var(--border-light);
}
.accordion-trigger {
  width: 100%; background: none; border: none;
  text-align: left; padding: 1.5rem 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: var(--fs-lg);
  color: var(--text-heading); gap: 1rem;
}
.accordion-trigger span:last-child {
  font-size: 1.5rem; font-weight: 300; color: var(--color-primary);
  flex-shrink: 0; transition: transform var(--transition-fast);
}
.accordion-item.open .accordion-trigger span:last-child {
  transform: rotate(45deg);
}
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height var(--transition-medium), padding var(--transition-medium);
}
.accordion-item.open .accordion-body {
  max-height: 600px; padding-bottom: 1.5rem;
}
.accordion-body p { color: var(--text-muted); margin-bottom: 0; font-size: var(--fs-base); }

/* ════════════════════════════════════════ */
/* VARIANTEN / OPTIONEN GRID               */
/* ════════════════════════════════════════ */
.variant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 2rem; }
.variant-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 4px; overflow: hidden; transition: all var(--transition-medium);
}
.variant-card:hover { box-shadow: var(--shadow-medium); transform: translateY(-4px); }
.variant-card .variant-img { aspect-ratio: 16 / 10; overflow: hidden; }
.variant-card .variant-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.variant-card:hover .variant-img img { transform: scale(1.04); }
.variant-card .variant-body { padding: 1.75rem; }
.variant-card h4 { font-size: var(--fs-lg); margin-bottom: 0.5rem; }
.variant-card p { font-size: var(--fs-base); color: var(--text-muted); margin-bottom: 0; }
@media (max-width: 767px) {
  .variant-grid { grid-template-columns: 1fr; }
  .variant-card .variant-img { aspect-ratio: 16 / 10; max-height: 220px; }
  .variant-card .variant-body { padding: 1.25rem; }
}
.variant-meta {
  display: flex; gap: 1rem; margin-top: 1rem;
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-primary); font-weight: 600;
}

/* ════════════════════════════════════════ */
/* ABLAUF TIMELINE (horizontal scroll)     */
/* ════════════════════════════════════════ */
.process-timeline {
  display: flex; gap: 0; position: relative;
}
.process-step {
  flex: 1; position: relative; padding: 2rem 1.5rem 0;
  text-align: center; border-top: 2px solid var(--border-light);
}
.process-step::before {
  content: attr(data-step);
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary); color: white;
  font-size: var(--fs-sm); font-weight: 700; line-height: 40px;
}
.process-step h4 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.process-step p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 0; }
@media (max-width: 768px) {
  .process-timeline { flex-direction: column; gap: 2rem; }
  .process-step { border-top: none; border-left: 2px solid var(--border-light); text-align: left; padding: 0 0 0 2rem; }
  .process-step::before { left: -20px; top: 0; transform: none; }
}

/* ════════════════════════════════════════ */
/* BLOCKQUOTE / INFO-BOX                   */
/* ════════════════════════════════════════ */
.blockquote-section {
  background: var(--bg-section); border-left: 3px solid var(--color-primary);
  padding: 2rem 2.5rem; margin: 3rem 0;
}
.blockquote-section p.quote {
  font-family: var(--font-display); font-size: var(--fs-xl); font-style: italic;
  color: var(--text-heading); line-height: 1.5; margin-bottom: 1rem;
}
.blockquote-section .source {
  font-size: var(--fs-sm); color: var(--text-muted);
}

.info-box {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 4px; padding: 2rem; margin: 2rem 0;
}
.info-box h4 {
  font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-primary); margin-bottom: 1rem; font-weight: 600;
}
.info-box ul { margin-left: 1.2rem; color: var(--text-body); }
.info-box li { margin-bottom: 0.5rem; }

/* ════════════════════════════════════════ */
/* WUSSTEN SIE SCHON                       */
/* ════════════════════════════════════════ */
.trivia-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.5rem; }
.trivia-item {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 4px; padding: 2rem;
  transition: all var(--transition-medium);
}
.trivia-item:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.trivia-num {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--color-primary); font-weight: 700; display: block; margin-bottom: 0.75rem;
}
.trivia-item p { font-size: var(--fs-base); color: var(--text-body); margin-bottom: 0; line-height: 1.6; }

/* ════════════════════════════════════════ */
/* TYPE CHECK / PASSEND FÜR WEN            */
/* ════════════════════════════════════════ */
.type-check {
  background: linear-gradient(135deg, var(--warm-cream) 0%, var(--warm-sand) 100%);
  border-radius: 4px; padding: 3rem;
}
.type-check h3 { margin-bottom: 1.5rem; }
.type-list { display: flex; flex-direction: column; gap: 1rem; }
.type-row {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--bg-card); border-radius: 4px; padding: 1.5rem;
  border: 1px solid var(--border-light);
}
.type-row svg { flex-shrink: 0; margin-top: 0.2rem; }
.type-row h5 { font-size: var(--fs-base); margin-bottom: 0.25rem; color: var(--text-heading); }
.type-row p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 0; }

/* ════════════════════════════════════════ */
/* PAGE HERO MINI                          */
/* ════════════════════════════════════════ */
.page-hero-mini {
  min-height: 55vh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 5rem) 0 5rem;
  position: relative; overflow: hidden;
  background: var(--bg-dark); color: var(--warm-white);
}
.page-hero-mini .hero-img { opacity: 0.5; }
.page-hero-mini .hero-img::after {
  background: linear-gradient(to top, rgba(42,38,34,0.95) 0%, rgba(42,38,34,0.5) 60%, rgba(42,38,34,0.2) 100%);
}
.page-hero-mini .hero-label { color: var(--text-light); }
.page-hero-mini h1 { color: var(--warm-white); max-width: 16ch; }
.page-hero-mini p { color: #A8A29E; max-width: 50ch; }

/* ════════════════════════════════════════ */
/* GALLERY ROW                             */
/* ════════════════════════════════════════ */
.gallery-row { display: flex; gap: 1rem; margin: 2rem 0; }
.gallery-row .img-wrap { flex: 1; min-height: 220px; border-radius: 4px; }
@media (max-width: 768px) {
  .gallery-row { flex-direction: column; }
  .gallery-row .img-wrap { min-height: 180px; }
}

/* narrow container for articles */
.article-body { max-width: 720px; margin: 0 auto; }

/* ════════════════════════════════════════ */
/* 3D TOPIC CARDS                           */
/* ════════════════════════════════════════ */
.perspective-grid {
  perspective: 1200px;
  perspective-origin: 50% 50%;
}
.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
  will-change: transform;
}
.topic-card:hover {
  transform: translateZ(40px) rotateX(-2deg) rotateY(2deg);
  box-shadow: 0 25px 50px -12px rgba(42,38,34,0.25), 0 0 0 1px rgba(42,38,34,0.05);
}
.topic-card .card-img {
  height: 220px; overflow: hidden; position: relative;
}
.topic-card .card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(42,38,34,0.4) 0%, transparent 50%);
}
.topic-card .card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.topic-card:hover .card-img img {
  transform: scale(1.08);
}
.topic-card .card-body {
  padding: 2rem;
}
.topic-card h3 {
  font-size: var(--fs-xl); margin-bottom: 0.75rem;
}
.topic-card p {
  color: var(--text-muted); font-size: var(--fs-base); margin-bottom: 0; line-height: 1.6;
}
.topic-card .card-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem; font-size: var(--fs-sm); font-weight: 500;
  color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.05em;
  transition: gap 0.3s ease;
}
.topic-card:hover .card-link {
  gap: 1rem;
}

/* Asymmetric masonry grid */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 2rem;
}
.masonry-grid .topic-card:nth-child(1) { grid-row: span 1; }
.masonry-grid .topic-card:nth-child(2) { grid-row: span 2; }
.masonry-grid .topic-card:nth-child(3) { grid-row: span 1; }
.masonry-grid .topic-card:nth-child(4) { grid-row: span 2; }
.masonry-grid .topic-card:nth-child(5) { grid-row: span 1; }
.masonry-grid .topic-card:nth-child(6) { grid-row: span 1; }
.masonry-grid .topic-card:nth-child(7) { grid-row: span 1; }
@media (max-width: 900px) {
  .masonry-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry-grid .topic-card { grid-row: span 1 !important; }
}
@media (max-width: 600px) {
  .masonry-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════ */
/* PARALLAX SECTIONS                        */
/* ════════════════════════════════════════ */
.parallax-section {
  position: relative; overflow: hidden;
  min-height: 50vh; display: flex; align-items: center; justify-content: center;
}
.parallax-bg {
  position: absolute; inset: -20%;
  background-size: cover; background-position: center;
  will-change: transform;
}
.parallax-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(12,12,20,0.75) 0%, rgba(12,12,20,0.55) 50%, rgba(12,12,20,0.35) 100%);
}
.parallax-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 800px; padding: 0 var(--container-pad);
}
.parallax-content blockquote {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem);
  font-style: italic; color: var(--warm-white); line-height: 1.3;
  margin-bottom: 2rem;
}
.parallax-content cite {
  font-size: var(--fs-sm); color: var(--text-light); font-style: normal;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ════════════════════════════════════════ */
/* ACCORDION — SMOOTH                       */
/* ════════════════════════════════════════ */
.accordion-smooth .accordion-item {
  border-bottom: 1px solid var(--border-light);
}
.accordion-smooth .accordion-trigger {
  width: 100%; background: none; border: none;
  text-align: left; padding: 1.75rem 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: var(--fs-lg);
  color: var(--text-heading); gap: 1rem;
  transition: color 0.3s ease;
}
.accordion-smooth .accordion-trigger:hover {
  color: var(--color-primary);
}
.accordion-smooth .accordion-trigger .acc-icon {
  width: 24px; height: 24px; position: relative; flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.accordion-smooth .accordion-trigger .acc-icon::before,
.accordion-smooth .accordion-trigger .acc-icon::after {
  content: ''; position: absolute; background: var(--color-primary);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.accordion-smooth .accordion-trigger .acc-icon::before {
  width: 14px; height: 2px; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.accordion-smooth .accordion-trigger .acc-icon::after {
  width: 2px; height: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.accordion-smooth .accordion-item.open .accordion-trigger .acc-icon {
  transform: rotate(45deg);
}
.accordion-smooth .accordion-panel {
  display: grid;
  grid-template-rows: 1fr; /* No-JS: offen */
}
/* JS aktiv: collapsed by default */
body.js-enabled .accordion-smooth .accordion-panel {
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
body.js-enabled .accordion-smooth .accordion-item.open .accordion-panel {
  grid-template-rows: 1fr;
}
.accordion-smooth .accordion-panel-inner {
  overflow: hidden;
}
.accordion-smooth .accordion-panel-inner p {
  color: var(--text-muted); font-size: var(--fs-base); line-height: 1.7;
  padding-bottom: 1.75rem; margin-bottom: 0;
}

/* ════════════════════════════════════════ */
/* SCROLL ENTRANCE ANIMATIONS (diverse)    */
/* ════════════════════════════════════════ */
/* Default: immer sichtbar (no-js fallback) */
.entrance-3d, .entrance-left, .entrance-pop, .entrance-wipe, .entrance-blur {
  opacity: 1; transform: none; clip-path: none; filter: none;
}

/* Wenn JS läuft: Animation aktivieren */
body.js-enabled .entrance-3d {
  opacity: 0; transform: translateY(60px) rotateX(10deg);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center bottom;
}
body.js-enabled .entrance-3d.visible {
  opacity: 1; transform: translateY(0) rotateX(0);
}

/* Slide from left */
body.js-enabled .entrance-left {
  opacity: 0; transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
body.js-enabled .entrance-left.visible {
  opacity: 1; transform: translateX(0);
}

/* Scale pop with overshoot */
body.js-enabled .entrance-pop {
  opacity: 0; transform: scale(0.7);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
body.js-enabled .entrance-pop.visible {
  opacity: 1; transform: scale(1);
}

/* Wipe reveal from left */
body.js-enabled .entrance-wipe {
  opacity: 0; clip-path: inset(0 100% 0 0);
  transition: opacity 0.6s ease, clip-path 1s cubic-bezier(0.22, 1, 0.36, 1);
}
body.js-enabled .entrance-wipe.visible {
  opacity: 1; clip-path: inset(0 0% 0 0);
}

/* Blur in */
body.js-enabled .entrance-blur {
  opacity: 0; filter: blur(12px);
  transition: opacity 1s ease, filter 1s ease;
}
body.js-enabled .entrance-blur.visible {
  opacity: 1; filter: blur(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .entrance-3d, .entrance-left, .entrance-pop, .entrance-wipe, .entrance-blur,
  .reveal, .reveal-d1, .reveal-d2, .reveal-d3 {
    opacity: 1; transform: none; clip-path: none; filter: none;
    transition: none;
  }
  .topic-card:hover { transform: none; }
}

/* ════════════════════════════════════════ */
/* TOPIC OVERVIEW PAGE HERO                 */
/* ════════════════════════════════════════ */
.topic-hero {
  min-height: 70vh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 6rem) 0 5rem;
  position: relative; overflow: hidden;
  background: var(--bg-dark);
}
.topic-hero-bg {
  position: absolute; inset: -10%;
  background-size: cover; background-position: center 50%;
  will-change: transform;
}
.topic-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(12,12,20,0.80) 0%, rgba(12,12,20,0.60) 40%, rgba(12,12,20,0.40) 100%);
}
.topic-hero-inner {
  position: relative; z-index: 2;
}
.topic-hero-label {
  font-size: var(--fs-xs); letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 1.5rem; font-weight: 500;
}
.topic-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem); line-height: 0.95;
  color: #EDEAE6; max-width: 14ch; margin-bottom: 2rem;
}
.topic-hero p {
  font-size: var(--fs-xl); color: #A8A29E; max-width: 45ch; line-height: 1.6;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 4rem 0; }
  .section-lg { padding: 6rem 0; }
  .process-timeline { flex-direction: column; }
  .gallery-row { flex-direction: column; }
  .parallax-content blockquote { font-size: 1.5rem; }
  .topic-hero { min-height: 55vh; }
}

/* ════════════════════════════════════════════════════════════════ */
/* TRAUER-DETAILSEITEN — Mobile First                              */
/* ════════════════════════════════════════════════════════════════ */

/* ── Hero Basis (Mobile) ── */
.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) var(--container-pad) 3rem;
  overflow: hidden;
  color: var(--warm-white);
}
.page-hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65);
  z-index: 0;
}
.page-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,38,34,0.90) 0%, rgba(42,38,34,0.40) 60%, rgba(42,38,34,0.15) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
}
.page-hero-content h1 {
  color: var(--warm-white);
  font-size: var(--fs-3xl);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.section-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.subtitle {
  font-size: var(--fs-lg);
  color: #A8A29E;
  max-width: 55ch;
  margin-bottom: 0;
}

/* ── Lead / Intro Text ── */
.lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 65ch;
}

/* ── Content Sektionen ── */
.content-section {
  padding: 4rem var(--container-pad);
}
.content-section.section-light {
  background: var(--bg-section);
}
.section-intro {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 65ch;
  margin-bottom: 2.5rem;
}

/* ── Info Cards ── */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 1.5rem;
}
.info-card h4 {
  font-size: var(--fs-lg);
  margin-bottom: 1rem;
  color: var(--text-heading);
}
.info-card.warning {
  border-left: 3px solid #C9A227;
  background: rgba(201,162,39,0.04);
}
.info-card.error {
  border-left: 3px solid #B54A3F;
  background: rgba(181,74,63,0.04);
}

/* ── CTA Box ── */
.cta-box {
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2.5rem var(--container-pad);
}
.cta-box.centered {
  text-align: center;
}
.cta-box h2 {
  margin-bottom: 1rem;
}
.cta-box p {
  color: var(--text-muted);
  max-width: 55ch;
  margin: 0 auto 1.5rem;
}

/* ── Kosten Tabelle ── */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: var(--fs-sm);
}
.cost-table th,
.cost-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.cost-table th {
  font-weight: 600;
  color: var(--text-heading);
  background: var(--bg-section);
}
.cost-table td:last-child,
.cost-table th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Musik Liste ── */
.music-list {
  display: grid;
  gap: 1rem;
}
.music-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
}
.music-item h4 {
  font-size: var(--fs-base);
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}
.music-item p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ── Intro Text Container ── */
.intro-text {
  max-width: 700px;
}

/* ════════════════════════════════════════════════════════════════ */
/* TRAUER-DETAILSEITEN — Tablet (≥768px)                           */
/* ════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .page-hero {
    min-height: 50vh;
    padding-bottom: 4rem;
  }
  .page-hero-content h1 {
    font-size: var(--fs-4xl);
  }
  .content-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .info-card {
    padding: 2rem;
  }
  .cta-box {
    padding: 3rem;
  }
  .cost-table {
    font-size: var(--fs-base);
  }
  .music-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ════════════════════════════════════════════════════════════════ */
/* TRAUER-DETAILSEITEN — Desktop (≥1024px)                         */
/* ════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .page-hero {
    min-height: 55vh;
    padding-bottom: 5rem;
  }
  .page-hero-content h1 {
    font-size: var(--fs-5xl);
  }
  .content-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  .music-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
/* ════════════════════════════════════════════════════════════════ */
/* MOBILE FIRST OVERRIDES — Gerd Müller Bestattungen               */
/* ════════════════════════════════════════════════════════════════ */
/* Diese Regeln überschreiben Desktop-Defaults für Viewports       */
/* unter 768px. Alle Werte sind Mobile-First (klein = Default).    */
/* ════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
/* ── Basis: Kleine Schriftgrößen ── */
html, body {
  overflow-x: hidden;
}
html { font-size: 16px; }

/* ── Container-Padding: Mehr Luft ── */
:root { --container-pad: 1.25rem; }

/* ── Sections weniger Padding ── */
.section { padding: 3.5rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-lg { padding: 5rem 0; }

/* ── Hero: Kleinere Titel, mehr Padding-Top ── */
.hero { padding-top: calc(var(--header-h) + 1.5rem); }
.hero-title { font-size: clamp(2rem, 10vw, 3rem); line-height: 1.15; }
.hero-subtitle { font-size: var(--fs-base); }
.hero-path { padding: 1.75rem; }
.hero-path h3 { font-size: var(--fs-lg); }

/* ── Topic Hero: Weniger Höhe, kleinere Überschrift ── */
.topic-hero {
  min-height: 50vh;
  padding: calc(var(--header-h) + 2rem) var(--container-pad) 3rem;
}
.topic-hero h1 {
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.topic-hero p {
  font-size: var(--fs-lg);
  max-width: 100%;
}

/* ── Grids: immer 1-Spaltig ── */
.grid-2, .grid-3, .grid-4 {
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* ── Variant Cards: volle Breite ── */
.variant-grid {
  grid-template-columns: 1fr;
}

/* ── Info Cards: weniger Padding ── */
.info-card { padding: 1.25rem; }
.info-card h4 { font-size: var(--fs-base); }

/* ── CTA Box: kompakter ── */
.cta-box { padding: 2rem var(--container-pad); }

/* ── Music List: 1-spaltig ── */
.music-list { grid-template-columns: 1fr; }

/* ── Cost Table: scrollbar machen ── */
.cost-table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  font-size: var(--fs-xs);
}
.cost-table th,
.cost-table td {
  padding: 0.5rem 0.75rem;
}

/* ── Timeline: kompakter ── */
.timeline { padding-left: 1.5rem; }
.timeline-item { padding-left: 1.5rem; padding-bottom: 2rem; }

/* ── Buttons: volle Breite möglich ── */
.btn { padding: 0.875rem 1.5rem; font-size: var(--fs-xs); }

/* ── Parallax: reduzieren ── */
.parallax-section { margin: 3rem 0; min-height: 280px; }
.parallax-content blockquote { font-size: 1.25rem; }

/* ── Accordion: kompakter ── */
.accordion-trigger {
  padding: 1.25rem 0;
  font-size: var(--fs-base);
}

/* ── Page Header ── */
.page-header {
  padding: calc(var(--header-h) + 2.5rem) 0 2.5rem;
}

/* ── Info Box ── */
.info-box { padding: 1.5rem; margin: 1.5rem 0; }

/* ── Testimonial ── */
.testimonial { padding: 2rem; }
.testimonial-quote { font-size: var(--fs-xl); }

/* ── Process Timeline: vertikal ── */
.process-timeline { flex-direction: column; gap: 2rem; }
.process-step {
  border-top: none;
  border-left: 2px solid var(--border-light);
  text-align: left;
  padding: 0 0 0 2rem;
}
.process-step::before {
  left: -20px;
  top: 0;
  transform: none;
}

/* ── Type Check ── */
.type-check { padding: 2rem; }
.type-row { padding: 1.25rem; }

/* ── Contact Grid ── */
.contact-grid { grid-template-columns: 1fr; gap: 2rem; }

/* ── Gallery Row ── */
.gallery-row { flex-direction: column; }
.gallery-row .img-wrap { min-height: 180px; }

/* ── Formulare ── */
.form-group { margin-bottom: 1.25rem; }
.form-group input,
.form-group textarea,
.form-group select { padding: 0.75rem; font-size: 16px; }
}

/* ════════════════════════════════════════════════════════════════ */
/* TABLET  (≥768px)  — Hochskalierung                              */
/* ════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  html { font-size: 16px; }
  :root { --container-pad: 2rem; }

  .section { padding: 5rem 0; }
  .section-sm { padding: 3rem 0; }
  .section-lg { padding: 8rem 0; }

  .hero { padding-top: var(--header-h); }
  .hero-title { font-size: clamp(2.5rem, 6vw, 5rem); }
  .hero-subtitle { font-size: var(--fs-lg); }
  .hero-path { padding: 2.5rem; }

  .topic-hero {
    min-height: 60vh;
    padding: calc(var(--header-h) + 3rem) 0 4rem;
  }
  .topic-hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    margin-bottom: 2rem;
  }
  .topic-hero p { font-size: var(--fs-xl); }

  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

  .variant-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

  .info-card { padding: 2rem; }
  .cta-box { padding: 3rem; }
  .music-list { grid-template-columns: repeat(2, 1fr); }

  .cost-table {
    display: table;
    font-size: var(--fs-sm);
  }
  .cost-table th,
  .cost-table td {
    padding: 0.75rem 1rem;
  }

  .parallax-section { margin: 5rem 0; min-height: 400px; }
  .parallax-content blockquote { font-size: 1.75rem; }

  .testimonial { padding: 3rem; }
  .testimonial-quote { font-size: var(--fs-2xl); }

  .page-header { padding: calc(var(--header-h) + 4rem) 0 4rem; }

  .type-check { padding: 3rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════════════════════ */
/* DESKTOP  (≥1024px)  — Maximale Größen                          */
/* ════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  :root { --container-pad: clamp(1.5rem, 5vw, 4rem); }

  .section { padding: 6rem 0; }
  .section-lg { padding: 10rem 0; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }

  .music-list { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

  .parallax-section { margin: 6rem 0; }
}

/* ════════════════════════════════════════════════════════════════ */
/* INDEX.ASTRO UTILITY CLASSES — replaces inline styles          */
/* ════════════════════════════════════════════════════════════════ */

/* spacing utilities */
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.mt-4 { margin-top: 4rem; }

/* quote block */
.quote-text {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--text-heading);
  line-height: 1.5;
  font-style: italic;
}
.quote-source {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-top: 2rem;
}

/* numbered badge in cards */
.num-badge-lg {
  font-size: var(--fs-3xl);
  color: var(--color-primary);
  font-family: var(--font-display);
}

/* card heading */
.card h3 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}
.card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* dark section card overrides */
.dark-card {
  background: transparent;
  border-color: rgba(255,255,255,0.1);
  color: #D8D4CE;
}
.dark-card h3 {
  color: var(--warm-white);
  margin-bottom: 0.75rem;
}
.dark-card p {
  font-size: var(--fs-sm);
}
.dark-card .link-arrow {
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* inline quote box */
.quote-box {
  padding: 2rem;
}
.quote-box h4 {
  font-size: var(--fs-lg);
  margin-bottom: 1.5rem;
}
.quote-box .quote-body {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.quote-box .quote-attrib {
  font-size: var(--fs-xs);
  color: var(--text-light);
  margin-top: 1rem;
}

/* intro paragraph */
.intro-lead {
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 3rem;
}

/* sticky card */
.sticky-card {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.sticky-card .tel-big {
  font-size: var(--fs-3xl);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.sticky-card .tel-note {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* image helpers */
.img-tall { min-height: 360px; }
.img-banner { height: 300px; }
.img-banner-sm { height: 240px; }

/* centering */
.text-center { text-align: center; }
.text-center .intro-lead {
  margin-left: auto;
  margin-right: auto;
}

/* Mobile overrides for the new classes */
@media (max-width: 767px) {
  .mb-4 { margin-bottom: 2.5rem; }
  .mt-4 { margin-top: 2.5rem; }
  .quote-text { font-size: var(--fs-xl); }
  .img-tall { min-height: 240px; }
  .img-banner { height: 200px; }
  .img-banner-sm { height: 180px; }
  .quote-box { padding: 1.25rem; }
  .quote-box h4 { font-size: var(--fs-base); margin-bottom: 1rem; }
  .sticky-card { position: static; }
  .sticky-card .tel-big { font-size: var(--fs-2xl); }

  /* Detail page hero mobile */
  .parallax-hero { min-height: 55vh; padding-bottom: 3rem; }
  .parallax-hero h1 { font-size: var(--fs-3xl); }
  .stats-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════ */
/* ERDBESTATTUNG DETAIL — NEUE KLASSEN      */
/* ════════════════════════════════════════ */

/* Parallax Hero Detail */
.parallax-hero {
  min-height: 70vh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  position: relative; overflow: hidden;
  background: var(--bg-dark);
}
@media (max-width: 767px) {
  .grid-2.first-help-grid > div:nth-child(1) { order: 1; }
  .grid-2.first-help-grid > div:nth-child(2) { order: 2; }
  .hero .hero-inner > div[style*="gap:1rem"] { flex-direction: column; }
  .hero .hero-inner a.btn { width: 100%; justify-content: center; }
  .parallax-content { max-width: 100%; }
  .parallax-content blockquote { font-size: 1.25rem; }
  .content-section { padding: 3rem 0; }
  .content-section .container { padding: 0 var(--container-pad); }
  .cta-box { padding: 2rem var(--container-pad); }
  .parallax-hero { min-height: 55vh; padding: calc(var(--header-h) + 2rem) var(--container-pad) 3rem; }
  .parallax-hero h1 { font-size: var(--fs-3xl); }
  .parallax-hero .subtitle { font-size: var(--fs-base); }
}
.parallax-hero-bg {
  position: absolute; inset: -10%;
  background-size: cover; background-position: center 40%;
  will-change: transform;
}
.parallax-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(12,12,20,0.85) 0%, rgba(12,12,20,0.60) 40%, rgba(12,12,20,0.40) 100%);
}
.parallax-hero-inner {
  position: relative; z-index: 2;
}
.parallax-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  color: #EDEAE6; max-width: 14ch; line-height: 0.95;
}
.parallax-hero .subtitle {
  font-size: var(--fs-xl); color: #A8A29E; max-width: 45ch; line-height: 1.6;
}

/* Stats Grid */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 4px; padding: 2.5rem 2rem;
  text-align: center; transition: all var(--transition-medium);
}
.stat-card:hover {
  border-color: var(--warm-stone); box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}
.stat-visual {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 140px; margin-bottom: 1.5rem;
  position: relative;
}
.stat-number {
  font-family: var(--font-display); font-size: var(--fs-3xl);
  color: var(--text-heading); font-weight: 400;
}
.stat-label {
  font-size: var(--fs-xs); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.5rem;
}
.stat-icon {
  font-family: var(--font-display); font-size: var(--fs-4xl);
  color: var(--color-primary); font-weight: 400;
  line-height: 1;
}
.stat-ring {
  width: 120px; height: 120px;
  transform: rotate(-90deg);
}
.stat-ring-fill {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Info Grid */
.info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.info-box-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 4px; padding: 2.5rem;
  transition: all var(--transition-medium);
}
.info-box-card:hover {
  border-color: var(--warm-stone); box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}
.info-box-icon {
  color: var(--color-primary); margin-bottom: 1.25rem;
}
.info-box-card h4 {
  font-size: var(--fs-lg); margin-bottom: 1rem;
  color: var(--text-heading);
}
.info-box-card p {
  color: var(--text-muted); font-size: var(--fs-base); margin-bottom: 0;
}

/* Entrance animations helper */
.entrance-3d, .entrance-left, .entrance-wipe, .entrance-blur, .entrance-pop {
  opacity: 0;
}
body.js-enabled .entrance-3d,
body.js-enabled .entrance-left,
body.js-enabled .entrance-wipe,
body.js-enabled .entrance-blur,
body.js-enabled .entrance-pop {
  opacity: 1;
}

/* Tablet */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile */
@media (max-width: 767px) {
  .stats-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }

  /* Hero-Responsive */
  .parallax-wrap { min-height: 45vh !important; padding-top: calc(var(--header-h) + 2rem) !important; padding-bottom: 2.5rem !important; }
  .parallax-hero { min-height: 35vh !important; }
  .parallax-section { min-height: 40vh !important; }
  .parallax-wrap h1,
  .parallax-hero h1,
  .parallax-section h1 { font-size: var(--fs-2xl) !important; }
  .parallax-wrap h2,
  .parallax-hero h2,
  .parallax-section h2 { font-size: var(--fs-xl) !important; }
  .hero-inner p,
  .hero-inner .subtitle { font-size: var(--fs-sm) !important; }
  .hero-inner .btn { width: 100%; justify-content: center; }
  .parallax-img { inset: -5%; width: 110vw; left: -5vw; }
  .parallax-hero-bg, .parallax-bg { max-width: 100vw !important; overflow-x: hidden !important; }
  .parallax-hero, .parallax-section, .parallax-wrap { overflow-x: hidden !important; }
}
/* Force containers to not exceed viewport */
@media (max-width: 767px) {
  div[style*="max-width:850px"], div[style*="max-width:900px"], 
  div[style*="max-width:800px"], div[style*="max-width:1000px"],
  div[style*="max-width:1100px"] {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  /* Table wrapper */
  table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Tablet */
@media (max-width: 900px) and (min-width: 768px) {
  .parallax-wrap { min-height: 55vh !important; padding-top: calc(var(--header-h) + 3rem) !important; padding-bottom: 3rem !important; }
  .parallax-hero { min-height: 40vh !important; }
  .parallax-section { min-height: 45vh !important; }
  .parallax-wrap h1,
  .parallax-hero h1,
  .parallax-section h1 { font-size: var(--fs-3xl) !important; }
}
/* ─── Mobile Menu Scrollbar Fix ─── */
@media (max-width: 900px) {
  .nav-menu[data-astro-cid-pux6a34n] {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
  }
}

