/* Wikki GmbH – Stylesheet (keine externen Abhängigkeiten) */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #14202b;
  --muted: #55636f;
  --line: #dde3e8;
  --brand: #0b5d8f;
  --brand-strong: #084a72;
  /* Wikki red from the logo. --accent for decoration only (bars, highlights); text and buttons use --accent-text,
     which meets the 4.5:1 contrast for small text (#ff0026 on white is only about 4:1). */
  --accent: #ff0026;
  --accent-text: #d4001f;
  --accent-on-dark: #ff3347;
  --hero-bg: #0d1b26;
  --hero-text: #eef4f8;
  --radius: 10px;
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
/* Colour scheme: follows the visitor's system setting (prefers-color-scheme). The switch in the header overrides it
   with data-theme="light" or "dark" on <html>; the choice is stored in localStorage only when the switch is used
   (layouts/partials/head.html, assets/js/main.js, privacy policy section 4). The hero is always dark. */
:root { color-scheme: light; }
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0f171e; --surface: #16212b; --text: #e6edf2; --muted: #9aa9b5;
    --line: #26343f; --brand: #4fa8dc; --brand-strong: #7cc0e8; --hero-bg: #091219;
    --accent-text: var(--accent-on-dark);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f171e; --surface: #16212b; --text: #e6edf2; --muted: #9aa9b5;
    --line: #26343f; --brand: #4fa8dc; --brand-strong: #7cc0e8; --hero-bg: #091219;
    --accent-text: var(--accent-on-dark);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 124px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-strong); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
/* Logo as in the letterhead (reportlayoutGmbH.sty): logo, company name in two lines below at logo width */
.logo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: var(--text); text-decoration: none; }
/* Company name flush left and right with the logo: each line is stretched to the logo width (SVG textLength) */
.logo-sub { display: block; width: 226px; height: auto; overflow: visible; }
.logo-sub text { font-family: inherit; font-size: 16.5px; font-weight: 400; fill: var(--muted); }
.logo img { display: block; height: 56px; width: auto; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--text); font-size: 1.1rem; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 22px; }
/* Light/dark switch: moon in the light scheme, sun in the dark scheme */
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; background: none; border: 1px solid var(--line);
  border-radius: 8px; color: var(--text); cursor: pointer; }
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }
.theme-toggle svg { width: 18px; height: 18px; }
.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; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-text); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero .container { position: relative; padding-top: 110px; padding-bottom: 110px; }
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 14px; }
.hero .eyebrow { color: var(--accent-on-dark); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; margin: 0 0 20px; max-width: 18ch; }
.hero p.lead { font-size: 1.15rem; max-width: 58ch; color: #c3d2dd; margin: 0 0 32px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent-text); color: #fff; }
.btn-primary:hover { background: #b0001a; color: #fff; }
.btn-ghost { border-color: #4b6577; color: var(--hero-text); margin-left: 10px; }
.btn-ghost:hover { border-color: var(--hero-text); color: #fff; }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; line-height: 1.2; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 14px 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.icon svg { width: 24px; height: 24px; }
.tag { display: inline-block; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent-text) 50%, transparent); border-radius: 999px; padding: 2px 10px; }
.card .more { display: inline-block; margin-top: 16px; font-weight: 600; text-decoration: none; }
/* Cards that lead somewhere: the title in the link colour and a link line at the bottom of the card, aligned across a
   row (the grid stretches the cards to equal height, margin-top: auto pushes the line down). Cards without links stay plain. */
.card:has(> .card-links) { display: flex; flex-direction: column; align-items: flex-start; }
.card-links { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 600; }
.card .card-links a { text-decoration: none; }
.card .card-links a:hover { text-decoration: underline; }

/* foam-extend */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.terminal { background: #0d1b26; color: #cfe3f0; border-radius: var(--radius); padding: 22px; font-family: var(--mono); font-size: .88rem;
  overflow-x: auto; border: 1px solid #1f3342; }
.terminal .c { color: #6f8a9c; }
.terminal .p { color: var(--accent); }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 4px;
  background: var(--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 2.6 8l1.1-1.1 2.5 2.5 6.1-6.1 1.1 1.1z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* About: strengths (content/_index.md) */
.strengths { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 8px; }
.strengths > div { border-top: 3px solid var(--brand); padding-top: 14px; }
.strengths strong { display: block; font-size: 1.15rem; margin-bottom: 6px; }
.strengths span { color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* Contact */
.contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
form { display: grid; gap: 14px; }
label { font-weight: 600; font-size: .9rem; }
input, textarea, select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
  color: var(--text); font: inherit; }
textarea { min-height: 130px; resize: vertical; }
.small { font-size: .85rem; color: var(--muted); }
.placeholder { background: color-mix(in srgb, var(--accent) 22%, transparent); padding: 0 4px; border-radius: 3px; }

/* Footer */
.site-footer { background: var(--hero-bg); color: #a9bccb; padding: 48px 0 28px; font-size: .92rem; }
.site-footer a { color: #d6e4ee; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
/* OpenCFD trade mark notice (partials/tm-notice.html): same size as the footer text by decision of 2026-11-10 (see content/legal/CLAUDE.md) */
.tm-notice { border-top: 1px solid var(--line); padding: 28px 0 32px; font-size: .92rem; line-height: 1.6; color: var(--muted); }
.tm-notice p { margin: 0 0 .5em; }
.tm-notice p:last-child { margin-bottom: 0; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid #1f3342; margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Legal pages */
.legal { padding: 64px 0; max-width: 780px; }
.legal h1 { margin-top: 0; }
.legal h2 { margin-top: 2em; font-size: 1.25rem; }

/* Project pages (layouts/projects/single.html) */
.project-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 40px 0 44px; }
.project-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 14px 0 14px; }
.project-head .lead { font-size: 1.1rem; color: var(--muted); max-width: 70ch; margin: 0 0 24px; }
.project-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.project-links .btn-ghost { margin-left: 0; border-color: var(--line); color: var(--brand); }
.project-links .btn-ghost:hover { border-color: var(--brand); color: var(--brand-strong); }
.back { margin: 0 0 18px; font-size: .92rem; }
.back a { text-decoration: none; }
.project-body { max-width: 860px; padding-top: 48px; padding-bottom: 72px; }
.project-body h2 { margin-top: 2em; font-size: 1.4rem; }
.project-body li { margin-bottom: 6px; }
.project-body table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.project-body th, .project-body td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.project-body .back { margin-top: 56px; }
.fig { margin: 32px auto; }
.fig img { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.fig.cover { margin-top: 0; }
.fig.cover img { padding: 0; }
.fig figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.card h3 a.card-title { color: var(--brand); text-decoration: none; }
.card h3 a.card-title:hover { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .grid-2, .split, .contact-box { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 20px; border-top: 1px solid var(--line); }
  .btn-ghost { margin-left: 0; margin-top: 10px; }
}
@media (max-width: 520px) {
  html { scroll-padding-top: 92px; }
  .logo img { height: 40px; }
  .logo-sub { width: 161px; }
  .container { padding: 0 16px; }
  .nav { padding-top: 8px; padding-bottom: 8px; } /* after .container: the nav is also a .container */
  section { padding: 64px 0; }
  .hero .container { padding-top: 72px; padding-bottom: 72px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Award-Hervorhebung */
/* Award card: filled red label instead of the outlined one (white on #d4001f, contrast 5.5:1, in both schemes) */
.card.award .tag { background: #d4001f; border-color: #d4001f; color: #fff; }
/* Highlighted card (products): red edge on the left */
.card.highlight { border-left: 4px solid var(--accent); }
.card.award h3 { font-size: 1.35rem; }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; line-height: 1.2; }
