/* ===================================
   DesignFrame – DESIGN SYSTEM
=================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button, a, [role="button"] { touch-action: manipulation; }

:root {
  --primary: #04677d;
  --primary-container: #85cfe8;
  --on-primary-container: #00596d;
  --accent-light: #d4eef7;
  --surface: #f7fafb;
  --surface-low: #f1f4f6;
  --surface-high: #e6e8ea;
  --on-surface: #181c1e;
  --on-surface-variant: #3f484c;
  --dark: #181c1e;
  --dark-mid: #102d3a;
  --outline: #6f797c;
  --error: #ba1a1a;
  --text: #181c1e;
  --text-soft: #3f484c;
  --text-muted: #6f797c;
  --bg: #f7fafb;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --font: 'Manrope', system-ui, sans-serif;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--dark); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { color: var(--text-soft); line-height: 1.7; }

/* ===================================  LAYOUT  === */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--gray { background: var(--surface-low); }
.section--dark { background: var(--dark); }

.section-label {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary); background: var(--accent-light);
  border-radius: var(--radius-full); padding: 4px 14px; margin-bottom: 14px;
}
.section-label--light { background: rgba(133,207,232,0.18); color: var(--primary-container); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header p { max-width: 560px; margin: 12px auto 0; font-size: 1rem; }

/* ===================================  NAV  === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 24px;
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.13);
}
.nav.scrolled .nav__inner {
  height: 62px;
}
.nav__inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 88px; transition: height var(--transition); }
.nav.scrolled .nav__inner { height: 72px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo:hover { text-decoration: none; opacity: 0.85; }
.nav__logo-img { height: 88px; width: auto; display: block; object-fit: contain; transition: height var(--transition); }
.nav.scrolled .nav__logo-img { height: 68px; }
.footer__logo-img { height: 120px; width: auto; display: block; margin-bottom: 14px; object-fit: contain; }
.nav__links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav__links a { font-size: 0.88rem; font-weight: 600; color: var(--text-soft); transition: color var(--transition); }
.nav__links a:hover { color: var(--primary); text-decoration: none; }
.nav__links a.active:not(.nav__cta) { color: var(--primary); }
.nav__cta {
  background: var(--primary-container); color: var(--dark-mid) !important;
  padding: 10px 22px; border-radius: var(--radius-full); font-weight: 700;
  transition: all var(--transition);
}
.nav__cta:hover { background: #6ac0de; transform: translateY(-1px); text-decoration: none !important; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.3s; }

/* ===================================  BUTTONS  === */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px;
  border-radius: var(--radius-full); font-weight: 700; font-size: 0.92rem;
  cursor: pointer; transition: all var(--transition); border: none; text-decoration: none; font-family: var(--font);
}
.btn--primary { background: var(--primary-container); color: var(--dark-mid); }
.btn--primary:hover { background: #6ac0de; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(133,207,232,0.4); text-decoration: none; color: var(--dark-mid); }
.btn--outline { background: transparent; color: rgba(255,255,255,0.85); border: 1.5px solid rgba(255,255,255,0.3); }
.btn--outline:hover { border-color: var(--primary-container); color: var(--primary-container); text-decoration: none; }
.btn--submit {
  width: 100%; background: var(--dark); color: #fff; font-size: 1rem;
  padding: 16px 28px; border-radius: var(--radius-full); cursor: pointer;
  transition: all var(--transition); border: none; font-family: var(--font); font-weight: 700;
}
.btn--submit:hover { background: var(--dark-mid); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ===================================  HERO  === */
.hero {
  min-height: 100vh; padding: 148px 24px 80px;
  background: linear-gradient(155deg, var(--dark) 0%, #1d3a4f 60%, #0f2533 100%);
  position: relative; overflow: hidden; display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; top: -150px; right: -150px; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(133,207,232,0.13) 0%, transparent 70%); pointer-events: none;
}
.hero__inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero__label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #a8dff0; margin-bottom: 20px; }
.hero__label::before { content: ''; display: inline-block; width: 20px; height: 2px; background: #a8dff0; border-radius: 2px; }
.hero h1 { color: #ffffff; margin-bottom: 24px; }
.hero h1 em { color: var(--primary-container); font-style: normal; }
.hero__sub { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Mockup */
.hero__visual { display: flex; justify-content: center; }
.hero__mockup { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 22px; width: 100%; max-width: 360px; backdrop-filter: blur(12px); }
.mockup__bar { display: flex; gap: 6px; margin-bottom: 16px; }
.mockup__dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup__dot:nth-child(1) { background: #ff5f56; }
.mockup__dot:nth-child(2) { background: #ffbd2e; }
.mockup__dot:nth-child(3) { background: #27c93f; }
.mockup__screen { display: flex; flex-direction: column; gap: 8px; }
.mockup__line { height: 9px; border-radius: 4px; background: rgba(255,255,255,0.1); }
.mockup__line--accent { background: rgba(133,207,232,0.5); width: 55%; }
.mockup__line--med { width: 75%; }
.mockup__line--short { width: 40%; }
.mockup__line--full { width: 100%; }
.mockup__block { height: 72px; border-radius: 10px; background: rgba(133,207,232,0.12); display: flex; align-items: center; justify-content: center; margin: 6px 0; }
.mockup__score { text-align: center; }
.mockup__score-value { display: block; font-size: 1.8rem; font-weight: 900; color: var(--primary-container); line-height: 1; }
.mockup__score-label { font-size: 0.65rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; }
.mockup__tag { background: var(--primary-container); color: var(--dark-mid); font-size: 0.72rem; font-weight: 800; padding: 5px 12px; border-radius: var(--radius-full); text-align: center; margin-top: 6px; letter-spacing: 0.05em; }
.hero__stats { display: flex; gap: 20px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero__stat { text-align: center; flex: 1; }
.hero__stat-value { display: block; font-size: 1.4rem; font-weight: 800; color: var(--primary-container); line-height: 1; }
.hero__stat-label { font-size: 0.7rem; color: rgba(255,255,255,0.65); margin-top: 4px; line-height: 1.3; }

/* ===================================  BENTO GRID  === */
.bento-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento-card { grid-column: span 2; background: var(--white); border: 1px solid #ddeef5; border-radius: var(--radius); padding: 28px; transition: box-shadow var(--transition), transform var(--transition); }
.bento-card:nth-child(4) { grid-column: 2 / span 2; }
.bento-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.bento-card__icon { font-size: 1.8rem; margin-bottom: 14px; }
.bento-card h3 { font-size: 1rem; margin-bottom: 8px; }
.bento-card p { font-size: 0.88rem; line-height: 1.6; }

/* ===================================  SERVICES GRID  === */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { background: var(--surface-low); border-radius: var(--radius); padding: 32px 26px; transition: all var(--transition); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary-container), var(--primary)); transform: scaleX(0); transition: transform var(--transition); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); background: var(--white); }
.service-card__icon { width: 48px; height: 48px; background: var(--accent-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--primary); transition: transform var(--transition); }
.service-card:hover .service-card__icon { transform: scale(1.1); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.88rem; line-height: 1.6; }

/* ===================================  ABLAUF  === */
.ablauf__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; position: relative; }
.ablauf__steps::before { content: ''; position: absolute; top: 35px; left: calc(16.66% + 28px); right: calc(16.66% + 28px); height: 2px; background: rgba(133,207,232,0.3); }
.step { text-align: center; }
.step__number { width: 70px; height: 70px; border-radius: 50%; background: var(--primary-container); color: var(--dark-mid); font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; position: relative; z-index: 1; box-shadow: 0 0 0 8px rgba(133,207,232,0.15); }
.step h3 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.step p { color: rgba(255,255,255,0.6); font-size: 0.88rem; }

/* ===================================  EFFEKT / VORHER-NACHHER  === */
.effekt__visual { display: flex; flex-direction: column; gap: 16px; }
.effekt__visual--centered { max-width: 560px; margin: 0 auto; }
.compare-card { display: flex; gap: 12px; align-items: center; }
.compare-card__before, .compare-card__after { flex: 1; background: var(--white); border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--surface-high); }
.compare-card__after { border: 2px solid var(--primary-container); }
.compare-badge { display: inline-block; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 4px; margin-bottom: 10px; }
.compare-badge--before { background: #ffdad6; color: #93000a; }
.compare-badge--after { background: var(--accent-light); color: var(--primary); }
.compare-arrow { font-size: 1.2rem; color: var(--outline); flex-shrink: 0; }
.compare-lines { display: flex; flex-direction: column; gap: 7px; }
.cline { height: 7px; border-radius: 3px; }
.cline--gray { background: var(--surface-high); }
.cline--accent { background: rgba(133,207,232,0.5); }
.cline--full { width: 100%; }
.cline--med { width: 70%; }
.compare-speed { margin-top: 10px; font-size: 0.78rem; font-weight: 700; }
.compare-speed--slow { color: var(--error); }
.compare-speed--fast { color: var(--primary); }
.score-widget { background: var(--white); border-radius: var(--radius-sm); padding: 20px 24px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; border: 1px solid var(--surface-high); }
.score-widget__icon { font-size: 1.4rem; }
.score-widget__text { font-size: 0.88rem; font-weight: 600; color: var(--dark); flex: 1; }
.score-circle { width: 52px; height: 52px; border-radius: 50%; border: 5px solid var(--primary-container); display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 900; color: var(--dark); }

/* ===================================  FÜR WEN  === */
.fuerwen__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fuerwen-tag { background: var(--white); border: 1px solid #ddeef5; border-radius: var(--radius-full); padding: 11px 22px; font-size: 0.9rem; font-weight: 600; color: var(--text); box-shadow: var(--shadow-sm); transition: all var(--transition); cursor: pointer; }
.fuerwen-tag:hover { background: var(--primary-container); border-color: var(--primary-container); color: var(--dark-mid); transform: translateY(-2px); box-shadow: var(--shadow); }
.fuerwen__cta { text-align: center; margin-top: 40px; }

/* ===================================  KONTAKT  === */
.kontakt {background: linear-gradient(140deg, var(--dark) 0%, #1d3a4f 100%); padding: 100px 0; }
.kontakt__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.kontakt__left h2 { color: #fff; margin-bottom: 14px; }
.kontakt__left > p { color: rgba(255,255,255,0.6); font-size: 1rem; margin-bottom: 32px; }
.kontakt__info { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.kontakt__info-item { display: flex; align-items: center; gap: 12px; }
.kontakt__info-icon { font-size: 1.1rem; }
.kontakt__info-item a, .kontakt__info-item span { color: rgba(255,255,255,0.85); font-size: 0.95rem; font-weight: 500; }
.kontakt__info-item a:hover { color: var(--primary-container); text-decoration: none; }
.kontakt__note { font-size: 0.82rem; color: rgba(255,255,255,0.35); }

/* Kontakt Form */
.kontakt__right { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-lg); }
.kontakt__form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input, .form-group textarea {
  background: var(--surface-low); border: 1.5px solid #ddeef5; border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 0.95rem; font-family: var(--font); color: var(--text);
  transition: border-color var(--transition);
  outline: none; width: 100%;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-container); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 80px; }

/* ===================================  FOOTER  === */
.footer { background: #060f14; padding: 60px 0 0; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand .footer__logo { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 900; color: #fff; margin-bottom: 14px; }
.footer__brand p { font-size: 0.85rem; color: rgba(255,255,255,0.35); line-height: 1.6; }
.footer__links-group h4 { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer__links-group ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__links-group a { font-size: 0.85rem; color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer__links-group a:hover { color: var(--primary-container); text-decoration: none; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 24px; text-align: center; }
.footer__bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.2); }
.footer__bottom a { color: rgba(255,255,255,0.3); }
.footer__bottom a:hover { color: var(--primary-container); }

/* ===================================  COOKIE BANNER  === */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: var(--dark); border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px; box-shadow: 0 -4px 32px rgba(0,0,0,0.25);
  transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner__inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.cookie-banner__text { flex: 1; min-width: 260px; }
.cookie-banner__text strong { display: block; font-size: 0.95rem; color: #fff; margin-bottom: 5px; }
.cookie-banner__text p { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin: 0; line-height: 1.5; }
.cookie-banner__text a { color: var(--primary-container); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn { padding: 10px 22px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.85rem; cursor: pointer; border: none; font-family: var(--font); transition: all var(--transition); white-space: nowrap; }
.cookie-btn--primary { background: var(--primary-container); color: var(--dark-mid); }
.cookie-btn--primary:hover { background: #6ac0de; transform: translateY(-1px); }
.cookie-btn--outline { background: transparent; color: rgba(255,255,255,0.75); border: 1.5px solid rgba(255,255,255,0.2); }
.cookie-btn--outline:hover { border-color: var(--primary-container); color: var(--primary-container); }

/* ===================================  LEGAL PAGES  === */
.legal-hero {
  background: linear-gradient(155deg, var(--dark) 0%, #1d3a4f 100%);
  padding: 148px 24px 60px; text-align: center;
}
.legal-hero__back { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.5); margin-bottom: 24px; transition: color var(--transition); }
.legal-hero__back:hover { color: var(--primary-container); text-decoration: none; }
.legal-hero__back::before { content: '←'; }
.legal-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 10px; }
.legal-hero p { color: rgba(255,255,255,0.5); font-size: 0.88rem; }
.legal-content { padding: 72px 0 100px; }
.legal-content .container { max-width: 780px; }
.legal-section { margin-bottom: 48px; }
.legal-section h2 { font-size: 1.15rem; color: var(--dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-light); }
.legal-section h3 { font-size: 1rem; color: var(--dark); margin: 20px 0 8px; font-weight: 700; }
.legal-section p { font-size: 0.92rem; color: var(--text-soft); margin-bottom: 10px; line-height: 1.75; }
.legal-section ul { margin: 8px 0 10px 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-section ul li { font-size: 0.92rem; color: var(--text-soft); line-height: 1.6; }
.legal-section a { color: var(--primary); }
.legal-placeholder { background: #fff8e1; border: 1.5px dashed #f0c040; border-radius: 8px; padding: 4px 10px; font-size: 0.85rem; color: #7a5c00; font-weight: 600; display: inline; }

/* ===================================  ANIMATIONS  === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================================  RESPONSIVE  === */
@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero__visual { display: none; }
  .hero__actions { flex-wrap: wrap; }
  .bento-grid { grid-template-columns: repeat(4, 1fr); }
  .bento-card { grid-column: span 2; }
  .bento-card:nth-child(4) { grid-column: auto / span 2; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .ablauf__steps { grid-template-columns: 1fr; }
  .ablauf__steps::before { display: none; }
  .kontakt__grid { grid-template-columns: 1fr; gap: 36px; }
  /* Mobile nav dropdown: top muss zur tatsächlichen Nav-Höhe passen */
  .nav__links { display: none; position: fixed; top: 88px; left: 0; right: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(16px); flex-direction: column; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--surface-high); box-shadow: var(--shadow); gap: 0; }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; text-align: center; }
  /* Mindest-Touch-Target 48px für mobile Nav-Links */
  .nav__links a { display: block; padding: 14px 20px; font-size: 1rem; min-height: 48px; display: flex; align-items: center; justify-content: center; }
  .nav__hamburger { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .legal-hero { padding-top: 120px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 88px; }
  .section { padding: 60px 0; }
  .hero { padding: 108px 20px 60px; }
  .hero h1 br { display: none; } /* Kein erzwungener Zeilenbruch auf kleinen Screens */
  .hero__actions { gap: 10px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card, .bento-card:nth-child(4) { grid-column: 1 / -1; }
  .services__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .kontakt__right { padding: 24px; }
  .kontakt { padding: 72px 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .compare-card { flex-direction: column; }
  .compare-arrow { transform: rotate(90deg); }
  .cookie-banner__inner { flex-direction: column; gap: 16px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}
