/* actualwork.de - no tracking; IBM Plex (SIL OFL, see assets/fonts/OFL.txt) is self-hosted */

@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2"); font-weight: 100 499; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2"); font-weight: 500 650; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/IBMPlexSans-Bold-Latin1.woff2") format("woff2"); font-weight: 651 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2"); font-weight: 100 499; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/IBMPlexMono-SemiBold-Latin1.woff2") format("woff2"); font-weight: 500 900; font-style: normal; font-display: swap; }

:root {
  /* Warm paper and ink, one accent (the teal of the logo bar) */
  --bg: #f6f4ef;
  --bg-alt: #eeebe4;
  --surface: #fbfaf7;
  --text: #1c1b19;
  --muted: #5e5b55;
  --border: #dfdbd2;
  --accent: #3d6d96;
  --accent-strong: #2f5778;
  --on-accent: #ffffff;
  --code-bg: #1c1b19;
  --code-text: #e9e6df;
  --logo-bar: #3d6d96;
  --terminal-border: rgb(255 255 255 / .06);
  --radius: 8px;
  --max: 1120px;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light;
}

/* Dark theme: follows the system unless the visitor picked light via the toggle (data-theme set by theme.js) */
/* The two dark blocks below must stay identical: one for the system setting, one for the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141412;
    --bg-alt: #1a1a17;
    --surface: #1d1d1a;
    --text: #ebe8e1;
    --muted: #a39f96;
    --border: #2f2e2a;
    --accent: #8fb4d6;
    --accent-strong: #aecbe4;
    --on-accent: #16222d;
    --code-bg: #0d0d0c;
    --logo-bar: #8fb4d6;
    --terminal-border: #3a3935;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141412;
  --bg-alt: #1a1a17;
  --surface: #1d1d1a;
  --text: #ebe8e1;
  --muted: #a39f96;
  --border: #2f2e2a;
  --accent: #8fb4d6;
  --accent-strong: #aecbe4;
  --on-accent: #16222d;
  --code-bg: #0d0d0c;
  --logo-bar: #8fb4d6;
  --terminal-border: #3a3935;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--text); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[tabindex="-1"]:focus { outline: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
/* Long German compounds ("Datenschutzerklärung") must not overflow narrow phones */
h1 { overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--text); color: var(--bg);
  padding: .5rem 1rem; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; gap: 1rem; }

.brand { display: flex; align-items: center; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
/* Wordmark is outlined SVG: text follows currentColor, the bar under "work" follows --logo-bar */
.brand .logo { height: 2rem; width: auto; display: block; }
.logo-bar { fill: var(--logo-bar); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.25rem; border-radius: 6px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; transition: background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.nav .btn { color: var(--on-accent); padding: .55rem 1rem; font-size: .95rem; }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }

/* Theme toggle: shows the moon in light mode, the sun in dark mode */
.theme-toggle {
  display: grid; place-items: center; cursor: pointer; padding: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 6px;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  transition: color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--muted); }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* Mobile menu */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 6px;
  border: 1px solid var(--border); background: transparent; color: var(--text);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 1.3rem; height: 1.3rem; }
.menu .icon-close { display: none; }
.menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }
.menu nav {
  position: absolute; right: 0; top: calc(100% + .6rem); width: min(80vw, 18rem);
  display: flex; flex-direction: column; padding: .5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 24px -16px rgb(0 0 0 / .25);
}
.menu nav a { padding: .8rem 1rem; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; }
.menu nav a:hover { background: var(--bg-alt); }
.menu nav .btn { justify-content: center; margin-top: .4rem; color: var(--on-accent); }

/* Below 960px the header switches to the menu; the booking button needs room */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; }
}


/* Sections */
section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--accent-strong); margin-bottom: 1rem;
}
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head p { color: var(--muted); font-size: 1.125rem; }

/* Hero */
.hero { padding-top: clamp(3.5rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: center; }
/* Same foundation bar as under "work" in the logo */
.underbar {
  text-decoration: underline; text-decoration-color: var(--logo-bar);
  text-decoration-thickness: .09em; text-underline-offset: .16em; text-decoration-skip-ink: none;
}
.tagline { font-family: var(--mono); font-size: clamp(.95rem, 1.6vw, 1.1rem); color: var(--muted); margin: -.25rem 0 1.5rem; }
.tagline .slashes { color: var(--accent); opacity: .7; }
.nowrap { white-space: nowrap; }
.tagline strong { color: var(--accent-strong); font-weight: 700; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
/* Founder line under the hero CTAs: who is behind actualwork, at a glance */
.founder { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1.75rem; color: var(--muted); text-decoration: none; font-size: .95rem; line-height: 1.4; }
.founder:hover { color: var(--text); }
.founder img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--code-bg); }
.founder strong { color: var(--text); font-weight: 600; }

.terminal {
  background: var(--code-bg); color: var(--code-text); border-radius: var(--radius);
  font-family: var(--mono); font-size: .9rem; line-height: 1.9;
  border: 1px solid var(--terminal-border);
  overflow: hidden;
}
.terminal-bar { display: flex; gap: .4rem; padding: .8rem 1rem; border-bottom: 1px solid rgb(255 255 255 / .08); }
.terminal-bar i { width: .65rem; height: .65rem; border-radius: 50%; background: #3a3935; }
.terminal pre { margin: 0; padding: 1.1rem 1.3rem 1.4rem; white-space: pre-wrap; }
.t-prompt { color: #8c887f; }
.t-ok { color: #8fb4d6; }
.t-dim { color: #8c887f; }
.t-acc { color: #aecbe4; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Cards */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem;
}
.card p { color: var(--muted); margin-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; padding: 0; list-style: none; }
.tags li {
  font-family: var(--mono); font-size: .75rem; padding: .2rem .55rem; border-radius: 4px;
  background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border);
}

/* Testimonials */
.section-tight { padding-top: 0; }
/* Subgrid: quote and caption rows are shared across cards, so the caption dividers line up */
.testimonial {
  margin: 0; position: relative; display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 3.6rem 1.75rem 1.5rem;
}
.testimonial::before {
  content: "\201C"; position: absolute; top: 1.1rem; left: 1.6rem;
  font-family: var(--font); font-weight: 700; font-size: 3rem; line-height: 1;
  color: var(--accent);
}
.testimonial blockquote { margin: 0 0 1.5rem; }
.testimonial blockquote p { margin: 0 0 .8em; font-size: 1.05rem; }
.testimonial blockquote p:last-child { margin-bottom: 0; }
.testimonial .fn { color: var(--accent-strong); font-weight: 700; margin-left: .05em; }
.testimonial figcaption { padding-top: 1rem; border-top: 1px solid var(--border); }
.testimonial figcaption strong { display: block; }
.testimonial figcaption > span { display: block; color: var(--muted); font-size: .92rem; }
.testimonial figcaption small { display: block; color: var(--muted); font-size: .8rem; margin-top: .4rem; font-style: italic; }

/* Plain items (Zusammenarbeit): rule on top, no card */
.plain-grid { column-gap: 2.5rem; row-gap: 2.25rem; }
.plain-item { border-top: 2px solid var(--border); padding-top: 1.25rem; }
.plain-item p { color: var(--muted); margin: 0; }

/* Steps */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 2px solid var(--accent); padding-top: 1.25rem; }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--mono); font-weight: 700; color: var(--accent-strong); margin-bottom: .5rem;
}
.steps p { color: var(--muted); margin: 0; }

/* Cloud & On-Premises statement band (dark in both themes) */
.section-dark {
  --surface: rgb(255 255 255 / .03);
  --border: rgb(255 255 255 / .09);
  --bg-alt: rgb(255 255 255 / .04);
  --text: #ebe8e1;
  --muted: #a39f96;
  --accent: #8fb4d6;
  --accent-strong: #aecbe4;
  background: #1c1b19; color: var(--text);
  border-block: 1px solid var(--border);
}
.quote { margin: 0 0 1.5rem; }
.quote p {
  margin: 0; font-family: var(--mono); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem); color: var(--text);
}
.quote span { color: var(--accent); }
.quote-lead { max-width: 48rem; color: var(--muted); font-size: 1.125rem; margin-bottom: 3rem; }

/* Projects */
.project { display: flex; flex-direction: column; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.project .live {
  display: inline-flex; align-items: center; gap: .35rem; font-weight: 700;
}
.project .live::before {
  content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent);
}
.project .meta { font-family: var(--mono); font-size: .8rem; color: var(--accent-strong); margin-bottom: .6rem; }
.project h3 { font-size: 1.3rem; margin-bottom: .8rem; }
.project ul.points { margin: 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.55; }
.project ul.points li { margin-bottom: .35rem; }
.project .tags { margin-top: auto; padding-top: 1.1rem; }

/* About */
.about-grid {
  display: grid; grid-template-columns: 320px 1fr; column-gap: 3.5rem;
  grid-template-areas: "portrait head" "portrait body";
}
.about-head { grid-area: head; align-self: end; }
.about-body { grid-area: body; }
.portrait { grid-area: portrait; margin: 0; align-self: center; }
.portrait img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
  background: var(--code-bg);
}
.portrait figcaption { margin-top: 1rem; }
.portrait figcaption strong { display: block; font-size: 1.1rem; }
.portrait figcaption span { display: block; color: var(--muted); font-size: .95rem; }
.principles {
  list-style: none; padding: 0; margin: 3rem 0 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.principles li { border-top: 2px solid var(--border); padding-top: 1rem; }
.principles strong { display: block; margin-bottom: .2rem; }
.principles span { color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) {
  /* Heading first, then a compact portrait row, then the text */
  .about-grid { grid-template-columns: 1fr; grid-template-areas: "head" "portrait" "body"; row-gap: 1.5rem; }
  .portrait { display: grid; grid-template-columns: 112px 1fr; gap: 1rem; align-items: center; }
  .portrait figcaption { margin-top: 0; }
}

/* Contact */
.contact-box {
  border-radius: var(--radius); padding: clamp(2rem, 6vw, 4rem);
  background: var(--code-bg); color: #f3f1ec; border: 1px solid var(--border);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
}
.contact-box h2 { color: #f3f1ec; }
.contact-box p { color: #c9c5bc; margin: 0; }
.contact-box .btn { background: #f3f1ec; color: #1c1b19; font-size: 1.05rem; justify-content: center; text-align: center; overflow-wrap: anywhere; }
.contact-box .btn:hover { background: #ffffff; color: #1c1b19; }
/* Both contact buttons stacked with the same width */
.contact-actions { display: flex; flex-direction: column; gap: .6rem; width: 100%; max-width: 20rem; margin-left: auto; }
.contact-box .btn-outline { background: transparent; color: #f3f1ec; border-color: rgb(255 255 255 / .3); }
.contact-box .btn-outline:hover { background: rgb(255 255 255 / .08); color: #fff; }
.contact-box .contact-phone { max-width: 20rem; margin: .8rem 0 0 auto; text-align: center; font-size: .95rem; }
.contact-phone a { color: #f3f1ec; white-space: nowrap; }
@media (max-width: 760px) {
  .contact-box { grid-template-columns: 1fr; padding: 1.5rem; }
  .contact-actions { max-width: none; margin-left: 0; }
  .contact-box .contact-phone { max-width: none; margin-left: 0; }
}

/* Footer */
.site-footer { padding: 2.5rem 0 3rem; color: var(--muted); font-size: .92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Legal pages */
.legal { padding-top: 3.5rem; }
.legal .container { max-width: 46rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.5rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.legal address { font-style: normal; }
.legal code { font-family: var(--mono); font-size: .88em; background: var(--bg-alt); border: 1px solid var(--border); padding: .05em .35em; border-radius: 5px; }

/* Cookie, the office dog */
.cookie { display: flex; align-items: center; gap: .9rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .95rem; }
.cookie img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--code-bg); }

/* 404 */
.not-found .cookie-404 { width: 180px; height: auto; margin: 0 auto 1.5rem; border-radius: var(--radius); }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); max-width: 22ch; margin-inline: auto; }
.not-found .code { font-family: var(--mono); font-size: 3.5rem; font-weight: 600; color: var(--accent); line-height: 1; margin-bottom: 1rem; }

/* Phone overrides. Kept after all base rules on purpose: with equal specificity the later rule wins. */
@media (max-width: 760px) {
  .header-actions { gap: .6rem; }
  .theme-toggle { width: 2.75rem; height: 2.75rem; }
  body { font-size: 1rem; }
  .lead { font-size: 1.1rem; }
  .terminal { font-size: .8rem; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .card { padding: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
