/* toollabs.de – gemeinsames Stylesheet (Startseite + Impressum).
   Keine Inline-Styles, keine externen Schriften: die CSP erlaubt nur Dateien von dieser Domain. */

:root {
  color-scheme: light dark;
  --bg: #f7f7f4; --bg-alt: #efefea; --fg: #15171a; --muted: #5d6168; --card: #ffffff;
  --line: #e1e1da; --accent: #0f9f6e; --accent-2: #5b5bd6; --accent-soft: #e3f6ee;
  --brand: #12b886; --brand-ink: #06130d;
  --hero-bg: #0d1014; --hero-fg: #f2f4f5; --hero-muted: #a3abb5; --hero-line: #252b33;
  --shadow: 0 1px 2px rgb(16 24 40 / .05), 0 8px 24px rgb(16 24 40 / .06);
  --radius: 16px;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1014; --bg-alt: #12161b; --fg: #eceef0; --muted: #9aa3ad; --card: #161b21;
    --line: #252b33; --accent: #3ddc97; --accent-2: #9b9bff; --accent-soft: #10291f;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
       -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
/* Typografie: kein enger Buchstabenabstand (wirkte unter Windows wie fehlende Leerzeichen),
   ausgewogene Umbrüche bei Überschriften, keine einzelnen Wörter am Absatzende. */
h1, h2, h3 { line-height: 1.2; letter-spacing: 0; margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
p { margin: 0 0 12px; }
body { hyphens: manual; overflow-wrap: break-word; }
.mono, code { font-family: var(--mono); font-size: .88em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.x { display: none; } /* Köder-Text in der E-Mail-Adresse: unsichtbar für Menschen, sichtbar für Adress-Sammler */

/* ---------- Kopfzeile ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgb(13 16 20 / .82);
       backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
       border-bottom: 1px solid var(--hero-line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--hero-fg); text-decoration: none;
         font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; }
.bm-bg { fill: var(--brand); }
.bm-fg { fill: none; stroke: var(--brand-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand .dim { color: var(--hero-muted); font-weight: 500; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--hero-muted); text-decoration: none; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--hero-fg); background: rgb(255 255 255 / .06); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-fg);
        padding: 88px 0 104px; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 820px; height: 820px;
                background: radial-gradient(closest-side, rgb(61 220 151 / .22), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto auto -50% -15%; width: 760px; height: 760px;
               background: radial-gradient(closest-side, rgb(124 124 255 / .18), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 12px;
           border: 1px solid var(--hero-line); border-radius: 99px; background: rgb(255 255 255 / .04);
           color: var(--hero-muted); font-size: .85rem; font-weight: 500; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 0 rgb(61 220 151 / .6);
         animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgb(61 220 151 / 0); } 100% { box-shadow: 0 0 0 0 rgb(61 220 151 / 0); } }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.01em;
           margin-bottom: 22px; }
.grad { background: linear-gradient(92deg, #3ddc97 0%, #7cc6ff 50%, #a7a7ff 100%);
        -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--hero-muted); max-width: 560px; margin-bottom: 32px; }
.lead strong { color: var(--hero-fg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 12px;
       font-weight: 600; text-decoration: none; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: #3ddc97; color: #06130d; }
.btn.primary:hover { background: #5ee6ab; }
.btn.ghost { color: var(--hero-fg); border: 1px solid var(--hero-line); background: rgb(255 255 255 / .03); }
.btn.ghost:hover { border-color: #3a424d; }

/* Chat-Beispiel */
.chat { margin: 0; background: #12161c; border: 1px solid var(--hero-line); border-radius: 20px;
        box-shadow: 0 30px 80px rgb(0 0 0 / .45); overflow: hidden; }
.chat-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--hero-line);
            background: #0f1318; }
.chat-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a313a; }
.chat-bar em { margin-left: 8px; font-style: normal; font-size: .8rem; color: var(--hero-muted); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; font-size: .93rem; line-height: 1.5; }
.msg { margin: 0; padding: 11px 15px; border-radius: 16px; max-width: 88%; }
.msg.you { align-self: flex-end; background: #2b5d4a; color: #effaf5; border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: #1c222a; color: #dfe3e7; border-bottom-left-radius: 5px; }
.msg .mono { color: #7ee2b5; }
.call { margin: 0; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px;
        border: 1px dashed #333b45; border-radius: 8px; color: var(--hero-muted); font-size: .8rem; }
.call code { color: #a7a7ff; }
.call-dot { width: 6px; height: 6px; border-radius: 50%; background: #a7a7ff; }

/* ---------- Abschnitte ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.kicker { color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 750; margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 680px; margin-bottom: 40px; }
.section-lead strong { color: var(--fg); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.step-no { display: inline-block; font-family: var(--mono); font-size: .85rem; font-weight: 600; color: var(--accent);
           background: var(--accent-soft); padding: 3px 10px; border-radius: 8px; margin-bottom: 16px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }
.step .mono { color: var(--fg); }

.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.tool { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
        border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); color: inherit; text-decoration: none;
        transition: transform .15s, border-color .15s; }
a.tool:hover { transform: translateY(-3px); border-color: var(--accent); }
.tool.next { background: transparent; box-shadow: none; border-style: dashed; }
.tool-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.tool-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
             background: var(--accent-soft); color: var(--accent); }
.tool-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2;
                 stroke-linecap: round; stroke-linejoin: round; }
.tool.next .tool-icon { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.tool h3 { font-size: 1.2rem; margin-bottom: 8px; }
.tool p { color: var(--muted); }
.tool-meta { margin: auto 0 0; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.tool-meta .mono { color: var(--fg); }
.tool-meta .arrow { color: var(--accent); font-size: 1.2rem; transition: transform .15s; }
a.tool:hover .arrow { transform: translateX(4px); }
.badge { font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.badge.live { color: var(--accent); border-color: transparent; background: var(--accent-soft); }
.badge.live::before { content: "● "; }

.tech { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tech .section-lead { margin-bottom: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
            font-size: .95rem; font-weight: 500; box-shadow: var(--shadow); }

/* ---------- Beispiel: Feature-Zeilen mit Screenshots ---------- */
.clip { display: inline-block; margin-right: 4px; padding: 1px 8px; border-radius: 6px; background: rgb(255 255 255 / .12);
        font-size: .8rem; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center;
           padding: 48px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 8px; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-text { order: 2; }
.feature.stack { display: block; }
.feature-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end;
                margin-bottom: 28px; }
.feature-head .ticks { margin: 0; }
.feature h3 { font-size: 1.45rem; font-weight: 700; margin: 0 0 12px; }
.feature.has-tall { align-items: start; }
.feature.has-tall .feature-text { padding-top: 40px; }
.shot.tall img { object-fit: cover; object-position: top; }
.feature p { color: var(--muted); }
.feature p strong { color: var(--fg); }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: .97rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.shot, .phone { display: block; border-radius: 18px; overflow: hidden; background: #0f1110;
                border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgb(0 0 0 / .55);
                transition: transform .2s; }
.shot:hover, .phone:hover { transform: translateY(-3px); }
.shot { position: relative; }
.shot::after { content: "⤢ Vergrößern"; position: absolute; right: 10px; top: 10px; padding: 3px 10px;
               border-radius: 99px; background: rgb(0 0 0 / .6); color: #fff; font-size: .75rem; }
.shot img, .phone img { display: block; width: 100%; height: auto; }
.phones { display: flex; justify-content: center; }
.phone { width: min(300px, 100%); max-height: 620px; border: 8px solid #1d2026; border-radius: 34px; }
.phone.short { max-height: 520px; }
.phone img { object-fit: cover; object-position: top; }

/* ---------- Zoom-Ansicht für Screenshots (zoom.js) ---------- */
dialog.zoom { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
              background: transparent; overflow: auto; overscroll-behavior: contain; }
dialog.zoom::backdrop { background: rgb(5 8 12 / .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.zoom-inner { min-height: 100%; display: flex; align-items: center; justify-content: center;
              padding: 64px 16px 24px; cursor: zoom-out; }
.zoom-inner img { display: block; max-width: min(100%, 1600px); height: auto; border-radius: 12px;
                  box-shadow: 0 30px 80px rgb(0 0 0 / .6); }
.zoom-close { position: fixed; top: 12px; right: 12px; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
              border: 0; background: rgb(255 255 255 / .94); color: #111; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.zoom-inner img { cursor: zoom-in; }
/* vergrößert: doppelte Breite (mind. 900 px), in beide Richtungen schiebbar */
dialog.zoom.big .zoom-inner { display: block; width: max-content; min-width: 100%; }
dialog.zoom.big .zoom-inner img { width: max(200vw, 900px); max-width: none; cursor: zoom-out; }
@media (min-width: 900px) { dialog.zoom.big .zoom-inner img { width: min(1600px, 140vw); } }
.zoom-hint { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2; padding: 6px 14px;
             border-radius: 99px; background: rgb(0 0 0 / .65); color: #fff; font-size: .82rem; white-space: nowrap;
             pointer-events: none; }
html.zoom-open { overflow: hidden; }
.shot { cursor: zoom-in; }

/* ---------- Infrastruktur ---------- */
.arch { display: grid; gap: 10px; justify-items: center; margin: 8px 0 40px; padding: 28px;
        border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.arch-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.arch-row.server { position: relative; padding: 30px 14px 14px; border: 1px dashed var(--line); border-radius: 18px; }
.server-label { position: absolute; top: 8px; left: 16px; font-size: .78rem; color: var(--muted); }
.arch-arrow { color: var(--muted); font-size: .85rem; font-family: var(--mono); }
.node { display: grid; gap: 2px; min-width: 150px; padding: 12px 16px; border-radius: 14px; text-align: center;
        background: var(--bg-alt); border: 1px solid var(--line); }
.node b { font-size: 1rem; }
.node span { font-size: .82rem; color: var(--muted); }
.node i { font-style: normal; font-family: var(--mono); font-size: .75rem; color: var(--accent); }
.node.gate { width: min(560px, 100%); background: var(--accent-soft); border-color: transparent; }
.node.tool { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.node.dashed { border-style: dashed; background: transparent; }
.node.mail { border-color: color-mix(in srgb, var(--accent-2) 40%, var(--line)); }
.node.ai { border-color: color-mix(in srgb, var(--accent-2) 40%, var(--line)); }
.infra { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.infra-item { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.infra-item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.infra-item p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Tempo ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 36px; }
.stat { padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat b { display: block; font-size: 2rem; color: var(--accent); white-space: nowrap; }
.stat span { color: var(--muted); font-size: .94rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 18px; padding: 18px 0;
               border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.t-day { font-family: var(--mono); font-weight: 700; color: var(--accent); padding-top: 2px; }
.timeline h3 { font-size: 1.08rem; margin-bottom: 4px; }
.timeline p { color: var(--muted); margin: 0; }
.note { margin-top: 24px; padding: 16px 20px; border-radius: 14px; background: var(--accent-soft); color: var(--fg); }

/* ---------- Fußzeile ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--fg); }

/* ---------- Unterseiten (Impressum) ---------- */
.page { max-width: 720px; margin: 0 auto; padding: 56px 20px 80px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 10px; }
.page h2 { font-size: 1.1rem; margin: 32px 0 8px; }
.sub { color: var(--muted); }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 1000px) {
  .infra, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid, .tech { grid-template-columns: 1fr; gap: 40px; }
  .steps, .tools { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .feature, .feature.flip, .feature-head { grid-template-columns: 1fr; gap: 24px; }
  .feature { padding: 32px 0; }
  .feature.flip .feature-text { order: 0; }
  .shot.tall { max-height: 560px; }
  .feature.has-tall .feature-text { padding-top: 0; }
}
@media (max-width: 560px) {
  .infra, .stats { grid-template-columns: 1fr; }
  .arch { padding: 18px 12px; }
  .node { min-width: 0; flex: 1 1 130px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav a { padding: 8px 8px; font-size: .88rem; }
  .nav a:first-child { display: none; }
  .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .btn, .tool, .tool-meta .arrow { transition: none; }
}
