/* ==========================================================================
   EDService Digital – Geschäftsbereich von ED Service (Inhaber Ercan Duysak)
   Static stylesheet · no framework · no external requests
   Brand family: EDService (see website/main). Mood: inverted / dark / technical.
   ========================================================================== */

/* ---------- Font (self-hosted, SIL OFL – see assets/fonts/OFL-Inter.txt) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-wght.woff2") format("woff2-variations"),
       url("../assets/fonts/inter-latin-wght.woff2") format("woff2");
}

/* ---------- Design tokens */
:root {
  color-scheme: dark;

  /* Brand red – identical to the main site (derived from the canonical logo) */
  --c-red: #b5000f;
  --c-red-deep: #8c000b;
  --c-red-bright: #e1061b;
  --c-red-text: #ff5a64;      /* red for small text on dark (contrast ≥ 6:1) */

  --c-bg: #0f1113;            /* Near Black */
  --c-bg-2: #15181b;          /* Deep Charcoal */
  --c-surface: #1a1d21;       /* Graphite */
  --c-surface-2: #22262a;
  --c-text: #ece9e4;          /* Muted Off White */
  --c-text-2: #c5c8cc;
  --c-muted: #9aa0a6;
  --c-cool: #8fa3b5;          /* very subtle cool grey accent */
  --c-line: rgba(255, 255, 255, 0.10);
  --c-line-strong: rgba(255, 255, 255, 0.18);
  --c-plate: #f2f0ec;         /* light plate behind the (black-lettered) logo */

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;
  --radius: 4px;
  --section-pad: clamp(4.5rem, 9vw, 8.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 1200px) {
  :root { --header-h: 84px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
  background: var(--c-bg);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip (not hidden) keeps position: sticky working */
}

html.nav-open { overflow: hidden; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #f6f4f0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

p { margin: 0; }
p, li, dd { overflow-wrap: break-word; hyphens: auto; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

strong { font-weight: 650; color: #f6f4f0; }

:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--c-red); color: #fff; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--c-plate);
  color: #111;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* ---------- Typography helpers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--c-red-bright);
  flex: none;
}
.eyebrow-num { color: var(--c-red-text); font-variant-numeric: tabular-nums; }

.section-title {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--c-text-2);
  max-width: 38em;
}

/* ---------- Buttons */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--c-text);
  --btn-bd: var(--c-line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 0.9875rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { --btn-bg: var(--c-red); --btn-fg: #fff; --btn-bd: var(--c-red); }
.btn-primary:hover { --btn-bg: var(--c-red-deep); --btn-bd: var(--c-red-deep); }

.btn-ghost { --btn-bd: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { --btn-bg: var(--c-text); --btn-fg: var(--c-bg); --btn-bd: var(--c-text); }

/* ==========================================================================
   Brand lockup: canonical logo on a light plate + HTML/CSS label "Digital"
   (the logo artwork itself is never altered)
   ========================================================================== */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--c-text);
  border-radius: 2px;
  flex: none;
}
.lockup-plate {
  display: block;
  padding: 5px 9px;
  background: var(--c-plate);
  border-radius: 3px;
  line-height: 0;
}
.lockup-plate img { width: auto; height: 34px; }
.lockup-label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.lockup-label::before {
  content: "";
  width: 1px;
  height: 28px;
  background: var(--c-line-strong);
}
@media (min-width: 1200px) {
  .lockup-plate img { height: 40px; }
  .lockup-label { font-size: 1.25rem; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
/* Background + blur on a pseudo layer: a backdrop-filter on the header itself
   would become the containing block of the fixed mobile menu and clip it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(15, 17, 19, 0.9);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header::before { backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); }
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
}
html.nav-open .site-header::before { background: var(--c-bg); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.nav { display: flex; align-items: center; }

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 550;
  color: var(--c-text-2);
  transition: color 0.2s var(--ease);
}
.nav-list a:hover,
.nav-list a[aria-current] { color: #fff; }

.nav-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-text);
  cursor: pointer;
  border-radius: 2px;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 13px;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle-bars { top: 23px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Desktop navigation */
@media (min-width: 1200px) {
  .nav { gap: clamp(1.5rem, 2.2vw, 2.5rem); }
  .nav-list { display: flex; align-items: center; gap: clamp(1.1rem, 1.6vw, 1.75rem); }
  .nav-list a { height: var(--header-h); font-size: 0.9375rem; }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 22px;
    height: 2px;
    background: var(--c-red-bright);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .nav-list a:hover::after,
  .nav-list a[aria-current]::after { transform: scaleX(1); }
  .nav-cta { min-height: 46px; padding: 0.7rem 1.2rem; font-size: 0.9375rem; }
}

/* Mobile navigation (only when JS is available) */
@media (max-width: 1199.98px) {
  .js .nav-toggle { display: inline-block; }

  .js .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem var(--gutter) max(2rem, env(safe-area-inset-bottom));
    background: var(--c-bg);
    border-top: 1px solid var(--c-line);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
  }
  .js .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s;
  }
  .nav-list { display: flex; flex-direction: column; }
  .nav-list li { border-bottom: 1px solid var(--c-line); }
  .nav-list a {
    width: 100%;
    min-height: 60px;
    font-size: clamp(1.25rem, 1rem + 1.6vw, 1.6rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--c-text);
  }
  .nav-list a[aria-current] { color: var(--c-red-text); }
  .nav-cta { width: 100%; }

  /* no-JS fallback */
  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding-block: 0.75rem; }
  html:not(.js) .nav { width: 100%; flex-wrap: wrap; gap: 1rem; }
  html:not(.js) .nav-list { flex-direction: row; flex-wrap: wrap; gap: 0 1.25rem; }
  html:not(.js) .nav-list li { border: 0; }
  html:not(.js) .nav-list a { min-height: 44px; font-size: 1rem; }
  html:not(.js) .nav-cta { width: auto; }
}

/* ==========================================================================
   Media frames (schematic illustrations)
   ========================================================================== */
.media { margin: 0; }
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  background-color: #121417;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  aspect-ratio: 5 / 4;
}
.media--wide .media-frame { aspect-ratio: 8 / 5; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media.is-fallback img { visibility: hidden; }
.media-caption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  color: var(--c-muted);
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
}
.media-caption::before { content: ""; width: 16px; height: 1px; background: currentColor; flex: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--c-line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}
.hero::after {
  /* faint cool glow, no neon */
  content: "";
  position: absolute;
  z-index: -1;
  width: 900px; height: 900px;
  right: -300px; top: -380px;
  background: radial-gradient(circle, rgba(143, 163, 181, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero { isolation: isolate; }

.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }

.hero-title {
  font-size: clamp(1.9rem, 0.6rem + 7vw, 4.6rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.045em;
}
.hero-title > span { display: block; }
.hero-title .muted { color: var(--c-muted); }
.hero-title .dot { color: var(--c-red-bright); }

.hero-lead {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.6;
  color: var(--c-text-2);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(2rem, 4vw, 2.75rem); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line);
  font-size: 0.875rem;
  color: var(--c-muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-meta svg { width: 16px; height: 16px; color: var(--c-red-text); flex: none; }

@media (max-width: 479.98px) {
  .hero-actions .btn { width: 100%; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .hero-title { font-size: clamp(3rem, 0.8rem + 3.9vw, 4.6rem); }
}

/* ==========================================================================
   Sections – shared
   ========================================================================== */
.section { padding-block: var(--section-pad); }
.section--alt { background: var(--c-bg-2); border-block: 1px solid var(--c-line); }

.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lead { align-self: end; }
@media (min-width: 960px) {
  .section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 4rem; align-items: end; }
}

/* ---------- Lists */
.check-list { display: grid; }
.check-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.9rem;
  border-bottom: 1px solid var(--c-line);
  font-size: 0.9875rem;
  line-height: 1.45;
  color: var(--c-text);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05rem;
  width: 12px; height: 7px;
  border-left: 2px solid var(--c-red-bright);
  border-bottom: 2px solid var(--c-red-bright);
  transform: rotate(-45deg);
}

.cross-list li::before {
  /* an "x" mark for things that are NOT offered */
  width: 12px; height: 12px;
  top: 0.95rem;
  border: 0;
  transform: none;
  background:
    linear-gradient(45deg, transparent 44%, var(--c-red-text) 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--c-red-text) 44% 56%, transparent 56%);
}

/* ---------- Notice */
.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.5rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-red-bright);
  border-radius: 2px;
}
.notice svg { width: 22px; height: 22px; color: var(--c-red-text); margin-top: 0.15rem; }
.notice p { font-size: 0.9875rem; line-height: 1.6; color: var(--c-text-2); }
.notice strong { display: block; margin-bottom: 0.2rem; }

/* ==========================================================================
   01 Geschäftsbereich – organisational diagram
   ========================================================================== */
.unit-layout { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.unit-text p:not(.eyebrow) { color: var(--c-text-2); }
.unit-text .section-title { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.25rem); }
.unit-text .lead { margin-top: 1.75rem; color: var(--c-text); }
.unit-text p:not(.eyebrow) + p { margin-top: 1rem; }

.org {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.org-node {
  position: relative;
  z-index: 1;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 2px;
  background: var(--c-bg-2);
}
.org-kicker {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.org-node strong { display: block; font-size: 1.1875rem; letter-spacing: -0.015em; line-height: 1.25; }
.org-node small { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: var(--c-muted); line-height: 1.4; }
.org-root { background: var(--c-surface-2); }
.org-branches { position: relative; display: grid; gap: 1rem; }
.org-branch.is-current { border-color: var(--c-red-bright); box-shadow: inset 3px 0 0 var(--c-red-bright); }
.org-branch.is-current .org-kicker { color: var(--c-red-text); }
.org-branch:not(.is-current) { opacity: 0.72; }

/* connector lines */
.org::before {
  content: "";
  position: absolute;
  left: calc(clamp(1.25rem, 3vw, 2rem) + 1.5rem);
  top: 4rem; bottom: 3rem;
  width: 1px;
  background: var(--c-line-strong);
}
@media (min-width: 640px) {
  .org-branches { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .org::before {
    left: 50%; top: auto;
    bottom: auto;
    height: 2.5rem;
    margin-top: calc(-2.5rem);
    /* vertical stem from root down to the branch bar */
    transform: translateX(-0.5px);
  }
  .org-branches::before {
    content: "";
    position: absolute;
    left: 25%; right: 25%;
    top: -1.25rem;
    height: 1.25rem;
    border: 1px solid var(--c-line-strong);
    border-bottom: 0;
  }
  .org-root + .org-branches { margin-top: 0; }
  .org > .org-root::after {
    content: "";
    position: absolute;
    left: 50%; bottom: -1.25rem;
    width: 1px; height: 1.25rem;
    background: var(--c-line-strong);
  }
  .org::before { display: none; }
}
@media (min-width: 1080px) {
  .unit-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ==========================================================================
   02 Leistungsbereich
   ========================================================================== */
.scope-grid { display: grid; gap: 1rem; }
.scope-card {
  padding: clamp(1.4rem, 2.5vw, 2rem);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-top: 2px solid var(--c-line-strong);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease);
}
.scope-card:hover { border-top-color: var(--c-red-bright); }
.scope-card h3 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
}
.scope-card h3 span {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-red-text);
}
.scope-card > p { margin-bottom: 0.75rem; font-size: 0.9375rem; line-height: 1.55; color: var(--c-muted); }

@media (min-width: 900px) {
  .scope-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   03 Abgrenzung
   ========================================================================== */
.boundary { display: grid; gap: 1rem; }
.boundary-col {
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}
.boundary-col h3 {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  letter-spacing: -0.02em;
}
.boundary-col h3 .badge {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 2px;
  border: 1px solid var(--c-line-strong);
}
.boundary-col h3 .badge svg { width: 18px; height: 18px; }
.boundary-col--yes .badge { color: var(--c-text); }
.boundary-col--no { border-color: rgba(225, 6, 27, 0.45); background: linear-gradient(180deg, rgba(225, 6, 27, 0.06), transparent 60%), var(--c-surface); }
.boundary-col--no .badge { color: var(--c-red-text); border-color: rgba(225, 6, 27, 0.5); }
.boundary-col .check-list li { font-size: 1.0625rem; padding-block: 0.85rem; }
.boundary-col .check-list li::before { top: 1.2rem; }
.boundary-col .cross-list li::before { top: 1.1rem; }

@media (min-width: 860px) {
  .boundary { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

/* ==========================================================================
   04 Ablauf
   ========================================================================== */
.process { display: grid; border-top: 1px solid var(--c-line); }
.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--c-line);
}
.process-num {
  grid-row: span 2;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-red-text);
  font-variant-numeric: tabular-nums;
}
.process-step h3 { font-size: 1.1875rem; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.9875rem; line-height: 1.6; color: var(--c-muted); }

@media (min-width: 760px) {
  .process { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
}
@media (min-width: 1080px) {
  .process { grid-template-columns: repeat(4, 1fr); column-gap: 0; border-top: 0; }
  .process-step {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 2.25rem 1.75rem 2.5rem;
    border-bottom: 0;
    border-top: 2px solid var(--c-line-strong);
  }
  .process-step:first-child { padding-left: 0; }
  .process-step:last-child { padding-right: 0; }
  .process-step + .process-step { border-left: 1px solid var(--c-line); }
  .process-step::before {
    content: "";
    position: absolute;
    left: -1px; top: -2px;
    width: 56px; height: 2px;
    background: var(--c-red-bright);
  }
  .process-step:first-child::before { left: 0; }
  .process-num { grid-row: auto; margin-bottom: 1.5rem; font-size: 3rem; }
}

.process-note {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: 0.9375rem;
  color: var(--c-muted);
  max-width: 52em;
}

/* ==========================================================================
   05 Grundlagen
   ========================================================================== */
.basics-media { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.basics-grid { display: grid; gap: 1rem; }
.basic-card {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: clamp(1.4rem, 2.5vw, 1.75rem);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.basic-card .icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 2px;
  color: var(--c-red-text);
}
.basic-card .icon svg { width: 22px; height: 22px; }
.basic-card h3 { font-size: 1.1875rem; letter-spacing: -0.015em; }
.basic-card p { font-size: 0.9375rem; line-height: 1.6; color: var(--c-muted); }

@media (min-width: 640px) {
  .basics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .basics-grid { grid-template-columns: repeat(6, 1fr); }
  .basic-card { grid-column: span 2; }
  .basic-card:nth-child(4) { grid-column: 2 / span 2; }
}

.basics-note {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  font-size: 0.875rem;
  color: var(--c-muted);
}

/* ==========================================================================
   06 Sicherheit / Eigenverantwortung
   ========================================================================== */
.resp-layout { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.resp-list { display: grid; border-top: 1px solid var(--c-line); }
.resp-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--c-line);
}
.resp-item .icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--c-line-strong);
  border-radius: 2px;
  color: var(--c-red-text);
}
.resp-item .icon svg { width: 20px; height: 20px; }
.resp-item h3 { font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 0.3rem; }
.resp-intro .section-title { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.1rem); }
.resp-item p { font-size: 0.9375rem; line-height: 1.6; color: var(--c-muted); }

@media (min-width: 1080px) {
  .resp-layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .resp-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ==========================================================================
   07 Über EDService Digital
   ========================================================================== */
.about-layout { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.about-text .section-title { margin-bottom: 2rem; }
.about-text p:not(.eyebrow) { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem); line-height: 1.7; color: var(--c-text-2); }
.about-text .about-lead { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); line-height: 1.45; letter-spacing: -0.015em; color: var(--c-text); font-weight: 550; }
.about-text p:not(.eyebrow) + p { margin-top: 1.25rem; }
.about-text .about-note {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--c-line-strong);
  border-radius: 2px;
  font-size: 0.9875rem;
  font-weight: 600;
  color: var(--c-text);
}
.about-text .about-note::before { content: ""; width: 8px; height: 8px; background: var(--c-red-bright); flex: none; }

.facts {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-red-bright);
  border-radius: var(--radius);
}
.facts .lockup { margin-bottom: 1.5rem; }
.facts dl { margin: 0; display: grid; }
.facts dl > div { display: grid; gap: 0.15rem; padding: 0.85rem 0; border-top: 1px solid var(--c-line); }
.facts dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }
.facts dd { margin: 0; font-size: 1rem; font-weight: 550; line-height: 1.45; hyphens: manual; }

@media (min-width: 480px) {
  .facts dl > div { grid-template-columns: 9.5rem 1fr; gap: 1rem; align-items: baseline; }
}
@media (min-width: 1080px) {
  .about-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .facts { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* ==========================================================================
   08 Kontakt
   ========================================================================== */
.contact-card {
  position: relative;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.75rem, 5vw, 4rem);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c-red-bright); }
.contact-card .section-title { margin-bottom: 1.25rem; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
@media (max-width: 479.98px) { .contact-actions .btn { width: 100%; } }

.contact-hints { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); }
.contact-hints h3 {
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.contact-hints ul { display: grid; gap: 0.5rem; }
.contact-hints li { position: relative; padding-left: 1.25rem; font-size: 0.9375rem; line-height: 1.5; color: var(--c-text-2); }
.contact-hints li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--c-red-bright); }
.contact-hints li.is-warning { color: var(--c-text); font-weight: 550; }

.contact-details { display: grid; align-content: start; border-top: 1px solid var(--c-line); }
.contact-line {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--c-line);
  color: inherit;
  text-decoration: none;
}
.contact-line .icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--c-line-strong);
  border-radius: 2px;
  color: var(--c-red-text);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.contact-line .icon svg { width: 20px; height: 20px; }
.contact-line .cl-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }
.contact-line .cl-value {
  display: block;
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: #f6f4f0;
  font-style: normal;
  overflow-wrap: anywhere;
}
a.contact-line:hover .icon { background: var(--c-red); border-color: var(--c-red); color: #fff; }
a.contact-line:hover .cl-value { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

@media (max-width: 479.98px) {
  .contact-card { padding: 1.5rem 1.25rem; }
  .contact-line { grid-template-columns: 40px 1fr; gap: 0.85rem; }
  .contact-line .icon { width: 40px; height: 40px; }
  .contact-line .cl-value { font-size: 1rem; }
}

@media (min-width: 960px) {
  .contact-card { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 4rem; }
}

/* ---------- Informational notice (disclaimer) */
.disclaimer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--c-line);
  border-radius: 2px;
  color: var(--c-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
.disclaimer svg { width: 18px; height: 18px; margin-top: 0.15rem; color: var(--c-muted); }
.disclaimer strong { color: var(--c-text-2); font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  background: #0b0c0e;
  border-top: 1px solid var(--c-line);
  font-size: 0.9375rem;
}
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand .footer-name { margin-top: 1.25rem; font-size: 1.0625rem; font-weight: 650; color: var(--c-text); }
.footer-brand .footer-tagline { font-size: 0.875rem; color: var(--c-muted); }
.footer-legalnote {
  margin-top: 1.25rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--c-red-bright);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--c-text-2);
  max-width: 30em;
}
.footer-col h2 {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.footer-col address { font-style: normal; line-height: 1.7; color: var(--c-text-2); }
.footer-col ul { display: grid; gap: 0.15rem; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
  color: var(--c-text-2);
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-contact a { min-height: 32px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--c-line);
  font-size: 0.8125rem;
  color: var(--c-muted);
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .footer-grid { grid-template-columns: 1.4fr 1.1fr 1fr 0.8fr; gap: 3rem; }
}

/* ==========================================================================
   Legal pages & 404
   ========================================================================== */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--c-line); }
.page-hero .section-title { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); }
.page-hero .lead { margin-top: 1rem; }

.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section-pad); }
.legal-body { max-width: 46rem; }
.legal-body h2 { margin: 2.75rem 0 0.85rem; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); letter-spacing: -0.02em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--c-text-2); }
.legal-body p + p { margin-top: 0.85rem; }
.legal-body ul { margin: 0.75rem 0; display: grid; gap: 0.4rem; }
.legal-body ul li { position: relative; padding-left: 1.25rem; }
.legal-body ul li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; background: var(--c-red-bright); }
.legal-body address { font-style: normal; line-height: 1.7; color: var(--c-text-2); }
.legal-body a { color: #fff; }
.legal-body a:hover { color: var(--c-red-text); }
.legal-card {
  padding: 1.5rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-red-bright);
  border-radius: 2px;
}
.legal-meta { margin-top: 3rem; font-size: 0.875rem; color: var(--c-muted); }

.notfound {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-content: center;
  padding-block: 4rem;
}
.notfound-code {
  font-size: clamp(5rem, 3rem + 12vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--c-red-bright);
}
.notfound .lead { margin-top: 1.25rem; }
.notfound .hero-actions { margin-top: 2rem; }

/* ==========================================================================
   Motion (subtle, opt-in via JS, respects reduced motion)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Print – light, readable output
   ========================================================================== */
@media print {
  .site-header, .nav-toggle, .hero-actions, .contact-actions, .media, .skip-link { display: none !important; }
  html, body { background: #fff !important; }
  body, h1, h2, h3, strong, p, li, dd, dt, address, .lead { color: #000 !important; }
  .section, .hero { padding-block: 1.5rem; }
  .scope-card, .boundary-col, .basic-card, .contact-card, .facts, .org, .org-node, .notice, .site-footer { background: #fff !important; border-color: #999 !important; }
}
