/* ============ Design Tokens ============ */
:root {
  --bg: #ffffff;
  --bg-soft: #f3f1ec;
  --bg-card: #ffffff;
  --ink: #1a2230;
  --ink-soft: #6b7280;
  --line: #e2e0da;
  --brand: #1f4e79;
  --brand-deep: #14304d;
  --accent: #8a94a6;
  --shadow: 0 12px 40px rgba(20, 48, 77, 0.12);
  --radius: 20px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #0c0c0e;
    --bg-card: #141416;
    --ink: #f5f5f7;
    --ink-soft: #a1a1a6;
    --line: #2a2a2e;
    --brand: #5b9bd5;
    --brand-deep: #0c1f33;
    --accent: #9aa4b6;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ============ Reveal Animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(31, 78, 121, 0.4); }
.btn--ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--bg-soft); transform: scale(1.04); }
.btn--full { width: 100%; }

/* ============ Navigation ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.is-scrolled { border-color: var(--line); }
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; height: 46px; }
.nav__logo img { height: 44px; width: auto; border-radius: 10px; display: block; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 0.9rem; color: var(--ink-soft); transition: color 0.25s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  background: var(--brand);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 980px;
}
.nav__cta:hover { transform: scale(1.04); }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--ink); transition: 0.3s var(--ease); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(0, 113, 227, 0.18), transparent 70%),
    radial-gradient(50% 40% at 80% 60%, rgba(0, 180, 216, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  z-index: -1;
}
.hero__content { max-width: 820px; }
.hero__logo {
  width: min(300px, 68vw);
  height: auto;
  display: block;
  margin: 0 auto 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.hero__title {
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero__sub {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 34px;
  width: 26px;
  height: 42px;
  border: 2px solid var(--ink-soft);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 4px; height: 8px; border-radius: 2px; background: var(--ink-soft);
  animation: scrollDot 1.6s var(--ease) infinite;
}
@keyframes scrollDot { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 100%{opacity:0;transform:translateY(14px)} }

/* ============ Sections generic ============ */
section { position: relative; }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; padding: 0 24px; }
.section__eyebrow {
  font-size: 0.85rem; font-weight: 600; color: var(--brand);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.section__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
}
.section__lead { margin-top: 16px; font-size: 1.15rem; color: var(--ink-soft); }

/* ============ Trust bar ============ */
.trust { background: var(--bg-soft); padding: 40px 24px; }
.trust__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.trust__item { display: flex; flex-direction: column; gap: 4px; }
.trust__item strong { font-size: 1.05rem; }
.trust__item span { font-size: 0.9rem; color: var(--ink-soft); }

/* ============ Services ============ */
.services { max-width: var(--maxw); margin: 0 auto; padding: 110px 24px; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  will-change: transform;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 64px; height: 64px;
  display: grid; place-items: center; border-radius: 16px;
  background: var(--bg-soft); color: var(--brand); margin-bottom: 20px;
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.services__group { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 22px; display: flex; align-items: center; gap: 14px; }
.services__group::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--brand); flex: none; }
.services__grid + .services__group { margin-top: 56px; }

/* ============ Spezialität ============ */
.special { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 110px; }
.special__box {
  background: linear-gradient(135deg, #16375b, #0f2740);
  color: #fff; border-radius: var(--radius);
  padding: 56px 48px; box-shadow: var(--shadow);
}
.special__box .section__eyebrow { color: var(--accent); }
.special__box h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; color: #fff; }
.special__box p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; max-width: 760px; }
.special__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.special__tags span { border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 980px; padding: 8px 16px; font-size: 0.9rem; }

/* ============ Über uns (Foto + Text) ============ */
.about { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 110px; }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about__media { position: relative; padding-bottom: 40px; padding-right: 40px; }
.about__img { display: block; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__img--main { width: 100%; height: auto; }
.about__img--inset {
  position: absolute; right: 0; bottom: 0;
  width: 52%; border: 6px solid var(--bg);
}
.about__text .section__title { text-align: left; }
.about__lead { margin-top: 16px; color: var(--ink-soft); font-size: 1.1rem; }
.about__points { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.about__points li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); }
.about__points svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 1px; }

/* ============ Foto-Band (Vollbild) ============ */
.band {
  position: relative;
  background-image: linear-gradient(rgba(15, 39, 61, 0.72), rgba(15, 39, 61, 0.72)), url("foto-fassade.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 130px 24px;
}
.band__inner { max-width: 720px; margin: 0 auto; }
.band .section__eyebrow { color: var(--accent); }
.band h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; color: #fff; }
.band p { margin-top: 18px; font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); }

/* ============ Why (sticky interactive) ============ */
.why { background: var(--brand-deep); color: #fff; padding: 0; }
.why__sticky {
  max-width: var(--maxw); margin: 0 auto;
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr 0.9fr;
  align-items: center; gap: 40px; padding: 100px 24px;
}
.why .section__eyebrow { color: var(--accent); }
.why .section__title { color: #fff; }
.why__list { list-style: none; margin-top: 34px; display: flex; flex-direction: column; gap: 8px; }
.why__list li {
  padding: 20px 22px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  transition: all 0.5s var(--ease);
}
.why__list li strong { color: #fff; display: block; margin-bottom: 4px; }
.why__list li.is-active {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  border-color: var(--accent);
  transform: translateX(6px);
}
.why__visual { display: grid; place-items: center; height: 320px; position: relative; }
.why__ring {
  width: 240px; height: 240px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  position: absolute;
  background: radial-gradient(circle at 50% 40%, rgba(0,180,216,0.35), transparent 60%);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:.8} 50%{transform:scale(1.08);opacity:1} }
.why__badge {
  font-size: 5rem; font-weight: 700; color: #fff;
  transition: transform 0.4s var(--ease);
}

/* ============ Stats ============ */
.stats { padding: 100px 24px; }
.stats__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__num { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.03em; color: var(--brand); line-height: 1; }
.stat__label { color: var(--ink-soft); font-size: 1rem; }

/* ============ Quotes ============ */
.quotes { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 110px; }
.quotes__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.quote {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.quote blockquote { font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 16px; }
.quote figcaption { color: var(--ink-soft); font-size: 0.95rem; }

/* ============ FAQ ============ */
.faq { max-width: 780px; margin: 0 auto; padding: 40px 24px 110px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
}
.faq__item summary {
  list-style: none; cursor: pointer; padding: 22px 24px;
  font-size: 1.1rem; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--brand);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 24px 22px; color: var(--ink-soft); }

/* ============ Contact ============ */
.contact { background: var(--bg-soft); padding: 110px 24px; }
.contact__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.contact__meta { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.contact__meta li { display: flex; align-items: center; gap: 12px; }
.contact__meta .ico { width: 20px; height: 20px; color: var(--brand); flex: none; }
.contact__meta a:hover { color: var(--brand); }
.contact__form { display: flex; flex-direction: column; gap: 16px; }
.contact__form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 20px 16px 8px; font-size: 1rem;
  background: var(--bg-card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  font-family: inherit; resize: vertical;
  transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field label {
  position: absolute; left: 16px; top: 15px;
  color: var(--ink-soft); font-size: 1rem; pointer-events: none;
  transition: all 0.2s var(--ease);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 7px; font-size: 0.72rem; color: var(--brand);
}
.contact__note { font-size: 0.95rem; min-height: 1.2em; }
.contact__note.is-ok { color: #1a8a3c; }
.contact__note.is-err { color: #d13438; }

/* ============ Footer ============ */
.footer { padding: 50px 24px; border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  color: var(--ink-soft); font-size: 0.9rem;
}
.footer__logo img { height: 52px; width: auto; border-radius: 10px; display: block; }
.footer__links { display: flex; gap: 22px; }
.footer__links a:hover { color: var(--ink); }

/* ============ Rechtstexte (Impressum/Datenschutz) ============ */
.legal-nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.legal-nav__inner {
  max-width: 820px; margin: 0 auto; padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.legal-nav__logo img { height: 40px; width: auto; border-radius: 8px; display: block; }
.legal-nav__back { color: var(--ink-soft); font-size: 0.9rem; }
.legal-nav__back:hover { color: var(--brand); }

.legal { max-width: 820px; margin: 0 auto; padding: 50px 24px 90px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; }
.legal__updated { color: var(--ink-soft); margin: 8px 0 36px; font-size: 0.95rem; }
.legal h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 38px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p { color: var(--ink); line-height: 1.75; margin-bottom: 14px; }
.legal ul { margin: 0 0 14px 22px; }
.legal li { color: var(--ink); line-height: 1.7; margin-bottom: 6px; }
.legal a { color: var(--brand); text-decoration: underline; }
.legal address { font-style: normal; line-height: 1.7; }
.legal .note {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px; margin: 0 0 32px;
  color: var(--ink-soft); font-size: 0.95rem;
}
.tofill { background: #fff3cd; color: #664d03; padding: 1px 6px; border-radius: 4px; font-style: normal; }
@media (prefers-color-scheme: dark) { .tofill { background: #4d3f00; color: #ffe69c; } }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 12px 24px 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open a { padding: 14px 0; font-size: 1.05rem; }
  .nav__burger { display: flex; }
  .services__grid, .quotes__grid, .trust__inner, .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .why__sticky { grid-template-columns: 1fr; min-height: auto; gap: 40px; }
  .why__visual { order: -1; height: 200px; }
  .why__ring { width: 180px; height: 180px; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__media { order: -1; max-width: 480px; }
  .band { background-attachment: scroll; padding: 90px 24px; }
  .special__box { padding: 40px 26px; }
}
@media (max-width: 560px) {
  .services__grid, .quotes__grid, .stats__grid { grid-template-columns: 1fr; }
  .trust__inner { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 100px; }
}
