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

:root {
  --blue-dark:  #0B1F3A;
  --blue-mid:   #1A3A6B;
  --blue-main:  #1E5BA8;
  --blue-light: #3A7BD5;
  --blue-pale:  #E8F0FB;
  --sky:        #5BC4F5;
  --white:      #FFFFFF;
  --off-white:  #F4F7FC;
  --gray:       #6B7A99;
  --gray-light: #D0DAF0;
  --text:       #1A2540;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--white); color: var(--text); overflow-x: hidden; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Karten extra Staffel-Animation */
.svc-card.reveal { transform: translateY(70px) scale(0.96); }
.svc-card.reveal.visible { transform: translateY(0) scale(1); }
.step.reveal { transform: translateY(50px); }
.step.reveal.visible { transform: translateY(0); }
.feat.reveal { transform: translateX(-30px); }
.feat.reveal.visible { transform: translateX(0); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--gray-light);
  transition: box-shadow 0.3s, background 0.3s;
}
nav.scrolled { box-shadow: 0 4px 30px rgba(30,91,168,0.1); }
.logo { font-family: 'Playfair Display', serif; font-size: 1.45rem; font-weight: 900; color: var(--blue-dark); text-decoration: none; }
.logo span { color: var(--blue-main); }
nav ul { display: flex; align-items: center; gap: 2rem; list-style: none; }
nav ul a { color: var(--gray); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 0.25s; }
nav ul a:hover { color: var(--blue-main); }
.nav-cta { background: var(--blue-main) !important; color: var(--white) !important; padding: 0.6rem 1.4rem; border-radius: 6px; font-weight: 600 !important; transition: background 0.25s, transform 0.25s !important; }
.nav-cta:hover { background: var(--blue-light) !important; transform: translateY(-1px); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: #0B1F3A;
  background: linear-gradient(135deg, #0B1F3A 0%, #1A3A6B 55%, #1E5BA8 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 80px;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 55px 55px;
  will-change: transform;
}
.hero-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,196,245,0.12) 0%, transparent 70%);
  top: -150px; right: -100px; pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}
.hero-glow2 {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,91,168,0.15) 0%, transparent 70%);
  bottom: -100px; left: 5%; pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite reverse;
}
@keyframes glowPulse { 0%,100%{transform:scale(1);opacity:0.8} 50%{transform:scale(1.15);opacity:1} }

.hero-inner {
  position: relative; z-index: 10; width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 5rem 5%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-text { color: var(--white); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px; padding: 0.4rem 1rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); margin-bottom: 1.75rem;
  animation: fadeDown 0.8s ease both;
}
.badge-dot { width: 6px; height: 6px; background: var(--sky); border-radius: 50%; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes fadeDown { from{opacity:0;transform:translateY(-15px)} to{opacity:1;transform:translateY(0)} }

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900;
  line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 1.4rem;
  animation: fadeUp 0.8s ease 0.15s both;
}
h1 .hl { color: var(--sky); }
.hero-sub {
  font-size: 1rem; line-height: 1.78; color: rgba(255,255,255,0.72);
  font-weight: 300; margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp 0.8s ease 0.45s both; }

@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

.btn-w {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--white); color: var(--blue-main);
  padding: 0.9rem 2rem; border-radius: 8px; font-weight: 600; font-size: 0.925rem;
  text-decoration: none; transition: all 0.25s; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-w:hover { background: var(--blue-pale); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.btn-o {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid rgba(255,255,255,0.4); color: var(--white);
  padding: 0.9rem 2rem; border-radius: 8px; font-weight: 500; font-size: 0.925rem;
  text-decoration: none; transition: all 0.25s;
}
.btn-o:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); transform: translateY(-3px); }

/* Hero card */
.hero-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px; padding: 2.5rem; color: var(--white);
  animation: fadeUp 0.8s ease 0.5s both;
  transition: transform 0.4s ease;
}
.hero-card:hover { transform: translateY(-6px); }
.hc-label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 1.25rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2rem; }
.tag {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  color: var(--white); padding: 0.38rem 0.85rem; border-radius: 100px; font-size: 0.8rem;
  transition: background 0.2s;
}
.tag:hover { background: rgba(255,255,255,0.18); }
.hero-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; }
.hs { text-align: center; }
.hs-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; color: var(--white); line-height: 1; }
.hs-lbl { font-size: 0.68rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem; }

/* ── MARQUEE ── */
.marquee-wrap { background: var(--blue-main); padding: 0.9rem 0; overflow: hidden; }
.marquee-track { display: flex; gap: 3rem; animation: marquee 28s linear infinite; white-space: nowrap; }
.mi { display: inline-flex; align-items: center; gap: 0.8rem; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.8); flex-shrink: 0; }
.mi::before { content: '✦'; color: var(--sky); font-size: 0.55rem; }
@keyframes marquee { 0%{transform:translateX(0)}100%{transform:translateX(-50%)} }

/* ── SECTIONS ── */
.sec-hdr { text-align: center; margin-bottom: 4rem; }
.sec-label { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-main); margin-bottom: 0.7rem; }
h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.9rem); font-weight: 900; color: var(--blue-dark); letter-spacing: -0.02em; line-height: 1.15; }
.sec-hdr p { color: var(--gray); margin-top: 1rem; font-size: 0.975rem; font-weight: 300; line-height: 1.75; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── LEISTUNGEN ── */
#leistungen { padding: 7rem 5%; background: var(--off-white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.svc-card {
  background: var(--white); border: 1.5px solid var(--gray-light);
  border-radius: 16px; padding: 2.5rem 2rem;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease, border-color 0.3s;
  position: relative; overflow: hidden; will-change: transform;
}
.svc-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-main), var(--sky));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.svc-card:hover { border-color: var(--blue-light); box-shadow: 0 20px 50px rgba(30,91,168,0.12); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-icon { width: 56px; height: 56px; background: var(--blue-pale); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1.4rem; transition: transform 0.3s ease; }
.svc-card:hover .svc-icon { transform: scale(1.1) rotate(-5deg); }
.svc-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--blue-dark); margin-bottom: 0.7rem; }
.svc-card p { font-size: 0.895rem; color: var(--gray); line-height: 1.72; }

/* ── ÜBER UNS ── */
#ueber-uns { padding: 7rem 5%; background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; max-width: 1100px; margin: 0 auto; }
.about-main {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  border-radius: 20px; padding: 3rem; color: var(--white);
  position: relative; overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s;
}
.about-main:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(11,31,58,0.25); }
.about-main::before { content: '"'; font-family: 'Playfair Display', serif; font-size: 10rem; color: rgba(255,255,255,0.05); position: absolute; top: -2.5rem; left: 1.5rem; line-height: 1; }
.about-main blockquote { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-style: italic; line-height: 1.7; position: relative; z-index: 2; }
.about-main cite { display: block; margin-top: 1.5rem; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); font-style: normal; font-family: 'Inter', sans-serif; font-weight: 500; position: relative; z-index: 2; }
.about-text .sec-label { display: inline-block; margin-bottom: 0.6rem; }
.about-text h2 { margin-bottom: 1.2rem; }
.about-text > p { color: var(--gray); font-weight: 300; line-height: 1.8; margin-bottom: 2.5rem; font-size: 0.975rem; }
.features { display: flex; flex-direction: column; gap: 1.1rem; }
.feat {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; background: var(--off-white);
  border-radius: 12px; border: 1px solid var(--gray-light);
  transition: border-color 0.25s, transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s;
}
.feat:hover { border-color: var(--blue-light); transform: translateX(6px); box-shadow: 0 4px 20px rgba(30,91,168,0.08); }
.feat-ico { width: 38px; height: 38px; background: var(--blue-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.feat h4 { font-size: 0.915rem; font-weight: 600; color: var(--blue-dark); margin-bottom: 0.2rem; }
.feat p { font-size: 0.845rem; color: var(--gray); line-height: 1.6; }

/* ── ABLAUF ── */
#ablauf { padding: 7rem 5%; background: var(--blue-dark); }
#ablauf .sec-hdr h2 { color: var(--white); }
#ablauf .sec-label { color: var(--sky); }
#ablauf .sec-hdr p { color: rgba(255,255,255,0.5); }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; max-width: 1100px; margin: 0 auto; position: relative; }
.steps::before { content: ''; position: absolute; top: 2.2rem; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(91,196,245,0.4) 20%, rgba(91,196,245,0.4) 80%, transparent); }
.step { text-align: center; padding: 1rem; transition: transform 0.3s ease; }
.step:hover { transform: translateY(-8px); }
.step-num {
  width: 46px; height: 46px; border: 2px solid var(--sky); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--sky); background: var(--blue-dark);
  position: relative; z-index: 2;
  transition: background 0.3s, color 0.3s;
}
.step:hover .step-num { background: var(--sky); color: var(--blue-dark); }
.step h3 { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 0.6rem; }
.step p { font-size: 0.845rem; color: rgba(255,255,255,0.48); line-height: 1.65; font-weight: 300; }

/* ── KONTAKT ── */
#kontakt { padding: 7rem 5%; background: var(--off-white); }
.contact-wrap { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.contact-info h2 { margin-bottom: 1.2rem; }
.contact-info > p { color: var(--gray); font-weight: 300; line-height: 1.8; font-size: 0.975rem; margin-bottom: 2.5rem; }
.ci-list { display: flex; flex-direction: column; gap: 1.2rem; }
.ci { display: flex; gap: 1rem; align-items: flex-start; }
.ci-ico {
  width: 44px; height: 44px; background: var(--blue-pale); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
  transition: transform 0.3s, background 0.3s;
}
.ci:hover .ci-ico { transform: scale(1.1); background: var(--blue-main); }
.ci-txt h4 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-main); margin-bottom: 0.25rem; }
.ci-txt p, .ci-txt a { font-size: 0.925rem; color: var(--text); font-weight: 400; text-decoration: none; line-height: 1.5; }
.ci-txt a:hover { color: var(--blue-main); }
.c-form { background: var(--white); border: 1.5px solid var(--gray-light); border-radius: 20px; padding: 2.5rem; box-shadow: 0 10px 40px rgba(30,91,168,0.06); }
.c-form-title { font-size: 1.1rem; font-weight: 600; color: var(--blue-dark); margin-bottom: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { margin-bottom: 1rem; }
.fg label { display: block; font-size: 0.78rem; font-weight: 500; color: var(--gray); margin-bottom: 0.4rem; }
.fg input, .fg textarea, .fg select {
  width: 100%; border: 1.5px solid var(--gray-light); background: var(--off-white); color: var(--text);
  padding: 0.75rem 1rem; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s; resize: none;
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color: var(--blue-main); box-shadow: 0 0 0 3px rgba(30,91,168,0.1); background: var(--white);
}
.fg textarea { min-height: 110px; }
.f-submit {
  width: 100%; background: var(--blue-main); color: var(--white); border: none; padding: 1rem;
  border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.25s; margin-top: 0.5rem;
}
.f-submit:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(30,91,168,0.25); }
.f-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* ── FOOTER ── */
footer { background: var(--blue-dark); color: var(--white); padding: 4rem 5% 2rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.foot-logo { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 900; color: var(--white); text-decoration: none; display: inline-block; margin-bottom: 1rem; }
.foot-logo span { color: var(--sky); }
.foot-brand p { font-size: 0.87rem; color: rgba(255,255,255,0.4); line-height: 1.75; font-weight: 300; max-width: 300px; margin-bottom: 0.3rem; }
.foot-col h4 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--sky); margin-bottom: 1.2rem; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 0.7rem; }
.foot-col a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.875rem; font-weight: 300; transition: color 0.25s, padding-left 0.25s; }
.foot-col a:hover { color: var(--white); padding-left: 4px; }
.foot-btm { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: rgba(255,255,255,0.28); flex-wrap: wrap; gap: 0.5rem; }
.foot-btm a { color: var(--sky); text-decoration: none; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  padding: 1rem 1.5rem; border-radius: 10px;
  font-size: 0.9rem; font-weight: 500; z-index: 9999;
  transform: translateY(80px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  max-width: 320px;
}
.toast.success { background: var(--blue-main); color: var(--white); box-shadow: 0 8px 30px rgba(30,91,168,0.4); }
.toast.error { background: #e53e3e; color: var(--white); box-shadow: 0 8px 30px rgba(229,62,62,0.4); }
.toast.show { transform: translateY(0); opacity: 1; }

/* ── LEGAL PAGES ── */
.legal-page { padding: 140px 5% 6rem; max-width: 800px; margin: 0 auto; }
.legal-page h1 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--blue-dark); margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.2rem; font-weight: 600; color: var(--blue-dark); margin: 2rem 0 0.75rem; font-family: 'Inter', sans-serif; }
.legal-page p { color: var(--gray); font-size: 0.95rem; line-height: 1.8; margin-bottom: 1rem; }
.legal-page a { color: var(--blue-main); }

/* ── MOBILE ── */
@media (max-width: 860px) {
  nav ul { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 3rem 5%; }
  .hero-card { display: none; }
  h1 { font-size: 2.2rem; }
  .hero-grid { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .svc-card { transform: none !important; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .foot-btm { flex-direction: column; text-align: center; }
  .reveal { transform: translateY(40px); }
  .reveal-left, .reveal-right { opacity: 0; transform: translateY(40px); }
  .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateY(0); }
  .svc-card.reveal { transform: translateY(40px) scale(0.97); }
}
