/* Netzwerk-MCP · LinQ-View
   Farben aus dem LinQ-View-Logo, Struktur angelehnt an paketanalyse.de (LinQ-IT). */

@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Marke */
  --ink: #1d1e1c;        /* Logo „VIEW“ */
  --graphite: #585756;   /* Logo Q-Bogen */
  --signal: #e53516;     /* Logo Q-Strich */
  --signal-dark: #b8290f;
  /* Flächen */
  --paper: #f5f6f4;
  --white: #ffffff;
  --wire: #dcdedb;
  --night: #140609;      /* theme-color der Schwesterseite paketanalyse.de */
  --night-2: #22100f;
  --ok: #2f7d4f;

  --text: var(--ink);
  --muted: #5f605d;

  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --r-s: 4px;
  --r-m: 8px;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--signal-dark); text-underline-offset: 3px; }
a:hover { color: var(--signal); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
code, .mono { font-family: var(--mono); font-size: .86em; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 600; letter-spacing: -.02em; }
h1 em { font-style: normal; font-weight: 400; color: var(--graphite); display: block; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--paper { background: var(--paper); }
.kicker { color: var(--signal-dark); font-weight: 600; font-size: .95rem; margin-bottom: .5rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }

/* Kopfzeile */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 99; }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--wire);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--white); z-index: 60; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink); }
.brand img { width: 132px; }
.brand span { border-left: 1px solid var(--wire); padding-left: .85rem; font-weight: 600; font-size: .98rem; white-space: nowrap; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--signal-dark); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--wire); border-radius: var(--r-s); padding: .45rem .7rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: var(--r-s); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.btn--primary { background: var(--signal); color: var(--white); }
.btn--primary:hover { background: var(--signal-dark); color: var(--white); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.nav .btn { padding: .55rem 1rem; font-size: .95rem; color: var(--white); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--wire); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero .lead { margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.hero-note { font-size: .92rem; color: var(--muted); }

/* Gesprächs-Panel: das wiedererkennbare Element */
.console {
  background: var(--night); color: #efe6e4; border-radius: var(--r-m);
  box-shadow: 0 30px 60px -30px rgba(20,6,9,.55);
  overflow: hidden; font-size: .9rem;
}
.console-bar { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; background: var(--night-2); border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--mono); font-size: .78rem; color: #b9a9a6; }
.console-bar .live { width: 8px; height: 8px; border-radius: 50%; background: #3ec27a; box-shadow: 0 0 0 3px rgba(62,194,122,.18); }
.console-body { padding: 1.1rem 1.1rem 1.2rem; display: grid; gap: .8rem; }
.msg-user { justify-self: end; max-width: 88%; background: #3a1d19; padding: .65rem .9rem; border-radius: var(--r-m) var(--r-m) 2px var(--r-m); }
.tool { font-family: var(--mono); font-size: .8rem; color: #d8c9c6; border-left: 2px solid var(--signal); padding: .1rem 0 .1rem .75rem; }
.tool b { color: #fff; font-weight: 500; }
.tool .res { color: #9fd9b6; }
.answer p { margin: 0 0 .55rem; }
.answer-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.answer-table th, .answer-table td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid rgba(255,255,255,.09); vertical-align: top; }
.answer-table th { color: #b9a9a6; font-weight: 500; }
.answer-table td:first-child { font-family: var(--mono); color: #fff; white-space: nowrap; }
.flag { color: #ffb4a3; }
.console-foot { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: .7rem 1.1rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .78rem; color: #b9a9a6; }

.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.25rem; }
.hero-facts div { border-top: 2px solid var(--ink); padding-top: .5rem; font-size: .9rem; color: var(--muted); }
.hero-facts strong { display: block; color: var(--ink); font-size: 1.35rem; font-weight: 600; }

/* Anlässe */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--wire); border-left: 1px solid var(--wire); }
.case { padding: 1.5rem 1.4rem; border-right: 1px solid var(--wire); border-bottom: 1px solid var(--wire); background: var(--white); }
.case p { color: var(--muted); font-size: .98rem; }
.case code { color: var(--signal-dark); }

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 3.2rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.3rem; height: 2.3rem; display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 50%; font-weight: 600;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.15rem; left: 2.9rem; right: -1rem; height: 2px; background: var(--wire); }
.steps p { color: var(--muted); font-size: .98rem; }
.steps .meta { font-size: .88rem; color: var(--ink); }

/* Funktionen */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.features ul { list-style: none; padding: 0; margin: 0; }
.features li { padding: .7rem 0; border-top: 1px solid var(--wire); }
.features li code { display: block; color: var(--graphite); margin-top: .15rem; }
.features h3 { padding-bottom: .4rem; border-bottom: 2px solid var(--ink); }
.features .h-act { border-bottom-color: var(--signal); }
.vendors { margin-top: 3rem; }
.vendors ul { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.vendors li { border: 1px solid var(--wire); background: var(--white); padding: .35rem .75rem; border-radius: 999px; font-size: .92rem; }
.vendors p { color: var(--muted); font-size: .92rem; margin-top: .75rem; }

/* Architektur */
.flow { display: grid; grid-template-columns: 1fr 96px 1fr 96px 1fr 96px 1fr; align-items: stretch; gap: .5rem; margin-top: 1rem; }
.node { border: 1px solid var(--wire); background: var(--white); border-radius: var(--r-m); padding: 1rem; }
.node h3 { font-size: 1rem; margin-bottom: .3rem; }
.node p { font-size: .9rem; color: var(--muted); margin: 0; }
.node--box { border: 2px solid var(--signal); }
.arrow { align-self: center; text-align: center; font-size: .78rem; line-height: 1.3; color: var(--muted); }
.arrow::before { content: ""; display: block; height: 2px; background: var(--ink); margin: 0 auto .35rem; width: 100%; }
.arrow.out::before { background: var(--signal); }

/* Beispiel-Freigabe */
.example { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.example ul { padding-left: 1.1rem; }
.example li { margin-bottom: .4rem; }
.approval { background: var(--white); border: 1px solid var(--wire); border-radius: var(--r-m); overflow: hidden; }
.approval header { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--wire); font-size: .88rem; color: var(--muted); }
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #fff0ec; color: var(--signal-dark); }
.approval .body { padding: 1.1rem; }
.approval dl { display: grid; grid-template-columns: 9rem 1fr; gap: .5rem 1rem; margin: 1rem 0 0; font-size: .94rem; }
.approval dt { color: var(--muted); }
.approval dd { margin: 0; }
.approval .actions { display: flex; gap: .6rem; padding: 0 1.1rem 1.1rem; }
.approval .actions .btn { padding: .55rem 1rem; font-size: .92rem; }
.approval footer { padding: .8rem 1.1rem; background: var(--paper); font-size: .88rem; color: var(--muted); }

/* Sicherheit (dunkel) */
.section--night { background: var(--night); color: #efe6e4; }
.section--night .kicker { color: #ff8a70; }
.section--night .lead { color: #c9bbb8; }
.section--night a { color: #ffb4a3; }
.trust-facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-m); margin-bottom: 3rem; }
.trust-facts div { padding: 1.2rem; border-right: 1px solid rgba(255,255,255,.14); font-size: .9rem; color: #c9bbb8; }
.trust-facts div:last-child { border-right: 0; }
.trust-facts strong { display: block; font-size: 1.3rem; color: #fff; font-weight: 600; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; }
.trust-grid p { color: #c9bbb8; }

/* Preise */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--wire); border-radius: var(--r-m); padding: 1.6rem; display: flex; flex-direction: column; }
.plan--featured { border: 2px solid var(--ink); position: relative; }
.plan--featured .tag { position: absolute; top: -.8rem; left: 1.4rem; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; }
.plan .for { color: var(--muted); font-size: .95rem; min-height: 3em; }
.price { font-size: 2.2rem; font-weight: 600; line-height: 1; margin: .5rem 0 .2rem; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.gross { font-size: .85rem; color: var(--muted); margin-bottom: 1.1rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.plan li { padding: .4rem 0 .4rem 1.5rem; position: relative; font-size: .96rem; border-top: 1px solid var(--wire); }
.plan li::before { content: ""; position: absolute; left: .2rem; top: .95rem; width: .55rem; height: .3rem; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plan li.no { color: var(--muted); }
.plan li.no::before { border: 0; height: 2px; width: .6rem; background: var(--muted); transform: none; top: 1.05rem; }
.price-note { margin-top: 1.5rem; font-size: .92rem; color: var(--muted); max-width: 80ch; }

.hw { margin-top: 3rem; overflow-x: auto; }
.hw table { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--white); }
.hw th, .hw td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--wire); font-size: .96rem; }
.hw th { font-size: .88rem; color: var(--muted); font-weight: 500; }
.hw td:nth-child(n+3) { white-space: nowrap; }

/* MSP */
.msp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.tiers { border: 1px solid var(--wire); border-radius: var(--r-m); overflow: hidden; }
.tiers div { display: flex; justify-content: space-between; padding: .9rem 1.1rem; border-bottom: 1px solid var(--wire); }
.tiers div:last-child { border-bottom: 0; }
.tiers strong { font-size: 1.15rem; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--wire); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .95rem; font-size: 1.4rem; font-weight: 400; color: var(--signal); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.2rem; color: var(--muted); }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact address { font-style: normal; }
.contact dl { display: grid; grid-template-columns: 7rem 1fr; gap: .5rem 1rem; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; }
form { display: grid; gap: 1rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
input, select, textarea {
  font: inherit; font-weight: 400; padding: .7rem .8rem; border: 1px solid #b9bcb7; border-radius: var(--r-s); background: var(--white); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--signal); outline-offset: 0; border-color: var(--signal); }
textarea { min-height: 8rem; resize: vertical; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.check input { width: auto; margin-top: .3rem; }
.form-hint { font-size: .88rem; color: var(--muted); }
.form-error { color: var(--signal-dark); font-weight: 600; font-size: .92rem; min-height: 1.2em; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--wire); padding-block: 2rem; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer a { color: var(--muted); }

/* Rechtstexte */
.legal { max-width: 760px; padding-block: 3rem 5rem; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.2rem; margin-top: 2rem; }

/* Responsiv */
@media (max-width: 980px) {
  .hero-grid, .example, .msp, .contact { grid-template-columns: 1fr; }
  .cases, .features, .plans { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .flow { grid-template-columns: 1fr; }
  .arrow { min-height: 2.2rem; display: flex; align-items: center; justify-content: center; gap: .5rem; }
  .arrow::before { width: 2px; height: 1.6rem; margin: 0; }
  .trust-facts { grid-template-columns: 1fr 1fr; }
  .trust-facts div:nth-child(2) { border-right: 0; }
  .trust-facts div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--wire); padding: .5rem 1.25rem 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--wire); }
  .nav .btn { margin-top: .75rem; border-bottom: 0; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 620px) {
  .cases, .features, .plans, .steps, .trust-grid, .row { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; }
  .brand img { width: 110px; }
  .brand span { font-size: .9rem; }
  .approval dl { grid-template-columns: 1fr; gap: .1rem; }
  .approval dd { margin-bottom: .5rem; }
}
