/* =========================================================
   biatech IT-Systems – Stylesheet
   Dark Theme · Akzente Schwarz + Rot
   Keine externen Fonts/Tracker (DSGVO-freundlich)
   ========================================================= */

:root {
  --bg:        #0a0a0b;
  --bg-2:      #101013;
  --surface:   #16161a;
  --surface-2: #1d1d22;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  --text:      #f4f4f5;
  --muted:     #a1a1aa;
  --muted-2:   #71717a;

  --red:       #e10600;
  --red-600:   #c40500;
  --red-400:   #ff2b2b;
  --red-glow:  rgba(225, 6, 0, 0.35);

  --radius:    14px;
  --radius-lg: 22px;
  --maxw:      1140px;
  --header-h:  150px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --shadow:   0 10px 40px rgba(0, 0, 0, 0.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-2); }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-400); margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }
.text-center { text-align: center; }
.text-center .section-head { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px var(--red-glow); }
.btn--primary:hover { background: var(--red-400); box-shadow: 0 10px 30px var(--red-glow); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--red-400); color: var(--red-400); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease;
}
.header.scrolled { border-bottom-color: var(--border); background: rgba(10, 10, 11, 0.9); }
.header .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-600) 100%);
  box-shadow: 0 4px 14px var(--red-glow);
}
.brand .mark span { transform: translateY(-1px); }
.brand b { color: var(--text); }
.brand em { color: var(--red-400); font-style: normal; }
.brand-logo { height: 120px; width: auto; display: block; }
.footer .brand-logo { height: 90px; margin-bottom: 16px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 14px; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: .96rem;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav .btn { margin-left: 10px; padding: 10px 20px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin: -8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: calc(var(--header-h) + 90px) 0 100px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 78% 8%, var(--red-glow) 0%, transparent 60%),
    radial-gradient(50% 50% at 10% 100%, rgba(225,6,0,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .4; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  font-size: .82rem; font-weight: 600; margin-bottom: 22px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-glow); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); margin-bottom: 20px; }
.hero h1 .accent { color: var(--red-400); }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .num { font-size: 1.7rem; font-weight: 800; color: var(--text); }
.hero-stats .lbl { font-size: .86rem; color: var(--muted-2); }

/* Hero card / visual */
.hero-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow);
}
.hero-card .bar { display: flex; gap: 7px; margin-bottom: 18px; }
.hero-card .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-2); }
.hero-card .bar i:first-child { background: var(--red); }
.hero-card .line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.hero-card .line:last-child { border-bottom: 0; }
.hero-card .line .ico { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; flex: 0 0 auto; }
.hero-card .line .t { font-weight: 600; font-size: .95rem; }
.hero-card .line .s { font-size: .8rem; color: var(--muted-2); }
.hero-card .line .ok { margin-left: auto; color: var(--red-400); font-weight: 700; font-size: .85rem; }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, border-color .2s ease, background .2s ease;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--red);
  transition: width .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.card:hover::after { width: 100%; }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(225, 6, 0, 0.12); color: var(--red-400);
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }

/* ---------- Brands strip (Marken, Text) ---------- */
.brands { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: center; }
.brands span {
  font-size: 1.15rem; font-weight: 700; color: var(--muted-2); letter-spacing: .02em;
  padding: 8px 4px; transition: color .2s ease;
}
.brands span:hover { color: var(--text); }

/* ---------- Partner-Logos (echte Logos auf hellen Chips) ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: center; }
.partner {
  display: grid; place-items: center; background: #fff; border-radius: 14px;
  padding: 22px 30px; min-width: 200px; min-height: 96px;
  border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease;
}
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.partner img { max-height: 46px; width: auto; }
.partners-note { margin-top: 22px; color: var(--muted-2); font-size: .9rem; }

/* ---------- Fernwartung ---------- */
.support { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.support-steps li { display: flex; gap: 16px; margin-bottom: 22px; }
.support-steps .n {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; font-weight: 800; font-size: .95rem;
}
.support-steps .t { font-weight: 600; }
.support-steps .s { color: var(--muted); font-size: .95rem; }
.support-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px; text-align: center; box-shadow: var(--shadow);
}
.support-box .ico-big {
  width: 66px; height: 66px; border-radius: 16px; margin: 0 auto 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-600) 100%); color: #fff;
  box-shadow: 0 8px 24px var(--red-glow);
}
.support-box h3 { font-size: 1.35rem; }
.support-box p { color: var(--muted); }
.support-box .btn { margin-top: 8px; }
.support-box .hint { font-size: .82rem; color: var(--muted-2); margin-top: 14px; margin-bottom: 0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about ul.checks li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--muted); }
.about ul.checks li svg { flex: 0 0 auto; color: var(--red-400); margin-top: 3px; }
.about ul.checks li b { color: var(--text); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.contact-info .item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-info .item .ico {
  width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center;
  background: rgba(225,6,0,0.12); color: var(--red-400);
}
.contact-info .item .lbl { font-size: .82rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; }
.contact-info .item a, .contact-info .item .val { font-size: 1.08rem; font-weight: 600; color: var(--text); }
.contact-info .item a:hover { color: var(--red-400); }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: .98rem; transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red-400); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted-2); margin-top: 6px; }
.form-msg { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-size: .95rem; border: 1px solid; }
.form-msg.ok { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.4); color: #86efac; }
.form-msg.error { background: rgba(225,6,0,.12); border-color: rgba(225,6,0,.45); color: #fca5a5; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.form-consent input { margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--red-600) 0%, var(--red) 100%);
  border-radius: var(--radius-lg); padding: 54px; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.cta-band p { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 40em; margin: 0 auto 26px; }
.cta-band .btn--primary { background: #0a0a0b; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.cta-band .btn--primary:hover { background: #000; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer p { color: var(--muted); font-size: .95rem; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--muted); font-size: .95rem; transition: color .15s ease; }
.footer ul a:hover { color: var(--red-400); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; color: var(--muted-2); font-size: .88rem;
}

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--header-h) + 70px) 0 90px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin-top: 40px; color: var(--red-400); }
.legal h3 { font-size: 1.05rem; margin-top: 26px; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--red-400); text-decoration: underline; text-underline-offset: 3px; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 30px; font-size: .95rem; }
.legal .back:hover { color: var(--red-400); }
.legal address { font-style: normal; color: var(--text); line-height: 1.9; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 460px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .support, .about, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  :root { --header-h: 100px; }
  .brand-logo { height: 72px; }
  .section { padding: 72px 0; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 16px 24px 22px;
    transform: translateY(-140%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .hero-stats { gap: 24px; }
}
