/* =========================================================
   Makler Wagner – Stylesheet
   Farben bewusst aus dem bisherigen Auftritt übernommen
   (Rot #d81818, Anthrazit #404040), modern interpretiert.
   Keine externen Schriften (DSGVO): System-Schriften.
   ========================================================= */

:root {
  --red: #c8161d;
  --red-dark: #a01016;
  --red-soft: #fdeeee;
  --ink: #1f2328;
  --ink-2: #4a5059;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f5f5f6;
  --dark: #3a3b3d; /* neutrales Dunkelgrau, passend zum Kopf (#636466) */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --max: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head p { color: var(--ink-2); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: .8em;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  padding: .8em 1.4em; border-radius: 999px; font-weight: 650; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { color: var(--red); }
.btn--light { background: #fff; color: var(--red); }
.btn--light:hover { color: var(--red-dark); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Header ---------- */
/* Grau mit feinen Diagonallinien, wie der Kopf der bisherigen Seite (#68696B) */
:root { --header-bg: #636466; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background-color: var(--header-bg);
  background-image:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.045) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #6a6b6d, #5b5c5e);
  border-bottom: 1px solid #4a4b4d;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo__img { height: 56px; width: auto; display: block; }
.site-footer .logo__img { height: 60px; }
@media (max-width: 420px) { .site-header .logo__img { height: 46px; } }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-weight: 750; font-size: 1.15rem; }
.logo__sub { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #fff; text-decoration: none; font-weight: 550; font-size: .98rem;
  padding: .5em .8em; border-radius: 8px;
}
.nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); border-radius: 8px 8px 0 0; }
.nav .btn { margin-left: 8px; padding: .55em 1.1em; }
.nav .btn:hover { background: var(--red-dark); color: #fff; }
.site-header :focus-visible { outline-color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: #fff;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #555658;
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px;
    border-bottom: 1px solid #4a4b4d; box-shadow: 0 10px 24px rgba(0,0,0,.2); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8em .6em; font-size: 1.05rem; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(99,100,102,.09), transparent 70%),
    linear-gradient(180deg, #fff, var(--bg-alt));
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px);
}
.hero .container { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 560px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 24px; }
.hero__trust { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; color: var(--ink-2); font-size: .95rem; }
.hero__trust li { display: flex; gap: 8px; align-items: center; }
.hero__trust svg { width: 20px; height: 20px; color: var(--red); flex: none; }

.hero-card {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 28px;
  border: 1px solid var(--line);
}
.hero-card h2 { font-size: 1.25rem; margin-bottom: 4px; }
.hero-card p { color: var(--muted); font-size: .95rem; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.quick-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 14px 6px; border-radius: 12px; background: var(--bg-alt); text-decoration: none;
  color: var(--ink); font-size: .88rem; font-weight: 600; transition: background .15s, color .15s;
}
.quick-grid a:hover { background: var(--red-soft); color: var(--red); }
.quick-grid svg { width: 28px; height: 28px; color: var(--red); }
.hero-card .more { display: inline-block; margin-top: 16px; font-weight: 600; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Page header (Unterseiten) ---------- */
.page-head { background: linear-gradient(180deg, #fff, var(--bg-alt)); padding: clamp(44px, 7vw, 80px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head p { color: var(--ink-2); font-size: 1.15rem; max-width: 680px; margin: 0; }
.breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid h3, .tile strong { hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid--4:not([data-calc-tiles]) { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .grid--4 { gap: 12px; } .tile { padding: 14px; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--red-soft); color: var(--red);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }
.card--step { position: relative; padding-top: 34px; }
.step-num {
  position: absolute; top: -16px; left: 28px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700; display: grid; place-items: center;
}

/* Vergleichs-Kacheln */
.tile {
  display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tile:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.tile svg { width: 32px; height: 32px; color: var(--red); }
.tile strong { font-size: 1.02rem; }
.tile span { font-size: .88rem; color: var(--muted); line-height: 1.4; }
.tile[aria-current="true"] { border-color: var(--red); background: var(--red-soft); }

/* ---------- Vergleichsrechner ---------- */
.calc-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.calc-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; }
.calc-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: .96rem;
}
.calc-nav a svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.calc-nav a:hover { background: var(--bg-alt); }
.calc-nav a[aria-current="true"] { background: var(--red-soft); color: var(--red); }
.calc-nav a[aria-current="true"] svg { color: var(--red); }
.calc-frame-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.calc-frame-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.calc-frame-head h2 { font-size: 1.35rem; margin: 0; }
.calc-frame-head p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.calc-frame { width: 100%; height: 900px; border: 0; display: block; }
.calc-note { font-size: .88rem; color: var(--muted); padding: 14px 24px; border-top: 1px solid var(--line); background: var(--bg-alt); margin: 0; }
.calc-select { display: none; }
@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-nav { display: none; }
  .calc-select { display: block; width: 100%; padding: 12px 14px; font-size: 1rem; border-radius: 10px; border: 1px solid var(--line); font-family: inherit; background: #fff; margin-bottom: 16px; }
  .calc-frame { height: 1100px; }
}

/* ---------- Split / About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8161d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.about-box {
  background: var(--dark); color: #e5e7eb; border-radius: 20px; padding: 36px;
}
.about-box h3 { color: #fff; }
.about-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: .97rem; }
.about-box dt { color: #a5a6a8; }
.about-box dd { margin: 0; color: #fff; }
.about-box a { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; padding: clamp(48px, 7vw, 72px) 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .92; font-size: 1.1rem; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn--ghost { color: #fff; }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Prose (Ratgeber / Rechtliches) ---------- */
.prose { max-width: 760px; overflow-wrap: break-word; hyphens: auto; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.toc { background: var(--bg-alt); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 40px; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.callout { border-left: 4px solid var(--red); background: var(--red-soft); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 1.5em 0; }
.callout p:last-child { margin: 0; }
.link-list { list-style: none; padding: 0; }
.link-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.link-list a { font-weight: 600; }
.link-list span { display: block; color: var(--muted); font-size: .95rem; }

/* Platzhalter, die noch befüllt werden müssen – fallen bewusst auf */
.todo { background: #fff3b0; color: #6b4e00; padding: 0 .3em; border-radius: 4px; font-weight: 600; }

/* ---------- Kontakt ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 24px; height: 24px; color: var(--red); flex: none; margin-top: 3px; }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--red); }

.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #d1d5db;
  border-radius: 10px; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,22,29,.15); }
.form textarea { min-height: 140px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .93rem; color: var(--ink-2); }
.form .check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--red); }
.form .hp { position: absolute; left: -9999px; }
.form-msg { padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.form-msg--ok { background: #e7f6ec; color: #17633a; }
.form-msg--err { background: var(--red-soft); color: var(--red-dark); }

.map-consent {
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-alt);
  min-height: 340px; display: grid; place-items: center; text-align: center; padding: 28px; overflow: hidden;
}
.map-consent p { max-width: 420px; color: var(--ink-2); font-size: .95rem; }
.map-consent iframe { width: 100%; height: 400px; border: 0; display: block; }
.map-consent.is-loaded { padding: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cfd0d2; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo__sub { color: #a5a6a8; }
.footer-bottom { border-top: 1px solid #4e4f51; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #a5a6a8; }

/* Mobile Schnellkontakt-Leiste */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; bottom: 0; left: 0; right: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
    z-index: 60; box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  }
  .mobile-cta .btn { padding: .75em 1em; }
  body { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
