/* =========================================================
   E-S-MA Elektro-Sicherheitstechnik GmbH – Stylesheet
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0b0d12;
  --ink-2: #12151d;
  --ink-3: #1a1f2a;
  --line-dark: rgba(255, 255, 255, .09);
  --paper: #f6f6f4;
  --paper-2: #ffffff;
  --line: #e4e4e0;
  --text: #15171c;
  --muted: #5d6270;
  --muted-dark: #9aa1b0;
  --red: #e3262b;
  --red-2: #ff4a3d;
  --red-soft: rgba(227, 38, 43, .12);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 20, 30, .04), 0 12px 32px -12px rgba(15, 20, 30, .14);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -.025em; margin: 0; font-weight: 750; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .9em 1.4em; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(227, 38, 43, .7); }
.btn-red:hover { background: var(--red-2); }
.btn-ghost { border-color: rgba(255, 255, 255, .22); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .5); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled, .header.solid {
  background: rgba(11, 13, 18, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-dark);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: inline-flex; flex-direction: column; color: #fff; text-decoration: none; line-height: 1; }
.logo-mark {
  font-weight: 850; font-size: 1.55rem; letter-spacing: .02em;
  border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; padding: 3px 0 1px;
}
.logo-mark span { color: var(--red-2); }
.logo-sub { font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 5px; opacity: .7; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav .btn { margin-left: 10px; padding: .65em 1.1em; color: #fff; }
.nav .btn:hover { background: var(--red-2); }
.burger { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.burger svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch;
    background: rgba(11, 13, 18, .97); backdrop-filter: blur(14px);
    padding: 12px var(--gutter) 24px; gap: 2px;
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 8px; border-radius: 8px; font-size: 1.05rem; }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  background: var(--ink); color: #fff;
  padding: 168px 0 96px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(227, 38, 43, .28), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(80, 110, 200, .14), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-dark);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #2fd673; box-shadow: 0 0 0 0 rgba(47, 214, 115, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47, 214, 115, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 214, 115, 0); } }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); margin: 22px 0 24px; font-weight: 800; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #fff 0%, var(--red-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #c3c8d3; max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: #dfe3ea;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03);
}
.badge svg { width: 16px; height: 16px; color: var(--red-2); }

.hero-card {
  position: relative; border-radius: 24px; padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
  backdrop-filter: blur(6px);
}
.hero-card .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-dark); font-weight: 600; }
.hero-card .big { font-size: 3.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 10px 0 4px; }
.hero-card .big small { font-size: 1.1rem; color: var(--red-2); font-weight: 700; letter-spacing: 0; margin-left: 6px; }
.hero-card p { color: #c3c8d3; font-size: .95rem; }
.hotline { display: grid; gap: 10px; margin-top: 22px; }
.hotline a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 14px; text-decoration: none;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line-dark);
  transition: border-color .2s, background .2s;
}
.hotline a:hover { border-color: rgba(227, 38, 43, .7); background: rgba(227, 38, 43, .12); }
.hotline .num { font-weight: 700; font-size: 1.12rem; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.hotline .tag { font-size: .75rem; color: var(--muted-dark); }
.hotline svg { width: 20px; height: 20px; color: var(--red-2); flex: none; }

@media (max-width: 960px) {
  .hero { padding: 130px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------- Stats strip ---------- */
.stats { background: var(--ink-2); color: #fff; border-top: 1px solid var(--line-dark); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted-dark); font-size: .9rem; }
@media (max-width: 760px) {
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 136px) 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-white { background: var(--paper-2); }
.head { max-width: 760px; margin-bottom: 56px; }
.head .kicker { color: var(--red); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 14px 0 18px; }
.head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .head p { color: var(--muted-dark); }
.section-dark .head .kicker { color: var(--red-2); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-grid .head { margin-bottom: 0; }
.about-text p + p { margin-top: 1.1em; }
.about-text p { color: #3a3e48; font-size: 1.08rem; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.steps li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line);
  font-weight: 600; font-size: .95rem;
}
.steps li span { font-size: .75rem; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1140px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }
.service {
  position: relative; padding: 26px 22px 28px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  overflow: hidden;
}
.service::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-2));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; background: #fff; }
.service:hover::after { transform: scaleX(1); }
.service .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 22px;
}
.service .ico svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.08rem; margin-bottom: 8px; letter-spacing: -.015em; }
.service p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.service .abbr { font-size: .72rem; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; letter-spacing: .04em; }
.services-note { margin-top: 32px; color: var(--muted); font-size: .98rem; display: flex; gap: 12px; align-items: center; }
.services-note svg { width: 22px; height: 22px; color: var(--red); flex: none; }

/* ---------- Emergency ---------- */
.emergency { overflow: hidden; isolation: isolate; }
.emergency::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(800px 420px at 100% 0%, rgba(227, 38, 43, .35), transparent 65%),
              radial-gradient(600px 400px at 0% 100%, rgba(227, 38, 43, .12), transparent 60%);
}
.em-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.em-grid .head { margin-bottom: 0; }
.em-big { font-size: clamp(4.5rem, 12vw, 9rem); font-weight: 850; letter-spacing: -.06em; line-height: .9; }
.em-big span { color: var(--red-2); }
.em-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.em-list li { display: flex; gap: 12px; align-items: flex-start; color: #d5d9e1; }
.em-list svg { width: 22px; height: 22px; color: var(--red-2); flex: none; margin-top: 2px; }
.em-phones { display: grid; gap: 14px; }
.em-phone {
  display: flex; align-items: center; gap: 18px; text-decoration: none;
  padding: 22px 24px; border-radius: 20px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.em-phone:hover { transform: translateY(-3px); border-color: var(--red-2); background: rgba(227, 38, 43, .12); }
.em-phone .ph-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--red); display: grid; place-items: center; flex: none; }
.em-phone .ph-ico svg { width: 26px; height: 26px; color: #fff; }
.em-phone small { display: block; color: var(--muted-dark); font-size: .82rem; font-weight: 500; }
.em-phone strong { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 750; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .em-grid { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.member {
  display: grid; grid-template-columns: 200px 1fr; gap: 0; border-radius: 22px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.member img { width: 100%; height: 100% !important; object-fit: cover; aspect-ratio: 4 / 5; filter: grayscale(.15); }
.member .body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.member .role { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.member h3 { font-size: 1.5rem; margin: 8px 0 14px; }
.member p { color: var(--muted); font-size: .96rem; }
.member .yrs { display: flex; gap: 22px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.member .yrs b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.member .yrs span { font-size: .8rem; color: var(--muted); }
@media (max-width: 960px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .member { grid-template-columns: 1fr; }
  .member img { aspect-ratio: 4 / 3; object-position: center 25%; }
}

/* ---------- Certificates ---------- */
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cert {
  display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center;
  padding: 22px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.cert:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: #fff; }
.cert img { width: 100%; border-radius: 8px; box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .25); background: #fff; }
.cert .std { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.cert .std span { color: var(--red); }
.cert p { color: var(--muted); font-size: .95rem; margin: 8px 0 14px; }
.cert .more { font-weight: 600; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.cert .more svg { width: 16px; height: 16px; transition: transform .25s; }
.cert:hover .more svg { transform: translateX(3px); }
.docs { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.docs .lbl { color: var(--muted); font-size: .92rem; margin-right: 6px; }
.doc {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-size: .92rem; transition: border-color .2s, transform .2s;
}
.doc:hover { border-color: var(--red); transform: translateY(-2px); }
.doc svg { width: 18px; height: 18px; color: var(--red); }
@media (max-width: 860px) { .certs { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .cert { grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; } .cert .std { font-size: 1.5rem; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); }
.contact-grid .head { margin-bottom: 32px; }
.c-items { display: grid; gap: 12px; }
.c-item {
  display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 16px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); text-decoration: none; color: #fff;
  transition: border-color .2s, background .2s;
}
a.c-item:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .07); }
.c-item .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(227, 38, 43, .16); color: var(--red-2); flex: none; }
.c-item .ci svg { width: 22px; height: 22px; }
.c-item small { display: block; color: var(--muted-dark); font-size: .8rem; }
.c-item b { font-weight: 600; }
.form {
  background: #fff; color: var(--text); border-radius: 24px; padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.form h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form > p { color: var(--muted); margin-bottom: 24px; font-size: .96rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit; font-size: .98rem; color: var(--text);
  padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  transition: border-color .2s, box-shadow .2s, background .2s; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px var(--red-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 6px 0 20px; }
.check input { margin-top: 4px; accent-color: var(--red); width: 16px; height: 16px; flex: none; }
.check a { color: var(--text); }
.form .btn { width: 100%; justify-content: center; padding: 1em; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.footer { background: #07080b; color: var(--muted-dark); padding: 64px 0 32px; font-size: .92rem; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .logo { margin-bottom: 18px; }
.f-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .84rem; }
@media (max-width: 860px) { .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .f-grid { grid-template-columns: 1fr; } }

/* ---------- Floating call button (mobile) ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none;
  align-items: center; gap: 10px; padding: 14px 18px; border-radius: 999px;
  background: var(--red); color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem;
  box-shadow: 0 16px 36px -10px rgba(227, 38, 43, .8);
}
.fab svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .fab { display: inline-flex; } }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--ink); color: #fff; padding: 150px 0 64px; position: relative; overflow: hidden; }
.legal-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 90% 0%, rgba(227, 38, 43, .25), transparent 60%); }
.legal-hero .wrap { position: relative; }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 12px; }
.legal-hero a { color: var(--muted-dark); text-decoration: none; font-size: .9rem; }
.legal-hero a:hover { color: #fff; }
.legal { padding: 64px 0 112px; background: #fff; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 1.45rem; margin: 48px 0 14px; }
.legal h3 { font-size: 1.08rem; margin: 28px 0 8px; }
.legal p, .legal li { color: #3a3e48; }
.legal p + p { margin-top: .9em; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--red); word-break: break-word; }
.legal .card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; }
.legal .card p { margin: 0; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0; }
.legal dt { font-weight: 600; color: var(--text); }
.legal dd { margin: 0; color: #3a3e48; }
@media (max-width: 520px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 10px; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
  * { transition-duration: .01ms !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* Kompakte Leistungskarten auf dem Smartphone */
@media (max-width: 640px) {
  .service { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px 18px; }
  .service .ico { width: 44px; height: 44px; border-radius: 12px; margin: 0; grid-row: span 2; }
  .service .ico svg { width: 22px; height: 22px; }
  .service h3 { margin-bottom: 4px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Wartung (Startseite) ---------- */
.service { display: flex; flex-direction: column; }
.svc-link {
  margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px;
  font-size: .86rem; font-weight: 600; color: var(--red); text-decoration: none; align-self: flex-start;
}
.svc-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.svc-link:hover svg { transform: translateX(3px); }
.wt-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.wt-grid .head { margin-bottom: 0; }
.wt-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.wt-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); }
.wt-steps li > span { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-weight: 800; }
.wt-steps b { display: block; font-size: 1rem; margin-bottom: 2px; }
.wt-steps div { color: var(--muted); font-size: .94rem; }
.wt-card {
  background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(24px, 3.5vw, 36px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); position: relative; overflow: hidden; isolation: isolate;
}
.wt-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 300px at 100% 0%, rgba(227, 38, 43, .3), transparent 65%); }
.wt-card h3 { font-size: 1.4rem; }
.wt-card > p { color: var(--muted-dark); margin: 6px 0 20px; }
.wt-types { display: grid; gap: 10px; }
.wt-types a {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; text-decoration: none;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); transition: border-color .2s, background .2s, transform .2s;
}
.wt-types a:hover { border-color: var(--red-2); background: rgba(227, 38, 43, .12); transform: translateX(3px); }
.wt-types svg { width: 26px; height: 26px; color: var(--red-2); flex: none; }
.wt-types b { display: block; font-weight: 650; }
.wt-types small { color: var(--muted-dark); font-size: .82rem; }
@media (max-width: 900px) { .wt-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .service { display: grid; } .svc-link { grid-column: 2; padding-top: 8px; } }

.form-hint { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 14px; border-radius: 12px; background: var(--red-soft); color: var(--text); font-size: .92rem; }
.form-hint svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: 2px; }
.form-hint a { color: var(--red); font-weight: 600; }
.form-hint[hidden] { display: none; }

/* ---------- Wartungsseite ---------- */
.page-hero { padding-bottom: 80px; }
.page-hero .lead { color: #c3c8d3; font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 40em; margin-top: 16px; }
.page-hero .hero-cta { margin-top: 28px; }
.wt-list { display: grid; gap: 18px; }
.wt-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 22px; align-items: center;
  padding: 26px 28px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line);
  scroll-margin-top: 100px; transition: box-shadow .3s, border-color .3s;
}
.wt-item:target { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.wt-item .ico { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.wt-item .ico svg { width: 30px; height: 30px; }
.wt-item h3 { font-size: 1.25rem; margin-bottom: 6px; }
.wt-item .norm { font-size: .72rem; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: 3px; letter-spacing: .04em; }
.wt-item p { color: var(--muted); font-size: .96rem; }
.wt-item ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.wt-item li { display: flex; gap: 8px; color: #3a3e48; font-size: .93rem; }
.wt-item li svg { width: 17px; height: 17px; color: var(--red); flex: none; margin-top: 3px; }
@media (max-width: 760px) {
  .wt-item { grid-template-columns: 48px 1fr; padding: 22px 20px; gap: 16px; }
  .wt-item .ico { width: 48px; height: 48px; }
  .wt-item .btn { grid-column: 1 / -1; justify-content: center; }
}
.need { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.need div { padding: 22px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); }
.need b { display: block; margin-bottom: 6px; }
.need span { color: var(--muted-dark); font-size: .93rem; }
@media (max-width: 860px) { .need { grid-template-columns: 1fr; } }
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* ---------- Wartungsanfrage (anfrage/) ---------- */
.wa-em { font-style: normal; background: linear-gradient(100deg, #fff 0%, var(--red-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wa-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.wa-tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; text-decoration: none;
  color: #dfe3ea !important; font-size: .88rem !important; font-weight: 600; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04);
  transition: border-color .2s, background .2s;
}
.wa-tabs a:hover { border-color: rgba(255, 255, 255, .35); }
.wa-tabs a[aria-current] { background: var(--red); border-color: var(--red); color: #fff !important; }
.wa-tabs svg { width: 17px; height: 17px; }
.wa-sec { padding: 48px 0 110px; background: var(--paper); }
.wa-wrap { max-width: 920px; }
.wa-form { display: grid; gap: 20px; }
.wa-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 36px); margin: 0; min-width: 0; box-shadow: var(--shadow); }
.wa-card legend { float: left; width: 100%; padding: 0; margin-bottom: 18px; font-size: 1.3rem; font-weight: 750; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wa-card legend > span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-size: 1rem; font-weight: 800; }
.wa-card legend small { font-size: .72rem; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; }
.wa-card legend + * { clear: both; }
.wa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.wa-grid .full { grid-column: 1 / -1; }
.wa-trenn { margin-top: 10px; padding-top: 20px; border-top: 1px dashed var(--line); }
.wa-hint { color: var(--muted); font-size: .93rem; margin: -6px 0 18px; }
.field .lbl { font-size: .85rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .9rem; transition: border-color .15s, background .15s, color .15s; }
.chip:hover span { border-color: #c9c9c3; }
.chip input:checked + span { background: var(--red-soft); border-color: var(--red); color: #a3141a; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--red-2); outline-offset: 2px; }
.wa-drop {
  position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 26px 18px; margin-bottom: 14px;
  border: 2px dashed var(--line); border-radius: 16px; background: var(--paper); cursor: pointer; transition: border-color .2s, background .2s;
}
.wa-drop:hover, .wa-drop.voll { border-color: var(--red); background: #fff; }
.wa-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.wa-drop svg { width: 30px; height: 30px; color: var(--red); margin-bottom: 4px; }
.wa-drop small { color: var(--muted); font-size: .84rem; }
.wa-liste { font-size: .82rem; color: var(--text); word-break: break-word; margin-top: 4px; }
.wa-senden { width: 100%; justify-content: center; padding: 1.05em; font-size: 1rem; }
.wa-senden:disabled { opacity: .7; transform: none; }
.wa-klein { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: .82rem; margin-top: 14px; }
.wa-klein svg { width: 16px; height: 16px; color: var(--red); }
.wa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wa-fehler { background: #fff1f1; border: 1px solid #f5c2c2; color: #8a1116; border-radius: 16px; padding: 16px 20px; margin-bottom: 20px; font-size: .95rem; }
.wa-fehler ul { margin: 6px 0 0; padding-left: 1.2em; }
.wa-danke { text-align: center; padding: clamp(36px, 6vw, 64px); }
.wa-danke h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 14px; }
.wa-danke p { color: var(--muted); margin-top: 8px; }
.wa-ok { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: #e8f8ee; color: #15803d; }
.wa-ok svg { width: 38px; height: 38px; }
.footer .f-bottom a { color: inherit; }
@media (max-width: 640px) {
  .wa-grid { grid-template-columns: 1fr; }
  .wa-tabs a { font-size: .82rem !important; padding: 8px 12px; }
  .wa-sec { padding-top: 28px; }
}
.form-status { margin-top: 14px; padding: 13px 16px; border-radius: 12px; font-size: .93rem; }
.form-status.ok { background: #e8f8ee; color: #15603a; }
.form-status.fehler { background: #fff1f1; color: #8a1116; }
.form.gesendet .field, .form.gesendet .row, .form.gesendet .check { opacity: .55; }

/* ---------- Leistungsseiten ---------- */
.lp-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.lp-two .head { margin-bottom: 24px; }
.lp-two p { color: #3a3e48; font-size: 1.05rem; }
.lp-two p + p { margin-top: 1.1em; }
.lp-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3.5vw, 36px); box-shadow: var(--shadow); }
.lp-box h3 { font-size: 1.3rem; margin-bottom: 18px; }
.lp-check { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 11px; }
.lp-box .lp-check { margin-top: 0; }
.lp-check li { display: flex; gap: 12px; align-items: flex-start; color: #3a3e48; }
.lp-check svg { width: 21px; height: 21px; color: var(--red); flex: none; margin-top: 3px; }
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-cards > div { padding: 26px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.lp-cards span { font-size: .78rem; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.lp-cards h3 { font-size: 1.2rem; margin: 8px 0 8px; }
.lp-cards p { color: var(--muted); font-size: .96rem; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.lp-cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 10px; }
.lp-cta p { color: var(--muted-dark); max-width: 34em; }
.lp-cta .hero-cta { margin-top: 0; }
.svc-titel { color: inherit; text-decoration: none; }
.svc-titel:hover { color: var(--red); }
a.mehr { color: var(--red); font-weight: 600; text-decoration: none; }
@media (max-width: 900px) { .lp-two, .lp-cards { grid-template-columns: 1fr; } }
.fb-sys { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); }
.fb-sys svg { width: 26px; height: 26px; color: var(--red-2); flex: none; }
.fb-sys b { display: block; font-weight: 650; }
.fb-sys small { color: var(--muted-dark); font-size: .84rem; }
.service h3 { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }
