/* Dietlmeier-IT — IT. Einfach. Machen. */

@font-face {
  font-family: "Inter Tight";
  src: url("inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("inter-tight-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #17181c;
  --ink-2: #4a4c55;
  --ink-3: #7a7c86;
  --paper: #f5f4ef;
  --surface: #ffffff;
  --line: #e2e0d8;
  --accent: #2b55ff;
  --accent-ink: #ffffff;
  --accent-soft: #e4e9ff;
  --ok: #17a35a;
  --dark: #121317;
  --dark-2: #1c1d23;
  --dark-line: #2c2e36;
  --dark-text: #ecebe6;
  --dark-muted: #9a9ca6;
  --radius: 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ecebe6;
    --ink-2: #b4b5bd;
    --ink-3: #868892;
    --paper: #0f1013;
    --surface: #17181d;
    --line: #2a2c33;
    --accent: #6b8aff;
    --accent-ink: #0f1013;
    --accent-soft: #1d2440;
    --ok: #3ccf7f;
    --dark: #08090b;
    --dark-2: #15161b;
    --dark-line: #2a2c33;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #ecebe6;
  --ink-2: #b4b5bd;
  --ink-3: #868892;
  --paper: #0f1013;
  --surface: #17181d;
  --line: #2a2c33;
  --accent: #6b8aff;
  --accent-ink: #0f1013;
  --accent-soft: #1d2440;
  --ok: #3ccf7f;
  --dark: #08090b;
  --dark-2: #15161b;
  --dark-line: #2a2c33;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.03em; margin: 0; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 650; font-size: 16px; text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-light { background: #fff; color: #121317; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 850; font-size: 26px; letter-spacing: -0.045em; }
.brand-tag { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 800; font-style: italic; letter-spacing: .02em; margin-top: 3px; text-transform: uppercase; }
.brand-tag::before { content: ""; width: 34px; height: 5px; background: currentColor; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 550; font-size: 15.5px; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-cta { padding: 10px 18px; font-size: 15px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links a:hover { background: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 650; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 14px 6px 10px; border-radius: 999px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.hero h1 { font-size: clamp(48px, 8.4vw, 104px); margin: 22px 0 24px; letter-spacing: -0.05em; line-height: .95; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* status card (decorative) */
.status {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 22px; box-shadow: 0 30px 60px -30px rgba(20, 24, 40, .25);
  transform: rotate(1.2deg);
}
.status-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.status-head strong { font-size: 15px; }
.status-head span { font-size: 13px; color: var(--ink-3); }
.status-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.status-row .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.status-row .ico svg { width: 18px; height: 18px; }
.status-row .label { flex: 1; min-width: 0; }
.status-row .label small { display: block; color: var(--ink-3); font-size: 13px; }
.pill { font-size: 12.5px; font-weight: 700; color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.uptime { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; margin-top: 14px; }
.uptime i { height: 26px; border-radius: 3px; background: color-mix(in srgb, var(--ok) 75%, transparent); }
.uptime i:nth-child(9) { background: color-mix(in srgb, var(--ok) 40%, transparent); }
.uptime-cap { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 8px; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .status { transform: none; max-width: 480px; }
}

/* ---------- Facts strip ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 28px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font-size: 26px; letter-spacing: -0.03em; font-weight: 800; line-height: 1.1; }
.fact span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 820px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact, .fact:first-child { padding: 18px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.kicker { font-size: 14px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 14px; display: block; }
.sec-head h2 { font-size: clamp(36px, 5vw, 60px); }
.sec-head p { color: var(--ink-2); font-size: 18px; max-width: 30em; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; gap: 16px; } }

/* problem → solution cards */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.problem {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column;
}
.problem .num { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.problem h3 { font-size: 28px; margin: 16px 0 12px; }
.problem > p { color: var(--ink-2); }
.problem ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.problem li { display: flex; gap: 10px; font-size: 15.5px; }
.problem li svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }
.problem li b { font-weight: 650; }
@media (max-width: 960px) { .problems { grid-template-columns: 1fr; } }

/* services */
.services-bg { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--surface); padding: 34px 30px; transition: background .2s ease; }
.service:hover { background: var(--paper); }
.service .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--paper); display: grid; place-items: center; margin-bottom: 26px; }
.service .icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 23px; letter-spacing: -0.02em; margin-bottom: 10px; }
.service p { color: var(--ink-2); font-size: 15.5px; }
.service .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.service .tags span { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } .service { padding: 28px 22px; } }

/* paperless feature */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature h2 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 20px; }
.feature .body > p { color: var(--ink-2); font-size: 18px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.feature-item b { display: block; font-size: 17px; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature-item span { color: var(--ink-2); font-size: 15px; line-height: 1.5; display: block; }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .feature-list { grid-template-columns: 1fr; } }

/* philosophy (dark) */
.dark { background: var(--dark); color: var(--dark-text); }
.dark .kicker { color: #8ea4ff; }
.philo { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.philo blockquote { margin: 0; font-size: clamp(40px, 6vw, 76px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.philo blockquote em { color: #8ea4ff; font-style: italic; }
.philo .text { display: grid; gap: 18px; color: var(--dark-muted); font-size: 18px; padding-top: 8px; }
.philo .text strong { color: var(--dark-text); font-weight: 650; }
.signature { display: flex; align-items: center; gap: 14px; margin-top: 10px; color: var(--dark-text); }
.signature .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--dark-2); border: 1px solid var(--dark-line); object-fit: cover; }
.signature small { display: block; color: var(--dark-muted); font-size: 14px; }
.philo .portrait { margin: clamp(28px, 4vw, 44px) 0 0; max-width: 380px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; border: 1px solid var(--dark-line); background: var(--dark-2); }
.philo .portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .philo { grid-template-columns: 1fr; } .philo .portrait { max-width: 320px; } }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 22px; }
.step::before { counter-increment: step; content: "0" counter(step); font-size: 14px; font-weight: 750; color: var(--accent); }
.step h3 { font-size: 22px; letter-spacing: -0.02em; margin: 10px 0 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* expertise */
.stack { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 16px; font-weight: 700; font-size: 17px; text-align: center; letter-spacing: -0.01em; }
.also { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.also div { border: 1px dashed var(--line); border-radius: 14px; padding: 18px; font-size: 15px; color: var(--ink-2); }
.also b { display: block; color: var(--ink); font-size: 16px; }
@media (max-width: 900px) { .stack { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stack { grid-template-columns: 1fr 1fr; } }

/* remote support */
.remote { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.remote h2 { font-size: clamp(34px, 4.5vw, 50px); margin-bottom: 16px; }
.remote .body p { color: var(--ink-2); }
.remote ol { margin: 20px 0 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }
.downloads { display: grid; gap: 10px; }
.dl {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper);
  transition: border-color .15s ease, transform .15s ease;
}
.dl:hover { border-color: var(--accent); transform: translateX(3px); }
.dl .os { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.dl .os svg { width: 22px; height: 22px; }
.dl .meta { flex: 1; min-width: 0; }
.dl .meta b { display: block; font-size: 16.5px; }
.dl .meta small { color: var(--ink-3); font-size: 13.5px; }
.dl .arrow { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.dl.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dl.primary small, .dl.primary .arrow { color: inherit; opacity: .8; }
.dl.primary .os { background: rgba(255,255,255,.18); border-color: transparent; }
.dl-more { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 900px) { .remote { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .dl-more { grid-template-columns: 1fr; } }

/* contact */
.contact { padding-bottom: clamp(56px, 8vw, 96px); }
.contact h2 { font-size: clamp(44px, 8vw, 104px); letter-spacing: -0.05em; line-height: .95; max-width: 11em; }
.contact h2 em { color: #8ea4ff; font-style: italic; }
.contact .lead { color: var(--dark-muted); font-size: 19px; max-width: 34em; margin-top: 24px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 52px; }
.contact-card { display: block; text-decoration: none; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 18px; padding: 26px; transition: border-color .15s ease; }
a.contact-card:hover { border-color: #8ea4ff; }
.contact-card small { display: block; color: var(--dark-muted); font-size: 14px; margin-bottom: 8px; }
.contact-card b { font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -0.02em; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--dark); color: var(--dark-muted); border-top: 1px solid var(--dark-line); padding: 28px 0; font-size: 14.5px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--dark-text); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .dl { transition: none; }
}
@media (max-width: 820px) { .fact b { font-size: clamp(19px, 5vw, 26px); } }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(40px, 7vw, 72px); letter-spacing: -0.045em; margin: 10px 0 40px; }
.legal h2 { font-size: 24px; letter-spacing: -0.02em; margin: 44px 0 12px; }
.legal h3 { font-size: 18px; letter-spacing: -0.01em; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; margin: 12px 0 0; }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 650; }
.legal .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.legal .card p { color: var(--ink); }
.legal .stand { margin-top: 48px; font-size: 14px; color: var(--ink-3); }
.nav-back { padding: 10px 16px; font-size: 15px; }
.legal ul + p { margin-top: 14px; }

/* wide service card (individuelle Software) */
.service.wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; color: inherit; text-decoration: none; }
.service.wide .icon { margin-bottom: 0; background: var(--accent); color: var(--accent-ink); }
.service.wide p { max-width: 62ch; }
.service.wide .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.service.wide .more svg { width: 18px; height: 18px; transition: transform .2s ease; }
.service.wide:hover .more svg { transform: translateX(4px); }
@media (max-width: 760px) { .service.wide { grid-template-columns: 1fr; gap: 0; } .service.wide .icon { margin-bottom: 26px; } .service.wide .more { margin-top: 18px; } }

/* feature section, mirrored */
.feature.flip .body { order: 2; }
@media (max-width: 960px) { .feature.flip .body { order: 0; } }

/* hero status card links to the live demo */
a.status { display: block; color: inherit; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
a.status:hover { transform: rotate(0deg) translateY(-3px); border-color: var(--accent); box-shadow: 0 36px 70px -30px rgba(20, 24, 40, .35); }
.status-head .status-demo { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; }
.status-demo svg { width: 15px; height: 15px; transition: transform .2s ease; }
a.status:hover .status-demo svg { transform: translateX(3px); }
@media (max-width: 920px) { a.status:hover { transform: translateY(-3px); } }
