/* ---------- Lokale Schriften (DSGVO-konform, kein Google-Fonts-CDN) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-500-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-700-latin.woff2") format("woff2");
}

:root {
  --navy: #16243d;
  --navy-soft: #22345a;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-dark: #1d4ed8;
  --text: #24344f;
  --muted: #5b6b85;
  --bg: #ffffff;
  --surface: #f4f7fd;
  --border: #e2e9f5;
  --shadow: 0 12px 34px rgba(22, 36, 61, 0.10);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--navy);
  line-height: 1.2;
}

a { color: var(--blue); text-decoration: none; }

img, svg { max-width: 100%; display: block; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

section { padding: 96px 0; }

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-intro {
  color: var(--muted);
  max-width: 640px;
  font-size: 1.05rem;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}

header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(22, 36, 61, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 44px; width: auto; mix-blend-mode: multiply; }

.brand-name {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.brand-name .klv { color: var(--navy); }
.brand-name .digital { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.97rem;
  transition: color .2s ease;
}

.nav-links a:not(.btn):hover { color: var(--blue); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 13px 26px;
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.36);
}

.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.nav .btn { padding: 11px 22px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 65%);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -260px;
  left: -200px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(22, 36, 61, 0.08), transparent 65%);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--blue-light), var(--blue-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-points svg { width: 18px; height: 18px; flex-shrink: 0; }

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 48px 42px;
  text-align: center;
  max-width: 360px;
  width: 100%;
}

.hero-card img.logo-full {
  width: 240px;
  height: auto;
  margin: 0 auto 18px;
  mix-blend-mode: multiply;
}

.hero-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Leistungen ---------- */
.services { background: var(--surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 54px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, 0.35);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.service-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card > p {
  color: var(--muted);
  font-size: 0.97rem;
  margin-bottom: 20px;
}

.service-card ul {
  list-style: none;
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.service-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text);
}

.service-card ul svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 3px;
}

.service-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: rgba(37, 99, 235, 0.10);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Ablauf ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 54px;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
}

.step-number {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step:nth-child(even) .step-number {
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Über mich ---------- */
.about { background: var(--surface); }

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 44px 40px;
  text-align: center;
  max-width: 340px;
  width: 100%;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue-dark));
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.about-card h3 { font-size: 1.25rem; margin-bottom: 6px; }

.about-card .role {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.about-card .contact-line {
  font-size: 0.92rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.about-card .contact-line svg { width: 16px; height: 16px; flex-shrink: 0; }

.about-text p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.about-text p strong { color: var(--navy); }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
  list-style: none;
}

.about-values li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-values svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Kontakt ---------- */
.contact-wrap {
  margin-top: 54px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
  align-items: start;
}

.contact-card {
  border-radius: var(--radius);
  padding: 40px 36px;
  border: 1px solid var(--border);
}

.contact-card.primary {
  background: linear-gradient(140deg, var(--navy), #1d3a6e 60%, var(--blue-dark));
  border: none;
  color: #fff;
}

.contact-card.primary h3 { color: #fff; }

.contact-card.primary p { color: rgba(255, 255, 255, 0.82); }

.contact-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--muted);
  margin-bottom: 26px;
  font-size: 0.98rem;
}

.btn-white {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.btn-white:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Kontaktformular ---------- */
.contact-form { margin-top: 6px; }

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.form-optional {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

.form-hint {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: box-shadow .2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}

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

.contact-form .btn { margin-top: 4px; }

.form-status {
  margin: 14px 0 0;
  font-size: 0.92rem;
  min-height: 1.3em;
}

.form-status.success { color: #a7f3d0; }

.form-status.error { color: #fecaca; }

.contact-info {
  display: grid;
  gap: 22px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item .icon svg { width: 20px; height: 20px; }

.contact-info-item h4 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-info-item p, .contact-info-item a {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.contact-info-item a { color: var(--blue); font-weight: 500; }

.contact-info-item a:hover { text-decoration: underline; }

/* ---------- Referenzen ---------- */
.review-wrap {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 26px;
  margin-top: 54px;
  align-items: start;
}

.review-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow);
}

.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.review-stars svg {
  width: 22px;
  height: 22px;
  fill: #f5a623;
}

.review-card blockquote {
  margin: 0 0 26px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--navy);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--blue-dark));
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-meta { display: flex; flex-direction: column; }

.review-name { font-weight: 600; color: var(--navy); font-size: 0.98rem; }

.review-source { font-size: 0.85rem; color: var(--muted); }

.project-card {
  background: linear-gradient(140deg, var(--navy), #1d3a6e 60%, var(--blue-dark));
  border-radius: var(--radius);
  padding: 34px 30px;
  color: #fff;
}

.project-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.project-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.project-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: var(--navy);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.project-link svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 54px 0 30px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand-name { font-size: 1.1rem; }
.footer-brand .brand-name .klv { color: #fff; }
.footer-brand .brand-name .digital { color: var(--blue-light); }

.footer-brand p {
  max-width: 300px;
  font-size: 0.92rem;
  margin-top: 12px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-link svg { width: 20px; height: 20px; }

.social-link:hover,
.social-link:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a, .footer-col li {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.7); }

.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal-Animation (nur aktiv, wenn JavaScript läuft) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

html.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Rechtsseiten (Impressum, Datenschutz) ---------- */
.legal-main {
  padding: 64px 0 96px;
}

.legal-main .container { max-width: 780px; }

.legal-main h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin-bottom: 34px;
}

.legal-main h2 {
  font-size: 1.3rem;
  margin: 42px 0 14px;
}

.legal-main h3 {
  font-size: 1.05rem;
  margin: 28px 0 10px;
}

.legal-main p, .legal-main ul {
  color: var(--text);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.legal-main ul { padding-left: 22px; }

.legal-main a { word-break: break-word; }

.legal-main a:hover { text-decoration: underline; }

.legal-main address {
  font-style: normal;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 14px;
  line-height: 1.8;
}

.legal-main .stand {
  margin-top: 42px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  section { padding: 72px 0; }

  .hero { padding: 72px 0 84px; }

  .hero-grid, .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual { order: -1; }
  .hero-card { max-width: 300px; padding: 36px 30px; }
  .hero-card img.logo-full { width: 190px; }

  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .review-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(22, 36, 61, 0.10);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .nav-links.open { max-height: 400px; }

  .nav-links li {
    width: 100%;
    border-top: 1px solid var(--border);
  }

  .nav-links a:not(.btn) {
    display: block;
    padding: 15px 5vw;
  }

  .nav-links li:last-child { padding: 14px 5vw 18px; }

  .nav-toggle { display: block; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .steps-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
