/* aegerter.it – gemeinsames Stylesheet. Schrift lokal, keine Cookies, kein Tracking, nichts geht an Dritte.
   Farben aus dem Logo: Navy #0E1B2B, Verlauf Royalblau #1B5CC2 → Cyan #1E96C8 → Türkis #2BCFCB. */
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url("/fonts/onest-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url("/fonts/onest-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #0E1B2B;
  --navy-2: #16273d;
  --navy-line: #24384f;
  --teal: #2BCFCB;
  --cyan: #1E96C8;
  --royal: #1B5CC2;
  --gradient: linear-gradient(100deg, #1B5CC2 0%, #1E96C8 40%, #2BCFCB 100%);

  --bg: #f5f8fb;
  --surface: #ffffff;
  --ink: #0E1B2B;
  --muted: #52627a;
  --line: #dde4ec;
  --link: #1754b5;
  --link-hover: #0e7f8a;
  --tint: #e8f7f7;
  --good: #1f845a;
  --bad: #c9372c;
  --mark: #fff1a8;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1522;
    --surface: #122236;
    --ink: #e8eef5;
    --muted: #9fb0c4;
    --line: #22364d;
    --link: #6fd9d5;
    --link-hover: #a8ecea;
    --tint: #10303a;
    --good: #4cc38a;
    --bad: #f0786e;
    --mark: #5a4a00;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--navy); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Kopf: Navy wie das Logo */
header.site { background: var(--navy); color: #fff; border-bottom: 1px solid var(--navy-line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 44px; height: 32px; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.brand small { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-top: 3px; }
.bar { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
nav.top { display: flex; gap: 4px 20px; flex-wrap: wrap; font-size: 15px; }
nav.top a { color: #c4d2e2; text-decoration: none; }
nav.top a:hover { color: #fff; }
nav.lang { display: flex; border: 1px solid var(--navy-line); border-radius: 999px; padding: 2px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
nav.lang > * { padding: 3px 10px; border-radius: 999px; text-decoration: none; }
nav.lang span { background: var(--teal); color: var(--navy); }
nav.lang a { color: #c4d2e2; }
nav.lang a:hover { color: #fff; }

main { padding: 48px 0 72px; }
.has-hero main { padding-top: 0; }
h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.025em; font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 44px 0 12px; letter-spacing: -0.02em; font-weight: 800; }
h3 { font-size: 19px; margin: 26px 0 6px; font-weight: 700; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; max-width: 46em; }
.small { font-size: 14px; color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin: 0 0 6px; }

/* Startseite: Bühne */
.hero { background: var(--navy); color: #fff; padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gradient); }
.hero .wrap { position: relative; }
.hero .mark { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 340px; opacity: .95; pointer-events: none; }
.hero h1, .hero .lead { max-width: 15em; }
.hero .lead { max-width: 34em; }
@media (max-width: 900px) { .hero .mark { position: static; transform: none; width: 120px; margin-bottom: 24px; display: block; } }

.hero .lead { color: #c4d2e2; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.button {
  display: inline-block; padding: 12px 20px; border-radius: 12px; font-weight: 700; text-decoration: none;
  background: var(--teal); color: var(--navy); border: 1px solid transparent;
}
.button:hover { background: #5fe0dc; color: var(--navy); }
.button.ghost { background: transparent; color: #fff; border-color: #3a5370; }
.button.ghost:hover { border-color: var(--teal); color: #fff; }

section.block { padding: 64px 0 8px; }
section.block > .wrap > h2:first-of-type { margin-top: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.service .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gradient); display: grid; place-items: center; margin-bottom: 14px; }
.service .icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ref { display: flex; flex-direction: column; }
.ref .kind { font-size: 13px; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
.ref .link { margin-top: auto; padding-top: 12px; font-weight: 600; }

.project { display: flex; flex-direction: column; position: relative; overflow: hidden; }
.project::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gradient); }
.project .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; padding: 0; list-style: none; }
.project .tags li { font-size: 12.5px; background: var(--tint); color: var(--ink); border-radius: 999px; padding: 2px 10px; }
.project .link { margin-top: auto; padding-top: 12px; font-weight: 600; }

.about { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; }
.about .portrait { width: 180px; height: 180px; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; color: #fff; font-size: 56px; font-weight: 800; letter-spacing: -0.02em; overflow: hidden; }
.about .portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; } .about .portrait { width: 140px; height: 140px; font-size: 44px; } }

.contact { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px; display: flex; gap: 20px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--gradient); }
.contact h2 { margin: 0 0 6px; }
.contact p { margin: 0; color: #c4d2e2; }

table { border-collapse: collapse; width: 100%; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 14px; color: var(--muted); font-weight: 600; }
.yes { color: var(--good); font-weight: 600; }
.no { color: var(--bad); font-weight: 600; }
code { font-size: .92em; }

/* Platzhalter, die vor dem Start ersetzt werden müssen (siehe README). */
.todo { background: var(--mark); padding: 0 4px; border-radius: 4px; }

footer.site { background: var(--navy); color: #9fb0c4; font-size: 14px; padding: 36px 0 44px; }
footer.site .wrap { display: flex; gap: 24px 48px; flex-wrap: wrap; justify-content: space-between; }
footer.site .foot-brand { display: flex; align-items: center; gap: 10px; align-self: flex-start; }
footer.site nav { display: flex; flex-direction: column; gap: 4px; }
footer.site nav span { color: #fff; font-weight: 700; margin-bottom: 2px; }
footer.site a { color: #9fb0c4; text-decoration: none; }
footer.site a:hover { color: var(--teal); }

/* Schmale Bildschirme: Marke und Sprache in einer Zeile, Menü darunter waagerecht scrollbar */
@media (max-width: 760px) {
  header.site .wrap { gap: 10px 16px; }
  .bar { display: contents; }
  nav.lang { order: 2; margin-left: auto; font-size: 12px; }
  nav.lang > * { padding: 3px 8px; }
  .brand { gap: 10px; }
  .brand img { width: 36px; height: 26px; }
  .brand strong { font-size: 19px; }
  .brand small { font-size: 9.5px; letter-spacing: .08em; }
  nav.top { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding-bottom: 2px; scrollbar-width: none; }
  nav.top a { white-space: nowrap; }
  table { display: block; overflow-x: auto; }
  .hero { padding: 36px 0 52px; }
}
.soon { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--tint); color: var(--ink); font-weight: 600; font-size: 15px; }

/* Fixierter Kopf */
header.site { position: sticky; top: 0; z-index: 20; }
html { scroll-padding-top: 88px; }
@media (max-width: 760px) { html { scroll-padding-top: 112px; } }

/* Referenzkarten mit Bild */
.ref { overflow: hidden; }
.ref .shot { margin: -24px -26px 18px; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--line); }
.ref .shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ref .shot.art { background: var(--navy); display: grid; place-items: center; position: relative; }
.ref .shot.art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gradient); }
.ref .shot.art svg { width: 64px; height: 64px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Projektkarten mit App-Icon */
.project .head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.project .head h3 { margin: 0; }
.project .app-icon { width: 52px; height: 52px; border-radius: 13px; flex: none; box-shadow: 0 2px 8px rgba(14, 27, 43, .18); }
