/* CallerHub – Website-Stylesheet (hell)
   Formensprache des Datenflusses im Programm: weiße Karten mit weichem Schatten,
   farbige Symbolkreise, geschwungene Verbindungen mit Etiketten, blaue Mittelkarte.
   Schriften lokal eingebunden (keine Verbindung zu Google Fonts). */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-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; }

:root {
  color-scheme: light;
  /* Grundfarben */
  --ink: #121a2a;
  --ink-soft: #4d586b;
  --ink-faint: #7b8597;
  --canvas: #f4f6fa;
  --card: #ffffff;
  --rule: #e3e8ef;
  --rule-strong: #d3dae4;
  /* Farben der Datenfluss-Symbole (wie im Programm) */
  --blue: #2457d6;
  --blue-deep: #1b46b4;
  --blue-soft: #eaf0fd;
  --blue-line: #7ea6ea;
  --green: #14966f;
  --green-soft: #e4f5ee;
  --green-line: #6ccfae;
  --gold: #946f12;
  --gold-soft: #f7f0dc;
  --gold-line: #cdae63;
  --red: #c0412f;
  --red-soft: #fbe9e6;
  --red-line: #e08b7e;
  --slate: #4b5563;
  --slate-soft: #eef0f3;
  --slate-line: #9aa3af;
  /* Formen */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px -6px rgba(16, 24, 40, .10);
  --shadow-lift: 0 2px 4px rgba(16, 24, 40, .06), 0 18px 40px -14px rgba(28, 58, 140, .28);
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "Plex Mono", Consolas, "Courier New", monospace;
  --measure: 68ch;
  --wide: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 1.03rem/1.65 var(--sans); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid rgba(36, 87, 214, .45); outline-offset: 2px; border-radius: 6px; }
code, kbd, pre { font-family: var(--mono); font-size: .88em; }
code { background: var(--slate-soft); color: #22304a; padding: .1em .38em; border-radius: 6px; overflow-wrap: anywhere; }
kbd { background: var(--card); border: 1px solid var(--rule-strong); border-bottom-width: 2px; border-radius: 6px; padding: .05em .4em; }
pre { background: var(--card); color: #1f2a40; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.3rem; overflow-x: auto; line-height: 1.6; font-size: .84rem; }
pre code { background: none; padding: 0; color: inherit; overflow-wrap: normal; }
strong { font-weight: 600; }
.ic { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -.125em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .5rem 1rem; z-index: 20; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* Kopfzeile */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--rule); }
.site-head .inner { max-width: var(--wide); margin: 0 auto; padding: .65rem 1.25rem; display: flex; align-items: center; gap: 1.2rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; }
.brand:hover { color: var(--ink); }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; flex-wrap: nowrap; gap: .1rem; margin: 0; padding: 0; }
.nav a { display: block; color: var(--ink-soft); text-decoration: none; font-size: .9rem; font-weight: 500; padding: .4rem .62rem; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--slate-soft); }
.nav a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.head-cta { margin-left: .4rem; padding: .48rem .95rem; font-size: .9rem; }
.nav-toggle { display: none; }
@media (max-width: 1180px) {
  .nav, .site-head .head-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-toggle summary { cursor: pointer; list-style: none; padding: .45rem .85rem; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: .92rem; font-weight: 500; background: var(--card); }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle ul { position: absolute; left: .75rem; right: .75rem; top: calc(100% + .4rem); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-lift); list-style: none; margin: 0; padding: .5rem; }
  .nav-toggle li a { display: block; padding: .65rem .8rem; color: var(--ink); text-decoration: none; border-radius: var(--radius-sm); font-weight: 500; }
  .nav-toggle a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
}

/* Raster */
main { display: block; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--measure); }
.wrap.prose { max-width: var(--wide); }
.wrap.prose > * { max-width: var(--measure); }
section { padding: 4.5rem 0; }
.tint { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.center { text-align: center; }
.center .prose, .center.prose { margin-left: auto; margin-right: auto; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -.022em; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.028em; }
h3 { font-size: 1.22rem; margin-top: 2.2rem; letter-spacing: -.015em; }
h4 { font-size: 1.05rem; margin-top: 1.5rem; }
p, ul, ol, dl { margin: 0 0 1em; }
.lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }

/* Punktraster wie die Zeichenfläche des Datenflusses */
.dots { background-color: var(--canvas); background-image: radial-gradient(rgba(36, 87, 214, .13) 1px, transparent 1.2px); background-size: 22px 22px; }

/* Seitenkopf der Unterseiten */
.page-head { padding: 3.6rem 0 3rem; border-bottom: 1px solid var(--rule); }
.page-head .title { display: flex; align-items: center; gap: 1rem; }
.page-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.page-head .lead { margin: 1.1rem 0 0; }

/* Symbolkreise (Farben wie im Programm) */
.badge { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; color: #fff; background: var(--blue); flex: none; font-size: 1.05rem; box-shadow: 0 4px 10px -4px rgba(36, 87, 214, .6); }
.badge.lg { width: 3.1rem; height: 3.1rem; font-size: 1.35rem; }
.badge.green { background: var(--green); box-shadow: 0 4px 10px -4px rgba(20, 150, 111, .6); }
.badge.gold { background: var(--gold); box-shadow: 0 4px 10px -4px rgba(148, 111, 18, .6); }
.badge.red { background: var(--red); box-shadow: 0 4px 10px -4px rgba(192, 65, 47, .6); }
.badge.slate { background: var(--slate); box-shadow: 0 4px 10px -4px rgba(75, 85, 99, .6); }

/* Karten */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.35rem 1.4rem; }
.card h3 { margin-top: 0; }
.card-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; }
.card-head h3 { margin: 0; font-size: 1.08rem; }
a.card { display: block; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
a.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: #c9d6f3; }

/* Hero */
.hero { padding: 4.5rem 0 3rem; overflow: hidden; }
.hero .intro { text-align: center; max-width: 52rem; margin: 0 auto; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.04; }
.hero .lead { margin: 1.2rem auto 0; text-align: center; }
.pill-note { display: inline-flex; align-items: center; gap: .5rem; background: var(--card); border: 1px solid var(--rule); border-radius: 999px; padding: .32rem .85rem .32rem .4rem; font-size: .86rem; color: var(--ink-soft); box-shadow: var(--shadow); margin-bottom: 1.4rem; }
.pill-note b { white-space: nowrap;  background: var(--green-soft); color: var(--green); border-radius: 999px; padding: .1rem .55rem; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero .actions { justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .78rem 1.25rem; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid transparent; font-size: .98rem; transition: background .15s, box-shadow .15s, transform .15s; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 20px -8px rgba(36, 87, 214, .7); }
.btn-primary:hover { background: var(--blue-deep); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--rule-strong); box-shadow: var(--shadow); }
.btn-secondary:hover { color: var(--ink); border-color: var(--blue-line); }

@media (max-width: 600px) { .pill-note { font-size: .8rem; text-align: left; } }

/* Datenfluss-Grafik */
.flow { margin: 3.2rem auto 0; max-width: 72rem; }
.flow svg { width: 100%; height: auto; display: block; overflow: visible; }
.flow .mobile { display: none; }
@media (max-width: 760px) { .flow .desktop { display: none; } .flow .mobile { display: block; max-width: 26rem; margin: 0 auto; } }
.flow text { font-family: var(--sans); }
.flow .t { font-size: 17px; font-weight: 600; fill: var(--ink); }
.flow .s { font-size: 13.5px; fill: var(--ink-soft); }
.flow .tw { font-size: 19px; font-weight: 600; fill: #fff; }
.flow .sw { font-size: 13.5px; fill: rgba(255, 255, 255, .82); }
.flow .big { font-size: 24px; font-weight: 700; fill: #fff; letter-spacing: -.01em; }
.flow .lbl { font-size: 12.5px; font-weight: 500; }
.flow .stream { stroke-dasharray: 2 14; stroke-linecap: round; stroke-width: 3.2; fill: none; opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .flow .stream { animation: stream 1.6s linear infinite; }
  .flow .stream.rev { animation-direction: reverse; }
  .flow .reveal { animation: reveal 900ms 500ms both cubic-bezier(.2, .7, .2, 1); }
  .flow .ping { animation: ping 2.4s 1.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }
  @keyframes stream { to { stroke-dashoffset: -32; } }
  @keyframes reveal { from { opacity: 0; } to { opacity: 1; } }
  @keyframes ping { 0% { opacity: .55; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.9); } }
}

/* Logos/Stichworte unter dem Hero */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 2.6rem auto 0; max-width: 60rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--card); border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .8rem; font-size: .86rem; font-weight: 500; color: var(--ink-soft); }

/* Ablauf in drei Schritten (echte Reihenfolge) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; list-style: none; padding: 0; margin: 2.4rem 0 0; position: relative; }
.steps li { position: relative; }
.steps .num { position: absolute; top: 1.2rem; right: 1.3rem; font-weight: 700; color: var(--ink-faint); font-size: .9rem; }
.steps p { margin: 0; color: var(--ink-soft); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Zweispaltige Abschnitte */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 3rem; align-items: center; }
.split.top { align-items: start; }
.split.flip { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; gap: 1.8rem; } }

figure { margin: 1.6rem 0; }
figure img { border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lift); }
figcaption { font-size: .86rem; color: var(--ink-faint); margin-top: .75rem; max-width: var(--measure); }

/* Funktionskacheln */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1.1rem; margin: 2.2rem 0 0; }
.features .card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* Tabellen */
.table-wrap { overflow-x: auto; margin: 1.4rem 0 1.8rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; vertical-align: top; padding: .72rem .95rem; border-bottom: 1px solid var(--rule); }
thead th { background: #f8fafc; font-weight: 600; font-size: .84rem; color: var(--ink-soft); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfd; }
td code { white-space: nowrap; }
td.wrap-code code { white-space: normal; }

/* Etiketten wie „HTTP :8443“ im Datenfluss */
.tag { display: inline-block; font-size: .76rem; font-weight: 500; line-height: 1.35; padding: .14rem .6rem; border-radius: 999px; white-space: nowrap; background: var(--card); border: 1.5px solid currentColor; }
.tag-ok { color: var(--green); }
.tag-caution { color: var(--gold); }
.tag-plain { color: var(--slate-line); }
.tag-plain { color: var(--slate); border-color: var(--slate-line); }

/* Hinweise */
.note { display: flex; gap: .8rem; background: var(--blue-soft); border: 1px solid #d5e1fb; border-radius: var(--radius); padding: 1rem 1.15rem; margin: 1.6rem 0; max-width: var(--measure); }
.note::before { content: "i"; flex: none; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: .8rem; font-family: Georgia, serif; margin-top: .1rem; }
.note.warn { background: var(--gold-soft); border-color: #eedfb4; }
.note.warn::before { content: "!"; background: var(--gold); font-family: var(--sans); }
.note p:last-child { margin-bottom: 0; }

/* Platzhalter für fehlende Angaben */
.todo { background: #fff3cd; color: #7a5a00; padding: 0 .3em; border-radius: 4px; box-shadow: inset 0 0 0 1px #f0d98a; }

/* Editionen */
.editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 1.2rem; margin: 2.2rem 0; align-items: stretch; }
.editions .card { padding: 1.7rem 1.6rem; }
.editions .card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lift); position: relative; }
.editions .price { font-weight: 600; color: var(--ink-soft); margin: -.2rem 0 1.1rem; }
.editions ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.editions li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; font-size: .95rem; }
.editions li::before { content: ""; position: absolute; left: 0; top: .32rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2314966f'%3E%3Cpath d='M12.7 5.3a1 1 0 0 1 0 1.4l-5 5a1 1 0 0 1-1.4 0l-2.5-2.5a1 1 0 1 1 1.4-1.4L7 9.6l4.3-4.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / .8rem no-repeat; }

/* Inhaltsverzeichnis langer Seiten */
.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.toc a { display: inline-block; background: var(--card); border: 1px solid var(--rule); border-radius: 999px; padding: .38rem .85rem; font-size: .88rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.toc a:hover { color: var(--blue); border-color: var(--blue-line); }
.toc-bar { padding: 1.4rem 0; }

/* Rechtstexte */
.legal { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem 2.2rem; }
.wrap.legal { max-width: calc(var(--measure) + 4.4rem); margin: 0 auto; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1rem; }
.legal address { font-style: normal; }
@media (max-width: 600px) { .legal { padding: 1.4rem 1.2rem; } }

/* Abschluss-Band */
.cta-band { background: linear-gradient(135deg, #2457d6 0%, #1b46b4 60%, #173c9c 100%); color: #fff; border-radius: 22px; padding: 3rem 2.4rem; box-shadow: var(--shadow-lift); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.2px); background-size: 22px 22px; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 60ch; }
.cta-band .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4); }
.cta-band .btn-primary:hover { background: #eef3fd; color: var(--blue-deep); }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); box-shadow: none; }
.cta-band .btn-secondary:hover { border-color: #fff; color: #fff; }

/* Fußzeile */
.site-foot { border-top: 1px solid var(--rule); background: var(--card); padding: 3rem 0 3.2rem; font-size: .92rem; color: var(--ink-soft); }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr; } }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .4rem; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--blue); }
.site-foot h2 { font-size: .95rem; margin-bottom: .7rem; letter-spacing: -.01em; }
.site-foot .brand { margin-bottom: .8rem; }

@media print {
  .site-head, .site-foot, .actions, .toc-bar, .flow { display: none; }
  body { background: #fff; }
  section { padding: 1rem 0; }
  .card, .table-wrap, figure img { box-shadow: none; }
}
