/* ==========================================================================
   SANDID BAUHILFE — styles.css
   Vanilla rebuild. Desktop values (≥1024px) match the original design spec
   in PROJECT_ANALYSIS.md exactly; the mobile layer is redesigned per §9/§12.
   ========================================================================== */

/* ── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  /* Dark palette */
  --ink:    #0A0A0A;
  --d900:   #111111;
  --d850:   #141414;
  --d800:   #1A1A1A;
  --d750:   #1E1E1E;
  --d700:   #242424;
  --d600:   #2E2E2E;
  /* Neutral */
  --g500:   #4A4A4A;
  --g400:   #6B6B6B;
  --g300:   #8C8C8C;
  --g200:   #BDBDBD;
  --g100:   #D9D9D9;
  /* Gold */
  --gold:       #C9A84C;
  --gold-light: #D4B86A;
  --gold-dark:  #A8882E;
  --gold-muted: rgba(201, 168, 76, 0.12);
  /* Text */
  --text-1: #F2F2F2;
  --text-2: #A8A8A8;
  --text-3: #6B6B6B;
  /* Status */
  --success: #2E7D32;
  --error:   #C62828;
  /* Borders */
  --border:    #2E2E2E;
  --border-md: #4A4A4A;
  /* Layout — compact header on phones, full height from tablet up */
  --nav-height: 68px;
  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  /* Shadows */
  --shadow-card:       0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-gold:       0 4px 16px rgba(201, 168, 76, 0.15);
  --shadow-inset:      inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  :root {
    --nav-height: 88px;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--d900);
  color: var(--text-1);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  /* clip (not hidden): guards against stray horizontal scroll without
     creating a scroll container or breaking position: sticky */
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-1);
}

/* Narrow phones only: let long German compounds (Baustellenlogistik …)
   hyphenate instead of overflowing. Desktop headings never break. */
@media (max-width: 519px) {
  h1, h2, h3 {
    hyphens: auto;
    overflow-wrap: break-word;
  }
}

p {
  color: var(--text-2);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease-standard);
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

ul[role='list'] {
  list-style: none;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: rgba(201, 168, 76, 0.25);
  color: #F2F2F2;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--d900); }
::-webkit-scrollbar-thumb { background: var(--d600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--g500); }

/* ── Utilities ──────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 20px;
}

.overline {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.gold-line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

.tap-target {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Section vertical rhythm — one coherent scale; desktop identical to spec */
.section {
  padding-block: 64px;
}

.section--sm {
  padding-block: 48px;
}

@media (min-width: 640px) {
  .container { padding-inline: 32px; }
}

@media (min-width: 768px) {
  .section { padding-block: 112px; }
  .section--sm { padding-block: 80px; }
}

@media (min-width: 1024px) {
  .container { padding-inline: 40px; }
  .section { padding-block: 128px; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.2;
  transition: all 0.2s ease-out;
  cursor: pointer;
}

.btn--primary {
  background: var(--gold);
  color: #0A0A0A;
}
.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}
.btn--primary:active {
  background: var(--gold-dark);
  transform: translateY(0) scale(0.98);
}

.btn--secondary {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--g200);
}
.btn--secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--secondary:active {
  border-color: var(--gold-dark);
  color: var(--gold-dark);
}

.btn--outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--d600);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--outline.btn--outline-neutral:hover {
  border-color: var(--g400);
  color: var(--text-1);
}

/* Sizes — phone paddings slightly tighter so long uppercase German labels
   fit 320px; from 640px upward identical to the original */
.btn--sm { padding: 10px 20px; font-size: 12px; letter-spacing: 0.1em; }
.btn--md { padding: 14px 24px; font-size: 13px; letter-spacing: 0.07em; }
.btn--lg { padding: 16px 24px; font-size: 13px; letter-spacing: 0.07em; }

@media (min-width: 640px) {
  .btn--md { padding: 16px 32px; }
  .btn--lg { padding: 20px 40px; font-size: 14px; }
}

.btn--block { width: 100%; }
@media (min-width: 640px) {
  .btn--block { width: auto; }
}

/* ── Skip link ──────────────────────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--gold);
  color: #0A0A0A;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease-standard),
              border-color 0.3s var(--ease-standard),
              backdrop-filter 0.3s var(--ease-standard);
}

.site-header.is-scrolled {
  background: rgba(17, 17, 17, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo {
  flex-shrink: 0;
  border-radius: 4px;
}
.site-header__logo img {
  height: 54px;
  width: auto;
}
@media (min-width: 768px) {
  .site-header__logo img { height: 72px; }
}

/* Full nav from tablet up; identical at desktop */
.main-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 768px) {
  .main-nav { display: flex; }
}

.main-nav__link {
  position: relative;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-2);
  border-radius: 6px;
  transition: color 0.15s var(--ease-standard);
}
.main-nav__link:hover { color: var(--text-1); }
.main-nav__link.is-active { color: var(--text-1); }

.main-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease-standard);
}
.main-nav__link:hover::after,
.main-nav__link.is-active::after {
  transform: scaleX(1);
}

.header-cta {
  display: none;
  padding: 10px 20px;
  border-radius: 6px;
  background: var(--gold);
  color: #0A0A0A;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s ease-out;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .header-cta { display: inline-flex; align-items: center; }
}
.header-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.hamburger {
  display: inline-flex;
  color: var(--text-2);
  border-radius: 6px;
  transition: color 0.2s var(--ease-standard);
}
.hamburger:hover { color: var(--text-1); }
.hamburger .icon { width: 24px; height: 24px; }
@media (min-width: 768px) {
  .hamburger { display: none; }
}

/* ── Mobile drawer ──────────────────────────────────────────────────────── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-standard);
}
.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: 88%;
  max-width: 384px;
  display: flex;
  flex-direction: column;
  background: var(--d900);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 1, 1);
  visibility: hidden;
}
.drawer.is-open {
  transform: translateX(0);
  transition: transform 0.35s var(--ease-out-expo);
  visibility: visible;
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding-inline: 20px;
  border-bottom: 1px solid var(--border);
}
.drawer__header img {
  height: 54px;
  width: auto;
}
.drawer__close {
  color: var(--text-2);
  border-radius: 6px;
}
.drawer__close:hover { color: var(--text-1); }
.drawer__close .icon { width: 24px; height: 24px; }

.drawer__links {
  flex: 1;
  padding: 24px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer__link {
  display: block;
  padding: 12px 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-1);
  border-radius: 6px;
  transition: color 0.15s var(--ease-standard);
  /* Staggered entrance driven by .is-open + per-item --stagger delay */
  opacity: 0;
  transform: translateX(20px);
}
.drawer.is-open .drawer__link {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease-out-expo) var(--stagger, 0.1s),
              transform 0.4s var(--ease-out-expo) var(--stagger, 0.1s),
              color 0.15s var(--ease-standard);
}
.drawer__link:hover { color: var(--gold-light); }
.drawer__link.is-active { color: var(--gold); }

.drawer__footer {
  padding: 24px 20px;
  border-top: 1px solid var(--border);
}
.drawer__phone {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.drawer__phone:hover { color: var(--gold); }
.drawer__phone .icon { width: 16px; height: 16px; color: var(--gold); }
.drawer__cta {
  display: block;
  width: 100%;
  padding: 14px 24px;
  text-align: center;
  border-radius: 6px;
  background: var(--gold);
  color: #0A0A0A;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.2s ease-out;
}
.drawer__cta:hover { background: var(--gold-light); }

/* Body scroll lock while drawer is open */
body.drawer-open {
  overflow: hidden;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 100svh;
  padding-top: var(--nav-height);
}

.hero--compact {
  min-height: 50svh;
}
@media (min-width: 768px) {
  .hero--compact { min-height: 60vh; }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--ink);
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.72) 60%,
    rgba(10, 10, 10, 0.90) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 10;
  max-width: 768px;
  padding-block: 48px;
}
/* On the full hero, extra bottom padding on phones reserves room for the
   scroll indicator so it never overlaps the CTAs */
.hero--full .hero__content {
  padding-bottom: 112px;
}
@media (min-width: 768px) {
  .hero__content { padding-block: 64px; }
  .hero--full .hero__content { padding-block: 112px; }
}
/* Keep the 1400px container gutters while limiting text width */
.hero .container {
  display: flex;
}

.hero__title {
  /* Identical to the original 5.5vw slope above 618px viewport;
     34px floor keeps the phone headline dominant (analysis §12) */
  font-size: clamp(2.125rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-bottom: 24px;
}

.hero .overline {
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 65ch;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .hero__subtitle { font-size: 18px; margin-bottom: 40px; }
}
@media (min-width: 1024px) {
  .hero__subtitle { font-size: 20px; }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 640px) {
  .hero__actions { flex-direction: row; gap: 16px; }
}

/* Hero entrance — staggered fade-up, mirrors the Framer variants
   (y:28→0, 0.75s ease-out-expo, 0.12s stagger) */
.hero__item {
  opacity: 0;
  animation: heroUp 0.75s var(--ease-out-expo) forwards;
}
.hero__item:nth-child(1) { animation-delay: 0s; }
.hero__item:nth-child(2) { animation-delay: 0.12s; }
.hero__item:nth-child(3) { animation-delay: 0.24s; }
.hero__item:nth-child(4) { animation-delay: 0.36s; }

@keyframes heroUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  transition: color 0.2s var(--ease-standard);
  opacity: 0;
  animation: fadeIn 0.6s var(--ease-standard) 1.2s forwards;
}
@media (min-width: 768px) {
  .scroll-indicator { bottom: 32px; }
}
.scroll-indicator:hover { color: var(--gold); }
.scroll-indicator span {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.scroll-indicator .icon {
  animation: bounceY 0.9s ease-in-out infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ── Scroll reveal (IntersectionObserver adds .is-visible) ─────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out-expo) var(--reveal-delay, 0s),
              transform 0.6s var(--ease-out-expo) var(--reveal-delay, 0s);
}
.js [data-reveal='left'] {
  transform: translateX(-16px);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ── Section title block ────────────────────────────────────────────────── */
.section-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}
.section-title--center {
  align-items: center;
  text-align: center;
}
.section-title h2 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
@media (min-width: 640px) {
  .section-title h2 { font-size: 30px; }
}
@media (min-width: 768px) {
  .section-title h2 { font-size: 36px; }
}
@media (min-width: 1024px) {
  .section-title h2 { font-size: 2.6rem; }
}
.section-title p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 65ch;
}
@media (min-width: 768px) {
  .section-title p { font-size: 18px; }
}

/* ── Stats band ─────────────────────────────────────────────────────────── */
.stats {
  background: var(--ink);
  border-block: 1px solid var(--border);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 1px;
  background: var(--border);
}
@media (min-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 24px 12px;
  background: var(--ink);
}
@media (min-width: 640px) {
  .stat { padding: 24px 16px; }
}
.stat__value {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--gold);
  line-height: 1.2;
}
@media (min-width: 768px) {
  .stat__value { font-size: 36px; }
}
.stat__suffix { font-size: 24px; }
.stat__label {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-2);
  margin-top: 4px;
  max-width: 22ch;
}
@media (min-width: 640px) {
  .stat__label { font-size: 14px; }
}

/* ── Service cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--d750);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-inset);
  transition: border-color 0.3s var(--ease-standard),
              box-shadow 0.3s var(--ease-standard);
}
.card:hover {
  border-color: var(--border-md);
  box-shadow: var(--shadow-card-hover), var(--shadow-inset);
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.service-card__media {
  position: relative;
  height: 176px;
  flex-shrink: 0;
  overflow: hidden;
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-out;
}
.service-card:hover .service-card__media img {
  transform: scale(1.05);
}
.service-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.10) 0%, rgba(10,10,10,0.70) 100%);
}
.service-card__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  flex: 1;
}
@media (min-width: 640px) {
  .service-card__body { padding: 32px; }
}
.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--gold-muted);
  flex-shrink: 0;
}
.service-card__icon .icon {
  width: 32px;
  height: 32px;
  color: var(--gold);
  border-radius: 6px;
  transition: box-shadow 0.3s var(--ease-standard);
}
.service-card:hover .service-card__icon .icon {
  box-shadow: 0 0 0 8px rgba(201, 168, 76, 0.12);
}
.service-card__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.service-card h3 {
  font-size: 18px;
  line-height: 1.35;
}
@media (min-width: 768px) {
  .service-card h3 { font-size: 20px; }
}
.service-card__desc {
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
}
@media (min-width: 768px) {
  .service-card__desc { font-size: 16px; }
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  width: fit-content;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-2);
  margin-top: 8px;
}
.service-card__link:hover { color: var(--gold); }
.service-card__link .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease-standard);
}
.service-card:hover .service-card__link .icon {
  transform: translateX(4px);
}

/* Grids */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.services-grid--2 { gap: 24px; }
@media (min-width: 640px) {
  .services-grid--2 { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
  .services-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
.services-grid--3 { gap: 24px; }
@media (min-width: 640px) {
  .services-grid--3 { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
  .services-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Section header row (title left, view-all button right on desktop) */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 1024px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 56px;
  }
  .section-head > .section-head__action { flex-shrink: 0; }
}

/* ── Trust section ──────────────────────────────────────────────────────── */
.trust {
  background: var(--d850);
}
.trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 1024px) {
  .trust__grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}
.trust__intro {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.trust__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .trust__cards { grid-template-columns: repeat(2, 1fr); }
}

.trust-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.02);
}
@media (min-width: 640px) {
  .trust-card { gap: 20px; padding: 24px; }
}
.trust-card .icon {
  width: 24px;
  height: 24px;
  color: var(--gold);
  margin-top: 2px;
}
.trust-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}
.trust-card p {
  font-size: 14px;
  line-height: 1.7;
}

/* ── Reviews ────────────────────────────────────────────────────────────── */
.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .reviews__grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--d700);
  box-shadow: var(--shadow-inset);
}
@media (min-width: 640px) {
  .review-card { padding: 28px; }
}
.review-card__stars {
  display: flex;
  gap: 4px;
}
.review-card__stars .icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
  fill: var(--gold);
}
.review-card blockquote p {
  font-size: 14px;
  line-height: 1.7;
  font-style: italic;
}
@media (min-width: 768px) {
  .review-card blockquote p { font-size: 16px; }
}
.review-card figcaption {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.review-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}
.review-card__meta {
  font-size: 12px;
  color: var(--g400);
  margin-top: 2px;
}

.reviews__note {
  text-align: center;
  font-size: 12px;
  color: var(--g500);
  margin-top: 32px;
}

/* ── CTA banner ─────────────────────────────────────────────────────────── */
.cta-banner {
  background: var(--d800);
  border-block: 1px solid var(--border);
}
.cta-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
@media (min-width: 1024px) {
  .cta-banner__inner { flex-direction: row; gap: 40px; }
}
.cta-banner__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
@media (min-width: 1024px) {
  .cta-banner__text { text-align: left; }
}
.cta-banner__text .gold-line { display: none; }
@media (min-width: 1024px) {
  .cta-banner__text .gold-line { display: block; }
}
.cta-banner__text h2 {
  font-size: 24px;
}
@media (min-width: 768px) {
  .cta-banner__text h2 { font-size: 30px; }
}
.cta-banner__text p {
  font-size: 14px;
}
@media (min-width: 768px) {
  .cta-banner__text p { font-size: 16px; }
}
/* Actions: stacked full-width on phones, one row from 640px */
.cta-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .cta-banner__actions { flex-direction: row; width: auto; }
}
.cta-banner__actions .btn--outline {
  padding: 14px 24px;
  font-size: 13px;
}

/* ── Contact section ────────────────────────────────────────────────────── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-row--top { align-items: flex-start; }
.contact-row__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--gold-muted);
  border: 1px solid rgba(201, 168, 76, 0.2);
  flex-shrink: 0;
}
.contact-row__icon .icon { color: var(--gold); }
.contact-row__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--g400);
  margin-bottom: 2px;
}
.contact-row__value {
  color: var(--text-1);
  font-weight: 500;
  transition: color 0.2s var(--ease-standard);
  overflow-wrap: anywhere;
}
a.contact-row:hover .contact-row__value { color: var(--gold-light); }
.contact-row address {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-1);
}

.contact__social {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}
.contact__social-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--g500);
  margin-right: 4px;
}
.social-btn {
  border: 1px solid var(--d600);
  border-radius: 6px;
  color: var(--g400);
  transition: all 0.2s var(--ease-standard);
}
.social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.social-btn .icon { width: 16px; height: 16px; }

.form-card {
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--d800);
}
@media (min-width: 640px) {
  .form-card { padding: 32px; }
}
.form-card > h2 {
  font-size: 20px;
  margin-bottom: 24px;
}

/* ── Form ───────────────────────────────────────────────────────────────── */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}
.form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 8px;
}
.form .req { color: var(--gold); }

.input {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-1);
  background: var(--d700);
  border: 1px solid var(--d600);
  border-radius: 4px;
  transition: border-color 0.15s var(--ease-standard), box-shadow 0.15s var(--ease-standard);
}
.input::placeholder { color: var(--g400); }
.input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
}
.input.has-error { border-color: var(--error); }

textarea.input {
  resize: vertical;
  min-height: 140px;
}

.select-wrap { position: relative; }
.select-wrap .input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
  color-scheme: dark;
}
.select-wrap > .icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--g400);
  pointer-events: none;
}

.field-error {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--error);
}
.field-error .icon { width: 12px; height: 12px; }
.field-error[hidden] { display: none; }

.form__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 8px;
}
@media (min-width: 640px) {
  .form__footer { flex-direction: row; align-items: center; }
}
.form__note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--g400);
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 64px 16px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(46, 125, 50, 0.3);
  background: rgba(46, 125, 50, 0.08);
}
@media (min-width: 640px) {
  .form-success { padding: 64px 32px; }
}
.form-success .icon {
  width: 48px;
  height: 48px;
  color: var(--success);
}
.form-success__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}
.form-success__text {
  font-size: 14px;
}
.form-success__reset {
  margin-top: 8px;
  min-height: 44px;
  padding-inline: 12px;
  font-size: 12px;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.form-success__reset:hover { color: var(--text-1); }
.form-success[hidden] { display: none; }
.form[hidden] { display: none; }

/* ── Service detail ─────────────────────────────────────────────────────── */
.detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) {
  .detail__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.detail__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  width: fit-content;
  font-size: 14px;
  color: var(--text-2);
}
.back-link:hover { color: var(--gold); }
.back-link .icon { width: 16px; height: 16px; }
.detail__lead {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .detail__lead { font-size: 18px; }
}
.detail__note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--g400);
}
.detail__cta { padding-top: 8px; }

.bullets-card {
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--d800);
}
@media (min-width: 640px) {
  .bullets-card { padding: 32px; }
}
.bullets-card h2 {
  font-size: 18px;
  margin-bottom: 24px;
}
.bullets-card ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bullets-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.bullets-card li .icon {
  color: var(--gold);
  margin-top: 2px;
}
.bullets-card li span {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.related {
  background: var(--d850);
  border-top: 1px solid var(--border);
}
.related .section-title { margin-bottom: 32px; }
@media (min-width: 640px) {
  .related .section-title { margin-bottom: 48px; }
}

/* ── Two-column split (Verpflichtungen philosophy) ─────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.split__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.split__copy p {
  line-height: 1.7;
}

/* ── Legal pages ────────────────────────────────────────────────────────── */
.nav-spacer { height: var(--nav-height); }

.legal .container { max-width: 848px; }
.legal h1 {
  font-size: 30px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .legal h1 { font-size: 36px; }
}
.legal .overline { margin-bottom: 16px; }
.legal section { margin-bottom: 40px; }
.legal h2 {
  font-size: 18px;
  margin-bottom: 16px;
}
.legal h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.legal p {
  font-size: 14px;
  line-height: 1.7;
}
.legal p + p { margin-top: 16px; }
.legal a { color: var(--gold); }
.legal a:hover { color: var(--gold-light); }
.legal address {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}
.legal strong { color: var(--text-1); }
.legal dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 24px;
  font-size: 14px;
}
@media (min-width: 640px) {
  .legal dl { grid-template-columns: auto 1fr; gap: 8px 24px; }
}
.legal dt { color: var(--g400); }
.legal dd { color: var(--text-2); overflow-wrap: anywhere; }
.legal dd a { color: var(--text-2); }
.legal dd a:hover { color: var(--gold); }
.legal .datenschutz-flow {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.legal .datenschutz-flow section { margin-bottom: 0; }

/* ── 404 ────────────────────────────────────────────────────────────────── */
.notfound {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-height) 20px 40px;
  background: var(--d900);
}
.notfound__inner {
  text-align: center;
  max-width: 512px;
}
.notfound__code {
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--border);
  user-select: none;
}
@media (min-width: 768px) {
  .notfound__code { font-size: 10rem; }
}
.notfound .gold-line { margin: 0 auto 24px; }
.notfound h1 {
  font-size: 24px;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .notfound h1 { font-size: 30px; }
}
.notfound p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .notfound p { font-size: 16px; }
}
.notfound__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
@media (min-width: 640px) {
  .notfound__actions { flex-direction: row; }
}
.notfound__actions .btn { width: 100%; }
@media (min-width: 640px) {
  .notfound__actions .btn { width: auto; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--border);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-block: 48px;
}
@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); padding-block: 64px; }
}
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: repeat(4, 1fr); gap: 32px; padding-block: 80px; }
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.site-footer__brand img {
  height: 80px;
  width: auto;
}
.site-footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 260px;
}
.site-footer__social {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.site-footer__social a {
  color: var(--g400);
  border-radius: 6px;
}
.site-footer__social a:hover { color: var(--text-1); }

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-footer__col h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
}
.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__col ul a {
  display: inline-block;
  padding-block: 4px;
  font-size: 14px;
  color: var(--text-2);
}
.site-footer__col ul a:hover { color: var(--text-1); }

.site-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 4px;
  font-size: 14px;
  color: var(--text-2);
}
.site-footer__contact a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-2);
}
.site-footer__contact a:hover { color: var(--text-1); }
.site-footer__contact .icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
  margin-top: 3px;
}

.site-footer__separator {
  height: 1px;
  width: 30%;
  background: var(--gold);
  opacity: 0.35;
}

.site-footer__bottom {
  border-top: 1px solid var(--border);
}
.site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
}
@media (min-width: 640px) {
  .site-footer__bottom-inner { flex-direction: row; }
}
.site-footer__bottom p {
  font-size: 12px;
  color: var(--g400);
  text-align: center;
}
.site-footer__legal {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-footer__legal a {
  display: inline-block;
  padding-block: 8px;
  font-size: 12px;
  color: var(--g400);
}
.site-footer__legal a:hover { color: var(--text-2); }

/* ── Backgrounds & helpers ──────────────────────────────────────────────── */
.bg-d900 { background: var(--d900); }
.bg-d850 { background: var(--d850); }
.border-top { border-top: 1px solid var(--border); }

.mb-title { margin-bottom: 40px; }
@media (min-width: 768px) {
  .mb-title { margin-bottom: 56px; }
}
.maxw-2xl { max-width: 672px; }

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__item,
  .scroll-indicator {
    opacity: 1;
    animation: none;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .drawer__link {
    opacity: 1;
    transform: none;
  }
}
