/* Testmann Elektrotechnik GmbH — Website-Stylesheet
   Hausfarben: Dunkelblau #10365C, Orange #E8761A. Schrift: Inter (selbst gehostet). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #10365C;
  --navy-900: #0B2540;
  --navy-dark: #0B2540;
  --navy-mid: #1B4B7A;
  --orange: #E8761A;
  --orange-dark: #C75F0C;
  --orange-soft: #FDF1E5;
  --ink: #0F1D2E;
  --body: #46586C;
  --muted: #6B7C90;
  --line: #E1E7EE;
  --bg: #ffffff;
  --bg-soft: #F5F8FB;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 29, 46, .06), 0 4px 14px rgba(15, 29, 46, .05);
  --shadow-md: 0 8px 30px rgba(16, 54, 92, .10);
  --wrap: 1140px;
  --topbar-h: 40px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 108px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1.1em; }
a { color: var(--navy); }
strong { color: var(--ink); font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.lead { font-size: 1.12rem; color: var(--body); }
.eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); background: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #F0F5FA; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #C8D6E4;
  font-size: .86rem;
  line-height: var(--topbar-h);
  height: var(--topbar-h);
  overflow: hidden;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar-emergency { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(232, 118, 26, .7);
  animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 118, 26, .65); }
  70%  { box-shadow: 0 0 0 9px rgba(232, 118, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 118, 26, 0); }
}
.topbar-hours { color: #93A9BF; }
.tb-short { display: none; }
.tb-text { display: inline; }

@media (max-width: 780px) {
  .topbar { height: auto; line-height: 1.5; padding: 9px 0; font-size: .82rem; }
  .topbar .wrap { justify-content: center; }
  .topbar-emergency { white-space: normal; text-align: center; }
  .topbar-hours { display: none; }
  .tb-long { display: none; }
  .tb-short { display: inline; }
}

/* Fixe Aktionsleiste auf dem Handy — Anrufen und Anfragen immer erreichbar */
.mobile-bar { display: none; }
@media (max-width: 780px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(160%) blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(15,29,46,.08);
  }
  .mobile-bar .btn { width: 100%; padding: 13px 12px; font-size: .94rem; }
  body { padding-bottom: 78px; }
  .site-footer { margin-bottom: 0; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--navy); border-bottom-color: var(--orange); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { display: none; text-decoration: none; font-weight: 600; color: var(--navy); font-size: .95rem; white-space: nowrap; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; padding: 0 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 22px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .header-cta .btn { display: none; }
}
@media (min-width: 941px) {
  .nav-toggle { display: none; }
  .header-phone { display: inline; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-dark); color: #fff; padding: 0; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(11,37,64,.96) 0%, rgba(11,37,64,.88) 46%, rgba(16,54,92,.62) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 82px 0 72px; max-width: 760px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--orange); }
.hero p.lead { color: #CBD9E7; font-size: 1.16rem; max-width: 620px; }
.hero .btn-row { margin-top: 30px; }
.hero-badges {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 10px 30px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .9rem; color: #B9CBDC;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .star { color: var(--orange); font-weight: 700; }

/* ---------- Karten-Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #CFDCE9; }
.card h3 { margin-bottom: .45em; }
.card p { margin-bottom: 0; font-size: .98rem; }
.card ul { margin: 14px 0 0; padding-left: 0; list-style: none; font-size: .95rem; }
.card ul li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.card ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
}
.card-icon {
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--orange-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 23px; height: 23px; stroke: var(--orange); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Problem / Warnsignale ---------- */
.split { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; gap: 60px; } .split.reverse > *:first-child { order: 2; } }
.split img { border-radius: 14px; box-shadow: var(--shadow-md); }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 16px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8761A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checklist li strong { display: block; }

.warn-card {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--orange);
  border-radius: 12px; padding: 24px 24px; box-shadow: var(--shadow-sm);
}
.warn-card .num {
  font-size: .78rem; font-weight: 800; letter-spacing: .1em;
  color: var(--orange); text-transform: uppercase; display: block; margin-bottom: 8px;
}
.warn-card p { margin-bottom: 0; font-size: .98rem; }

/* ---------- Störungsband ---------- */
.emergency {
  background: var(--navy);
  background-image: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: #fff;
}
.emergency h2 { color: #fff; }
.emergency p { color: #C6D6E5; }
.emergency-inner { display: grid; gap: 30px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .emergency-inner { grid-template-columns: 1.2fr .8fr; gap: 50px; } }
.emergency-box {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
}
.emergency-box .label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.emergency-box .tel {
  display: block; margin: 10px 0 6px;
  font-size: clamp(1.5rem, 4.4vw, 2rem); font-weight: 800; letter-spacing: -.02em;
  color: #fff; text-decoration: none;
}
.emergency-box .tel:hover { color: var(--orange); }
.emergency-box .note { font-size: .88rem; color: #A9BFD3; margin: 0; }

/* ---------- Ablauf ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.step { position: relative; padding-top: 46px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 700;
}
.step h3 { font-size: 1.04rem; margin-bottom: .35em; }
.step p { font-size: .94rem; margin-bottom: 0; }

/* ---------- Referenzen ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.quote blockquote { margin: 0 0 18px; font-size: 1.02rem; color: var(--ink); line-height: 1.6; }
.quote blockquote::before { content: "„"; color: var(--orange); font-size: 2.4rem; line-height: 0; vertical-align: -.32em; margin-right: 3px; }
.quote figcaption { margin-top: auto; font-size: .88rem; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); font-size: .95rem; }

.case {
  background: var(--navy-dark); color: #D6E2EE; border-radius: 16px;
  padding: 36px 30px; box-shadow: var(--shadow-md);
}
.case h3 { color: #fff; font-size: 1.35rem; }
.case p:last-child { margin-bottom: 0; }
.case .case-label { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 10px; display: block; }

.rating {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin-top: 26px; box-shadow: var(--shadow-sm);
}
.rating .score { font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1; }
.rating .stars { color: var(--orange); letter-spacing: 2px; font-size: 1rem; }
.rating .meta { font-size: .92rem; color: var(--muted); }

/* ---------- Team ---------- */
.person { display: flex; gap: 20px; align-items: flex-start; }
.person .avatar {
  flex: none; width: 62px; height: 62px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
}
.person h3 { margin-bottom: .1em; }
.person .role { font-size: .9rem; color: var(--orange); font-weight: 600; margin-bottom: 10px; }
.person p { font-size: .97rem; margin-bottom: 0; }

/* ---------- Lehrwerkstatt ---------- */
.note-box {
  background: var(--orange-soft);
  border: 1px solid #F5D9BE;
  border-radius: 12px;
  padding: 18px 20px;
  font-size: .95rem;
  color: #7A4409;
  margin: 24px 0;
}
.note-box strong { color: #7A4409; }

/* ---------- Einsatzgebiet ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: .92rem; color: var(--ink); box-shadow: var(--shadow-sm);
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 54px; } }
.contact-list { list-style: none; margin: 0 0 26px; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-list li:last-child { border-bottom: none; }
.contact-list .k { flex: none; width: 118px; color: var(--muted); font-size: .9rem; padding-top: 1px; }
.contact-list .v { color: var(--ink); font-size: .99rem; }
.contact-list .v a { color: var(--navy); text-decoration: none; font-weight: 600; }
.contact-list .v a:hover { text-decoration: underline; }
.contact-list .v small { display: block; color: var(--muted); font-weight: 400; font-size: .87rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #9FB4C8; padding: 56px 0 26px; font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; } }
.site-footer a { color: #C7D6E4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 9px; }
.footer-logo img { height: 38px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 16px; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
  font-size: .87rem; color: #7C93A9;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Rechtsseiten ---------- */
.legal { padding: 60px 0 80px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: .35em; }
.legal h2 { font-size: 1.28rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.03rem; margin-top: 1.6em; }
.legal p, .legal li { font-size: 1rem; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: .9rem; }
.legal address { font-style: normal; line-height: 1.8; }
.todo {
  display: inline-block; background: #FFF4CE; border: 1px dashed #D9A400;
  color: #7A5A00; padding: 1px 8px; border-radius: 5px; font-size: .92em; font-weight: 600;
}

/* ---------- Utilities ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
  .pulse { animation: none; }
}
