/* Layout: Startseite mit klarer Handlung (Preis berechnen / Anfragen), Höhepunkte als Kacheln, Produktseite mit Rechner, kurze Firmenzeile, Archiv-Link. Farben aus dem TIME-Logo: Sanduhr-Orange, Ring-Blau; App-Violett nur in der App-Darstellung. */
:root {
  --bg: #f5f6f9;
  --surface: #ffffff;
  --fg: #141b2d;
  --muted: #586179;
  --line: #dfe3ec;
  --brand: #1f3f98;
  --accent: #d9770f;
  --accent-ink: #ffffff;
  --soft: #e9eefb;
  --app: #4a4c9c;
  --app-ink: #ffffff;
  --app-bg: #f3f3fa;
  --go: #1f9d4a;
  --stop: #d8332b;
  --note-bg: #fff3dc; --note-fg: #7a4705;
  --ts-title: #ccccff; --ts-menu: #9999cc; --ts-ink: #1c1c4a; --ts-menu-ink: #ffffff;
  --f-display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f131c; --surface: #171d29; --fg: #e7ebf3; --muted: #9ba4b7; --line: #283041;
  --brand: #93abf2; --accent: #f29a3c; --accent-ink: #1a1105; --soft: #1d2640;
  --app: #5a5cb4; --app-ink: #ffffff; --app-bg: #1e2233; --go: #45c472; --stop: #ef5d55;
  --note-bg: #3b2c10; --note-fg: #f3c97c;
  --ts-title: #2b2b5c; --ts-menu: #46467e; --ts-ink: #e4e4ff; --ts-menu-ink: #ffffff;
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0f131c; --surface: #171d29; --fg: #e7ebf3; --muted: #9ba4b7; --line: #283041;
  --brand: #93abf2; --accent: #f29a3c; --accent-ink: #1a1105; --soft: #1d2640;
  --app: #5a5cb4; --app-ink: #ffffff; --app-bg: #1e2233; --go: #45c472; --stop: #ef5d55;
  --note-bg: #3b2c10; --note-fg: #f3c97c;
  --ts-title: #2b2b5c; --ts-menu: #46467e; --ts-ink: #e4e4ff; --ts-menu-ink: #ffffff;
  color-scheme: dark; }

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 17px; line-height: 1.55; }
.wrap { max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.12; }
p { margin: 0; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

.draft { background: var(--note-bg); color: var(--note-fg); font-size: 14px; }
.draft .wrap { padding-block: 8px; }

/* Kopf im Stil von TSWEB: Titelleiste #CCCCFF mit Logo + Firmenname, Menüleiste #9999CC */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.ts-title { background: var(--ts-title); color: var(--ts-ink); }
.ts-title .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 5px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ts-ink); }
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.brand b { font-family: var(--f-body); font-size: 1.4em; font-weight: 700; letter-spacing: 0; }
.brand span { display: block; font-size: 13px; opacity: .8; }
.ts-right { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.ts-right a { color: var(--ts-ink); }
.ts-menu { background: var(--ts-menu); }
.ts-menu .wrap { display: flex; align-items: center; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; min-height: 34px; }
nav { display: flex; flex-wrap: wrap; gap: 0 4px; font-size: 15px; font-weight: 600; }
nav a { color: var(--ts-menu-ink); text-decoration: none; padding: 7px 10px; }
nav a:hover { background: rgba(255, 255, 255, .18); }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/1 var(--f-body); padding: 13px 20px; border-radius: 8px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-main:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.top .btn { padding: 9px 14px; font-size: 14px; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding-block: 56px 48px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; letter-spacing: -.02em; margin-top: 10px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 20px; color: var(--muted); margin-top: 18px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 15px; color: var(--muted); padding: 0; list-style: none; }
.facts li::before { content: "✓"; color: var(--go); font-weight: 700; margin-right: 6px; }

/* App-Darstellung (nachgezeichnet, keine echten Daten) */
.phone { justify-self: center; width: min(100%, 300px); aspect-ratio: 9 / 18.5; background: #101320; border-radius: 38px; padding: 10px; box-shadow: 0 30px 60px -30px rgba(20, 27, 45, .55); }
.screen { height: 100%; border-radius: 30px; overflow: hidden; background: var(--app-bg); display: flex; flex-direction: column; }
.app-head { background: var(--app); color: var(--app-ink); padding: 26px 14px 0; }
.app-head .who { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 19px; font-weight: 600; }
.app-head .who img { width: 26px; height: 26px; background: #fff; border-radius: 50%; }
.tabs { display: flex; gap: 14px; font-size: 11px; font-weight: 600; letter-spacing: .04em; margin-top: 12px; opacity: .85; }
.tabs b { border-bottom: 2px solid var(--app-ink); padding-bottom: 6px; opacity: 1; }
.app-body { flex: 1; padding: 14px; display: grid; gap: 14px; align-content: start; color: var(--fg); }
.status { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.status .clock { font-size: 22px; font-weight: 600; }
.pill { background: var(--go); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 99px; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.key { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 6px; text-align: center; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); display: grid; gap: 6px; justify-items: center; }
.key svg { width: 30px; height: 30px; }
.toast { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 12px; padding: 8px 10px; display: flex; gap: 6px; align-items: center; }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--go); flex: none; }

/* Abschnitte */
section.block .wrap { padding-block: 56px; }
.sec-head { display: grid; gap: 10px; max-width: 46em; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(27px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.015em; }
.sec-head p { color: var(--muted); font-size: 18px; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

/* Höhepunkte */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.hl { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.alt .hl { background: var(--bg); }
.hl .pic { aspect-ratio: 16 / 10; background: var(--soft); display: grid; place-items: center; padding: 16px; }
.hl .txt { padding: 18px 18px 20px; display: grid; gap: 8px; align-content: start; }
.hl h3 { font-size: 20px; }
.hl p { color: var(--muted); font-size: 16px; }
.hl a { font-weight: 600; font-size: 15px; text-decoration: none; margin-top: 4px; }
.mini { width: 100%; max-width: 230px; background: var(--surface); border-radius: 8px; border: 1px solid var(--line); font-size: 11px; overflow: hidden; }
.mini .bar { background: var(--app); color: #fff; padding: 5px 8px; font-weight: 600; }
.mini table { width: 100%; border-collapse: collapse; }
.mini td, .mini th { padding: 3px 8px; border-top: 1px solid var(--line); text-align: left; }
.mini th { color: var(--muted); font-weight: 600; }
.mini td:last-child, .mini th:last-child { text-align: right; }
.xl .bar { background: #1f7244; }
.hw { display: flex; gap: 12px; align-items: end; }
.hw div { background: #263048; border-radius: 8px; box-shadow: inset 0 0 0 3px #3a4562; }

/* Produkt + Rechner */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.incl { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.incl li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.incl li::before { content: "✓"; color: var(--go); font-weight: 700; font-size: 18px; }
.incl b { font-weight: 600; }
.calc { background: var(--surface); border: 2px solid var(--brand); border-radius: 14px; padding: 24px; display: grid; gap: 18px; min-width: 0; }
.calc h3 { font-size: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field .row { display: flex; align-items: center; gap: 14px; }
.field input[type=range] { flex: 1; accent-color: var(--accent); min-width: 0; }
.field input[type=number] { width: 84px; font: 600 17px var(--f-mono); padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }
.field small { color: var(--muted); font-size: 14px; }
.lines { overflow-x: auto; }
.lines table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lines th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 8px 6px 0; }
.lines td { padding: 8px 8px 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.lines td.r, .lines th.r { text-align: right; padding-right: 0; white-space: nowrap; }
.lines .how { color: var(--muted); font-size: 13px; }
.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tot { background: var(--soft); border-radius: 10px; padding: 12px; display: grid; gap: 2px; }
.tot span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tot b { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 600; color: var(--brand); }
.tot.main { background: var(--accent); }
.tot.main span, .tot.main b { color: var(--accent-ink); }
.fine { font-size: 13px; color: var(--muted); }

/* Anfrage */
.ask { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; min-width: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form label { display: grid; gap: 5px; font-weight: 600; font-size: 15px; }
form input, form textarea { font: 400 16px var(--f-body); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); width: 100%; }
form textarea { min-height: 120px; resize: vertical; font-family: var(--f-mono); font-size: 13px; line-height: 1.5; }
.sent { background: var(--note-bg); color: var(--note-fg); padding: 10px 12px; border-radius: 8px; font-size: 15px; }
.contact { display: grid; gap: 6px; margin-top: 18px; font-size: 17px; }
.contact .num { font-size: 20px; color: var(--brand); }
.contact .hours { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* Bestandskunden */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 40px; padding: 0; margin: 0; list-style: none; }
.news li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding-block: 14px; border-top: 1px solid var(--line); }
.news .since { font-family: var(--f-mono); font-size: 13px; color: var(--accent); padding-top: 3px; }
.news b { display: block; font-weight: 600; }
.news span { color: var(--muted); font-size: 16px; }

/* Über uns + Fuß */
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.about p { font-size: 18px; max-width: 38em; }
.about .archive { margin-top: 14px; font-size: 16px; }
.years { display: flex; gap: 28px; flex-wrap: wrap; }
.years div { display: grid; }
.years b { font-family: var(--f-display); font-size: 44px; font-weight: 800; color: var(--brand); line-height: 1; }
.years span { color: var(--muted); font-size: 15px; }
footer { border-top: 1px solid var(--line); background: var(--surface); }
footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; padding-block: 32px; font-size: 15px; color: var(--muted); }
footer h4 { font-family: var(--f-display); color: var(--fg); margin: 0 0 8px; font-size: 15px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
footer a { color: var(--muted); }
.todo { background: var(--note-bg); color: var(--note-fg); border-radius: 4px; padding: 0 5px; font-size: 13px; }

@media (max-width: 860px) {
  .hero .wrap, .product, .ask, .about { grid-template-columns: minmax(0, 1fr); }
  .phone { width: min(100%, 260px); }
  .top .btn { display: none; }
  .brand span { display: none; }
  .brand img { width: 44px; height: 44px; }
}
@media (max-width: 480px) {
  .totals { grid-template-columns: minmax(0, 1fr); }
  .two { grid-template-columns: minmax(0, 1fr); }
  .news li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: no-preference) { .btn { transition: filter .15s; } }

/* Textseiten (Impressum, Datenschutz, Produkt-Infos) */
.page-head .wrap { padding-block: 40px 8px; display: grid; gap: 10px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.page-head p { color: var(--muted); font-size: 18px; max-width: 46em; margin: 0; }
.legal .wrap { padding-block: 16px 56px; max-width: 860px; margin-inline: 0 auto; margin-left: max(0px, calc((100% - 1140px) / 2)); }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal h3 { font-size: 18px; margin: 20px 0 6px; }
.legal p, .legal ul { margin: 0 0 10px; }
.legal ul { padding-left: 1.2em; }
.legal address { font-style: normal; }
.legal .stand { color: var(--muted); font-size: 15px; margin-top: 32px; }
.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; padding-block: 16px 56px; }
.infos section { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.infos h2 { font-size: 20px; margin-bottom: 10px; }
.infos ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.infos li small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }
.infos .neu { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--go); }

/* App-Darstellung TSTerminal (nach Screenshots aus dem Demo-Mandanten) */
.tsa { background: #eeeefb; color: #222; font-family: Arial, Helvetica, sans-serif; }
.tsa-head { background: #8a8aee; padding: 30px 10px 0; color: #1b1b2a; }
.tsa-who { display: flex; align-items: center; gap: 8px; font-size: 18px; white-space: nowrap; }
.tsa-who img { width: 26px; height: 26px; background: #fff; border-radius: 50%; border: 2px solid #555b8f; }
.tsa-tabs { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.tsa-tabs span { opacity: .7; padding: 0 4px 8px; }
.tsa-tabs button { all: unset; cursor: pointer; padding: 0 10px 7px; border-bottom: 2px solid transparent; }
.tsa-tabs button[aria-pressed="true"] { border-bottom-color: #1b1b2a; }
.tsa-datum { display: grid; grid-template-columns: 34px 1fr 34px; gap: 6px; padding: 6px; align-items: center; font-size: 13px; }
.tsa-datum .nav { background: #c4c4f2; border-radius: 3px; text-align: center; font-size: 18px; font-weight: 700; padding: 6px 0; }
.tsa-datum small { display: block; font-size: 9px; color: #555; }
.tsa-bar { background: #8a8aee; color: #1b1b2a; text-align: center; font-size: 11.5px; padding: 5px; }
.tsa-bar.hell { background: #f5f5ff; font-size: 15px; padding: 6px; }
.tsa-tab { width: 100%; border-collapse: collapse; font-size: 11px; }
.tsa-tab th { text-align: left; font-weight: 400; padding: 5px 3px; color: #333; }
.tsa-tab td { padding: 5px 3px; border-bottom: 1px solid #dcdcee; vertical-align: middle; }
.tsa-tab td.z { border-left: 4px solid #7272d8; }
.tsa-tab td.ic svg { width: 17px; height: 17px; display: block; }
.tsa-tab td.tx { line-height: 1.25; }
.tsa-tab .ok, .tsa-tab .uhr { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #111; color: #fff; font-style: normal; font-size: 11px; }
.tsa-tab.saldo th { background: #8a8aee; text-align: center; font-size: 12px; }
.tsa-tab.saldo td { padding: 10px 8px; font-size: 12px; }
.tsa-tab.saldo td + td { border-left: 1px solid #dcdcee; }
.tsa-tabs button { padding: 0 6px 7px; }
.tsa-view { display: flex; flex-direction: column; }
#v-terminal { flex: 1; }
.tsa-status { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 6px; padding: 8px 6px 0 2px; font-size: 11px; }
.tsa-status .uhr { font-size: 22px; }
.tsa-status b { color: #fff; font-weight: 400; text-align: center; border-radius: 99px; padding: 4px 6px; font-size: 12px; }
.tsa-status.zwei { grid-template-columns: 56px 1fr; padding: 12px 6px 0 34px; }
.tsa-status b.rot { background: #e6302a; } .tsa-status b.grau { background: #6a6a6a; }
.tsa-keys { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 18px 6px 14px; font-size: 9.5px; letter-spacing: .04em; text-align: center; color: #333; }
.tsa-keys div { display: grid; justify-items: center; align-content: start; gap: 6px; }
.tsa-keys .k1 { grid-column: 1 / 2; padding-top: 18px; }
.tsa-keys div:nth-child(2) { grid-column: 1; grid-row: 2; }
.tsa-keys div:nth-child(3) { grid-column: 2; grid-row: 2; }
.tsa-keys svg { width: 44px; height: 44px; }
.tsa-view[hidden] { display: none; }
