/* =============================================
   KLARO ENTRÜMPELUNG – style.css
   Komponenten & Layout
   ============================================= */

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(243, 250, 255, 0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--on-surface-variant);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 0.375rem;
  font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.9; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--surface-low);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 65% 50%, rgba(160,243,153,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.hero-text {
  padding: 8rem 3rem 4rem 5rem;
  position: relative; z-index: 1;
}

.hero-label {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.8rem;
  font-family: 'Inter', sans-serif;
}
.hero-label::before {
  content: '';
  display: block; width: 2rem; height: 1px;
  background: var(--primary);
}

.hero h1 {
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  line-height: 0.95;
  color: var(--on-surface);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 2rem;
}
.hero h1 span { color: var(--primary); display: block; }

.hero-sub {
  color: var(--on-surface-variant);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 3rem;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--white);
  padding: 1rem 2.2rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 0.375rem;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,49,120,0.25);
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,49,120,0.35); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  padding: 1rem 2.2rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 0.375rem;
  transition: background 0.2s, color 0.2s;
  box-shadow: inset 0 0 0 2px rgba(0,49,120,0.20);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.hero-visual {
  position: relative;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
}

.hero-number {
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: 32vw;
  color: rgba(0,49,120,0.04);
  position: absolute;
  right: -2rem;
  line-height: 1;
  user-select: none;
}

.hero-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--outline-variant);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(7,30,39,0.06);
}

.stat {
  background: var(--surface-lowest);
  padding: 2.5rem;
  text-align: center;
  transition: background 0.3s;
}
.stat:hover { background: var(--surface-low); }

.stat-num {
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: var(--primary);
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  color: var(--on-surface-variant);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.4rem;
  display: block;
  font-family: 'Inter', sans-serif;
}

/* ── TICKER ── */
.ticker {
  background: var(--primary);
  padding: 0.8rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  animation: ticker 25s linear infinite;
}
.ticker-item {
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  padding: 0 2.5rem;
  text-transform: uppercase;
}
.ticker-dot { color: var(--secondary-container); align-self: center; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SECTION COMMON ── */
section { padding: 7rem 5rem; }

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.8rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.section-label::before {
  content: '';
  display: block; width: 2rem; height: 1px;
  background: var(--primary);
}

.section-title {
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--on-surface);
}

/* ── LEISTUNGEN ── */
.leistungen { background: var(--surface); }

.leistungen-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: end;
  margin-bottom: 4rem;
}

.leistungen-intro {
  color: var(--on-surface-variant);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 420px;
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.leistung-card {
  background: var(--surface-low);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
  border-radius: 1rem;
}
.leistung-card:hover {
  background: var(--surface-lowest);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(7,30,39,0.06);
}
.leistung-card:hover .leistung-icon { transform: scale(1.15); }

.leistung-icon {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  display: block;
  transition: transform 0.3s;
}

.leistung-num {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  color: rgba(0,49,120,0.06);
  line-height: 1;
}

.leistung-card h3 {
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
  color: var(--on-surface);
}

.leistung-card p {
  color: var(--on-surface-variant);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── ABLAUF ── */
.ablauf { background: var(--surface-low); color: var(--on-surface); }
.ablauf .section-title { color: var(--on-surface); }

.ablauf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 4rem;
  position: relative;
}

.ablauf-grid::before {
  content: '';
  position: absolute;
  top: 2.2rem; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(to right, var(--primary), rgba(0,49,120,0.15));
}

.ablauf-step {
  padding: 0 2rem;
  text-align: center;
  position: relative;
}

.step-circle {
  width: 4.5rem; height: 4.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  position: relative; z-index: 1;
  box-shadow: 0 4px 12px rgba(0,49,120,0.20);
}

.ablauf-step h3 {
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
  color: var(--on-surface);
}

.ablauf-step p {
  color: var(--on-surface-variant);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ── VORTEILE ── */
.vorteile {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.vorteile-left {
  background: var(--primary);
  padding: 7rem 5rem;
  display: flex; flex-direction: column; justify-content: center;
}

.vorteile-left .section-label        { color: rgba(255,255,255,0.7); }
.vorteile-left .section-label::before { background: rgba(255,255,255,0.4); }
.vorteile-left .section-title        { color: var(--white); }

.vorteile-tagline {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 1rem;
}

.vorteile-right { padding: 7rem 5rem; background: var(--surface-lowest); }

.vorteil-item {
  display: flex; gap: 1.5rem;
  padding: 2rem 0;
}
.vorteil-item:first-child { padding-top: 0; }

.vorteil-check {
  width: 2rem; height: 2rem; flex-shrink: 0;
  background: var(--secondary-container);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--on-secondary-container);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.vorteil-text h4 {
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  color: var(--on-surface);
}
.vorteil-text p {
  color: var(--on-surface-variant);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ── KONTAKT ── */
.kontakt { background: var(--surface-low); }

.kontakt-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 6rem; align-items: start;
  margin-top: 4rem;
}

.kontakt-info p {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.kontakt-detail {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.2rem;
}

.kontakt-detail-icon {
  width: 2.4rem; height: 2.4rem;
  background: var(--primary);
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: white; flex-shrink: 0;
}

.kontakt-detail-text a,
.kontakt-detail-text span {
  display: block;
  color: var(--on-surface);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.kontakt-detail-text small {
  color: var(--on-surface-variant);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.kontakt-detail-text a:hover { color: var(--primary); }

/* ── FORMULAR ── */
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--on-surface-variant);
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface-high);
  border: none;
  border-radius: 0.375rem;
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--on-surface);
  outline: none;
  transition: background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: var(--surface-lowest);
  box-shadow: inset 0 0 0 2px rgba(0,49,120,0.20);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--white);
  border: none;
  padding: 1.1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 0.375rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,49,120,0.25);
}
.form-submit:hover { opacity: 0.92; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,49,120,0.35); }

/* ── FOOTER ── */
footer {
  background: var(--surface-dim);
  color: var(--on-surface-variant);
  padding: 3rem 5rem;
  display: flex; align-items: center; justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.footer-logo svg { display: block; }

.footer-copy { font-size: 0.82rem; }

.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
  color: var(--on-surface-variant);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--on-surface); }

/* ── ANIMATIONEN ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ── LEGAL PAGES (Impressum / Datenschutz) ── */
.legal-content h2 {
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}
.legal-content p {
  color: var(--on-surface-variant);
  font-size: 0.925rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}
.legal-content ul {
  color: var(--on-surface-variant);
  font-size: 0.925rem;
  line-height: 1.85;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-content a {
  color: var(--primary);
  text-decoration: none;
}
.legal-content a:hover { text-decoration: underline; }


/* ── DANKE PAGE ── */
.danke-page {
  min-height: 100vh;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.danke-card {
  background: var(--surface-lowest);
  border-radius: 1.5rem;
  padding: 4rem 3rem;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(7, 30, 39, 0.08);
}

.danke-check {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, var(--secondary), var(--on-secondary-container));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
  animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.danke-label {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.8rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.danke-card h1 {
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--on-surface);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.danke-card p {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 380px;
  margin: 0 auto 2.5rem;
}

.danke-steps {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.danke-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface-low);
  border-radius: 0.75rem;
  padding: 0.9rem 1.2rem;
}

.danke-step-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.danke-step span {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  line-height: 1.4;
}

.danke-step strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 0.1rem;
}

.danke-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--white);
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 0.375rem;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0, 49, 120, 0.25);
}
.danke-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 49, 120, 0.35);
}

.danke-footer {
  margin-top: 2rem;
  color: var(--on-surface-variant);
  font-size: 0.8rem;
}
.danke-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/* ── DESKTOP SCALING (> 900px only) ── */
@media (min-width: 901px) {
  section { padding: 8rem 6rem; }

  .hero-text { padding: 8rem 3rem 4rem 6rem; }

  .hero h1 { font-size: clamp(4rem, 6.5vw, 7.5rem); }

  .hero-sub { font-size: 1.1rem; }

  .section-title { font-size: clamp(2.4rem, 3.8vw, 4rem); }

  .leistung-card { padding: 3.5rem; }
  .leistung-card h3 { font-size: 1.1rem; }
  .leistung-card p { font-size: 1rem; }
  .leistung-icon { font-size: 2.6rem; }

  .stat-num { font-size: 3.5rem; }

  .step-circle { width: 5rem; height: 5rem; font-size: 1.35rem; }
  .ablauf-step h3 { font-size: 1rem; }
  .ablauf-step p { font-size: 0.95rem; }

  .vorteile-left { padding: 8rem 6rem; }
  .vorteile-right { padding: 8rem 6rem; }
  .vorteil-text h4 { font-size: 1.05rem; }
  .vorteil-text p { font-size: 0.95rem; }

  .kontakt-info p { font-size: 1.05rem; }
  .kontakt-detail-text a,
  .kontakt-detail-text span { font-size: 1rem; }

  .leistungen-intro { font-size: 1.1rem; }
}
