/* =========================================================================
   ESCH.Enterprises – Design-System „Netzwerk bei Nacht“ (Entwurf A)
   Eine Datei für die öffentliche Webseite. Farben/Abstände nur hier ändern.
   ========================================================================= */
/* Schriften lokal gehostet (kein Abruf bei Google → DSGVO-freundlich). Lizenz: SIL OFL, siehe fonts/LICENSE-*.txt */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #0A101C;          /* Seitenhintergrund */
  --bg-2: #0D1524;        /* abgesetzte Bänder, Seitenleisten */
  --surface: #111A2B;     /* Karten */
  --surface-2: #13213A;   /* aktive Elemente */
  --line: #1E2A40;        /* Trennlinien */
  --line-2: #22314C;      /* Rahmen von Eingaben/Karten */
  --text: #E6EDF7;
  --text-2: #C9D4E5;
  --muted: #A9B7CC;
  --subtle: #8494AD;
  --heading: #FFFFFF;
  --accent: #22D3EE;      /* Cyan */
  --accent-ink: #04131A;  /* Text auf Akzent */
  --link: #7DE3F4;
  --ok: #34D399; --ok-text: #6EE7B7; --ok-bg: #0F3B2E;
  --warn: #FBBF24; --warn-text: #FCD34D; --warn-bg: #3B2F0F;
  --err: #F87171; --err-bg: #3B1416;
  --radius: 16px; --radius-sm: 10px;
  --font: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Space Grotesk', Inter, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: #B5F1FA; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 5.2vw, 60px); letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(28px, 3.4vw, 36px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
.section { padding: 88px 0; }
.section--tight { padding: 48px 0; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.lead { font-size: 19px; color: var(--muted); max-width: 620px; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); font-size: 14px; }
.mono { font-family: var(--font-mono); }

/* ---- Kopfzeile ---- */
.site-header { border-bottom: 1px solid var(--line); background: rgba(10,16,28,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: baseline; gap: 1px; font-family: var(--font-head); font-size: 24px; letter-spacing: -0.02em; color: var(--heading); white-space: nowrap; }
.brand b { font-weight: 700; }
.brand i { font-style: normal; font-weight: 700; color: var(--accent); }
.brand span { font-weight: 500; color: #93A3BC; }
.brand:hover { color: var(--heading); }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { color: var(--text-2); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--heading); border-bottom-color: var(--accent); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text-2); background: transparent; cursor: pointer; }
.icon-btn:hover { border-color: var(--line-2); color: var(--heading); }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: none; align-items: center; justify-content: center; }
.cart-count.has-items { display: inline-flex; }
.nav-toggle { display: none; }
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header-actions .btn--primary { display: none; }
}

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #67E8F9; color: var(--accent-ink); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--heading); }
.btn--sm { min-height: 44px; padding: 0 18px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }
.link-arrow { font-weight: 600; }

/* ---- Karten & Raster ---- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .price-line { margin-top: auto; font-size: 14px; color: var(--subtle); }
.card .price-line strong { color: var(--heading); font-size: 16px; }
.card--feature { border-color: var(--line-2); }
.icon { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Produktkarte (vServer / Webhosting aus der API) */
.plan .plan-price { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--heading); line-height: 1; }
.plan .plan-price small { font-family: var(--font); font-size: 14px; font-weight: 400; color: var(--subtle); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.plan .plan-meta { font-size: 14px; color: var(--subtle); padding-top: 12px; border-top: 1px solid var(--line); }

/* ---- Hero ---- */
.hero { padding: 88px 0 72px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-main { flex: 999 1 560px; min-width: 0; }
.hero-side { flex: 1 1 340px; min-width: 0; }
.page-hero { padding: 72px 0 40px; }
.page-hero .lead { margin-bottom: 0; }

/* ---- Formulare ---- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.input, .select, textarea.input { height: 50px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--text); font: inherit; width: 100%; }
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.input::placeholder { color: #6B7A93; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Domainsuche */
.domain-search { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; max-width: 640px; }
.domain-search .input { flex: 1 1 220px; min-width: 0; height: 52px; border: 0; background: transparent; font-size: 17px; }
.domain-search .input:focus { box-shadow: none; }
.domain-search .select { width: auto; height: 52px; background: var(--bg); }
.domain-search .btn { min-height: 52px; }
.result { margin-top: 16px; max-width: 640px; }
.result-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); }
.result-card.ok { border-color: rgba(52,211,153,.5); }
.result-card.taken { border-color: rgba(248,113,113,.45); }
.result-card .domain { font-family: var(--font-head); font-size: 22px; color: var(--heading); font-weight: 600; word-break: break-all; }
.result-card .price { font-family: var(--font-head); font-size: 24px; color: var(--heading); font-weight: 700; }

/* ---- Status ---- */
.status-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.status-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; margin-bottom: 18px; }
#statusSummary { white-space: nowrap; font-size: 14px; }
.status-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.status-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: #0D1524; border-radius: var(--radius-sm); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--subtle); margin-right: 8px; }
.dot--ok { background: var(--ok); } .dot--warn { background: var(--warn); } .dot--err { background: var(--err); }
.t-ok { color: var(--ok-text); } .t-warn { color: var(--warn-text); } .t-err { color: var(--err); }

/* ---- Badges / Pillen ---- */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 13px; background: var(--surface-2); color: var(--text-2); }
.badge--ok { background: var(--ok-bg); color: var(--ok-text); }
.badge--warn { background: var(--warn-bg); color: var(--warn-text); }
.pill-list { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.pill-list li { padding: 12px 18px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); }

/* ---- Zeitleiste ---- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.timeline li { border-top: 2px solid var(--line-2); padding-top: 16px; color: var(--text-2); }
.timeline li:first-child { border-top-color: var(--accent); }
.timeline .year { font-family: var(--font-mono); color: var(--accent); margin: 0 0 6px; }
.story { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--line-2); margin-left: 8px; }
.story article { position: relative; padding: 0 0 48px 36px; }
.story article::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.story .year { font-family: var(--font-mono); color: var(--accent); margin-bottom: 8px; }
.story p { color: var(--muted); max-width: 760px; }
.story strong { color: var(--text); }

/* ---- Medien-Karten (Presse, Referenzen) ---- */
.media-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--text); }
.media-card:hover { border-color: var(--line-2); color: var(--text); }
.media-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-2); }
.media-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.media-card .body p { margin: 0; color: var(--muted); font-size: 15px; }
.media-card .meta { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: .04em; }
.media-card blockquote { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-style: italic; color: var(--text-2); }

/* ---- Tabellen ---- */
.table-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
table.table th { text-align: left; font-weight: 500; font-size: 13px; color: var(--subtle); padding: 12px 20px; border-bottom: 1px solid var(--line); }
table.table td { padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: middle; }
table.table tr:first-child td { border-top: 0; }
table.table .num { text-align: right; white-space: nowrap; }
table.table tfoot td { border-top: 1px solid var(--line-2); font-weight: 600; color: var(--heading); }

/* ---- Fließtext (Rechtliches) ---- */
.prose { max-width: 780px; color: var(--text-2); }
.prose h2 { font-size: 24px; margin-top: 2em; }
.prose h3 { font-size: 19px; margin-top: 1.5em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.notice { padding: 16px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); }
.notice--warn { border-color: rgba(251,191,36,.45); background: var(--warn-bg); color: var(--warn-text); }
.notice--ok { border-color: rgba(52,211,153,.45); background: var(--ok-bg); color: var(--ok-text); }
.notice--err { border-color: rgba(248,113,113,.45); background: var(--err-bg); color: #FECACA; }

/* ---- CTA & Footer ---- */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 44px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); }
.cta > div:first-child { flex: 1 1 420px; min-width: 0; }
.cta h2 { font-size: 30px; margin-bottom: 8px; }
.cta p { margin: 0; color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 0; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 28px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); margin-bottom: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--muted); font-size: 15px; }
.footer-grid a:hover { color: var(--heading); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--subtle); }

/* Zweispaltig: Inhalt + Seitenleiste */
.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.split > .side { flex: 1 1 320px; min-width: 0; }
.sticky { position: sticky; top: 100px; }

.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--radius); min-height: 260px; border: 1px solid var(--line); }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } html { scroll-behavior: auto; } }

.status-row > span:last-child { white-space: nowrap; }
table.table th.num { text-align: right; }
