/* =========================================================
   Schlüsseldienst Ahlem-Badenstedt-Davenstedt
   Design tokens übernommen 1:1 aus der Originalseite
   ========================================================= */

:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(0 0% 4%);
  --primary: hsl(142 76% 36%);
  --primary-hover: hsl(142 76% 32%);
  --primary-foreground: hsl(0 0% 100%);
  --muted: hsl(0 0% 96%);
  --muted-30: hsl(0 0% 96% / 0.3);
  --muted-foreground: hsl(0 0% 45%);
  --border: hsl(0 0% 90%);
  --card: hsl(0 0% 100%);
  --radius: 0.75rem;

  --container: 1280px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
  width: 100%;
}
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.section { padding-block: 60px; position: relative; }
.section--muted { background: hsl(0 0% 96% / 0.3); }
.section--bordered { border-block: 1px solid var(--border); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.section-sub { color: var(--muted-foreground); font-size: 1.125rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 8px 24px -8px hsl(142 76% 36% / 0.5);
}
.btn-primary:hover { background: var(--primary-hover); transform: scale(1.04); }
.btn-outline {
  background: hsl(0 0% 100% / 0.7);
  border: 1px solid var(--border);
  color: var(--foreground);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn .icon { width: 20px; height: 20px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: hsl(0 0% 100% / 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(0 0% 90% / 0.6);
  transition: box-shadow .3s ease;
}
.nav.scrolled { box-shadow: 0 4px 20px -12px hsl(0 0% 0% / 0.15); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
@media (min-width: 768px) { .nav-inner { height: 96px; } }
.nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; margin-right: auto; }
.nav-logo img { height: 64px; width: auto; object-fit: contain; }
@media (min-width: 768px) { .nav-logo img { height: 80px; } }
.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-link {
  font-size: 0.9rem; font-weight: 500; color: var(--muted-foreground);
  transition: color .2s ease; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-phone {
  padding: 0.65rem 1.5rem; border-radius: 9999px; white-space: nowrap;
  background: var(--primary); color: var(--primary-foreground); font-weight: 600;
  box-shadow: 0 8px 24px -8px hsl(142 76% 36% / 0.5);
  transition: transform .15s ease, background-color .2s ease;
}
.nav-phone:hover { background: var(--primary-hover); transform: scale(1.05); }
.nav-toggle { display: inline-flex; padding: 0.5rem; color: var(--muted-foreground); }
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 26px; height: 26px; }

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: hsl(0 0% 100% / 0.98);
  backdrop-filter: blur(12px);
  padding: 1rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a:not(.btn) {
  display: block; padding: 0.85rem 0.5rem; font-weight: 500;
  color: var(--foreground); border-radius: var(--radius);
}
.mobile-menu .btn { width: 100%; margin-top: 0.75rem; color: var(--primary-foreground); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 96px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::before,
.hero-bg::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hero-bg::before { background: hsl(0 0% 100% / 0.4); }
.hero-bg::after {
  background: linear-gradient(to bottom,
    hsl(0 0% 100% / 0.2) 0%,
    hsl(0 0% 100% / 0.6) 45%,
    var(--background) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-inner { max-width: 768px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem; border-radius: 9999px;
  background: hsl(0 0% 100% / 0.8); backdrop-filter: blur(8px);
  border: 1px solid var(--border); color: var(--primary);
  font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px -4px hsl(0 0% 0% / 0.1);
}
.hero-title {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 2px hsl(0 0% 100% / 0.5);
}
.hero-sub {
  font-size: 1.25rem; color: hsl(0 0% 4% / 0.8);
  margin-bottom: 2rem; max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Pulsing dot */
.ping { position: relative; display: inline-flex; width: 8px; height: 8px; }
.ping span {
  position: absolute; inset: 0; border-radius: 9999px; background: var(--primary);
}
.ping span:first-child { animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px hsl(0 0% 0% / 0.15);
  border-color: hsl(142 76% 36% / 0.4);
}
.card-icon {
  width: 56px; height: 56px; border-radius: 0.9rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: hsl(142 76% 36% / 0.1); color: var(--primary);
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3, .card h4 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted-foreground); }

/* ---------- Price cards ---------- */
.price-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 768px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px hsl(0 0% 0% / 0.15); }
.price-card.featured {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 20px 50px -20px hsl(142 76% 36% / 0.4);
}
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--primary-foreground);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 0.3rem 1rem; border-radius: 9999px;
}
.price-card h3 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.price-card .price-role { color: var(--muted-foreground); font-size: 0.9rem; margin-bottom: 1.25rem; }
.price-amount { font-size: 2.5rem; font-weight: 700; color: var(--foreground); }
.price-amount small { font-size: 1rem; font-weight: 500; color: var(--muted-foreground); }
.price-features { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: 0.7rem; flex: 1; }
.price-features li { display: flex; align-items: center; gap: 0.6rem; }
.price-features svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.price-card .btn { width: 100%; }
.price-card.featured .btn { background: var(--primary); color: #fff; }
.price-disclaimer {
  margin-top: 2rem; text-align: center; color: var(--muted-foreground);
  font-size: 0.85rem; max-width: 720px; margin-inline: auto;
}

/* ---------- Warum / Feature list with stat ---------- */
.why-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .why-grid { grid-template-columns: 1.2fr 0.8fr; } }
.why-item { display: flex; gap: 1rem; margin-bottom: 1.75rem; }
.why-item:last-child { margin-bottom: 0; }
.why-item .card-icon { flex-shrink: 0; margin-bottom: 0; width: 48px; height: 48px; }
.why-item .card-icon svg { width: 24px; height: 24px; }
.why-item h4 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.why-item p { color: var(--muted-foreground); }
.stat-box {
  background: var(--primary); color: var(--primary-foreground);
  border-radius: var(--radius); padding: 3rem 2rem; text-align: center;
  box-shadow: 0 20px 50px -20px hsl(142 76% 36% / 0.5);
}
.stat-box .num { font-size: 4.5rem; font-weight: 800; line-height: 1; }
.stat-box .label { font-size: 1.1rem; opacity: 0.95; margin-top: 0.5rem; }

/* ---------- Einsatzgebiete ---------- */
.areas-block { margin-bottom: 2.5rem; }
.areas-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; margin-bottom: 1rem; color: var(--foreground);
}
.areas-label svg { width: 18px; height: 18px; color: var(--primary); }
.areas-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.area-tag {
  padding: 0.45rem 1rem; border-radius: 9999px;
  background: var(--muted); border: 1px solid var(--border);
  font-size: 0.9rem; color: var(--muted-foreground);
  transition: all .2s ease;
}
.area-tag:hover { border-color: var(--primary); color: var(--primary); }
.area-tag.primary {
  background: hsl(142 76% 36% / 0.1); border-color: hsl(142 76% 36% / 0.3);
  color: var(--primary); font-weight: 600;
}

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .section-title { margin-bottom: 1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.75rem; }
.contact-item .card-icon { flex-shrink: 0; margin-bottom: 0; width: 48px; height: 48px; }
.contact-item .card-icon svg { width: 24px; height: 24px; }
.contact-item h4 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.contact-item p, .contact-item a { color: var(--muted-foreground); }
.contact-item a:hover { color: var(--primary); }
.contact-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.whatsapp-btn {
  background: #25D366; color: #fff;
}
.whatsapp-btn:hover { background: #1ebe5b; transform: scale(1.04); }

/* Form fields */
.field {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--foreground);
  background: var(--background);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field::placeholder { color: var(--muted-foreground); }
.field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(142 76% 36% / 0.15);
}
textarea.field { resize: vertical; min-height: 96px; }

/* ---------- About stats ---------- */
.about-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2rem; }
.about-stat .num { font-size: 2.75rem; font-weight: 800; color: var(--primary); line-height: 1; }
.about-stat .label { color: var(--muted-foreground); margin-top: 0.35rem; }
.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.prose p { color: var(--muted-foreground); margin-bottom: 1.25rem; font-size: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: hsl(0 0% 96% / 0.3);
  padding-top: 4rem; padding-bottom: 50px;
}
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer img { height: 56px; width: auto; margin-bottom: 1.25rem; }
.footer .desc { color: var(--muted-foreground); max-width: 380px; margin-bottom: 1.25rem; }
.footer address { font-style: normal; color: var(--muted-foreground); line-height: 1.7; }
.footer h5 { font-size: 1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer ul a, .footer ul li { color: var(--muted-foreground); }
.footer ul a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
}
.footer-bottom p { color: var(--muted-foreground); font-size: 0.875rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal button { color: var(--muted-foreground); font-size: 0.875rem; }
.footer-legal button:hover { color: var(--primary); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: hsl(0 0% 0% / 0.5); backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border-radius: var(--radius);
  max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto;
  padding: 2rem; position: relative;
  box-shadow: 0 30px 60px -20px hsl(0 0% 0% / 0.4);
}
.modal h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.modal h3 { font-size: 1.05rem; margin: 1.25rem 0 0.4rem; }
.modal p { color: var(--muted-foreground); margin-bottom: 0.75rem; font-size: 0.95rem; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 34px; height: 34px; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted-foreground);
}
.modal-close:hover { background: var(--muted); color: var(--foreground); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 90;
  max-width: 380px; width: calc(100% - 2.5rem);
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 0 20px 50px -15px hsl(0 0% 0% / 0.25);
}
.cookie.hidden { display: none; }
.cookie h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.cookie p { color: var(--muted-foreground); font-size: 0.9rem; margin-bottom: 1.25rem; }
.cookie-actions { display: grid; gap: 0.6rem; }
.cookie-actions .btn { width: 100%; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity .6s ease, transform .6s ease; }
.reveal-left.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
  .ping span:first-child { animation: none; }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding-top: 160px; padding-bottom: 60px; text-align: center; background: hsl(0 0% 96% / 0.3); }
.page-hero h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: 1rem; }
.page-hero p { color: var(--muted-foreground); font-size: 1.2rem; max-width: 620px; margin-inline: auto; }

/* utility */
.text-center { text-align: center; }
