/* ==========================================================================
   IT-NWK · it-nwk.de
   Farbwelt: Kupfer #e08a47 auf Schieferblau #0d1219 · Rot #f0525e nur Notfall
   Schriften: IBM Plex Sans Condensed / Sans / Mono (lokal, siehe /fonts)
   ========================================================================== */

/* ---- Schriften (lokal eingebunden, kein Google-Fonts-Abruf) ---- */
@font-face {
  font-family: 'IBM Plex Sans Condensed';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/ibm-plex-sans-condensed-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans Condensed';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/ibm-plex-sans-condensed-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

/* ---- Design-Token ---- */
:root {
  --bg:        #0d1219;   /* Schieferblau, Grundfläche */
  --bg-raised: #121a25;   /* Karten, Header */
  --bg-inset:  #0a0e14;   /* Code-/Formularflächen */
  --line:      #223041;   /* Rahmen, Trennlinien */
  --line-soft: #1a2532;
  --text:      #d9e0e8;
  --muted:     #8fa0b3;
  --copper:    #e08a47;
  --copper-hi: #f2a869;   /* Hover / Akzente auf dunkel */
  --copper-dim:rgba(224, 138, 71, 0.14);
  --alarm:     #f0525e;   /* NUR für Notfall */
  --alarm-dim: rgba(240, 82, 94, 0.12);
  --head: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Consolas', monospace;
  --maxw: 1060px;
}

/* ---- Basis ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--copper); text-decoration: none; }
a:hover, a:focus-visible { color: var(--copper-hi); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--copper); color: #14100b; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #eef3f8;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 0.9rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; }
p + p { margin-top: 0.9rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* Mono-Etiketten (Modul-Nummern, Meta-Zeilen) */
.tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.tag--alarm { color: var(--alarm); }

/* ---- Header / Navigation ---- */
.site-header {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(13, 18, 25, 0.92);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-top: 0.85rem; padding-bottom: 0.85rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--head); font-weight: 700; font-size: 1.35rem;
  color: #eef3f8; letter-spacing: 0.03em;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand .port { flex: none; }
.brand small {
  display: block; font-family: var(--mono); font-weight: 400;
  font-size: 0.62rem; letter-spacing: 0.22em; color: var(--muted);
  text-transform: uppercase;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.15rem 1.15rem; align-items: center; }
.site-nav a {
  font-size: 0.95rem; color: var(--text); padding: 0.25rem 0.1rem;
}
.site-nav a:hover { color: var(--copper-hi); text-decoration: none; }
.site-nav a[aria-current="page"] {
  color: var(--copper);
  border-bottom: 2px solid var(--copper);
}
.site-nav a.nav-alarm { color: var(--alarm); font-weight: 600; }
.site-nav a.nav-alarm[aria-current="page"] { border-bottom-color: var(--alarm); }

/* ---- Hero ---- */
.hero { padding: 4.2rem 0 3rem; position: relative; overflow: hidden; }
.hero .tag { display: block; margin-bottom: 1rem; }
.hero h1 { max-width: 17ch; }
.hero .lead {
  margin-top: 1.2rem; max-width: 52ch;
  font-size: 1.18rem; color: var(--muted);
}
.hero-panel { margin-top: 2.6rem; }
.hero-panel svg { width: 100%; height: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--head); font-weight: 600; font-size: 1.02rem;
  letter-spacing: 0.03em;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--copper);
  border-radius: 3px;
  color: var(--copper);
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--copper); color: #14100b; text-decoration: none; }
.btn--solid { background: var(--copper); color: #14100b; }
.btn--solid:hover { background: var(--copper-hi); border-color: var(--copper-hi); }
.btn--alarm { border-color: var(--alarm); color: var(--alarm); }
.btn--alarm:hover { background: var(--alarm); color: #1a0d0e; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

/* ---- Abschnitte ---- */
.section { padding: 3.4rem 0; border-top: 1px solid var(--line-soft); }
.section > .wrap > .tag { display: block; margin-bottom: 0.5rem; }
.section-intro { max-width: 62ch; color: var(--muted); }

/* ---- Kartenraster ---- */
.grid { display: grid; gap: 1.1rem; margin-top: 2rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem 1.4rem;
}
.card .tag { display: block; margin-bottom: 0.7rem; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ---- Leistungs-Module SVC-01…05 ---- */
.module {
  display: grid; grid-template-columns: 92px 1fr; gap: 1.4rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  border-radius: 4px;
  padding: 1.6rem 1.5rem;
  margin-top: 1.2rem;
}
.module-id {
  font-family: var(--mono); font-weight: 500; font-size: 0.95rem;
  color: var(--copper); letter-spacing: 0.1em;
  padding-top: 0.25rem;
}
.module-id::after {
  content: ""; display: block; width: 34px; height: 2px;
  background: var(--copper); margin-top: 0.55rem; opacity: 0.6;
}
.module h3 { font-size: 1.3rem; }
.module p { color: var(--muted); margin-top: 0.35rem; }
.module ul { margin: 0.8rem 0 0; padding-left: 1.15rem; color: var(--muted); }
.module li { margin-top: 0.3rem; }
.module li::marker { color: var(--copper); }

/* ---- Preistafel ---- */
.pricelist { margin-top: 2rem; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.pricelist-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 0.4rem 1.5rem;
  padding: 1.1rem 1.4rem;
  background: var(--bg-raised);
}
.pricelist-row + .pricelist-row { border-top: 1px solid var(--line-soft); }
.pricelist-row .desc { color: var(--muted); font-size: 0.92rem; flex-basis: 100%; }
.price {
  font-family: var(--head); font-weight: 700; font-size: 1.45rem; color: var(--copper);
  white-space: nowrap;
}
.price small { font-family: var(--body); font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.pricelist-row--alarm { border-left: 3px solid var(--alarm); }
.pricelist-row--alarm .price { color: var(--alarm); }
.fineprint { margin-top: 0.9rem; font-size: 0.9rem; color: var(--muted); }

/* ---- Notfall-Elemente ---- */
.alarmbox {
  margin-top: 2.4rem;
  border: 1px solid rgba(240, 82, 94, 0.45);
  border-left: 4px solid var(--alarm);
  background: var(--alarm-dim);
  border-radius: 4px;
  padding: 1.4rem 1.5rem;
}
.alarmbox h2, .alarmbox h3 { color: #f6dfe1; }
.alarmbox p { color: #cfb9bc; }
.steps { margin-top: 1.6rem; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem;
  padding: 1.3rem 0; border-top: 1px solid var(--line-soft);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono); font-size: 1.3rem; font-weight: 500;
  color: var(--alarm);
}
.step--copper::before { color: var(--copper); }
.step h3 { margin-bottom: 0.2rem; }
.step p, .step li { color: var(--muted); }
.step ul { margin-top: 0.5rem; padding-left: 1.15rem; }
.step li::marker { color: var(--alarm); }
.step--copper li::marker { color: var(--copper); }

/* ---- Kontakt / Formular ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; margin-top: 2rem; }
.contact-facts p { color: var(--muted); }
.contact-facts .fact { margin-top: 1.4rem; }
.contact-facts .fact strong { display: block; color: var(--text); font-weight: 600; }
form .field { margin-top: 1.1rem; }
label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem; }
label .opt { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--body); font-size: 1rem;
  padding: 0.65rem 0.8rem;
}
input:focus, textarea:focus { outline: 2px solid var(--copper); outline-offset: 0; border-color: var(--copper); }
textarea { min-height: 160px; resize: vertical; }
.form-msg { padding: 0.9rem 1.1rem; border-radius: 3px; margin-top: 1.2rem; font-size: 0.97rem; }
.form-msg--ok { border: 1px solid var(--copper); background: var(--copper-dim); color: #f4d9c0; }
.form-msg--err { border: 1px solid var(--alarm); background: var(--alarm-dim); color: #f6dfe1; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Rechtstexte ---- */
.legal h2 { margin-top: 2.4rem; font-size: 1.35rem; }
.legal h3 { margin-top: 1.5rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; margin-top: 0.5rem; }
.legal address { font-style: normal; color: var(--text); line-height: 1.7; }

/* ---- Footer ---- */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: var(--bg-inset);
  padding: 2.2rem 0 2.6rem;
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; justify-content: space-between;
}
.site-footer p, .site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--copper-hi); }
.footer-meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; }

/* ---- Kleinkram ---- */
.placeholder-portrait {
  width: 190px; height: 190px; border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em;
  color: var(--muted); text-transform: uppercase; text-align: center;
}
.about-grid { display: grid; grid-template-columns: 190px 1fr; gap: 2.2rem; margin-top: 2rem; align-items: start; }
.about-grid p { color: var(--muted); }
.checklist { margin-top: 1rem; padding-left: 1.2rem; color: var(--muted); }
.checklist li { margin-top: 0.4rem; }
.checklist li::marker { color: var(--copper); }

/* ---- Responsiv ---- */
@media (max-width: 720px) {
  .hero { padding-top: 2.8rem; }
  .module { grid-template-columns: 1fr; gap: 0.6rem; }
  .module-id { padding-top: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; gap: 0.9rem; }
}
