:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --bg: #f8fafc;
  --brand: #1d4ed8;
  --brand-dark: #1e3a8a;
  --brand-soft: rgba(29, 78, 216, 0.10);
  --accent: #f59e0b;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 45px rgba(15, 23, 42, 0.07);
  --container: 1160px;
  color-scheme: light;
}

body.theme-handel {
  --brand: #0f766e;
  --brand-dark: #0b4f4a;
  --brand-soft: rgba(15, 118, 110, 0.12);
  --accent: #f59e0b;
}
body.theme-handwerk {
  --brand: #1e3a8a;
  --brand-dark: #172554;
  --brand-soft: rgba(30, 58, 138, 0.10);
  --accent: #f97316;
}
body.theme-gastro {
  --brand: #9f1239;
  --brand-dark: #4c0519;
  --brand-soft: rgba(159, 18, 57, 0.10);
  --accent: #d97706;
}
body.theme-gesundheit {
  --brand: #047857;
  --brand-dark: #064e3b;
  --brand-soft: rgba(4, 120, 87, 0.10);
  --accent: #0891b2;
}
body.theme-default {
  --brand: #1d4ed8;
  --brand-dark: #1e3a8a;
  --brand-soft: rgba(29, 78, 216, 0.10);
  --accent: #f59e0b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.draft-bar {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.82rem;
  text-align: center;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid #fcd34d;
}

/* header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.header--compact { position: static; }
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px var(--brand-soft);
}
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__text strong {
  font-size: 0.98rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 34ch;
}
.brand__text small {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40ch;
}
.nav {
  display: flex;
  gap: 1.35rem;
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav a { color: #334155; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--brand);
  color: #fff;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 22px var(--brand-soft);
}
.header__cta:hover { text-decoration: none; filter: brightness(1.06); }
.header__cta svg { width: 17px; height: 17px; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  border-radius: 2px;
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(900px 500px at 82% 12%, var(--brand-soft), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 1rem;
}
.eyebrow span { width: 26px; height: 2px; background: var(--accent); display: inline-block; }
.hero h1 { margin-bottom: 0.45em; }
.hero__lead {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: #334155;
  max-width: 58ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 1.4rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff;
  border: 1px solid transparent;
  padding: 0.8rem 1.35rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 12px 24px var(--brand-soft);
}
.button:hover { text-decoration: none; filter: brightness(1.07); transform: translateY(-1px); }
.button--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.button--small { padding: 0.55rem 1rem; font-size: 0.82rem; }

.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  padding: 0;
  margin: 0;
  font-size: 0.83rem;
  color: #475569;
}
.hero__trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__trust svg { width: 16px; height: 16px; color: var(--brand); }

.hero__visual { position: relative; min-height: 330px; }
.hero__shape {
  position: absolute;
  inset: 8% 0 0 6%;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.28), transparent 40%),
    linear-gradient(145deg, var(--brand), var(--brand-dark));
  transform: rotate(-3deg);
  box-shadow: 0 30px 70px var(--brand-soft);
}
.hero__card {
  position: absolute;
  inset: 18% 8% 6% 12%;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  transform: rotate(1.5deg);
}
.hero__monogram {
  font-size: clamp(3.4rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  opacity: 0.96;
}
.hero__branch { font-size: 0.95rem; font-weight: 600; max-width: 30ch; }
.hero__city { font-size: 0.8rem; opacity: 0.8; }

/* trust strip */
.trust-strip {
  background: #fff;
  border-block: 1px solid var(--line);
  padding: 1.2rem 0;
}
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
}
.trust-strip__icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex: 0 0 auto;
}

/* sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: #fff; border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 2.4rem; }
.section__lead { color: var(--muted); font-size: 1.02rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-soft);
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.35rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* about */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about p { color: #334155; }
.fact-card {
  background: linear-gradient(160deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 24px 55px var(--brand-soft);
}
.fact-card h3 { color: #fff; margin-bottom: 1rem; }
.fact-card dl { margin: 0; display: grid; gap: 0.85rem; }
.fact-card dl div { display: grid; gap: 0.1rem; }
.fact-card dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.72; }
.fact-card dd { margin: 0; font-size: 0.9rem; font-weight: 600; }
.fact-card a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.step__number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.step h3 { margin-bottom: 0.3rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* faq */
.faq { max-width: 900px; }
.faq__list { display: grid; gap: 0.7rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { color: var(--brand); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { margin: 0.8rem 0 0; color: var(--muted); }

/* contact */
.contact {
  background:
    radial-gradient(800px 400px at 15% 10%, rgba(255,255,255,0.12), transparent 55%),
    linear-gradient(145deg, var(--brand-dark), var(--brand));
  color: #fff;
}
.contact .eyebrow { color: #fff; }
.contact .eyebrow span { background: var(--accent); }
.contact h2 { color: #fff; }
.contact .section__lead { color: rgba(255,255,255,0.78); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__details { display: grid; gap: 0.7rem; margin-top: 1.6rem; }
.contact__details a {
  display: grid;
  gap: 0.1rem;
  color: #fff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.contact__details a:hover { background: rgba(255,255,255,0.16); text-decoration: none; }
.contact__details span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.72; }
.contact__details strong { font-size: 0.95rem; }

.contact-form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.18);
  display: grid;
  gap: 0.8rem;
}
.contact-form h3 { margin-bottom: 0.2rem; }
.contact-form label { display: grid; gap: 0.3rem; font-size: 0.78rem; font-weight: 700; color: #475569; }
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.contact-form .button { margin-top: 0.3rem; }
.form-note { margin: 0; font-size: 0.72rem; color: var(--muted); }

/* footer */
.footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 3rem 0 1.2rem;
}
.footer--compact { margin-top: 3rem; padding: 1.2rem 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.footer h3 {
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin-bottom: 0.8rem;
}
.footer a { display: block; color: #cbd5e1; font-size: 0.88rem; margin-bottom: 0.35rem; }
.footer a:hover { color: #fff; }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text small { color: #94a3b8; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2.2rem;
  padding-top: 1rem;
  font-size: 0.78rem;
  color: #94a3b8;
  flex-wrap: wrap;
}
.footer__badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border-radius: 999px;
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  width: fit-content;
}
.footer--compact .footer__bottom { border: 0; margin: 0; padding: 0; }
.footer--compact a { display: inline; margin: 0; }

/* legal */
.legal { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.legal__inner { max-width: 860px; }
.legal__article h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal__article h2 { font-size: 1.15rem; margin-top: 1.8rem; }
.legal__article p { color: #334155; }
.legal__note { color: var(--muted); font-size: 0.82rem; margin-top: 2rem; }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy { animation: rise 0.6s ease both; }
  .hero__visual { animation: rise 0.7s 0.08s ease both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 900px) {
  .hero__grid, .about, .contact__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 260px; max-width: 420px; }
  .nav { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .header__cta { display: none; }
  .nav--open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 1.6rem, var(--container)); }
  .header__inner { min-height: 68px; }
  .brand__text strong { max-width: 20ch; }
  .brand__text small { display: none; }
  .hero__actions .button { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .nav--open { top: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
