/* geckIT Basis: Tokens, Grundstile und gemeinsame Bausteine für alle Seiten im neuen Look.
   Herausgezogen aus /assets/start/style.css (13.11.2026). Seiten laden erst diese Datei,
   dann ihr eigenes CSS. Die Startseite nutzt dazu /assets/start/style.css. */

:root {
  --bg: #f5f8f7;
  --surface: #ffffff;
  --tint: #e3f5ed;
  --tint-strong: #cbecdd;
  --ink: #0f1613;
  --ink-2: #3a423f;
  --ink-3: #585f5d;
  --line: #dee2e1;
  --line-strong: #c9cfcd;

  --green: #007856;
  --green-deep: #005b40;
  --green-ink: #004b34;
  --dark: #0d1612;
  --dark-2: #192420;
  --on-dark: #eef3f1;
  --on-dark-2: #b6c1bc;

  --font: "Geist", ui-sans-serif, system-ui, sans-serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;

  --shadow-card: 0 1px 2px oklch(20% 0.02 170 / 0.04), 0 12px 32px -14px oklch(20% 0.02 170 / 0.14);
  --shadow-lift: 0 2px 4px oklch(20% 0.02 170 / 0.05), 0 24px 48px -20px oklch(20% 0.02 170 / 0.24);
  --shadow-btn: 0 1px 1px oklch(20% 0.02 170 / 0.14), 0 6px 16px -8px oklch(30% 0.08 168 / 0.6);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shell: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 10vw, 136px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

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

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--ink);
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--green-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

::selection {
  background: var(--tint-strong);
  color: var(--ink);
}

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

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-dark);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

.section {
  padding-block: var(--section) 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
}

.section-head p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.125rem;
}

/* Knöpfe ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 550;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  /* Rahmen für die Welle beim Antippen (basis.js). clip statt hidden, damit
     die Grundlinie im Text unverändert bleibt; hidden nur für alte Browser. */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
}

.btn .icon {
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--green);
  color: oklch(99% 0 0);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--green-deep);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink-3);
}

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

.btn-dark:hover {
  background: var(--green-deep);
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* Welle beim Antippen: basis.js setzt ein span an den Berührungspunkt und
   räumt es nach der Animation wieder ab. Auf grünen und dunklen Knöpfen hell,
   auf hellen grünlich. Liegt hinter Text und Symbol (z-index -1 im
   isolierten Knopf), über dem Knopfgrund.
   Nach Ripple Button von Magic UI (MIT), neu geschrieben. */
.btn-welle {
  position: absolute;
  z-index: -1;
  left: var(--x);
  top: var(--y);
  width: var(--d);
  height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  border-radius: 50%;
  background: oklch(100% 0 0 / 0.26);
  pointer-events: none;
  transform: scale(0);
  opacity: 0;
}

.btn-secondary .btn-welle {
  background: oklch(52% 0.11 165 / 0.18);
}

/* Wachsen schnell und weich, Verblassen gleichmäßig und erst nach einem
   Moment, damit die Welle sichtbar bleibt. */
@media (prefers-reduced-motion: no-preference) {
  .btn-welle {
    animation:
      btn-welle-wachsen 0.7s var(--ease) forwards,
      btn-welle-blassen 0.7s linear forwards;
  }
}

@keyframes btn-welle-wachsen {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

@keyframes btn-welle-blassen {
  0%,
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 550;
  text-decoration: none;
  color: var(--green-ink);
}

.text-link:hover {
  text-decoration: underline;
}

/* Ablauf ----------------------------------------------------------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-grid li {
  padding: 30px 28px 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.step {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: oklch(99% 0 0);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.process-grid h3 {
  margin-top: 22px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.process-grid p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 1rem;
}

/* Aufruf ----------------------------------------------------------- */

.cta {
  padding-top: var(--section);
}

.cta-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--r-xl);
  background: var(--dark);
  color: var(--on-dark);
}

.cta-card img {
  border-radius: 50%;
  border: 4px solid var(--dark-2);
}

.cta-card h2 {
  color: var(--on-dark);
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
}

.cta-card p {
  margin-top: 12px;
  color: var(--on-dark-2);
}

.cta-actions {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on-dark);
  font-weight: 550;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.cta-phone:hover {
  text-decoration: underline;
}

.cta-card :focus-visible {
  outline-color: var(--on-dark);
}

/* Fragen ----------------------------------------------------------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq-intro h2 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
}

.faq-intro p {
  margin-top: 18px;
  color: var(--ink-2);
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 1.125rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary .icon {
  color: var(--green);
  transition: transform 0.3s var(--ease);
}

.faq-list details[open] summary .icon {
  transform: rotate(45deg);
}

.faq-list details p {
  padding: 0 40px 24px 0;
  color: var(--ink-2);
}

.faq-list details::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 0.35s var(--ease),
    content-visibility 0.35s allow-discrete;
}

.faq-list details[open]::details-content {
  block-size: auto;
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
}

.optional {
  color: var(--ink-3);
  font-weight: 400;
}

.hp {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 1.4em;
  font-size: 0.9375rem;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: oklch(48% 0.16 28);
}

.form-status.is-success {
  color: var(--green-ink);
}

.form-legal {
  color: var(--ink-3);
  font-size: 0.8438rem;
}

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

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .cta-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .cta-actions {
    justify-items: start;
  }
}

/* Kontakt: dunkle Seite links, Formular rechts */

.kf-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.kf-side {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 52px);
  background: var(--dark);
  color: var(--on-dark);
}

.kf-side h2 {
  color: var(--on-dark);
  font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
}

.kf-side > p {
  margin-top: 14px;
  color: var(--on-dark-2);
}

.kf-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.kf-person img {
  border-radius: 50%;
  border: 3px solid var(--dark-2);
}

.kf-person p {
  display: grid;
  line-height: 1.4;
}

.kf-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on-dark-2);
  font-size: 0.9375rem;
}

.kf-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--on-dark-2);
}

.kf-status.is-live::before {
  background: #3fbe90;
}

/* Weicher Puls um den grünen Punkt, nur während der Erreichbarkeit.
   Der Ring ist ein Schatten und verschiebt nichts.
   Nach Pulsating Button von Magic UI (MIT), neu geschrieben. */
@media (prefers-reduced-motion: no-preference) {
  .kf-status.is-live::before {
    animation: kf-puls 2s ease-out infinite;
  }
}

@keyframes kf-puls {
  0% {
    box-shadow: 0 0 0 0 rgb(63 190 144 / 0.55);
  }
  80%,
  100% {
    box-shadow: 0 0 0 7px rgb(63 190 144 / 0);
  }
}

.kf-direct {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 32px 0 0;
  list-style: none;
}

.kf-direct a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #ffffff1f;
  border-radius: 16px;
  color: var(--on-dark);
  font-weight: 550;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.kf-direct a:hover {
  border-color: #ffffff40;
  background: var(--dark-2);
}

.kf-direct .icon {
  color: #6fd4ab;
  font-size: 1.25rem;
}

.kf-direct span {
  display: grid;
  line-height: 1.35;
}

.kf-direct small {
  color: var(--on-dark-2);
  font-size: 0.8125rem;
  font-weight: 400;
}

.kf-side :focus-visible {
  outline-color: var(--on-dark);
}

.kf-form {
  display: grid;
  gap: 20px;
  padding: clamp(28px, 4vw, 52px);
}

.kf-topic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.kf-topic legend {
  margin-bottom: 10px;
  padding: 0;
  font-weight: 550;
  font-size: 0.9375rem;
}

.kf-topic label {
  position: relative;
}

.kf-topic input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.kf-topic span {
  display: grid;
  justify-items: center;
  gap: 6px;
  height: 100%;
  padding: 14px 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 550;
  text-align: center;
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.kf-topic img {
  width: 48px;
  height: 48px;
  transition: transform 0.35s var(--ease);
}

.kf-topic label:hover span {
  border-color: var(--ink-3);
}

.kf-topic input:checked + span {
  border-color: var(--green);
  background: var(--tint);
  box-shadow: 0 0 0 1px var(--green) inset;
  color: var(--green-ink);
}

.kf-topic input:checked + span img {
  transform: translateY(-3px) rotate(-4deg);
}

.kf-topic input:focus-visible + span {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.kf-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.kf-field {
  display: grid;
  gap: 8px;
}

.kf-field label {
  font-weight: 550;
  font-size: 0.9375rem;
}

.kf-field .optional {
  margin-left: 4px;
  color: var(--ink-3);
  font-weight: 400;
}

.kf-field input,
.kf-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  caret-color: var(--green);
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.kf-field textarea {
  min-height: 130px;
  resize: vertical;
}

.kf-field input::placeholder,
.kf-field textarea::placeholder {
  color: var(--ink-3);
}

.kf-field input:hover,
.kf-field textarea:hover {
  border-color: var(--line-strong);
}

.kf-field input:focus,
.kf-field textarea:focus {
  border-color: var(--green);
  background: var(--surface);
  box-shadow: 0 0 0 4px #00785622;
  outline: none;
}

.kf-field [aria-invalid="true"] {
  border-color: #b4321f;
}

.kf-submit {
  min-height: 56px;
}

/* Status im Absende-Knopf: basis.js setzt data-zustand (sendet, erfolg, fehler)
   und baut das kleine SVG links vom Text. Der Knopf ist btn-block, seine
   Breite hängt also nicht am Text.
   Nach Status Mark von React Bits (MIT + Commons Clause), neu geschrieben. */
.kf-submit[data-zustand]:disabled {
  opacity: 1;
}

.kf-submit[data-zustand="erfolg"] {
  cursor: default;
}

.kf-mark {
  display: none;
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kf-submit[data-zustand] .kf-mark {
  display: block;
}

/* Während eines Zustands steht das Zeichen links, der Pfeil rechts pausiert. */
.kf-submit[data-zustand] > .icon {
  display: none;
}

.kf-mark-spur {
  opacity: 0.3;
}

.kf-mark-bogen {
  stroke-dasharray: 0.3 1;
  transform-origin: 50% 50%;
  transition: stroke-dasharray 0.35s var(--ease);
}

.kf-mark-haken,
.kf-mark-kreuz {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.45s var(--ease) 0.15s;
}

.kf-submit:is([data-zustand="erfolg"], [data-zustand="fehler"]) .kf-mark-bogen {
  stroke-dasharray: 1 0;
}

.kf-submit[data-zustand="erfolg"] .kf-mark-haken,
.kf-submit[data-zustand="fehler"] .kf-mark-kreuz {
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .kf-mark-bogen {
    animation: kf-dreh 0.8s linear infinite;
  }
}

@keyframes kf-dreh {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .kf-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .kf-row {
    grid-template-columns: 1fr;
  }

  .kf-topic {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .kf-topic span {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 8px 14px;
    text-align: left;
  }

  .kf-topic img {
    width: 40px;
    height: 40px;
  }
}

/* Ablauf mit eigenen Icons */

.process-grid li {
  position: relative;
}

.step-icon {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 76px;
  height: 76px;
}

/* Bedien-Icons aus der Bildbibliothek (/assets/bibliothek/ui/) ------- */

img.ui-icon {
  width: 1.2em;
  height: 1.2em;
  object-fit: contain;
  vertical-align: -0.2em;
}

/* Linien-Icons aus /assets/start/icons.svg zeigen die 3D-Bedien-Icons der Bibliothek.
   Das Markup bleibt; das SVG bekommt das Bild als Hintergrund, die Linie wird ausgeblendet.
   Auf grünen und dunklen Flächen die weiße Fassung. Ohne :has bleibt die Linie sichtbar. */
svg.icon:has(> use[href$="#i-arrow-right"]) {
  --ui-gruen: url("/assets/bibliothek/ui/ui-pfeil-rechts.webp");
  --ui-weiss: url("/assets/bibliothek/ui/ui-pfeil-rechts-weiss.webp");
}

svg.icon:has(> use[href$="#i-arrow-up-right"]) {
  --ui-gruen: url("/assets/bibliothek/ui/ui-pfeil-extern.webp");
  --ui-weiss: url("/assets/bibliothek/ui/ui-pfeil-extern-weiss.webp");
}

svg.icon:has(> use[href$="#i-caret-down"]) {
  --ui-gruen: url("/assets/bibliothek/ui/ui-chevron.webp");
  --ui-weiss: url("/assets/bibliothek/ui/ui-chevron-weiss.webp");
}

svg.icon:has(> use[href$="#i-check-circle"]) {
  --ui-gruen: url("/assets/bibliothek/ui/ui-haken.webp");
  --ui-weiss: url("/assets/bibliothek/ui/ui-haken-weiss.webp");
}

svg.icon:has(> use[href$="#i-plus"]) {
  --ui-gruen: url("/assets/bibliothek/ui/ui-plus.webp");
  --ui-weiss: url("/assets/bibliothek/ui/ui-plus-weiss.webp");
}

svg.icon:has(> use[href$="#i-x"]) {
  --ui-gruen: url("/assets/bibliothek/ui/ui-kreuz.webp");
  --ui-weiss: url("/assets/bibliothek/ui/ui-kreuz-weiss.webp");
}

svg.icon:has(> use[href$="#i-phone"]) {
  --ui-gruen: url("/assets/bibliothek/ui/ui-telefon.webp");
  --ui-weiss: url("/assets/bibliothek/ui/ui-telefon-weiss.webp");
}

svg.icon:has(> use[href$="#i-envelope-simple"]) {
  --ui-gruen: url("/assets/bibliothek/ui/ui-mail.webp");
  --ui-weiss: url("/assets/bibliothek/ui/ui-mail-weiss.webp");
}

svg.icon:has(> use[href$="#i-list"]) {
  --ui-gruen: url("/assets/bibliothek/ui/ui-menue.webp");
  --ui-weiss: url("/assets/bibliothek/ui/ui-menue-weiss.webp");
}

svg.icon:has(> use:is([href$="#i-arrow-right"], [href$="#i-arrow-up-right"], [href$="#i-caret-down"], [href$="#i-check-circle"], [href$="#i-plus"], [href$="#i-x"], [href$="#i-phone"], [href$="#i-envelope-simple"], [href$="#i-list"])) {
  background: var(--ui-gruen) center / contain no-repeat;
}

svg.icon:has(> use:is([href$="#i-arrow-right"], [href$="#i-arrow-up-right"], [href$="#i-caret-down"], [href$="#i-check-circle"], [href$="#i-plus"], [href$="#i-x"], [href$="#i-phone"], [href$="#i-envelope-simple"], [href$="#i-list"])) > use {
  visibility: hidden;
}

:is(.btn-primary, .btn-dark, .cta-card, .kf-side) svg.icon:has(> use:is([href$="#i-arrow-right"], [href$="#i-arrow-up-right"], [href$="#i-caret-down"], [href$="#i-check-circle"], [href$="#i-plus"], [href$="#i-x"], [href$="#i-phone"], [href$="#i-envelope-simple"], [href$="#i-list"])) {
  background-image: var(--ui-weiss);
}

/* Kein Umbruch, z. B. in Namen mit Bindestrich */
.nw {
  white-space: nowrap;
}

/* Unterseiten ------------------------------------------------------ */
/* Bausteine für Seiten im neuen Look (Kontakt, Über mich, Projekte, Preise …).
   Die Startseite nutzt sie nicht. */

.seite {
  padding-bottom: var(--section);
}

/* Seitenkopf: weiße Karte wie der Einstieg der Startseite. Die Navbar
   schwebt fest oben (16 px Abstand + 68 px Höhe). */
.kopf {
  padding-top: 104px;
}

.kopf-karte {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4.5vw, 64px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.kopf h1 {
  font-size: clamp(2.3rem, 1.5rem + 3vw, 3.75rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.kopf .lead {
  max-width: 42ch;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
}

.kopf-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Sprungmarken als Pillen, z. B. zu Fallstudien */
.sprung {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.sprung a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.sprung a:hover {
  border-color: var(--ink-3);
  background: var(--bg);
}

/* Abschnittskopf linksbündig */
.section-head.links {
  max-width: 760px;
  margin-inline: 0;
  text-align: left;
}

/* Karten und Raster */
.raster-2,
.raster-3,
.raster-4 {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.raster-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.raster-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.raster-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.karte {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.karte-tint {
  background: var(--tint);
  box-shadow: none;
}

.karte-icon {
  display: block;
  width: 72px;
  height: 72px;
  margin: -6px 0 16px -6px;
  object-fit: contain;
}

.karte h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.karte > p,
.karte > div > p {
  margin-top: 10px;
  color: var(--ink-2);
}

.karte-ergebnis {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 550;
}

/* Liste mit 3D-Haken aus der Bibliothek */
.haken-liste {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.haken-liste li {
  position: relative;
  padding-left: 34px;
  color: var(--ink-2);
}

.haken-liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 1.35em;
  height: 1.35em;
  background: url("/assets/bibliothek/ui/ui-haken.webp") center / contain no-repeat;
}

/* Schlichte Liste mit Strich, z. B. „Was Sie nicht brauchen“ */
.strich-liste {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.strich-liste li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
}

.strich-liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}

/* Fakten mit Icon in kleinen Karten */
.fakten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.fakten > div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.fakten img {
  grid-row: span 2;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.fakten dt {
  color: var(--ink-3);
  font-size: 0.875rem;
  font-weight: 550;
}

.fakten dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
}

.fakten dd span {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-weight: 400;
}

/* Steckbrief: Zeilen mit Begriff und Wert */
.steckbrief {
  display: grid;
  margin: 0;
}

.steckbrief > div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.4fr) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.steckbrief > div:last-child {
  border-bottom: 1px solid var(--line);
}

.steckbrief dt {
  color: var(--ink-3);
}

.steckbrief dd {
  margin: 0;
  color: var(--ink);
}

/* Technik als ruhige Pillen */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 0.875rem;
}

/* Weiterführende Links als Zeile */
.link-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.link-zeile > span {
  color: var(--ink-3);
}

/* Geräte-Rahmen für Screenshots */
.rahmen-browser {
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.rahmen-leiste {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
}

.rahmen-punkte {
  display: flex;
  gap: 6px;
}

.rahmen-punkte i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.rahmen-url {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 0.75rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rahmen-handy {
  padding: 6px;
  border-radius: 26px;
  background: var(--ink);
  box-shadow: var(--shadow-lift);
}

.rahmen-handy img {
  border-radius: 20px;
}

/* Platzhalter für Bilder, die noch fehlen: gestrichelt, mit Dateinamen */
.platzhalter {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 16px;
  border: 2px dashed var(--green);
  border-radius: var(--r-md);
  background: repeating-linear-gradient(-45deg, transparent 0 10px, oklch(20% 0.02 170 / 0.035) 10px 20px);
  color: var(--green-ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  word-break: break-all;
}

@media (max-width: 1080px) {
  .raster-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .kopf-karte {
    grid-template-columns: minmax(0, 1fr);
  }
  .raster-3,
  .fakten {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .raster-2,
  .raster-4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .steckbrief > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

@media (max-width: 639px) {
  .kopf {
    padding-top: 88px;
  }
  .kopf-karte {
    padding: 28px 20px;
    border-radius: var(--r-lg);
  }
}

/* Geräte-Rahmen, echter: Safari-Leiste und iPhone-Körper.
   Gedacht zum Anhängen ans Ende von /assets/basis/basis.css. Überschreibt nur Aussehen,
   keine Maße: Leistenhöhe (37 px), Handy-Innenabstand (6 px) und Eckenradien bleiben.
   Nach Safari und iPhone von Magic UI (MIT), neu geschrieben: Proportionen von Adressfeld,
   Dynamic Island und Seitentasten aus den SVG-Vorlagen übernommen, Umsetzung in CSS. */

/* Browser: feine Kante um das Fenster */
.rahmen-browser {
  box-shadow:
    0 0 0 1px oklch(20% 0.02 170 / 0.09),
    var(--shadow-lift);
}

/* Leiste: leicht grau, Lichtkante oben, Adressfeld in der Mitte.
   Drei Spalten, damit das Feld unabhängig von den Punkten mittig steht; in schmalen
   Fenstern bekommt das Feld mindestens 12rem, damit die Domain lesbar bleibt. */
.rahmen-leiste {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) minmax(min(12rem, 100%), 3fr) minmax(0, 1fr);
  padding: 7px 14px;
  background: linear-gradient(oklch(98.6% 0.003 170), oklch(96.6% 0.005 170));
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.9);
}

/* Ampel dezent: Safari-Farben mit weniger Sättigung und feinem Rand */
.rahmen-punkte i {
  background: oklch(74% 0.12 27);
  box-shadow: inset 0 0 0 0.5px oklch(30% 0.05 27 / 0.22);
}

.rahmen-punkte i:nth-child(2) {
  background: oklch(85% 0.11 85);
  box-shadow: inset 0 0 0 0.5px oklch(35% 0.05 85 / 0.22);
}

.rahmen-punkte i:nth-child(3) {
  background: oklch(77% 0.12 150);
  box-shadow: inset 0 0 0 0.5px oklch(30% 0.05 150 / 0.22);
}

/* Adressfeld: abgerundet, Schloss vor der Domain. Höhe 2 + 19,2 + 2 px, mit dem
   Leisten-Innenabstand von 7 px zusammen so hoch wie die bisherige Leiste. */
.rahmen-url {
  padding: 2px 10px;
  border-radius: 7px;
  background: oklch(20% 0.02 170 / 0.055);
  line-height: 1.6;
  text-align: center;
}

/* Schloss: Phosphor „lock-simple“, Körper gefüllt, als Maske */
.rahmen-url::before {
  content: "";
  display: inline-block;
  width: 0.6875rem;
  height: 0.6875rem;
  margin-right: 5px;
  vertical-align: -0.0625rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z'/%3E%3Cpath d='M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z'/%3E%3Cpath d='M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Handy: Gerätekörper mit Metallkante, Lichtkante oben und Schatten.
   Innenabstand und Radien wie bisher (6 px, 26 px außen, 20 px Bild). */
.rahmen-handy {
  position: relative;
  background: oklch(17% 0.008 170);
  box-shadow:
    inset 0 0 0 1px oklch(46% 0.012 170),
    inset 0 1px 0 1px oklch(70% 0.01 170 / 0.5),
    inset 0 0 0 2px oklch(11% 0.006 170),
    var(--shadow-lift);
}

/* Dynamic Island: Seitenverhältnis 124 : 37 wie beim iPhone, aber kleiner (22 % statt
   28,6 % der Gerätebreite) und höher (4 px unter der Kante, halb im Rand), weil die
   Screenshots keine Statusleiste haben und die Insel sonst Logo und Kopfzeile verdeckt.
   Rechts die Kameralinse angedeutet. */
.rahmen-handy::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 39%;
  width: 22%;
  aspect-ratio: 124 / 37;
  border-radius: 999px;
  background:
    radial-gradient(circle at 84% 50%, oklch(30% 0.04 250) 0 9%, transparent 12%),
    oklch(6% 0.004 170);
  pointer-events: none;
}

/* Seitentasten: links Aktionstaste und Lautstärke, rechts Seitentaste.
   Je 2 px über den Rand. Positionen in Prozent so umgerechnet, dass die Oberkante
   bei 19,3 / 26,4 / 36 % (links) und 31,6 % (rechts) der Gerätehöhe liegt. */
.rahmen-handy::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2px;
  right: -2px;
  background:
    linear-gradient(oklch(30% 0.01 170), oklch(30% 0.01 170)) left 0 top 20.1% / 2px 3.8% no-repeat,
    linear-gradient(oklch(30% 0.01 170), oklch(30% 0.01 170)) left 0 top 28.6% / 2px 7.6% no-repeat,
    linear-gradient(oklch(30% 0.01 170), oklch(30% 0.01 170)) left 0 top 39% / 2px 7.7% no-repeat,
    linear-gradient(oklch(30% 0.01 170), oklch(30% 0.01 170)) right 0 top 35.9% / 2px 12.1% no-repeat;
  pointer-events: none;
}
