:root {
  --navy: #0d2b42;
  --navy-dark: #071a29;
  --navy-light: #16405f;
  --accent: #eab308;
  --accent-dark: #b8860b;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --text: #1f2937;
  --text-light: #5b6672;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(13, 43, 66, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; overflow-wrap: break-word; word-break: break-word; }

p { overflow-wrap: break-word; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.legal-page {
  padding: 32px 20px 64px;
}

@media (min-width: 720px) {
  .legal-page { padding: 56px 20px 80px; }
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 16px; color: var(--text-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

.logo-bolt {
  display: flex;
  color: var(--accent);
}

.logo-text strong { color: var(--accent-dark); }

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.main-nav a:hover { color: var(--accent-dark); }

.tel-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.tel-button:hover { background: var(--navy-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy-dark);
}

.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, var(--navy-light));
  color: #fff;
  padding: 90px 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.hero h1 { color: #fff; }

.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-graphic { position: relative; }
.hero-svg { width: 100%; height: auto; }
.hero-circle-bg { fill: rgba(255, 255, 255, 0.06); }
.hero-bolt {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: bolt-fade-in 1s ease-out both;
}

@keyframes bolt-fade-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bolt { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-kicker {
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

/* ---------- Cards / Leistungen ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(234, 179, 8, 0.12);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist li {
  padding-left: 28px;
  position: relative;
  font-weight: 600;
  color: var(--navy);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
}

.area-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.area-card svg { margin: 0 auto 16px; color: var(--accent); }
.area-card h3 { color: #fff; }
.area-card p { color: rgba(255, 255, 255, 0.8); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
  box-shadow: var(--shadow);
}

.testimonial blockquote {
  margin: 0 0 16px;
  font-style: italic;
  color: var(--text);
}

.testimonial figcaption {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

/* ---------- Kontakt ---------- */
.kontakt-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-list svg { color: var(--accent-dark); flex-shrink: 0; margin-top: 2px; }
.contact-list a { text-decoration: none; font-weight: 600; color: var(--navy); }
.contact-list a:hover { color: var(--accent-dark); }

.kontakt-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-row { margin-bottom: 18px; }

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-split .form-row { margin-bottom: 0; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
}

textarea { resize: vertical; }

.form-hinweis {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
}
.form-hinweis a { color: var(--navy); font-weight: 600; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-banner {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-banner.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-banner.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 28px 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-nav { display: flex; gap: 20px; }
.footer-nav a { text-decoration: none; color: rgba(255, 255, 255, 0.7); }
.footer-nav a:hover { color: #fff; }

.footer-credit {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.78rem;
}

.footer-credit a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.footer-credit a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards, .testimonials { grid-template-columns: 1fr; }
  .hero-inner, .about-inner, .kontakt-inner { grid-template-columns: 1fr; }
  .hero-graphic { order: -1; max-width: 260px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .tel-button span { display: none; }
  .form-row-split { grid-template-columns: 1fr; }
}