/* ComKo.De//: Stylesheet. Eine Datei, keine externen Ressourcen. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  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: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  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: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
  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;
}

:root {
  --ink: #171a2e;
  --ink-2: #20244a;
  --ink-line: #3a4072;
  --ink-deep: #0f1121;
  --paper: #f4f5f8;
  --white: #ffffff;
  --text: #1c2033;
  --muted: #555b74;
  --line: #d8dbe6;
  --link: #2a3999;
  --amber: #f0b429;
  --amber-hover: #ffc94d;
  --amber-deep: #8f6200;
  --on-ink: #e9ebf5;
  --on-ink-muted: #aab0cc;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.125rem/1.65 var(--serif);
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  hyphens: auto;
}

p { margin: 0 0 1em; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--amber); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--amber); color: var(--ink);
  font: 600 1rem var(--sans); padding: 0.7rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.dark { background: var(--ink); color: var(--on-ink); }

/* Kopfbereich */
.bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-block: 1rem;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: #fff; line-height: 1.1; }
.brand-name { font: 700 1.5rem/1 var(--sans); letter-spacing: -0.02em; }
.brand-sep { color: var(--amber); }
.brand-sub { font: 400 0.8rem var(--sans); color: var(--on-ink-muted); margin-top: 0.3rem; }

.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; font: 500 1rem var(--sans); }
.nav-link { color: var(--on-ink); text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link[aria-current="page"] { border-bottom-color: var(--amber); }
.nav-cta { background: var(--amber); color: var(--ink); padding: 0.55rem 1rem; border-radius: 0.25rem; font-weight: 600; text-decoration: none; border: 0; }
.nav-cta:hover { background: var(--amber-hover); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center;
}
@media (max-width: 60rem) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-title { font-size: clamp(2rem, 4.6vw, 3.4rem); color: #fff; margin-bottom: 0.5em; }
.hero-title-page { font-size: clamp(2rem, 4.2vw, 3rem); color: #fff; max-width: 22ch; margin-bottom: 0.4em; }
.lead { font: 400 1.25rem/1.55 var(--serif); color: var(--on-ink); max-width: 38rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.byline { font: 400 0.95rem var(--sans); color: var(--on-ink-muted); margin: 1.5rem 0 0; }

.btn {
  display: inline-block; font: 600 1rem/1 var(--sans);
  padding: 0.95rem 1.3rem; border-radius: 0.25rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-hover); }
.btn-ghost { border-color: var(--ink-line); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }

/* Gap-Analyse-Beispiel im Hero */
.sheet {
  background: var(--white); color: var(--text); border-radius: 0.375rem;
  padding: 1.25rem 1.25rem 1rem; box-shadow: 8px 8px 0 var(--ink-2);
}
.sheet-title { font: 600 1rem var(--sans); margin: 0 0 0.75rem; letter-spacing: 0; }
.sheet-scroll { overflow-x: auto; }
.gap { width: 100%; border-collapse: collapse; font: 400 0.9rem/1.35 var(--sans); }
.gap-h { text-align: left; font-weight: 600; color: var(--muted); padding: 0.4rem 0.5rem; border-bottom: 2px solid var(--ink); }
.gap-c { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.gap-src { color: var(--muted); }
.status { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.mark {
  width: 0.9rem; height: 0.9rem; border-radius: 50%; border: 2px solid var(--ink); flex: none;
  animation: pop 0.4s both; animation-delay: 0.3s;
}
.mark-ok { background: var(--ink); }
.mark-part { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.mark-gap { border-color: var(--amber-deep); border-width: 3px; background: transparent; }
tbody tr:nth-child(2) .mark { animation-delay: 0.48s; }
tbody tr:nth-child(3) .mark { animation-delay: 0.66s; }
tbody tr:nth-child(4) .mark { animation-delay: 0.84s; }
tbody tr:nth-child(5) .mark { animation-delay: 1.02s; }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mark { animation: none; } }
.sheet-note { font: 400 0.8rem var(--sans); color: var(--muted); margin: 0.75rem 0 0; }

/* Abschnitte */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-white { background: var(--white); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 28ch; }
.section-intro { max-width: 40rem; color: var(--muted); }

.area {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.5rem clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(1.75rem, 4vw, 2.75rem); border-top: 2px solid var(--ink);
}
@media (max-width: 52rem) { .area { grid-template-columns: minmax(0, 1fr); } }
.area-head { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.area-icon { width: 2.5rem; height: 2.5rem; color: var(--ink); }
.area-title { font-size: 1.6rem; margin: 0; }
.area-text { margin: 0; color: var(--muted); font-size: 1rem; }
.area-link { font: 600 1rem var(--sans); }

.items { list-style: none; margin: 0; padding: 0; }
.item {
  display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 0.25rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line);
}
.item:first-child { padding-top: 0; }
.item-t { font: 600 1.05rem/1.3 var(--sans); hyphens: auto; }
.item-x { font-size: 1.02rem; }
@media (max-width: 40rem) { .item { grid-template-columns: minmax(0, 1fr); } }

.tech { border-left: 6px solid var(--amber); padding-left: clamp(1rem, 3vw, 1.75rem); max-width: 46rem; }
.tech-title { font-size: 1.5rem; }

.steps {
  list-style: none; counter-reset: s; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem;
}
.step { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 1rem; font-size: 1rem; line-height: 1.55; }
.step::before { content: counter(s); display: block; font: 700 2.2rem/1 var(--sans); color: var(--ink); margin-bottom: 0.5rem; }
.step-t { display: block; font: 600 1.1rem var(--sans); margin-bottom: 0.25rem; }
@media (max-width: 60rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .steps { grid-template-columns: minmax(0, 1fr); } }

.news { list-style: none; margin: 0; padding: 0; }
.news-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.25rem 1.5rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.news-date { font: 500 0.95rem var(--sans); color: var(--muted); }
.news-link { font: 600 1.05rem/1.35 var(--sans); }
.news-src { display: block; font: 400 0.85rem var(--sans); color: var(--muted); margin-top: 0.15rem; }
.news-sum { margin: 0.25rem 0 0; font-size: 1rem; }
@media (max-width: 34rem) { .news-row { grid-template-columns: minmax(0, 1fr); } }
.news-head { margin-top: 2.5rem; }

/* Textseiten */
.prose { max-width: 42rem; }
.prose-h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose-h3 { font-size: 1.2rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.meta { font: 400 0.95rem var(--sans); color: var(--muted); }

.faq { border-top: 1px solid var(--line); max-width: 42rem; }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq-q { font: 600 1.1rem/1.35 var(--sans); padding: 1rem 0; cursor: pointer; }
.faq-a { margin: 0 0 1rem; }

.todo { background: #ffe9a8; padding: 0 0.25em; border-radius: 0.15em; }

/* Kontaktband */
.cta { padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (max-width: 52rem) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }
.cta-title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact { list-style: none; margin: 0; padding: 0; font: 400 1rem/1.5 var(--sans); }
.contact-row { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.6rem; }
.contact-icon { width: 1.25rem; height: 1.25rem; color: var(--amber); flex: none; margin-top: 0.15rem; }
.contact-link { color: #fff; }

/* Formular */
.form { display: grid; gap: 1.25rem; max-width: 40rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.label { font: 600 0.95rem var(--sans); }
.hint { font: 400 0.85rem var(--sans); color: var(--muted); }
.control {
  font: 400 1rem var(--sans); padding: 0.75rem 0.85rem; border: 1.5px solid #8a90a8;
  border-radius: 0.25rem; background: #fff; color: var(--text); width: 100%;
}
.control-area { min-height: 9rem; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 34rem) { .row { grid-template-columns: minmax(0, 1fr); } }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.form-note { font: 400 0.9rem/1.5 var(--sans); color: var(--muted); }
.notice { max-width: 40rem; border-left: 6px solid var(--amber); background: var(--white); padding: 1rem 1.25rem; font: 400 1rem/1.5 var(--sans); }
.notice-title { font: 700 1.1rem var(--sans); margin: 0 0 0.35rem; }

/* Fuß */
.site-footer { background: var(--ink-deep); color: var(--on-ink-muted); font: 400 0.95rem/1.55 var(--sans); padding-block: 2.5rem 2rem; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 52rem) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot-title { font: 600 1rem var(--sans); color: #fff; margin: 0 0 0.6rem; letter-spacing: 0; }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin-bottom: 0.3rem; }
.foot-link { color: var(--on-ink); }
.foot-small { margin: 2rem 0 0; font-size: 0.85rem; color: var(--on-ink-muted); }

/* Mobil: Beispieltabelle darf nicht abgeschnitten werden */
@media (max-width: 30rem) {
  .gap-c, .gap-h { padding-inline: 0.3rem; }
  .gap { font-size: 0.82rem; }
  .status { white-space: normal; gap: 0.3rem; }
}
@media (max-width: 30rem) {
  .gap th:nth-child(2), .gap td:nth-child(2) { display: none; }
}
