/* ============ Base ============ */
:root {
  --primary: #0b3d91;
  --primary-dark: #082c6b;
  --primary-light: #e8f0ff;
  --accent: #f5a623;
  --text: #1a2233;
  --muted: #5a6478;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --border: #e3e8f1;
  --shadow-sm: 0 2px 6px rgba(11, 61, 145, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 61, 145, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 61, 145, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --transition: 200ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6rem; color: var(--text); }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1rem; color: var(--muted); }

.container {
  width: 100%;
  max-width: var(--maxw);
  padding: 0 1.25rem;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: .35rem .75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.accent { color: var(--primary); }
.muted { color: var(--muted); }
.muted-note { font-size: .9rem; color: var(--muted); margin-top: 1rem; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1rem;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: inline-flex; }
.phone-icon { font-size: .9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem 1.25rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
[hidden] { display: none !important; }
.mobile-menu a {
  padding: .75rem .5rem;
  color: var(--text);
  border-bottom: 1px solid var(--bg-alt);
  font-weight: 500;
}
.mobile-menu a:last-child { border: 0; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  background:
    radial-gradient(1000px 500px at 90% -10%, var(--primary-light), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 3rem;
  align-items: center;
}
.hero-text .lead {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 56ch;
  margin: 1rem 0 1.6rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.6rem;
}
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--muted);
  font-size: .95rem;
}

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  transform: rotate(.4deg);
}
.hero-card-inner {
  display: grid;
  gap: .9rem;
}
.hc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: .95rem;
}
.hc-row span { color: var(--muted); }
.hc-row strong { color: var(--text); }
.hc-cta {
  margin-top: .35rem;
  text-align: center;
  padding: .85rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ============ Sections ============ */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-cta { background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-head p { font-size: 1.05rem; }

/* ============ Cards ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.card-icon {
  font-size: 2rem;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-light);
  margin-bottom: 1rem;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.check-list li {
  padding: .35rem 0 .35rem 1.6rem;
  position: relative;
  color: var(--text);
  font-size: .95rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ============ Split ============ */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: start;
}
.steps {
  padding-left: 1.2rem;
  margin: 1.25rem 0 1.75rem;
  color: var(--text);
}
.steps li { margin-bottom: .65rem; }

.info-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.dot-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.dot-list li {
  padding: .35rem 0 .35rem 1.4rem;
  position: relative;
  color: var(--text);
  font-size: .95rem;
}
.dot-list li::before {
  content: "•";
  position: absolute;
  left: .25rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}

/* ============ Timeline ============ */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  position: relative;
}
.t-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
}
.t-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.t-num {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* ============ Stats ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: .35rem;
}
.stat span { color: var(--muted); font-size: .9rem; }

/* ============ FAQ ============ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: .75rem;
}
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  transition: border-color var(--transition);
}
.faq details[open] { border-color: var(--primary); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform var(--transition);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .75rem 0 0; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 2.5rem;
}
.contact-info h3 { margin-bottom: 1.25rem; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}
.contact-list li > span {
  font-size: 1.4rem;
  flex: 0 0 auto;
}
.contact-list li > div { display: grid; line-height: 1.4; }
.contact-list strong { font-size: .85rem; color: var(--muted); font-weight: 600; }
.contact-list a { font-weight: 600; }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form label {
  display: grid;
  gap: .35rem;
  font-size: .9rem;
  color: var(--muted);
  font-weight: 500;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  color: var(--text);
  background: #fff;
  padding: .75rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, .12);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: .65rem;
  font-size: .9rem;
  color: var(--text);
}
.checkbox input { margin-top: .25rem; }
.form-status { margin: 0; font-size: .9rem; }
.form-status.success { color: #1a7c3c; }
.form-status.error { color: #b3261e; }

/* Autocomplete dropdown */
.ac-wrap { position: relative; }
.ac-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  list-style: none;
  margin: 0;
  padding: .35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 240px;
  overflow-y: auto;
}
.ac-list li {
  padding: .55rem .75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text);
  line-height: 1.35;
}
.ac-list li:hover,
.ac-list li[aria-selected="true"] {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.ac-list li.ac-empty {
  color: var(--muted);
  cursor: default;
  font-style: italic;
}
.ac-list li.ac-empty:hover { background: transparent; color: var(--muted); }

/* Price calculator panel */
.price-panel {
  background: var(--primary-light);
  border: 1px solid #c9d8f5;
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.5rem;
  display: grid;
  gap: .85rem;
}
.price-panel-head h4 {
  margin: 0 0 .25rem;
  color: var(--primary-dark);
  font-size: 1rem;
}
.price-panel-head p {
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
}
.price-panel .btn-outline { justify-self: start; background: #fff; }
.price-panel .btn-outline:disabled {
  opacity: .6;
  cursor: not-allowed;
  background: #fff;
  color: var(--primary);
  transform: none;
}

.price-result {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: .95rem;
}
.price-result.error { border-color: #f3c2c0; background: #fdf3f2; color: #b3261e; }
.price-result .pr-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem 0;
  border-bottom: 1px dashed var(--border);
}
.price-result .pr-row:last-of-type { border-bottom: 0; }
.price-result .pr-row span { color: var(--muted); }
.price-result .pr-row strong { color: var(--text); font-weight: 600; }
.price-result .pr-total {
  margin-top: .5rem;
  padding-top: .85rem;
  border-top: 2px solid var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.price-result .pr-total span { color: var(--primary-dark); font-weight: 600; }
.price-result .pr-total strong {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}
.price-result .pr-note {
  margin-top: .65rem;
  font-size: .82rem;
  color: var(--muted);
  font-style: italic;
}

/* ============ Footer ============ */
.site-footer {
  background: #0a1226;
  color: #cdd6e6;
  padding: 3rem 0 1.5rem;
}
.site-footer .brand-name { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: .9rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .4rem;
}
.site-footer a {
  color: #cdd6e6;
  font-size: .95rem;
}
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #8c95a8; font-size: .9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .9rem;
  color: #8c95a8;
}

/* ============ Legal pages (Impressum / Datenschutz) ============ */
.legal-page {
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
}
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}
.legal-content h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: .5rem;
}
.legal-content .legal-meta {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-content h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 .85rem;
  color: var(--primary-dark);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 .5rem;
  color: var(--text);
}
.legal-content p,
.legal-content li {
  font-size: .98rem;
  line-height: 1.7;
  color: var(--text);
}
.legal-content p { margin: 0 0 1rem; }
.legal-content ul {
  padding-left: 1.4rem;
  margin: .5rem 0 1.25rem;
}
.legal-content li { margin-bottom: .35rem; }
.legal-content address {
  font-style: normal;
  background: var(--bg-alt);
  border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: .5rem 0 1.25rem;
}
.legal-content .placeholder {
  background: #fff7e6;
  border: 1px dashed #f5a623;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  color: #6b4d00;
  font-size: .9rem;
  margin: .5rem 0 1.25rem;
}
.legal-content a { word-break: break-word; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: .92rem;
  color: var(--muted);
}
.legal-back:hover { color: var(--primary); }

@media (max-width: 720px) {
  .legal-content { padding: 1.75rem 1.25rem; }
}

/* ============ Responsive ============ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { transform: none; max-width: 460px; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu:not([hidden]) { display: flex; }
  .hero { padding: 3rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}
