/* ==========================================================================
   HMS Rachel – Design System
   Bodenständig-handwerklich · Terracotta/Gold · Space Grotesk + DM Sans
   ========================================================================== */

:root {
  /* Logo-basierte Palette: Blau #0785C6 + Grün #009842 */
  --cream: #F6FAFB;          /* warmer weißer Hintergrund, leicht ins Blaue */
  --cream-2: #EAF2F5;         /* Sektionen */
  --cream-3: #DCE8ED;         /* Akzente */
  --ink: #0B2430;             /* Dunkelblau-Schwarz für Text */
  --ink-soft: #334853;
  --ink-mute: #6B8290;
  --line: #D4E2E8;

  --terra: #0785C6;           /* Logo-Blau = primary */
  --terra-dark: #056A9F;
  --terra-soft: #CDE7F4;
  --gold: #009842;            /* Logo-Grün = accent */
  --gold-dark: #007A34;
  --gold-soft: #CDECD9;

  --leaf: #009842;            /* = accent, für Garten/Natur-Kontexte */

  /* Type scale */
  --font-display: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing tokens */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(42, 37, 32, 0.06), 0 2px 6px rgba(42, 37, 32, 0.04);
  --shadow-md: 0 6px 20px rgba(42, 37, 32, 0.08), 0 1px 3px rgba(42, 37, 32, 0.06);
  --shadow-lg: 0 20px 50px rgba(42, 37, 32, 0.12), 0 4px 10px rgba(42, 37, 32, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ============================ NAV ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--cream) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 52px;
  height: 36px;
  display: grid;
  place-items: center;
  position: relative;
}
.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand__name {
  font-size: 17px;
  line-height: 1.1;
}
.brand__name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 15px;
}
.nav__links a {
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--terra); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--terra);
  border-radius: 2px;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream);
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  transition: transform .15s, background .2s;
}
.nav__cta:hover { background: var(--terra); transform: translateY(-1px); }
.nav__cta svg { width: 16px; height: 16px; }

@media (max-width: 880px) {
  .nav__links { display: none; }
}

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--terra);
  color: var(--cream);
  box-shadow: 0 8px 24px -8px rgba(184, 71, 42, 0.6);
}
.btn--primary:hover {
  background: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(184, 71, 42, 0.7);
}
.btn--dark {
  background: var(--ink);
  color: var(--cream);
}
.btn--dark:hover { background: #1a1714; transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

.btn svg { width: 18px; height: 18px; }

/* Phone hero CTA – prominent anrufen */
.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--terra);
  color: var(--cream);
  padding: 14px 16px 14px 20px;
  border-radius: 999px;
  box-shadow: 0 14px 36px -10px rgba(184, 71, 42, 0.55);
  transition: transform .2s;
}
.phone-cta:hover { transform: translateY(-2px); }
.phone-cta__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--terra);
  display: grid;
  place-items: center;
}
.phone-cta__icon svg { width: 20px; height: 20px; }
.phone-cta__text { line-height: 1.15; }
.phone-cta__text small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  font-family: var(--font-mono);
}
.phone-cta__text strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ============================ EYEBROW / LABELS ============================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: var(--terra);
}

/* ============================ SECTIONS ============================ */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--cream-2 { background: var(--cream-2); }
.section--dark { background: var(--ink); color: var(--cream-2); }
.section--dark h2, .section--dark h3 { color: var(--cream); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head__title {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
}
.section-head__lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 52ch;
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================ FOOTER ============================ */
.footer {
  background: var(--ink);
  color: var(--cream-2);
  padding: 80px 0 28px;
}
.footer a:hover { color: var(--gold); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(250, 243, 227, 0.12);
}
.footer h4 {
  color: var(--cream);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer ul a { color: rgba(250, 243, 227, 0.75); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(250, 243, 227, 0.55);
  font-family: var(--font-mono);
}
.footer__bottom a { color: rgba(250, 243, 227, 0.75); }
.footer__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.footer__tagline {
  color: rgba(250, 243, 227, 0.7);
  font-size: 15px;
  max-width: 32ch;
  margin-bottom: 20px;
}
.footer__addr {
  font-size: 14px;
  color: rgba(250, 243, 227, 0.7);
  line-height: 1.7;
  font-style: normal;
}
@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================ PLACEHOLDER IMAGES ============================ */
.img-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      45deg,
      var(--cream-3) 0 14px,
      var(--cream-2) 14px 28px
    );
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--ink-soft);
}
.img-placeholder__label::before { background: var(--gold); }
.img-placeholder__label {
  position: absolute;
  inset: auto 16px 16px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream-2);
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}
.img-placeholder__label::before {
  content: "";
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--gold);
}

/* ============================ UTIL ============================ */
.hstack { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.vstack { display: flex; flex-direction: column; gap: 16px; }

.divider-stamp {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.divider-stamp::before, .divider-stamp::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Regio-Stripe · hell, leserlich, dezente Farbakzente */
.regio-stripe {
  background: var(--cream);
  color: var(--ink);
  padding: 14px 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.regio-stripe::before {
  content: "Einsatzgebiet";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 22px;
  background: var(--terra);
  color: #fff;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  z-index: 2;
  box-shadow: 8px 0 12px -6px rgba(11, 36, 48, 0.15);
}
.regio-stripe__track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 52s linear infinite;
  width: max-content;
  padding-left: 180px;
  color: var(--ink-soft);
  font-weight: 500;
}
.regio-stripe__track span {
  display: inline-flex;
  align-items: center;
}
.regio-stripe__track span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin: 0 28px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
