/* studentphone.de – Stylesheet
   Quelle der Wahrheit für das Design (wird nicht generiert). Nach Änderungen
   `npm run build:pages` ausführen, damit sich der ?v=-Parameter ändert. */

/* Schriften, selbst gehostet (siehe public/fonts/README.txt) */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght.woff2) format('woff2-variations');
}
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-wght.woff2) format('woff2-variations');
}
/* ------------------------------------------------------------------
   Design-Tokens
   Farben zentral hier anpassen, z. B. an die Logo-Farben.
------------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  --font-sans: 'Inter Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bricolage Grotesque Variable', var(--font-sans);

  --brand: #0b6aae;
  --brand-strong: #08548a;
  --brand-soft: #e3f2fd;
  --accent: #10b981;
  --accent-soft: #dcfce9;
  --sun: #ffcf4a;
  --pink: #f32271;
  /* Original-Logofarben */
  --logo-blue: #2da4f2;
  --logo-navy: #0b3954;

  --bg: #f8fbfe;
  --surface: #ffffff;
  --surface-2: #eef5fb;
  --text: #0b2236;
  --muted: #4a5d70;
  --border: #dde7f0;
  --focus: #d35400;
  --danger: #b42318;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow: 0 1px 2px rgb(11 34 54 / 6%), 0 8px 24px -8px rgb(11 34 54 / 12%);
  --shadow-lg: 0 2px 4px rgb(11 34 54 / 6%), 0 24px 48px -16px rgb(11 106 174 / 30%);

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
  --step-3: clamp(1.8rem, 1.45rem + 1.7vw, 2.85rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 4.2rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --brand: #5ab8f5;
    --brand-strong: #8ccdf8;
    --brand-soft: #0f2c44;
    --accent: #34d399;
    --accent-soft: #11392c;
    --bg: #07131f;
    --surface: #0d1d2c;
    --surface-2: #132637;
    --text: #eef5fb;
    --muted: #9fb2c4;
    --border: #223a50;
    --danger: #ff8a80;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px -8px rgb(0 0 0 / 60%);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 40%), 0 24px 48px -16px rgb(0 0 0 / 70%);
  }
}
:root[data-theme='dark'] {
  --brand: #5ab8f5;
  --brand-strong: #8ccdf8;
  --brand-soft: #0f2c44;
  --accent: #34d399;
  --accent-soft: #11392c;
  --bg: #07131f;
  --surface: #0d1d2c;
  --surface-2: #132637;
  --text: #eef5fb;
  --muted: #9fb2c4;
  --border: #223a50;
  --danger: #ff8a80;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px -8px rgb(0 0 0 / 60%);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 40%), 0 24px 48px -16px rgb(0 0 0 / 70%);
}

/* ------------------------------------------------------------------
   Basis
------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 {
  font-size: var(--step-4);
  font-weight: 750;
}
h2 {
  font-size: var(--step-3);
  font-weight: 700;
}
h3 {
  font-size: var(--step-1);
  font-weight: 650;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
a {
  color: var(--brand);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}
a:hover {
  color: var(--brand-strong);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--sun);
  color: #0b2236;
}

.visually-hidden {
  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: -4rem;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-s);
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
  color: var(--bg);
}

/* ------------------------------------------------------------------
   Layout-Helfer
------------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container-narrow {
  width: min(100% - 2 * var(--gutter), 46rem);
  margin-inline: auto;
}
.section {
  padding-block: clamp(3rem, 7vw, 6rem);
}
.section-alt {
  background: var(--surface-2);
}
.section-head {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}
.section-head p {
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.5;
}
.eyebrow,
.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.stack > * + * {
  margin-top: 1rem;
}

/* ------------------------------------------------------------------
   Komponenten
------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover {
  background: var(--brand-strong);
  color: #fff;
}
:root[data-theme='dark'] .btn-primary,
:root[data-theme='dark'] .btn-primary:hover {
  color: #07131f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .btn-primary,
  :root:not([data-theme='light']) .btn-primary:hover {
    color: #07131f;
  }
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}
@media (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translateY(-1px);
  }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow);
}
.card h3 {
  margin-bottom: 0.4em;
}
.card p:last-child {
  margin-bottom: 0;
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.card-link:hover {
  color: inherit;
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}
@media (prefers-reduced-motion: no-preference) {
  .card-link:hover {
    transform: translateY(-3px);
  }
}
.card-link .more {
  color: var(--brand);
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.badge-warn {
  background: #fff4d6;
  color: #7a5200;
}
:root[data-theme='dark'] .badge-warn {
  background: #3b2e0a;
  color: #ffd879;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .badge-warn {
    background: #3b2e0a;
    color: #ffd879;
  }
}
.badge-ok {
  background: var(--accent-soft);
  color: #0b6b4b;
}
:root[data-theme='dark'] .badge-ok {
  color: #7ff0c3;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .badge-ok {
    color: #7ff0c3;
  }
}

.icon-bubble {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.5rem;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8.2 13.6 4.6 10l-1.2 1.2 4.8 4.8 9-9-1.2-1.2z'/%3E%3C/svg%3E")
    center / 0.8rem no-repeat;
}
.checklist.warn li::before {
  background: var(--sun)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230b2236'%3E%3Cpath d='M9 4h2v8H9zm0 10h2v2H9z'/%3E%3C/svg%3E")
    center / 0.8rem no-repeat;
}

.notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: var(--step--1);
  color: var(--muted);
}
.notice strong {
  color: var(--text);
}
.notice p {
  margin: 0;
}

/* FAQ / Accordion auf Basis von <details> */
.faq {
  display: grid;
  gap: 0.75rem;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.25rem;
  font-weight: 650;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand);
  transition: rotate 0.2s ease;
}
.faq details[open] summary::after {
  rotate: 45deg;
}
.faq .answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
}
.faq .answer p:last-child {
  margin-bottom: 0;
}

/* Fließtext (Ratgeber, Anbieter) */
.prose {
  font-size: var(--step-0);
}
.prose h2 {
  font-size: var(--step-2);
  margin-top: 2.2em;
}
.prose h3 {
  margin-top: 1.8em;
}
.prose ul,
.prose ol {
  padding-left: 1.3rem;
  margin: 0 0 1.2em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose li::marker {
  color: var(--brand);
}
.prose blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.prose blockquote p:last-child {
  margin: 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: var(--step--1);
}
.prose .table-wrap {
  overflow-x: auto;
  margin: 1.5em 0;
}
.prose .table-wrap table {
  margin: 0;
}
.prose th,
.prose td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.prose th {
  background: var(--surface-2);
}

/* Abstand-Helfer (statt style-Attributen, CSP erlaubt keine Inline-Styles) */
.mt-s {
  margin-top: 0.75rem;
}

/* Anbieterfarben (Badge-Hintergrund, Punkte). Schlüssel = `key` in build/providers.js */
.brand-telekom { --c: #e20074; }
.brand-vodafone { --c: #e60000; }
.brand-o2 { --c: #0019a5; }
.brand-1und1 { --c: #003d8f; }
.brand-congstar { --c: #2d2d2d; }
.brand-otelo { --c: #007f7a; }
.brand-m-net { --c: #d9004c; }
.brand-netcologne { --c: #0069b4; }

/* Seitenkopf für Unterseiten */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(60rem 24rem at 90% -10%, color-mix(in oklab, var(--brand) 18%, transparent), transparent 70%),
    radial-gradient(40rem 20rem at -10% 110%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: var(--step-3);
  max-width: 22ch;
}
.page-hero .lead {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.5;
}

/* Nummerierte Schritte */
.steps {
  counter-reset: s;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 1.25rem 3.25rem;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 750;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.split {
  align-items: start;
  gap: clamp(2rem, 5vw, 3.5rem);
}

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none !important;
  }
}

/* === Logo === */
.sp-logo {
  display: inline-flex;
  line-height: 0;
}
.sp-logo svg {
  height: 1.6rem;
  width: auto;
  overflow: visible;
}
@media (min-width: 30rem) {
  .sp-logo.header svg {
    height: 2rem;
  }
}
.sp-logo.footer svg {
  height: 1.75rem;
}
:root[data-theme='dark'] .sp-logo .sp-tld,
:root[data-theme='dark'] .sp-logo .sp-base {
  fill: #e8f2fa;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .sp-logo .sp-tld,
:root:not([data-theme='light']) .sp-logo .sp-base {
    fill: #e8f2fa;
  }
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}
/* Unschärfe auf einer eigenen Ebene: backdrop-filter direkt am Header würde ihn zum Bezugsrahmen
   für das fixierte mobile Menü machen, das Menü wäre dann nur so hoch wie der Header. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
}
.site-header .bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
  padding-block: 0.5rem;
}
.site-header .nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-header .nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header .nav-item {
  position: relative;
}
.site-header .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 560;
  color: var(--text);
  background: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}
.site-header .nav-link:hover,
.site-header .nav-link[aria-expanded='true'] {
  background: var(--surface-2);
  color: var(--text);
}
.site-header .nav-link.active {
  color: var(--brand);
}
.site-header .nav-link.cta {
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.site-header .chev {
  transition: rotate 0.2s ease;
}
.site-header [aria-expanded='true'] > .chev {
  rotate: 180deg;
}
.site-header .sub {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
}
.site-header [aria-expanded='true'] + .sub {
  display: block;
}
.site-header .sub a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-s);
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-header .sub a:hover,
.site-header .sub a[aria-current='page'] {
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.site-header .sub li:first-child a {
  font-weight: 650;
}
.site-header .theme-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.site-header .theme-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.site-header .theme-toggle .moon {
  display: none;
}
:root[data-theme='dark'] .site-header .theme-toggle .sun {
  display: none;
}
:root[data-theme='dark'] .site-header .theme-toggle .moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .site-header .theme-toggle .sun {
    display: none;
  }
  :root:not([data-theme='light']) .site-header .theme-toggle .moon {
    display: block;
  }
}
.site-header .menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.site-header .burger {
  position: relative;
  width: 18px;
  height: 12px;
}
.site-header .burger::before,
.site-header .burger::after,
.site-header .burger span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
  transform 0.2s ease,
  opacity 0.2s ease;
}
.site-header .burger::before {
  top: 0;
}
.site-header .burger span {
  top: 5px;
}
.site-header .burger::after {
  top: 10px;
}
.site-header [aria-expanded='true'] .burger::before {
  transform: translateY(5px) rotate(45deg);
}
.site-header [aria-expanded='true'] .burger span {
  opacity: 0;
}
.site-header [aria-expanded='true'] .burger::after {
  transform: translateY(-5px) rotate(-45deg);
}
@media (min-width: 62.01rem) {
  .site-header .sub {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    min-width: 15rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }
}
@media (max-width: 62rem) {
  .site-header .menu-toggle {
    display: inline-flex;
  }
  .site-header .nav {
    display: none;
    position: fixed;
    inset: 4.5rem 0 0 0;
    background: var(--bg);
    padding: 1rem var(--gutter) 2rem;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    border-top: 1px solid var(--border);
  }
  body.nav-open .site-header .nav {
    display: flex;
  }
  body.nav-open {
    overflow: hidden;
  }
  .site-header .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .site-header .nav-link {
    width: 100%;
    justify-content: space-between;
    font-size: 1.1rem;
    min-height: 3.25rem;
    padding-inline: 1rem;
  }
  .site-header .sub {
    padding: 0.25rem 0 0.5rem 1rem;
  }
  .site-header .theme-toggle {
    margin-top: 1rem;
    align-self: flex-start;
  }
}

/* === Footer === */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding-block: 3rem 2rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.site-footer .disclaimer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
}
.site-footer .disclaimer p {
  margin: 0;
}
.site-footer .disclaimer strong {
  color: var(--text);
}
.site-footer .cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}
.site-footer .about {
  grid-column: span 1;
  max-width: 22rem;
}
@media (min-width: 48rem) {
  .site-footer .cols {
    grid-template-columns: 1.6fr repeat(3, 1fr);
  }
}
.site-footer .flogo {
  display: inline-block;
  margin-bottom: 0.75rem;
  text-decoration: none;
}
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 0.15rem;
}
.site-footer nav a {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--muted);
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.site-footer .bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.site-footer .bottom p {
  margin: 0;
}

/* === Breadcrumbs === */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.crumbs li + li::before {
  content: '›';
  margin-right: 0.5rem;
  color: var(--muted);
}
.crumbs a {
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--brand);
}

/* === Anbieter-Raster === */
.providers {
  list-style: none;
  padding: 0;
  margin: 0;
}
.providers .mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: var(--c);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
/* Logo statt Kürzel: weiße Kachel, damit die Markenfarben auch im Dunkelmodus stimmen */
.providers .mark.has-logo {
  background: #fff;
  border: 1px solid var(--border);
}
.providers .mark img,
.pg-provider .hero-mark img,
.pg-provider .mini img {
  display: block;
  width: 60%;
  height: 60%;
}
.providers .name {
  font-size: var(--step-1);
  margin-bottom: 0.2em;
}
.providers .netz {
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* === Tarifart-Karte === */
.example {
  display: flex;
  flex-direction: column;
}
.example .top {
  margin-bottom: 0.75rem;
}
.example .desc {
  color: var(--muted);
}
.example .foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.example .price {
  margin: 0;
  font-weight: 650;
}

/* === Ratgeber-Artikel === */
.pg-article .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: var(--step--1);
  color: var(--muted);
  margin: 0;
}

/* === Anbieterseite === */
.pg-provider .netz {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin: 0;
}
.pg-provider .dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}
.pg-provider .layout {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 60rem) {
  .pg-provider .layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    align-items: start;
  }
  .pg-provider .side {
    position: sticky;
    top: 6rem;
  }
}
.pg-provider .prose h2:first-child {
  margin-top: 0;
}
.pg-provider .pros-cons {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin-top: 2rem;
}
.pg-provider .pros-cons h3 {
  margin-top: 0;
}
.pg-provider .h3 {
  font-size: var(--step-1);
}
.pg-provider dl {
  margin: 0 0 1.25rem;
  font-size: var(--step--1);
}
.pg-provider dt {
  color: var(--muted);
  margin-top: 0.75rem;
}
.pg-provider dd {
  margin: 0;
  font-weight: 600;
}
.pg-provider .full {
  width: 100%;
  margin-top: 0.6rem;
}
.pg-provider .others {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pg-provider .others a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.pg-provider .others a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Anbieterseiten in der Markenfarbe des Anbieters: <body> trägt .brand-<key> (setzt --c),
   die Seitentokens im Inhalt werden daraus abgeleitet. Header und Footer bleiben im
   studentphone-Look. */
.pg-provider main {
  --brand: var(--c);
  --brand-strong: color-mix(in oklab, var(--c) 72%, black);
  --brand-soft: color-mix(in oklab, var(--c) 9%, white);
  --shadow-lg: 0 2px 4px rgb(11 34 54 / 6%), 0 24px 48px -16px color-mix(in oklab, var(--c) 35%, transparent);
}
:root[data-theme='dark'] .pg-provider main {
  --brand: color-mix(in oklab, var(--c) 55%, white);
  --brand-strong: color-mix(in oklab, var(--c) 35%, white);
  --brand-soft: color-mix(in oklab, var(--c) 24%, var(--bg));
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 40%), 0 24px 48px -16px rgb(0 0 0 / 70%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .pg-provider main {
    --brand: color-mix(in oklab, var(--c) 55%, white);
    --brand-strong: color-mix(in oklab, var(--c) 35%, white);
    --brand-soft: color-mix(in oklab, var(--c) 24%, var(--bg));
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 40%), 0 24px 48px -16px rgb(0 0 0 / 70%);
  }
}
.pg-provider .page-hero {
  position: relative;
  background:
    radial-gradient(50rem 26rem at 95% -20%, color-mix(in oklab, var(--c) 30%, transparent), transparent 70%),
    linear-gradient(160deg, color-mix(in oklab, var(--c) 10%, var(--bg)), var(--bg) 75%);
  border-bottom: 1px solid color-mix(in oklab, var(--c) 25%, var(--border));
}
.pg-provider .page-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--c);
}
.pg-provider main .eyebrow {
  color: var(--brand-strong);
}
.pg-provider .hero-mark {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 1.25rem 0 1rem;
  border-radius: 20px;
  background: var(--c);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.4rem;
  box-shadow: 0 12px 28px -12px color-mix(in oklab, var(--c) 70%, transparent);
}
.pg-provider .hero-mark.has-logo {
  background: #fff;
  border: 1px solid color-mix(in oklab, var(--c) 25%, var(--border));
}
.pg-provider .side .card {
  border-top: 4px solid var(--c);
}
.pg-provider .mini {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 7px;
  background: var(--c);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 750;
  flex: none;
}
.pg-provider .mini.has-logo {
  background: #fff;
  border: 1px solid var(--border);
}

.pg-article .stand {
  margin-top: 2.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}

/* === Ratgeber-Übersicht === */
.pg-ratgeber .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.pg-ratgeber .article h2 {
  font-size: var(--step-1);
  margin: 0.75rem 0 0.4em;
}

/* === Startseite === */
.pg-home .hero {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 6rem);
  overflow: hidden;
  background:
  radial-gradient(70rem 30rem at 85% -10%, color-mix(in oklab, var(--brand) 22%, transparent), transparent 70%),
  radial-gradient(50rem 26rem at -15% 100%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.pg-home .hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 60rem) {
  .pg-home .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.pg-home .hero h1 {
  max-width: 15ch;
}
.pg-home .hl {
  background: linear-gradient(transparent 62%, color-mix(in oklab, var(--pink) 28%, transparent) 62%);
  padding-inline: 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.pg-home .lead {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.5;
}
.pg-home .pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .pg-home .pulse {
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
      70% {
        box-shadow: 0 0 0 10px transparent;
      }
      100% {
        box-shadow: 0 0 0 0 transparent;
      }
    }
}
.pg-home .trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
}
.pg-home .hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 22rem);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
}
@media (max-width: 40rem) {
  .pg-home .hero-visual {
    width: min(100%, 15rem);
  }
}
.pg-home .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.pg-home .b1 {
  inset: 8% 0 auto auto;
  width: 70%;
  aspect-ratio: 1;
  background: color-mix(in oklab, var(--brand) 30%, transparent);
}
.pg-home .b2 {
  inset: auto auto 4% 0;
  width: 55%;
  aspect-ratio: 1;
  background: color-mix(in oklab, var(--pink) 22%, transparent);
}
.pg-home .phone {
  position: relative;
  width: 68%;
  aspect-ratio: 9 / 18.5;
  background: #0b2236;
  border-radius: 2.4rem;
  padding: 0.6rem;
  box-shadow:
  0 30px 60px -20px rgb(11 34 54 / 45%),
  inset 0 0 0 2px #223a50;
  rotate: 4deg;
}
.pg-home .notch {
  position: absolute;
  top: 1.05rem;
  left: 50%;
  translate: -50% 0;
  width: 28%;
  height: 0.95rem;
  background: #0b2236;
  border-radius: 999px;
  z-index: 2;
}
.pg-home .screen {
  height: 100%;
  border-radius: 1.9rem;
  background: linear-gradient(180deg, #eaf5fe, #fff);
  padding: 2.6rem 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #0b2236;
}
.pg-home .msg {
  max-width: 85%;
  padding: 0.5rem 0.7rem;
  border-radius: 1rem;
}
.pg-home .msg.in {
  background: #fff;
  border: 1px solid #dde7f0;
  border-bottom-left-radius: 0.3rem;
}
.pg-home .msg.out {
  align-self: flex-end;
  background: #0b6aae;
  color: #fff;
  border-bottom-right-radius: 0.3rem;
}
.pg-home .typing {
  display: flex;
  gap: 0.25rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
  border: 1px solid #dde7f0;
  border-radius: 1rem;
  width: fit-content;
}
.pg-home .typing span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #8aa0b4;
}
@media (prefers-reduced-motion: no-preference) {
  .pg-home .msg {
    opacity: 0;
    translate: 0 8px;
    animation: in 0.5s ease forwards;
  }
  .pg-home .msg:nth-child(1) {
    animation-delay: 0.2s;
  }
  .pg-home .msg:nth-child(2) {
    animation-delay: 0.9s;
  }
  .pg-home .msg:nth-child(3) {
    animation-delay: 1.6s;
  }
  .pg-home .msg:nth-child(4) {
    animation-delay: 2.3s;
  }
  @keyframes in {
      to {
        opacity: 1;
        translate: 0 0;
      }
    }
  .pg-home .typing span {
    animation: blink 1.2s infinite;
  }
  .pg-home .typing span:nth-child(2) {
    animation-delay: 0.2s;
  }
  .pg-home .typing span:nth-child(3) {
    animation-delay: 0.4s;
  }
  @keyframes blink {
      50% {
        opacity: 0.3;
      }
    }
  .pg-home .chip {
    animation: float 6s ease-in-out infinite;
  }
  .pg-home .c2 {
    animation-delay: -2s;
  }
  .pg-home .c3 {
    animation-delay: -4s;
  }
  @keyframes float {
      50% {
        translate: 0 -8px;
      }
    }
}
.pg-home .chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 650;
  white-space: nowrap;
}
.pg-home .c1 {
  top: 10%;
  left: 0;
}
.pg-home .c2 {
  top: 64%;
  right: -4%;
}
.pg-home .c3 {
  bottom: 10%;
  left: 4%;
}
.pg-home .bereich .big {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}
.pg-home .tool {
  overflow: hidden;
  padding-top: 2rem;
}
.pg-home .tool h3 {
  font-size: var(--step-2);
}
.pg-home .tool-a {
  background: linear-gradient(140deg, var(--brand-soft), var(--surface) 70%);
}
.pg-home .tool-b {
  background: linear-gradient(140deg, var(--accent-soft), var(--surface) 70%);
}
.pg-home .tool-tag {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 650;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.pg-home .tips {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pg-home .num {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: var(--step-2);
  color: var(--brand);
  display: block;
  margin-bottom: 0.5rem;
}
.pg-home .section-head.row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.pg-home .section-head.row h2 {
  margin-bottom: 0;
}

/* === Tarif-Finder === */
.pg-finder .finder {
  display: grid;
  gap: 2rem;
  max-width: 52rem;
}
.pg-finder .form {
  display: grid;
  gap: 2rem;
}
.pg-finder .q {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.pg-finder .q[hidden] {
  display: none;
}
.pg-finder .q.missing legend {
  color: var(--danger);
}
.pg-finder legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 650;
  margin-bottom: 0.75rem;
  padding: 0;
}
.pg-finder .qn {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.95rem;
}
.pg-finder .hint {
  color: var(--muted);
  font-size: var(--step--1);
  margin: -0.25rem 0 0.75rem;
}
.pg-finder .opts {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.pg-finder .opt {
  position: relative;
  cursor: pointer;
}
.pg-finder .opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.pg-finder .box {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  height: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface);
  transition:
  border-color 0.15s ease,
  background 0.15s ease;
}
.pg-finder .opt:hover .box {
  border-color: color-mix(in oklab, var(--brand) 50%, var(--border));
}
.pg-finder .opt input:checked + .box {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.pg-finder .opt input:focus-visible + .box {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.pg-finder .l {
  font-weight: 650;
}
.pg-finder .s {
  font-size: var(--step--1);
  color: var(--muted);
}
.pg-finder .error {
  color: var(--danger);
  font-weight: 600;
  margin: 0;
}
.pg-finder .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.pg-finder .result:focus {
  outline: none;
}
.pg-finder .result .grid {
  gap: 1.25rem;
}
.pg-finder .result .rec {
  border: 2px solid var(--brand);
}
.pg-finder .result .rec h3 {
  font-size: var(--step-2);
}
.pg-finder .result .rec-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pg-finder .result .rec-links .btn {
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  font-size: var(--step--1);
}
.pg-finder .result .hint {
  margin-top: 1rem;
}

/* === Datenvolumen-Rechner === */
.pg-rechner .calc {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 60rem) {
  .pg-rechner .calc {
    grid-template-columns: minmax(0, 1fr) 22rem;
    align-items: start;
  }
  .pg-rechner .total {
    position: sticky;
    top: 6rem;
  }
}
.pg-rechner .h3 {
  font-size: var(--step-1);
}
.pg-rechner .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--border);
}
.pg-rechner .row label {
  font-weight: 600;
}
.pg-rechner .row input {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  accent-color: var(--brand);
  height: 2rem;
  cursor: pointer;
}
.pg-rechner .row output {
  grid-column: 2;
  grid-row: 1;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: var(--brand);
}
.pg-rechner .wlan {
  background: var(--surface-2);
  border-radius: var(--radius-s);
  padding-inline: 1rem;
  border-top: 0;
  margin-top: 0.5rem;
}
.pg-rechner .big {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 750;
  line-height: 1;
  margin: 0.5rem 0 1rem;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.pg-rechner .unit {
  font-size: var(--step-0);
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 600;
}
.pg-rechner .rec {
  font-weight: 600;
}
.pg-rechner .meter {
  height: 0.6rem;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.pg-rechner .meter span {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--accent), var(--brand));
  border-radius: inherit;
  transition: width 0.25s ease;
}
.pg-rechner .small {
  font-size: var(--step--1);
  color: var(--muted);
}

/* === Glossar === */
.pg-glossar .az ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.pg-glossar .az a {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding-inline: 0.5rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  font-weight: 650;
}
.pg-glossar .az a:hover {
  border-color: var(--brand);
}
.pg-glossar .gruppe h2 {
  font-size: var(--step-2);
  color: var(--brand);
  margin: 2rem 0 0.75rem;
}
.pg-glossar dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.pg-glossar .eintrag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.pg-glossar dt {
  font-weight: 700;
  font-family: var(--font-display);
  font-size: var(--step-1);
}
.pg-glossar dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

/* === 404 === */
.pg-404 .nf {
  text-align: center;
}
.pg-404 .nf .cta-row {
  justify-content: center;
}
.pg-404 .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 20vw, 9rem);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
