/* Rümpelbuddys – Stylesheet
   Farben: Dunkelblau/Schwarz als Grundton, Blau als Akzent. */

:root {
  --black: #0f1420;
  --navy: #141b2d;
  --navy-2: #1b2438;
  --blue: #1d4ed8;
  --blue-hover: #1e40af;
  --blue-light: #3b82f6;
  --gray-bg: #f3f5f9;
  --white: #ffffff;
  --text: #1a2233;
  --text-muted: #566070;
  --text-on-dark: #e6eaf2;
  --text-on-dark-muted: #a7b0c2;
  --line: #d9dee8;
  --line-dark: #2a3449;
  --radius: 6px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1140px;
  --gutter: clamp(16px, 4vw, 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; line-height: 1.3; }
.text-muted { color: var(--text-muted); }
.small { font-size: 0.92rem; }
.mt { margin-top: 28px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 820px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn--lg { padding: 14px 24px; font-size: 1rem; }
.btn--full { width: 100%; }

/* Top-Leiste */
.topbar { background: var(--black); color: var(--text-on-dark-muted); font-size: 0.85rem; }
.topbar__inner { display: flex; align-items: center; gap: 10px; min-height: 36px; flex-wrap: wrap; }
.topbar__sep { opacity: .5; }
.topbar__phone { margin-left: auto; color: #fff; font-weight: 600; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none !important; }
.logo__mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text strong { font-size: 1.1rem; font-weight: 700; color: var(--black); }
.logo__text small { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav a:not(.btn):hover { color: var(--blue); text-decoration: none; }
.nav__cta { margin-left: 8px; }

.burger {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.burger span { width: 20px; height: 2px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { background: var(--navy); color: var(--text-on-dark); padding: clamp(48px, 7vw, 88px) 0; }
.hero__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.hero__text { display: flex; flex-direction: column; gap: 22px; }
.hero__kicker { color: var(--blue-light); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.hero__lead { font-size: 1.1rem; color: var(--text-on-dark-muted); max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.hero__box {
  background: var(--white); color: var(--text);
  border-radius: var(--radius);
  padding: 26px 28px;
  border-top: 4px solid var(--blue);
}
.hero__box h2 { font-size: 1.15rem; margin-bottom: 16px; }
.hero__box dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.hero__box dl div:last-child { border-bottom: 0; }
.hero__box dt { color: var(--text-muted); font-weight: 500; }
.hero__box dd { font-weight: 500; }
.hero__box-note { margin-top: 14px; font-size: 0.88rem; color: var(--text-muted); }

/* Checklist */
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.checklist--light li::before { background: var(--blue-light); }

/* Sections */
.section { padding: clamp(56px, 7vw, 88px) 0; }
.section--gray { background: var(--gray-bg); }
.section--dark { background: var(--black); color: var(--text-on-dark); }
.section--dark .text-muted { color: var(--text-on-dark-muted); }
.section--dark a { color: #fff; }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); display: flex; flex-direction: column; gap: 12px; }
.section__head p { color: var(--text-muted); font-size: 1.05rem; }
.section--dark .section__head p { color: var(--text-on-dark-muted); }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--white);
}
.service__icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--gray-bg); display: grid; place-items: center; }
.service__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service p { color: var(--text-muted); font-size: 0.95rem; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.steps__num { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 6px; }
.steps p { color: var(--text-on-dark-muted); font-size: 0.95rem; }

/* Zwei Spalten */
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.two-col > div > h2 { margin-bottom: 14px; }
.infobox { background: var(--gray-bg); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 26px 28px; display: flex; flex-direction: column; gap: 16px; }
.infobox__note { font-size: 0.92rem; color: var(--text-muted); }

/* Einsatzgebiet */
.regions { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.regions__col h3 { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--blue); display: inline-block; }
.regions__col ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.regions__col li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.regions__col .small { margin-top: 18px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--text-muted); }

/* Kontakt */
.contact-dl { margin-top: 24px; }
.contact-dl div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.contact-dl dt { color: var(--text-on-dark-muted); }
.contact-dl dd { color: #fff; }

.form { background: var(--white); color: var(--text); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.form h3 { font-size: 1.25rem; margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--text);
  background: #fff; border: 1px solid #b9c1cf; border-radius: var(--radius);
  padding: 11px 12px; width: 100%; outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,216,0.15); }
.form input.is-invalid, .form textarea.is-invalid { border-color: #c0392b; }
.form textarea { resize: vertical; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 0.86rem; color: var(--text-muted); }
.form .check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue); }
.form .check a { color: var(--blue) !important; text-decoration: underline; }
.form__hint { font-size: 0.82rem; color: var(--text-muted); text-align: center; }
.form__status { font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.form__status.ok { color: #15803d; }
.form__status.err { color: #b91c1c; }

/* Footer */
.footer { background: var(--black); color: var(--text-on-dark-muted); font-size: 0.92rem; padding: 48px 0 24px; border-top: 1px solid var(--line-dark); }
.footer a { color: var(--text-on-dark-muted); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.footer__title { color: #fff; font-weight: 600; margin-bottom: 10px; }
.footer ul { display: flex; flex-direction: column; gap: 6px; }
.footer__bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; }

/* Impressum / Datenschutz (per :target) */
.legal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: var(--gutter); background: rgba(10, 14, 24, 0.7); }
.legal:target { display: flex; }
.legal__box { position: relative; width: min(100%, 760px); max-height: 85vh; overflow: auto; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--white); display: flex; flex-direction: column; gap: 14px; }
.legal__box h2 { font-size: 1.5rem; }
.legal__box p { color: var(--text-muted); font-size: 0.95rem; }
.legal__box strong { color: var(--text); }
.legal__close { position: absolute; top: 10px; right: 16px; font-size: 1.8rem; line-height: 1; color: var(--text-muted); text-decoration: none !important; }
.legal__close:hover { color: var(--text); }

/* Responsive */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__inner, .two-col { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__cta { display: none; }
}
@media (max-width: 820px) {
  .topbar__inner span:nth-child(2), .topbar__inner span:nth-child(3) { display: none; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__cta { display: inline-flex; margin: 14px 0 0; }
  .burger { display: flex; }
}
@media (max-width: 560px) {
  .services, .steps, .form__row, .regions, .footer__grid { grid-template-columns: 1fr; }
  .regions__col ul { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .hero__box dl div, .contact-dl div { grid-template-columns: 1fr; gap: 2px; }
  .footer__bottom { flex-direction: column; }
}
