/* =========================================================
   EFD GmbH — Modern Website Styles
   ========================================================= */

:root {
  --bg: #f6f4ef;
  --bg-soft: #efece4;
  --ink: #111418;
  --ink-soft: #3a3f48;
  --muted: #6b7280;
  --line: rgba(17, 20, 24, 0.08);
  --card: #ffffff;
  --dark: #0f1419;
  --dark-2: #161c23;

  --brand: #c41e1e;         /* EFD-Rot (Logo) */
  --brand-soft: #e24545;
  --brand-glow: rgba(196, 30, 30, 0.16);
  --accent: #0b0b0b;        /* Logo-Schwarz */

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(17,20,24,0.05), 0 2px 8px rgba(17,20,24,0.04);
  --shadow-md: 0 10px 30px -12px rgba(17,20,24,0.18);
  --shadow-lg: 0 30px 80px -20px rgba(17,20,24,0.25);

  --ff-sans: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-display: 'Fraunces', Georgia, serif;

  --container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand); }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1,h2,h3,h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }
.lead { font-size: 1.125rem; color: var(--ink-soft); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- Eyebrow / chips ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow);
}
.eyebrow--light { color: #f1b98b; }
.eyebrow--light .eyebrow__dot { background: #f1b98b; box-shadow: 0 0 0 4px rgba(241,185,139,0.18); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  font-size: 0.85rem; padding: 7px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--lg { padding: 15px 26px; font-size: 1rem; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,244,239,0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.is-scrolled { border-color: var(--line); background: rgba(246,244,239,0.92); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.brand--footer .brand__logo { height: 56px; filter: brightness(0) invert(1) drop-shadow(0 0 0 #fff); }
/* Footer-Logo bleibt farbig, nur größer: */
.brand--footer .brand__logo { height: 60px; filter: none; }
@media (max-width: 720px) {
  .brand__logo { height: 36px; }
}

.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-weight: 500; font-size: 0.95rem; color: var(--ink-soft);
  position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--brand); border-radius: 2px; transition: width .25s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { padding: 11px 20px; font-size: 0.9rem; }

.nav__burger {
  display: none;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card);
  padding: 10px;
}
.nav__burger span {
  display: block; width: 20px; height: 2px; background: var(--ink);
  margin: 3px auto; transition: transform .25s, opacity .25s;
}
.nav__mobile {
  display: none;
  flex-direction: column; gap: 8px; padding: 16px 24px 24px;
  border-top: 1px solid var(--line); background: var(--bg);
}
.nav__mobile a { padding: 12px 8px; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav__mobile a.btn { border-bottom: none; margin-top: 10px; justify-content: center; }
.nav.is-open .nav__mobile { display: flex; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%);
  opacity: 0.55;
}
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55;
}
.hero__glow--1 { width: 520px; height: 520px; background: var(--brand-glow); top: -180px; right: -120px; }
.hero__glow--2 { width: 420px; height: 420px; background: rgba(31,58,95,0.15); bottom: -160px; left: -120px; }

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center;
}
.hero__title { margin: 18px 0 22px; }
.hero__title .accent {
  color: var(--brand);
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-soft) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__lead { font-size: 1.18rem; max-width: 580px; color: var(--ink-soft); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }

.hero__badges {
  display: flex; gap: 40px; margin-top: 54px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.hero__badges li { display: flex; flex-direction: column; }
.hero__badges strong {
  font-family: var(--ff-display); font-size: 1.7rem; color: var(--ink); font-weight: 700;
}
.hero__badges span { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* Hero card */
.hero__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
  transition: transform .3s ease;
}
.hero__card:hover { transform: rotate(0) translateY(-4px); }
.hero__card-head {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.status-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.hero__card h3 { margin-bottom: 6px; }
.hero__card p { font-size: 0.95rem; margin-bottom: 18px; }
.hero__card-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
  font-size: 0.95rem; color: var(--ink);
}
.hero__card-row svg { color: var(--brand); flex-shrink: 0; }

/* Marquee */
.hero__marquee {
  margin-top: 70px; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; position: relative;
}
.marquee__track {
  display: flex; gap: 40px;
  animation: marquee 35s linear infinite;
  white-space: nowrap;
  font-family: var(--ff-display); font-size: 1.4rem; color: var(--ink-soft);
}
.marquee__track span:nth-child(odd) { color: var(--ink); font-weight: 600; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section__header { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section__header h2 { margin: 16px 0 14px; }

.section__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.section__intro h2 { margin: 16px 0 20px; }

/* dark variant (services) */
.section--dark {
  background: var(--dark);
  color: #e5e7eb;
}
.section--dark h2 { color: #fff; }
.section--dark p { color: #a9b0ba; }
.section--dark .lead { color: #c2c9d3; }

/* Stat cards */
.stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.stat-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-glow); color: var(--brand);
  margin-bottom: 14px;
}
.stat-card__icon svg { width: 24px; height: 24px; }
.stat-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.stat-card p { font-size: 0.95rem; margin: 0; }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.service {
  position: relative;
  padding: 32px 28px 28px;
  border-radius: var(--radius);
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.service::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(200,90,42,0.16), transparent 40%);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.service:hover { transform: translateY(-6px); border-color: rgba(200,90,42,0.35); }
.service:hover::before { opacity: 1; }
.service--wide { grid-column: span 3; display: grid; grid-template-columns: auto auto 1fr auto; gap: 24px; align-items: center; padding: 28px; }
.service--wide h3 { margin: 0; }
.service--wide p  { margin: 0; max-width: 60ch; }

.service__num {
  font-family: var(--ff-display); font-size: 0.95rem; color: var(--brand-soft);
  font-weight: 600; letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.service--wide .service__num { margin: 0; }
.service__icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(200,90,42,0.12); color: var(--brand-soft);
  margin-bottom: 18px;
}
.service--wide .service__icon { margin: 0; }
.service__icon svg { width: 28px; height: 28px; }
.service h3 { color: #fff; margin-bottom: 10px; }
.service p { font-size: 0.97rem; color: #a9b0ba; margin: 0; }
.service__arrow {
  position: absolute; top: 24px; right: 24px;
  font-size: 1.2rem; color: rgba(255,255,255,0.3);
  transition: transform .3s ease, color .3s ease;
}
.service:hover .service__arrow { color: var(--brand-soft); transform: translate(4px, -4px); }

/* Philosophy */
.philosophy {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center;
}
.philosophy__text h2 { margin: 16px 0 20px; }
.checklist { margin-top: 26px; display: grid; gap: 10px; }
.checklist li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  font-size: 0.97rem; color: var(--ink);
}
.checklist span {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
  flex-shrink: 0;
}
.philosophy__cta {
  background: linear-gradient(160deg, var(--accent) 0%, #0f2340 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.philosophy__cta::before {
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
  opacity: 0.4;
}
.philosophy__cta h3 { color: #fff; font-size: 1.7rem; margin-bottom: 10px; position: relative; }
.philosophy__cta p { color: rgba(255,255,255,0.78); margin-bottom: 24px; position: relative; }
.philosophy__cta .btn { position: relative; background: #fff; color: var(--accent); }
.philosophy__cta .btn:hover { background: var(--brand); color: #fff; }

/* Contact */
.section--contact { background: var(--bg-soft); }
.contact {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px;
}
.contact__info h2 { margin: 16px 0 20px; }
.contact__list { margin-top: 30px; display: grid; gap: 14px; }
.contact__list li {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .25s;
}
.contact__list li:hover { box-shadow: var(--shadow-md); }
.contact__icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-glow); color: var(--brand);
  flex-shrink: 0;
}
.contact__label {
  display: block;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 4px;
}
.contact__list p { margin: 0; color: var(--ink); font-size: 0.97rem; line-height: 1.5; }

/* Form */
.contact__form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 18px;
}
.contact__form h3 { font-size: 1.5rem; }
.helper { color: var(--muted); font-size: 0.92rem; margin: 0; }
.contact__form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); }
.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form textarea {
  font: inherit;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px var(--brand-glow);
}
.contact__form textarea { resize: vertical; min-height: 120px; }
.checkbox { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 0.9rem !important; color: var(--ink-soft); }
.checkbox input { margin-top: 3px; accent-color: var(--brand); }
.checkbox a { color: var(--brand); text-decoration: underline; }
.form-status { min-height: 1.2em; font-size: 0.9rem; color: var(--brand); margin: 0; }
.form-status.is-success { color: #15803d; }
.form-status.is-error   { color: #b91c1c; }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: #a9b0ba;
  padding: 70px 0 0;
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px;
  padding-bottom: 50px;
}
.footer__brand .brand { color: #fff; margin-bottom: 16px; }
.footer__brand .brand__sub { color: rgba(255,255,255,0.5); }
.footer__brand p { color: #a9b0ba; max-width: 320px; }
.footer h4 { color: #fff; font-family: var(--ff-sans); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer ul li { padding: 6px 0; font-size: 0.95rem; }
.footer ul li a { color: #a9b0ba; }
.footer ul li a:hover { color: var(--brand-soft); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; }
.footer__bottom-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.88rem;
}
.footer__bottom ul { display: flex; gap: 20px; }
.footer__bottom ul a { color: #a9b0ba; }
.footer__bottom ul a:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__card { transform: none; max-width: 480px; }
  .section__grid, .philosophy, .contact { grid-template-columns: 1fr; gap: 44px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service--wide { grid-column: span 2; grid-template-columns: auto 1fr; }
  .service--wide .service__icon { grid-column: 1 / 2; }
  .service--wide p { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; place-items: center; }
  .section { padding: 70px 0; }
  .hero { padding: 48px 0 40px; }
  .hero__badges { gap: 24px; flex-wrap: wrap; }
  .stat-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service--wide { grid-column: span 1; grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .contact__form { padding: 24px; }
  .philosophy__cta { padding: 28px; }
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal { padding: 70px 0 90px; background: var(--bg); }
.legal__inner { max-width: 820px; margin: 0 auto; }
.legal__header { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal__header h1 { margin: 14px 0 10px; font-size: clamp(2rem, 4vw, 3rem); }
.legal__header .lead { margin: 0; max-width: 640px; }
.legal__section { margin-bottom: 34px; }
.legal__section h2 {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  margin: 0 0 12px;
  color: var(--ink);
}
.legal__section p { color: var(--ink-soft); margin-bottom: 12px; line-height: 1.7; }
.legal__section a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.legal__section a:hover { color: var(--brand-soft); }
.legal__section strong { color: var(--ink); }
.legal__section em { color: var(--muted); font-style: italic; }
.legal__list { list-style: disc; padding-left: 22px; color: var(--ink-soft); margin: 8px 0 16px; }
.legal__list li { padding: 4px 0; }
.legal__note {
  margin: 30px 0;
  padding: 14px 18px;
  background: var(--bg-soft);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
