/* ==========================================================================
   ip-pruefen.de – abgeleitet vom Screendesign der KCS-Reseller-Website
   Aufbau: 1 Schrift, 2 Farben und Maße, 3 Grundlagen, 4 Symbole, 5 Kopf,
           6 Bühne und IP-Karte, 7 Inhalt und Karten, 8 Tabellen, 9 FAQ,
           10 Rechtstexte, 11 Fuß, 12 Druck
   Keine externen Ressourcen. Die Schrift liegt lokal in css/fonts/.
   ========================================================================== */

/* 1 Schrift --------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

/* 2 Farben und Maße -------------------------------------------------------- */
:root {
  --blau: #121833;          /* Leiste, Bühne, Fuß, Schrift */
  --blau-hell: #1d2550;
  --orange: #f47937;        /* KCS-Akzent */
  --orange-dunkel: #e0621f;
  --orange-zart: #fdebe0;
  --grau: #f5f5f5;          /* Seitenhintergrund */
  --weiss: #ffffff;
  --text: #121833;
  --text-leise: #4b5168;
  --linie: #d9d9de;
  --hinweis: #fff3c4;

  --breite: 58rem;
  --breite-schmal: 48rem;
  --rand: 1.25rem;
  --radius: 1.25rem;
  --schatten: 0 8px 28px rgba(18, 24, 51, 0.08);
  --schatten-stark: 0 18px 48px rgba(18, 24, 51, 0.18);
  --schrift: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
}

/* 3 Grundlagen ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: 0.005em;
  color: var(--text);
  background: var(--grau);
}

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

h1, h2, h3 { margin: 0 0 0.6em; color: var(--blau); font-weight: 700; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.2rem, 1.2rem + 4vw, 3.8rem); line-height: 1.15; }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.4rem); line-height: 1.22; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); line-height: 1.3; }

p, ul, ol, dl, address { margin: 0 0 1em; }
address { font-style: normal; }
code { font-family: var(--mono); font-size: 0.92em; background: #ececf0; border-radius: 0.3em; padding: 0.08em 0.35em; }

a { color: var(--blau); font-weight: 600; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.16em; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }

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

.skip { position: absolute; left: -999rem; top: 0; background: var(--weiss); padding: 0.5rem 1rem; z-index: 20; }
.skip:focus { left: 0; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.klein { font-size: 0.9375rem; color: var(--text-leise); }
.umbruch { overflow-wrap: anywhere; word-break: break-word; }
.kopierfeld { position: fixed; top: 0; left: -999rem; opacity: 0; }
[hidden] { display: none !important; }

/* 4 Symbole (Linienzeichnungen als Maske, Farbe folgt der Schrift) ---------- */
.icon {
  display: inline-block; flex: none; width: 1.25em; height: 1.25em;
  background-color: currentColor;
  -webkit-mask: var(--bild) center / contain no-repeat;
          mask: var(--bild) center / contain no-repeat;
}
.icon-pfeil    { --bild: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7'%3E%3Cpath d='M5 19 19 5M8 5h11v11'/%3E%3C/svg%3E"); }
.icon-siegel   { --bild: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6.5'/%3E%3Ccircle cx='12' cy='9' r='3.6'/%3E%3Cpath d='M8.2 14.4 6.5 22l5.5-2.8 5.500 2.8-1.7-7.6'/%3E%3C/svg%3E"); }
.icon-telefon  { --bild: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M6 3h3.200l1.600 4.600-2.100 1.500a12 12 0 0 0 6.200 6.200l1.500-2.100L21 14.800V18a3 3 0 0 1-3 3A15 15 0 0 1 3 6a3 3 0 0 1 3-3z'/%3E%3C/svg%3E"); }
.icon-kopieren { --bild: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8.5' y='8.5' width='12' height='12.5' rx='2'/%3E%3Cpath d='M15.5 8.5V5a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E"); }
.icon-mail     { --bild: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2'/%3E%3Cpath d='m3 6.5 9 6.5 9-6.5'/%3E%3C/svg%3E"); }
.icon-globus   { --bild: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M2.5 12h19M12 2.5c2.6 2.7 3.9 5.9 3.9 9.5s-1.3 6.8-3.9 9.5c-2.6-2.7-3.9-5.9-3.9-9.5s1.3-6.8 3.9-9.5z'/%3E%3C/svg%3E"); }
.icon-haken    { --bild: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E"); }

/* Schaltflächen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.6rem 1.4rem;
  font: inherit; font-weight: 700; line-height: 1.2; letter-spacing: 0;
  text-decoration: none; text-align: center;
  color: var(--blau); background: var(--orange);
  border: 2px solid var(--orange); border-radius: 999px; cursor: pointer;
}
.btn:hover { background: var(--orange-dunkel); border-color: var(--orange-dunkel); }
.btn-linie { background: transparent; color: var(--blau); border-color: var(--blau); }
.btn-linie:hover { background: var(--blau); color: var(--weiss); border-color: var(--blau); }
.btn-gross { font-size: 1.1rem; padding: 0.8rem 1.6rem; }
.btn.erledigt { background: var(--blau); border-color: var(--blau); color: var(--weiss); }

/* 5 Kopf ------------------------------------------------------------------- */
.leiste { background: var(--blau); color: var(--weiss); font-size: 0.8125rem; font-weight: 600; }
.leiste .wrap { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 0 1.5rem; }
.leiste p { margin: 0; padding-block: 0.8rem; }
.leiste a { color: var(--weiss); text-decoration: none; }
.leiste a:hover { text-decoration: underline; }
.leiste ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.leiste li a { display: flex; align-items: center; gap: 0.45rem; height: 100%; padding: 0.8rem 1.1rem; }
.leiste li a .icon { color: var(--orange); }
.leiste :focus-visible, .site-footer :focus-visible, .buehne :focus-visible { outline-color: var(--orange); }
@media (max-width: 34rem) { .leiste nav { display: none; } }

.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 1rem; }

.marke {
  display: flex; align-items: center; gap: 0.6rem; padding-block: 0.85rem; margin-right: auto;
  text-decoration: none; color: var(--blau);
}
.marke-symbol {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.7rem;
  background: var(--orange); color: var(--blau); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em;
}
.marke-text { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.marke-tld { color: var(--orange-dunkel); }

.service-von {
  display: flex; align-items: center; gap: 0.6rem; margin-left: auto;
  font-size: 0.75rem; font-weight: 600; color: var(--text-leise); text-decoration: none;
}
.service-von:hover span { text-decoration: underline; }
.service-von img { width: 62px; height: auto; }

.hauptnav { order: 3; flex-basis: 100%; padding-bottom: 0.3rem; }
.hauptnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.hauptnav a {
  display: flex; align-items: center; height: 100%; padding: 0.35rem 0 0.3rem;
  font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent;
}
.hauptnav a:hover { border-bottom-color: var(--orange); }
@media (max-width: 26rem) {
  .hauptnav ul { gap: 0 1rem; font-size: 0.9375rem; }
  .service-von span { display: none; }
}
@media (min-width: 58rem) {
  .kopf .wrap { gap: 0 2.5rem; }
  .marke { margin-right: 0; }
  .hauptnav { order: 0; flex-basis: auto; margin-right: auto; padding-bottom: 0; }
  .hauptnav ul { gap: 0 2rem; height: 100%; }
  .hauptnav a { padding: 0.7rem 0 0.55rem; }
}

/* 6 Bühne und IP-Karte ----------------------------------------------------- */
.buehne {
  background: var(--blau); color: var(--weiss); text-align: center;
  padding-block: clamp(1.75rem, 1rem + 3.5vw, 4.5rem) clamp(6rem, 5rem + 5vw, 9rem);
  background-image: radial-gradient(circle at 85% -20%, var(--blau-hell) 0, transparent 55%);
}
.buehne h1 { color: var(--weiss); margin: 0 auto; }
.buehne h1::after {
  content: ""; display: block; width: 4.5rem; height: 5px; margin: 0.9rem auto 0;
  border-radius: 3px; background: var(--orange);
}
.buehne .einleitung { margin: 1.25rem auto 0; max-width: 38rem; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); line-height: 1.5; color: #e4e6ef; }

.ipbereich { margin-top: clamp(-7.5rem, -4rem - 4vw, -5rem); padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.ipkarte { container-type: inline-size; text-align: center; box-shadow: var(--schatten-stark); border-top: 6px solid var(--orange); }
.ip-titel { margin: 0; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); font-weight: 600; color: var(--text-leise); letter-spacing: 0; }
.ip-wert { margin: 0.4rem 0 0.6rem; }
.ip {
  display: inline-block; max-width: 100%;
  font-size: clamp(1.7rem, 0.4rem + 7vw, 5rem); font-size: min(5rem, 11.5cqi); font-weight: 750; white-space: nowrap; line-height: 1.1; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; color: var(--blau);
  overflow-wrap: anywhere; cursor: text; user-select: all; -webkit-user-select: all;
}
.ip-lang { font-size: clamp(1.35rem, 0.6rem + 4vw, 3rem); font-size: min(3rem, 9.5cqi); letter-spacing: 0; white-space: normal; overflow-wrap: normal; }
.ip::selection { background: var(--orange-zart); }
.ip-version { margin: 0 0 1.5rem; color: var(--text-leise); font-size: 0.9375rem; }
.plakette {
  display: inline-block; margin-right: 0.35rem; padding: 0.1rem 0.65rem; border-radius: 999px;
  background: var(--orange-zart); color: var(--blau); font-weight: 700; font-size: 0.875rem;
}
.ip-aktionen { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }
.ip-aktionen .btn { flex: 1 1 15rem; max-width: 21rem; }
@media (max-width: 30rem) { .ip-aktionen .btn { font-size: 1.02rem; padding-inline: 1rem; } }
.kopiert { min-height: 1.6em; margin: 0.9rem 0 0; font-weight: 600; color: #1d6b38; }

.ip-details { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--linie); text-align: left; }
.hinweis { background: var(--hinweis); border-radius: 0.6rem; padding: 0.8rem 1rem; text-align: left; font-size: 0.9375rem; }

.support-hinweis {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-top: 1.5rem; padding: 1.1rem 1.4rem;
  background: var(--weiss); border-radius: var(--radius); border-left: 6px solid var(--orange);
  box-shadow: var(--schatten);
}
.support-hinweis > .icon { width: 2.2rem; height: 2.2rem; color: var(--orange); margin-top: 0.15rem; }
.support-hinweis p { margin: 0 0 0.4rem; }
.support-hinweis p:last-child { margin: 0; }

/* 7 Inhalt und Karten ------------------------------------------------------- */
.abschnitt { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.ipbereich + .abschnitt { padding-top: 0; }
.abschnitt > .wrap > :last-child { margin-bottom: 0; }
.vorspann { font-size: 1.15rem; line-height: 1.55; max-width: 46rem; }
.dachzeile { margin: 0 0 0.4rem; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-dunkel); }

.karte { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); padding: clamp(1.4rem, 1rem + 2.5vw, 2.6rem); }
.karte > :last-child { margin-bottom: 0; }
.karte > :first-child { margin-top: 0; }
.kartenkopf { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.kartenkopf h3 { margin: 0; }
.kartenkopf .icon { width: 2.6rem; height: 2.6rem; color: var(--orange); }
.kartenlink {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: auto; padding-top: 1rem; font-weight: 700; text-decoration: none;
}
.kartenlink:hover { text-decoration: underline; }
.kartenlink .icon { width: 2rem; height: 2rem; color: var(--orange-dunkel); }

.kartenpaar { display: grid; gap: 2rem; margin-top: 2rem; }
.kartenpaar .karte { display: flex; flex-direction: column; }
@media (min-width: 52rem) { .kartenpaar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.angebote { background: var(--weiss); border-block: 1px solid var(--linie); }
.angebote .karte { background: var(--grau); box-shadow: none; border: 1px solid var(--linie); }

/* Begriff und Erklärung */
.paare { margin: 0; }
.paare > div { padding: 0.7rem 0; border-top: 1px solid var(--linie); }
.paare > div:first-child { border-top: 0; padding-top: 0; }
.paare > div:last-child { padding-bottom: 0; }
.paare dt { font-weight: 700; }
.paare dd { margin: 0; }
@media (min-width: 40rem) {
  .paare > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; }
}

.ua { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--linie); }
.ua summary { cursor: pointer; font-weight: 600; }
.ua p { margin: 0.6rem 0 0; }
.aktionen-links { margin: 1.5rem 0 0; }

/* Ratgeber */
.ratgeber h3 { margin-top: 2.2em; scroll-margin-top: 1rem; }
.ratgeber ul { padding-left: 1.2rem; }
.ratgeber li { margin-bottom: 0.6rem; }
.ratgeber li::marker { color: var(--orange-dunkel); }
.inhalt { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); padding: 1.25rem 1.5rem; margin: 1.5rem 0 0; }
.inhalt ol { margin: 0; padding-left: 1.3rem; }
.inhalt li { margin: 0.25rem 0; }
.inhalt li::marker { color: var(--orange-dunkel); font-weight: 700; }
.tipp { background: var(--weiss); border-left: 5px solid var(--orange); border-radius: 0 0.8rem 0.8rem 0; padding: 0.9rem 1.2rem; }

/* 8 Tabellen ---------------------------------------------------------------- */
.tabellenrahmen { overflow-x: auto; margin: 1.25rem 0 1.5rem; border-radius: 0.8rem; border: 1px solid var(--linie); background: var(--weiss); }
.tabelle { border-collapse: collapse; width: 100%; font-size: 0.9375rem; line-height: 1.45; }
.tabelle th, .tabelle td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; }
.tabelle thead th { background: #e6e6ea; font-weight: 700; }
.tabelle tbody th { font-weight: 600; }
.tabelle tbody tr > * { border-top: 1px solid var(--linie); }
.tabelle code { white-space: nowrap; background: none; padding: 0; }
.tabelle code.umbruch { white-space: normal; }

/* 9 FAQ: aufklappbare Fragen ohne JavaScript -------------------------------- */
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 0.9rem 0; cursor: pointer; list-style: none; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 1.9rem; height: 1.9rem; margin-top: -0.1rem; transition: transform 0.15s; color: var(--orange-dunkel); }
@media (prefers-reduced-motion: reduce) { .faq summary .icon { transition: none; } }
.faq details[open] summary .icon { transform: rotate(90deg); }
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
.faq details + details { border-top: 1px solid var(--linie); }
.faq .antwort { padding: 0 3rem 1rem 0; }
.faq .antwort > :last-child { margin-bottom: 0; }

/* 10 Rechtstexte ------------------------------------------------------------ */
.titel-linie { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0; }
.titel-linie h1 { display: inline-block; padding-bottom: 0.05em; border-bottom: 4px solid var(--orange); font-size: clamp(2rem, 1.2rem + 3vw, 3rem); }
.rechtstext h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); margin-top: 2em; }
.rechtstext .karte > h2:first-child { margin-top: 0; }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext li { margin-bottom: 0.4rem; }
.kasten { background: var(--orange-zart); border-radius: 0.8rem; padding: 1rem 1.2rem; }
.kasten > :last-child { margin-bottom: 0; }
.stand { margin-top: 2rem; color: var(--text-leise); font-size: 0.9375rem; }

/* 404 */
.fehlerseite { text-align: center; }
.fehlerseite .btn { margin-top: 1rem; }

/* 11 Fuß -------------------------------------------------------------------- */
.site-footer { background: var(--blau); color: var(--weiss); padding-block: 2.75rem 3rem; font-size: 0.875rem; font-weight: 600; text-align: center; }
.site-footer a { color: var(--weiss); }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.4rem; }
.site-footer .rechtliches a { text-decoration: none; }
.site-footer .rechtliches a:hover { text-decoration: underline; }
.site-footer .fussknoepfe { gap: 0.9rem 1.75rem; margin-bottom: 2.25rem; }
.site-footer .fussknoepfe a {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-width: 12.5rem; padding: 0.45rem 1.2rem; text-decoration: none;
  border: 1.5px solid var(--orange); border-radius: 999px;
}
.site-footer .fussknoepfe a:hover { background: var(--orange); color: var(--blau); }
.site-footer address { margin-bottom: 2rem; line-height: 2.4; }
.site-footer address span { display: inline-block; margin-inline: 0.6rem; }
.site-footer .rechtliches { margin-bottom: 0.75rem; }
.copyright { margin: 0; color: #b9bdcc; font-weight: 500; }

.nach-oben {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 10;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--orange); display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(18, 24, 51, 0.2);
}
.nach-oben::before {
  content: ""; width: 0; height: 0; margin-top: -0.15rem;
  border-left: 0.5rem solid transparent; border-right: 0.5rem solid transparent; border-bottom: 0.8rem solid var(--blau);
}
.nach-oben:hover { background: var(--orange-dunkel); }

/* 12 Druck ------------------------------------------------------------------ */
@media print {
  .leiste, .hauptnav, .site-footer, .nach-oben, .skip, .btn, .angebote, .support-hinweis { display: none !important; }
  body { background: none; font-size: 11pt; }
  .buehne { background: none; color: var(--text); padding: 1rem 0; }
  .buehne h1 { color: var(--text); }
  .ipbereich { margin-top: 0; }
  .karte { box-shadow: none; border: 1px solid #999; }
}

/* Ergänzungen */
.aktionen-links:has(> [hidden]) { display: none; }
.aktionen-links:has(> [hidden]) + .kopiert { min-height: 0; margin: 0; }
.titel-linie + .abschnitt { padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
