/* Shared subpage stylesheet */
:root {
  --bg: oklch(0.97 0.005 80);
  --fg: oklch(0.18 0.01 60);
  --muted: oklch(0.55 0.01 60);
  --line: oklch(0.88 0.005 80);
  --surface: oklch(0.94 0.005 80);
  --brand: #1586D9;
  --accent: var(--brand);
  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: oklch(0.16 0.008 60);
    --fg: oklch(0.96 0.005 80);
    --muted: oklch(0.62 0.01 60);
    --line: oklch(0.26 0.008 60);
    --surface: oklch(0.21 0.008 60);
    --brand: #4FB0F5;
  }
}
html[data-theme="dark"] {
  --bg: oklch(0.16 0.008 60);
  --fg: oklch(0.96 0.005 80);
  --muted: oklch(0.62 0.01 60);
  --line: oklch(0.26 0.008 60);
  --surface: oklch(0.21 0.008 60);
  --brand: #4FB0F5;
}

/* Per-division accent */
body[data-division="cloud"] { --accent: oklch(0.62 0.22 240); }
body[data-division="media"] { --accent: oklch(0.68 0.24 40); }
body[data-division="tools"] { --accent: oklch(0.58 0.28 305); }
html[data-theme="dark"] body[data-division="cloud"] { --accent: oklch(0.78 0.22 240); }
html[data-theme="dark"] body[data-division="media"] { --accent: oklch(0.78 0.22 50); }
html[data-theme="dark"] body[data-division="tools"] { --accent: oklch(0.74 0.26 305); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) body[data-division="cloud"] { --accent: oklch(0.78 0.22 240); }
  html:not([data-theme]) body[data-division="media"] { --accent: oklch(0.78 0.22 50); }
  html:not([data-theme]) body[data-division="tools"] { --accent: oklch(0.74 0.26 305); }
}

/* Lang + theme controls */
.lang-toggle { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 999px; margin-left: 8px; gap: 0; }
.lang-toggle button { padding: 5px 10px; font-size: 12px; font-weight: 600; font-family: var(--font-mono); border-radius: 999px; color: var(--muted); transition: background 150ms, color 150ms; }
.lang-toggle button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.theme-toggle { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; margin-left: 6px; transition: background 150ms; }
.theme-toggle:hover { background: var(--surface); }
@media (max-width: 760px) {
  .lang-toggle, .theme-toggle { display: inline-grid; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased; line-height: 1.55;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: 12px 16px; background: #000; color: #fff; font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; outline: 2px solid var(--accent); }

/* Header — bewusst NICHT per-division eingefärbt, soll auf allen Seiten identisch wirken */
.sub-header { --accent: var(--brand); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: color-mix(in oklch, var(--bg) 88%, transparent); backdrop-filter: blur(12px); z-index: 50; }
/* 3-zone grid wie auf der Hauptseite: Logo links · Nav mittig · Actions rechts */
.header-wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.logo-link { display: inline-flex; align-items: center; height: 32px; color: var(--fg); justify-self: start; }
.logo { height: 32px; width: auto; display: block; }
.sub-nav { display: flex; align-items: center; gap: 4px; justify-self: center; }
.sub-nav a { padding: 8px 14px; font-size: 14px; font-weight: 500; border-radius: 999px; transition: background 150ms, color 150ms; }
.sub-nav a:hover { background: var(--surface); }
.sub-nav a.active { color: var(--accent); }
.sub-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
/* Mobile menu toggle (hamburger) — hidden on desktop, shown < 880px.
   Previously the nav was simply display:none on mobile with no alternative,
   leaving phone/keyboard users unable to navigate between sections. */
.menu-toggle { display: none; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 999px; margin-left: 6px; font-size: 18px; line-height: 1; }
.menu-toggle:hover { background: var(--surface); }

@media (max-width: 880px) {
  .header-wrap { grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-grid; }
  .sub-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    gap: 2px; padding: 8px 20px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .sub-header.nav-open .sub-nav { display: flex; }
  .sub-nav a { padding: 14px 10px; font-size: 16px; border-radius: 8px; }
  .sub-nav a:hover { background: var(--surface); }
}

/* Hero */
.hero { padding: 120px 0 80px; position: relative; overflow: hidden; }
.kicker { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 24px; }
.hero h1 { font-size: clamp(48px, 9vw, 140px); margin-bottom: 32px; }
.hero .lead { font-size: clamp(17px, 1.5vw, 22px); color: var(--muted); max-width: 680px; }
.big-mark { position: absolute; right: -40px; top: 80px; font-size: clamp(220px, 32vw, 480px); line-height: 1; color: var(--accent); opacity: 0.10; pointer-events: none; font-family: var(--font-display); font-weight: 700; }

/* Services */
.services { padding: 80px 0; border-top: 1px solid var(--line); background: var(--surface); }
.services .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.services article { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); position: relative; transition: transform 200ms, border-color 200ms; }
.services article:hover { transform: translateY(-3px); border-color: var(--accent); }
.services .num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-bottom: 12px; display: block; font-weight: 600; }
.services h2 { font-size: 26px; margin-bottom: 12px; }
.services article > p { color: var(--muted); margin-bottom: 16px; font-size: 15px; }
.services ul li { padding: 6px 0 6px 18px; position: relative; font-size: 14px; color: var(--muted); }
.services ul li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 1px; background: var(--accent); }
@media (max-width: 760px) { .services .grid { grid-template-columns: 1fr; } }

/* Process */
.process { padding: 100px 0; border-top: 1px solid var(--line); }
.process h2 { font-size: clamp(36px, 4vw, 56px); margin-bottom: 48px; max-width: 800px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { padding: 28px; border-top: 2px solid var(--accent); background: var(--surface); border-radius: 0 0 12px 12px; }
.steps li span { font-family: var(--font-mono); font-size: 12px; color: var(--accent); display: block; margin-bottom: 12px; font-weight: 600; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { font-size: 14px; color: var(--muted); }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* CTA band — accessible contrast.
   The band uses a darkened, THEME-INDEPENDENT accent so white text/button stay
   above WCAG AA (4.5:1) in both light and dark mode and across all divisions
   (the live accents get lighter in dark mode, which made white text fail). */
:root { --cta-accent: #1586D9; }
body[data-division="cloud"]   { --cta-accent: oklch(0.62 0.22 240); }
body[data-division="media"]   { --cta-accent: oklch(0.68 0.24 40); }
body[data-division="tools"]   { --cta-accent: oklch(0.58 0.28 305); }
body[data-division="partner"] { --cta-accent: oklch(0.62 0.22 240); }
body[data-division="contact"] { --cta-accent: oklch(0.62 0.22 240); }

.cta-band { padding: 96px 0; background: color-mix(in oklch, var(--cta-accent) 70%, black); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 16px; }
.cta-band p { font-size: 18px; color: rgba(255,255,255,0.95); margin-bottom: 32px; }
.cta-band .btn { display: inline-block; padding: 18px 32px; background: #fff; color: color-mix(in oklch, var(--cta-accent) 70%, black); border-radius: 999px; font-weight: 600; font-size: 16px; transition: transform 150ms; }
.cta-band .btn:hover { transform: translateY(-2px); }

/* Footer */
.sub-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 13px; }
.sub-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.sub-footer nav { display: flex; gap: 20px; }
.sub-footer nav a:hover { color: var(--accent); }

/* Contact page — emphasised link inside services cards */
.contact-line { display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 16px; font-weight: 600; color: var(--fg); border-bottom: 1px solid var(--accent); padding-bottom: 2px; transition: color 150ms; word-break: break-word; }
.contact-line:hover { color: var(--accent); }
.contact-line.muted { color: var(--muted); border-bottom-color: var(--line); }
.contact-line.muted:hover { color: var(--muted); }

/* Booking form */
.booking { padding: 96px 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), color-mix(in oklch, var(--surface) 78%, var(--bg))); }
.booking-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.booking-copy { position: sticky; top: 108px; align-self: start; max-width: 560px; }
.booking-copy h2 { font-size: clamp(34px, 4vw, 56px); margin-bottom: 16px; }
.booking-copy > p { color: var(--muted); font-size: 17px; line-height: 1.6; margin-bottom: 24px; }
.booking-points { display: grid; gap: 12px; }
.booking-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; line-height: 1.45; }
.booking-points li::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 999px; background: var(--accent); flex: 0 0 auto; }
.booking-points a { color: var(--fg); border-bottom: 1px solid var(--accent); }
.booking-form { padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); box-shadow: 0 20px 60px color-mix(in oklch, var(--fg) 8%, transparent); }
.booking-field { display: grid; gap: 8px; margin-bottom: 18px; }
.booking-field span { font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.booking-field input,
.booking-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--fg); padding: 14px 16px; font: inherit; transition: border-color 150ms, box-shadow 150ms, background 150ms; }
.booking-field input::placeholder,
.booking-field textarea::placeholder { color: var(--muted); }
.booking-field input:focus,
.booking-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 20%, transparent); }
.booking-field textarea { min-height: 150px; resize: vertical; }
.booking-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.booking-turnstile { margin: 6px 0 16px; min-height: 65px; display: flex; justify-content: flex-start; align-items: center; overflow: hidden; }
.booking-status { min-height: 22px; margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.booking-status[data-state="success"] { color: var(--accent); }
.booking-status[data-state="error"], .booking-status[data-state="config"] { color: oklch(0.62 0.2 28); }
.booking-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.booking-submit { display: inline-flex; align-items: center; justify-content: center; padding: 16px 24px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; transition: transform 150ms, opacity 150ms; }
.booking-submit:hover { transform: translateY(-1px); }
.booking-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.booking-hint { font-size: 13px; color: var(--muted); line-height: 1.4; }
.booking-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr; }
  .booking-copy { position: static; }
}
@media (max-width: 640px) {
  .booking-form { padding: 22px; border-radius: 20px; }
  .booking-row { grid-template-columns: 1fr; }
}

/* Partner page — featured partner hero card */
.featured-partner { padding: 64px 0; border-top: 1px solid var(--line); }
.featured-card { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.featured-visual { aspect-ratio: 4 / 3; border-radius: 16px; background: repeating-linear-gradient(45deg, var(--line), var(--line) 1px, transparent 1px, transparent 14px), color-mix(in oklch, var(--brand) 18%, var(--bg)); display: grid; place-items: center; gap: 8px; }
.featured-letter { font-family: var(--font-display); font-size: 72px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--fg); }
.featured-placeholder { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.featured-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 16px; }
.featured-body h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; margin-bottom: 16px; letter-spacing: -0.02em; }
.featured-body > p { color: var(--muted); font-size: 17px; line-height: 1.55; margin-bottom: 24px; max-width: 540px; }
.featured-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.featured-chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
@media (max-width: 880px) { .featured-card { grid-template-columns: 1fr; padding: 24px; gap: 24px; } }

/* Partner page — stack grid uses 3 columns on desktop, .num becomes category label */
body[data-division="partner"] .services .grid { grid-template-columns: repeat(3, 1fr); }
body[data-division="partner"] .services .num { font-size: 11px; letter-spacing: 0.12em; color: var(--brand); }
body[data-division="partner"] .services ul li em { font-style: normal; color: var(--brand); font-size: 11px; margin-left: 4px; }
@media (max-width: 980px) { body[data-division="partner"] .services .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { body[data-division="partner"] .services .grid { grid-template-columns: 1fr; } }

/* Partner page — process section gets an intro lead */
body[data-division="partner"] .process .lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 720px; margin-bottom: 48px; margin-top: -24px; }

/* Reviews / Kundenstimmen */
.reviews { padding: 100px 0; border-top: 1px solid var(--line); background: var(--surface); }
.reviews .kicker { margin-bottom: 16px; }
.reviews h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 48px; max-width: 820px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { display: flex; flex-direction: column; gap: 20px; padding: 32px; border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 0 0 16px 16px; background: var(--bg); transition: transform 200ms, border-color 200ms; }
.review:hover { transform: translateY(-3px); }
.review p { font-size: 17px; line-height: 1.5; color: var(--fg); text-wrap: pretty; }
.review cite { font-style: normal; font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: auto; }
@media (max-width: 880px) { .reviews-grid { grid-template-columns: 1fr; } }
