/* ==========================================================================
   Beispielseite: Beispiel Sanitär GmbH (fiktiv)
   Frisches Blau + Orange für Notfälle, runde Formen
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #0b2545;
  --navy-2: #133461;
  --blue: #1668dc;
  --blue-dark: #0f4fae;
  --sky: #eef5fd;
  --sky-2: #dceafb;
  --orange: #f08a24;
  --orange-dark: #c96a0a;
  --text: #10233d;
  --muted: #51627a;
  --line: #dbe5f0;
  --white: #ffffff;
  --r: 20px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

body { font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white); }
a { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-weight: 750; letter-spacing: -.025em; line-height: 1.12; color: var(--navy); }
h3 { font-size: 1.1875rem; letter-spacing: -.01em; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.sec { padding-block: clamp(60px, 9vw, 104px); }
.sec--sky { background: var(--sky); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px; padding: 6px 14px 6px 8px;
  border-radius: 999px; background: var(--white);
  font-size: .875rem; font-weight: 650; color: var(--blue-dark);
  box-shadow: 0 1px 2px rgba(11, 37, 69, .08);
}
.pill .dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: var(--white); }
.pill .dot .icon { width: 14px; height: 14px; stroke-width: 2.4; }

.label { display: block; margin-bottom: 10px; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }

.sec-head { max-width: 700px; margin-bottom: clamp(32px, 5vw, 52px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(2rem, 5vw, 2.875rem); }
.sec-head p { font-size: 1.125rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .8em 1.5em; border: 0; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn .icon { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }
.btn--blue { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px rgba(22, 104, 220, .25); }
.btn--blue:hover { background: var(--blue-dark); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); box-shadow: 0 1px 2px rgba(11, 37, 69, .08), 0 6px 16px rgba(11, 37, 69, .08); }
.btn--white:hover { color: var(--blue-dark); }
.btn--orange { background: var(--orange); color: #1d1200; }
.btn--orange:hover { background: #f59c42; color: #1d1200; }
.btn--sm { min-height: 44px; padding: .55em 1.1em; font-size: .9375rem; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.logo-mark { width: 44px; height: 44px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 1.1875rem; font-weight: 800; letter-spacing: -.02em; }
.logo-text span { font-size: .8125rem; font-weight: 550; color: var(--muted); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -8px; padding: 0;
  border: 0; border-radius: 12px; background: transparent; color: var(--navy); cursor: pointer;
}
.nav-toggle:hover { background: var(--sky); }
.site-nav ul { list-style: none; }
.site-nav a { text-decoration: none; }

@media (max-width: 899.98px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; padding-bottom: 18px; }
  .site-nav li a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); font-weight: 650; font-size: 1.0625rem; color: var(--navy); }
  .site-nav li a[aria-current="page"] { color: var(--blue); }
  .site-nav .btn { width: 100%; margin-top: 16px; }
}
@media (min-width: 900px) {
  .site-nav { display: flex; align-items: center; gap: 30px; }
  .site-nav ul { display: flex; gap: 6px; }
  .site-nav li a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 650; font-size: .9688rem; color: var(--muted); }
  .site-nav li a:hover { background: var(--sky); color: var(--navy); }
  .site-nav li a[aria-current="page"] { background: var(--sky); color: var(--blue-dark); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--sky) 0%, #f7fbff 100%); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(22, 104, 220, .10), transparent 65%);
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; padding-block: clamp(40px, 7vw, 88px) clamp(120px, 14vw, 150px); }
.hero h1 { font-size: clamp(2.375rem, 7vw, 3.75rem); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-lead { max-width: 32em; font-size: clamp(1.0625rem, 2.2vw, 1.1875rem); color: var(--muted); margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-note { display: flex; align-items: center; gap: 10px; font-size: .9688rem; color: var(--muted); }
.hero-note .icon { color: var(--orange-dark); }
.hero-note a { font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.hero-art { width: 100%; max-width: 520px; margin-inline: auto; filter: drop-shadow(0 24px 48px rgba(11, 37, 69, .14)); }

@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }

/* Schnellhilfe-Karten (überlappen den Hero) */
.quick { position: relative; z-index: 2; margin-top: clamp(-110px, -11vw, -84px); }
.quick-grid { display: grid; gap: 14px; list-style: none; }
.quick-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; border-radius: var(--r); background: var(--white);
  box-shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 16px 40px rgba(11, 37, 69, .10);
}
.quick-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--sky-2); color: var(--blue); }
.quick-card h3 { margin-bottom: 4px; }
.quick-card p { font-size: .9688rem; color: var(--muted); margin-bottom: 8px; }
.quick-card a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9375rem; text-decoration: none; }
.quick-card a .icon { width: 18px; height: 18px; }
@media (min-width: 860px) { .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- Leistungen ---------- */
.cards { display: grid; gap: 18px; list-style: none; }
.card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 28px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: #b9d3f4; box-shadow: 0 14px 34px rgba(11, 37, 69, .08); transform: translateY(-2px); }
.card-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 50%; background: var(--sky-2); color: var(--blue); }
.card-icon .icon { width: 28px; height: 28px; }
.card--alert .card-icon { background: #fde8d3; color: var(--orange-dark); }
.card h3 { margin: 0; }
.card p { color: var(--muted); font-size: 1rem; }
.card .more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9375rem; text-decoration: none; }
.card .more .icon { width: 18px; height: 18px; transition: transform .2s; }
.card .more:hover .icon { transform: translateX(3px); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* ---------- Bad in 4 Schritten ---------- */
.timeline { display: grid; gap: 16px; list-style: none; counter-reset: t; }
.timeline li { position: relative; padding: 26px 24px; border-radius: var(--r); background: var(--white); }
.timeline li::before {
  counter-increment: t; content: counter(t);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 800;
}
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 1rem; }
@media (min-width: 700px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .timeline li:not(:last-child)::after {
    content: ""; position: absolute; top: 46px; left: 74px; right: -14px; height: 2px;
    background: repeating-linear-gradient(90deg, #9cc0ee 0 6px, transparent 6px 12px);
  }
}

/* ---------- Heizung ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.split h2 { font-size: clamp(2rem, 5vw, 2.875rem); }
.split .lead { font-size: 1.125rem; color: var(--muted); }
.art-card { margin: 0; padding: clamp(16px, 4vw, 32px); border-radius: 28px; background: var(--sky); }
.checks { list-style: none; display: grid; gap: 12px; margin: 22px 0 30px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .tick { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--sky-2); color: var(--blue); }
.checks .tick .icon { width: 16px; height: 16px; stroke-width: 2.4; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- Warum wir ---------- */
.why { display: grid; gap: 28px; list-style: none; }
.why li { text-align: center; }
.why .card-icon { margin-inline: auto; width: 64px; height: 64px; background: var(--white); box-shadow: 0 8px 24px rgba(11, 37, 69, .08); }
.why p { color: var(--muted); max-width: 22em; margin-inline: auto; }
@media (min-width: 760px) { .why { grid-template-columns: repeat(3, 1fr); } }

/* ---------- CTA ---------- */
.cta { padding-block: clamp(32px, 6vw, 64px); }
.cta-box {
  position: relative; overflow: hidden; display: grid; gap: 24px; align-items: center;
  padding: clamp(32px, 6vw, 56px); border-radius: 28px; background: var(--navy); color: #c8d6ea;
}
.cta-box::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -220px; border-radius: 50%; background: var(--blue); opacity: .35; }
.cta-box > * { position: relative; }
.cta-box h2 { color: var(--white); font-size: clamp(1.875rem, 5vw, 2.625rem); margin-bottom: 8px; }
.cta-box p { font-size: 1.125rem; max-width: 34em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-box { grid-template-columns: 1fr auto; gap: 40px; } }

/* ---------- Unterseiten ---------- */
.page-hero { background: linear-gradient(180deg, var(--sky), #f7fbff); }
.page-hero .wrap { padding-block: clamp(36px, 6vw, 72px); }
.crumbs { display: flex; gap: 8px; list-style: none; margin-bottom: 18px; font-size: .9375rem; color: var(--muted); }
.crumbs a { color: var(--blue-dark); font-weight: 600; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: #94a3b8; }
.page-hero h1 { font-size: clamp(2.375rem, 7vw, 3.5rem); letter-spacing: -.035em; margin-bottom: 14px; }
.page-hero p { max-width: 36em; font-size: 1.1875rem; color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 26px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--white); font-weight: 650; font-size: .9688rem; color: var(--navy); text-decoration: none; box-shadow: 0 1px 2px rgba(11, 37, 69, .08); }
.tabs a:hover { background: var(--blue); color: var(--white); }
.tabs .icon { width: 18px; height: 18px; }

.group { padding-block: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.group:first-child { padding-top: 0; }
.group:last-child { border-bottom: 0; padding-bottom: 0; }
.group-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; max-width: 760px; }
.group-head .card-icon { flex: none; margin: 0; width: 64px; height: 64px; background: var(--blue); color: var(--white); }
.group-head h2 { font-size: clamp(1.75rem, 4.5vw, 2.375rem); margin-bottom: 6px; }
.group-head p { color: var(--muted); font-size: 1.0625rem; }
.sub-grid { display: grid; gap: 14px; list-style: none; }
.sub { padding: 22px 24px; border-radius: 16px; background: var(--sky); }
.sub h3 { font-size: 1.125rem; margin-bottom: 6px; }
.sub p { color: var(--muted); font-size: 1rem; }
@media (min-width: 700px) { .sub-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }

.emergency {
  display: grid; gap: 16px; align-items: center;
  margin-top: 8px; padding: 26px 28px; border-radius: var(--r); background: #fff4e8; border: 2px solid #f6c48f;
}
.emergency h2 { font-size: 1.5rem; margin-bottom: 4px; }
.emergency p { color: #5c4630; }
.emergency .icon-big { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: #1d1200; }
@media (min-width: 760px) { .emergency { grid-template-columns: auto 1fr auto; gap: 24px; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--sky-2); color: var(--blue); font-size: 1.25rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 28px; align-items: start; }
.contact-grid > * { min-width: 0; }
.info-list { display: grid; gap: 14px; }
.info { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 16px; background: var(--sky); }
.info > div { flex: 1; }
.info .card-icon { width: 46px; height: 46px; margin: 0; background: var(--white); flex: none; }
.info .card-icon .icon { width: 22px; height: 22px; }
.info h3 { font-size: 1.0625rem; margin-bottom: 2px; }
.info p, .info address { margin: 0; font-style: normal; color: var(--muted); }
.info a { font-weight: 700; color: var(--navy); }
.info--alert { background: var(--orange); color: #1d1200; }
.info--alert .card-icon { background: rgba(255, 255, 255, .9); color: var(--orange-dark); }
.info--alert h3, .info--alert p, .info--alert a { color: #1d1200; }
.info--alert a { font-size: 1.375rem; font-weight: 800; text-decoration: none; }

.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 2px 0; color: var(--muted); }
.hours td:last-child { white-space: nowrap; padding-left: 12px; }
.hours td:last-child { text-align: right; color: var(--navy); font-weight: 600; }

.form { padding: clamp(22px, 4vw, 36px); border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(11, 37, 69, .08); }
.form h2 { font-size: clamp(1.75rem, 4.5vw, 2.25rem); margin-bottom: 6px; }
.form > p { color: var(--muted); margin-bottom: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 650; font-size: .9688rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid #c9d7e8; border-radius: 12px;
  background: #fbfdff; font: inherit; color: var(--text);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22, 104, 220, .15); }
.field-row { display: grid; gap: 0 14px; }
.form .btn { width: 100%; }
.form-hint { margin-top: 12px; font-size: .875rem; color: var(--muted); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 48px; } }

.map-placeholder { margin-top: 48px; height: clamp(240px, 44vw, 480px); border-radius: 24px; }
.map-caption { margin-top: 10px; font-size: .875rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9bad2; font-size: .9688rem; }
.footer-grid { display: grid; gap: 30px; padding-block: 56px 40px; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: #e4ecf7; text-decoration: none; }
.site-footer a:hover { color: #8fc0ff; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer .logo { color: var(--white); margin-bottom: 14px; }
.site-footer .logo-text span { color: #a9bad2; }
.footer-links { list-style: none; display: grid; gap: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; border-top: 1px solid #1f3d66; font-size: .875rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Anrufleiste ---------- */
.callbar { background: var(--white); border-top: 1px solid var(--line); }
.callbar .btn { min-height: 50px; padding-inline: 1em; }
