/* Vergleichsseite im meinesim-Muster für /minecraft-server-mieten/ – nur Tokens aus style.css */

.mc-seite main { padding-bottom: var(--space-xl); }

/* ── Kopf: kompakt, dunkler Streifen wie meinesim, aber in superhtml-Violett ── */
.mc-kopf {
  background: var(--purple-900);
  color: var(--text-on-purple);
  padding: var(--space-md) 0 calc(var(--space-xl) + var(--space-lg));
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  text-align: center;
}
.mc-kopf .breadcrumb { padding-top: 0; margin-bottom: var(--space-md); }
.mc-kopf .breadcrumb ol { justify-content: center; }
.mc-kopf .breadcrumb a { color: var(--purple-400); }
.mc-kopf .breadcrumb [aria-current], .mc-kopf .breadcrumb li + li::before { color: rgba(245, 243, 255, .65); }
.mc-kopf h1 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  line-height: 1.15;
  margin: 0 auto var(--space-xs);
  max-width: 24ch;
  color: var(--white);
}
.mc-kopf__lead { margin: 0; font-size: var(--fs-sm); color: rgba(245, 243, 255, .8); }

/* ── Bestes Angebot ── */
.held {
  position: relative;
  margin-top: calc(-1 * var(--space-xl));
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(30, 10, 60, .14), 0 2px 6px rgba(30, 10, 60, .06);
  padding: var(--space-lg);
}
.held__kopf { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.badge-fill {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: var(--radius-pill);
  background: var(--purple-100);
  color: var(--purple-700);
  font-size: var(--fs-xxs);
  font-weight: 600;
  letter-spacing: .02em;
}
.held__tag {
  padding: .2rem .7rem;
  border-radius: var(--radius-pill);
  background: var(--cream-light);
  color: var(--text-secondary);
  font-size: var(--fs-xxs);
}
.held__raster {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}
@media (min-width: 860px) { .held__raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.held__marke { margin: 0; font-size: var(--fs-xl); font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.held__tarif { margin: .15rem 0 var(--space-sm); color: var(--text-secondary); }
.held__betrag { margin: 0 0 var(--space-md); color: var(--text-primary); font-variant-numeric: tabular-nums; line-height: 1; }
.held__euro { font-size: clamp(2.8rem, 2.2rem + 2vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; }
.held__cent { font-size: 1.5rem; font-weight: 700; vertical-align: top; }
.held__einheit { font-size: var(--fs-sm); color: var(--text-secondary); }
.held__eckwerte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs) var(--space-md); margin: 0; }
.held__eckwerte div { border-top: 1px solid var(--cream-dark); padding-top: var(--space-2xs); }
.held__eckwerte dt { font-size: var(--fs-xxs); color: var(--text-muted); }
.held__eckwerte dd { margin: 0; font-weight: 600; color: var(--text-primary); }

.held__gesamt {
  background: var(--purple-50);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.held__gesamtzeile { margin: 0 0 var(--space-sm); display: grid; gap: .2rem; font-variant-numeric: tabular-nums; }
.held__gesamtzeile .label { font-size: var(--fs-xs); color: var(--text-secondary); }
.held__gesamtzeile strong { font-size: 2rem; font-weight: 700; color: var(--purple-700); letter-spacing: -.02em; }

/* Kostenbalken: wohin das Geld im ersten Jahr geht */
.kb__balken { display: flex; height: 10px; border-radius: var(--radius-pill); overflow: hidden; background: var(--cream-light); gap: 2px; }
.kb--gross .kb__balken { height: 14px; }
.kb__teil { display: block; width: var(--w); }
.kb__teil--a { background: var(--purple-600); }
.kb__teil--b { background: var(--purple-400); }
.kb__teil--c { background: var(--purple-800); }
.kb__legende { list-style: none; margin: var(--space-xs) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); font-size: var(--fs-xs); color: var(--text-secondary); }
.kb__legende strong { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.kb__punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

.held__fuss {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm);
  margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--cream-dark);
}
.stempel { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-secondary); }
.stempel svg { color: var(--purple-600); }
.held__aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }

/* ── Buttons ── */
.btn-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 var(--space-md);
  border-radius: var(--radius-pill); border: 0;
  background: var(--purple-600); color: var(--white);
  font: 600 var(--fs-sm)/1 var(--ff-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, transform .15s ease;
}
.btn-go:hover { background: var(--purple-500); }
.btn-go:active { transform: translateY(1px); }
.btn-go:focus-visible, .btn-leise:focus-visible { outline: 3px solid var(--purple-400); outline-offset: 2px; }
.btn-go:disabled { background: var(--cream-dark); color: var(--text-muted); cursor: not-allowed; }
.btn-go--gross { min-height: 48px; padding: 0 var(--space-lg); font-size: var(--fs-body); }
.btn-go--klein { min-height: 32px; padding: 0 var(--space-sm); font-size: var(--fs-xs); margin-top: var(--space-2xs); }
.btn-leise {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md);
  border-radius: var(--radius-pill); border: 0; background: var(--cream-light); color: var(--text-primary);
  font: 500 var(--fs-sm)/1 var(--ff-body); text-decoration: none; cursor: pointer;
}
.btn-leise:hover { background: var(--cream-dark); }
.anzeige { display: block; font-size: var(--fs-xxs); color: var(--text-muted); text-align: center; margin-top: 2px; }
@media (max-width: 520px) { .btn-zusatz { display: none; } }

/* ── Antwort und Sprungleiste ── */
.mc-antwort { margin: var(--space-lg) 0 var(--space-md); max-width: 75ch; color: var(--text-primary); line-height: 1.65; }
.sprung { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-lg); }
.sprung a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md);
  border-radius: var(--radius-pill); background: var(--white); color: var(--text-primary);
  font-size: var(--fs-sm); font-weight: 500; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(30, 10, 60, .08);
}
.sprung a:hover { background: var(--purple-50); color: var(--purple-700); }
.sprung a:focus-visible { outline: 3px solid var(--purple-400); outline-offset: 2px; }

/* ── Abschnitte ── */
.mc-abschnitt { padding-top: var(--space-xl); scroll-margin-top: 80px; }
.mc-abschnitt h2 {
  font-family: var(--ff-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.2;
  margin: 0 0 var(--space-sm); color: var(--text-primary);
}
.mc-abschnitt__intro { margin: 0 0 var(--space-md); max-width: 75ch; color: var(--text-secondary); font-size: var(--fs-sm); }

/* ── Tariftabelle: Zeilen als Karten ── */
.tt-wrap { overflow-x: visible; }
.tt { width: 100%; border-collapse: separate; border-spacing: 0 var(--space-xs); font-size: var(--fs-sm); }
.tt caption { caption-side: top; text-align: left; font-size: var(--fs-xxs); color: var(--text-muted); padding-bottom: var(--space-2xs); }
.tt thead th { text-align: left; font-size: var(--fs-xxs); font-weight: 600; color: var(--text-muted); padding: 0 var(--space-sm) var(--space-2xs); }
.tt__zeile > * { background: var(--white); padding: var(--space-md) var(--space-sm); vertical-align: top; text-align: left; }
.tt__zeile > :first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); padding-left: var(--space-md); }
.tt__zeile > :last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; padding-right: var(--space-md); }
.tt__zeile th { font-weight: 400; }
.tt__marke { display: block; font-weight: 700; color: var(--text-primary); }
.tt__tarif { display: block; color: var(--text-secondary); }
.tt__geprueft { display: block; margin-top: var(--space-2xs); font-size: var(--fs-xxs); color: var(--text-muted); }
.tt .badge-fill { margin-top: var(--space-2xs); }
.tt__klein { display: block; font-size: var(--fs-xxs); color: var(--text-muted); line-height: 1.45; margin-top: 2px; }
.tt__lz { max-width: 16rem; color: var(--text-secondary); }
.tt__jahr { font-variant-numeric: tabular-nums; min-width: 9.5rem; }
.tt__jahr strong { font-size: var(--fs-lg); color: var(--text-primary); }
.tt__skala { display: block; height: 6px; margin-top: var(--space-2xs); border-radius: var(--radius-pill); background: var(--cream-light); overflow: hidden; }
.tt__skala span { display: block; height: 100%; width: var(--w); background: var(--purple-400); border-radius: inherit; }
.tt__zeile--erste .tt__skala span { background: var(--purple-600); }
.tt__aktion { text-align: center !important; white-space: nowrap; width: 1%; }

/* Vergleichs-Schalter (vom Skript eingefügt) */
.vgl-schalter { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: var(--space-xs); font-size: var(--fs-xs); color: var(--text-secondary); cursor: pointer; min-height: 32px; }
.vgl-schalter input { width: 16px; height: 16px; accent-color: var(--purple-600); }

@media (max-width: 760px) {
  .tt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tt, .tt tbody { display: block; }
  .tt__zeile {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--white); border-radius: var(--radius-md); margin-bottom: var(--space-sm); padding: var(--space-md);
  }
  .tt__zeile > * { background: none; padding: var(--space-2xs) 0; border-radius: 0 !important; box-shadow: none !important; }
  .tt__zeile > th { grid-column: 1 / -1; padding-bottom: var(--space-xs); }
  .tt__zeile > td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-xxs); color: var(--text-muted); }
  .tt__lz { grid-column: 1 / -1; max-width: none; }
  .tt__jahr { grid-column: 1 / -1; }
  .tt__aktion { grid-column: 1 / -1; width: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
  .tt__aktion .btn-go { flex: 1; }
  .tt__aktion .vgl-schalter { margin-top: 0; }
}

/* Ohne Rangplatz */
.offside { margin-top: var(--space-xs); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); background: var(--cream-light); font-size: var(--fs-sm); }
.offside__title { margin: 0 0 var(--space-2xs); font-size: var(--fs-xxs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.offside ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--space-2xs); }
.offside__why { color: var(--text-muted); }
.offside__why::before { content: '· '; }
.offside a { color: var(--purple-600); }

/* Rechenweg-Kacheln */
.mc-wissen__raster { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mc-wissen article { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-md) var(--space-lg); }
.mc-wissen h3 { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: 600; margin: 0 0 var(--space-2xs); }
.mc-wissen p { margin: 0; font-size: var(--fs-sm); color: var(--text-secondary); }

.mc-text > * { max-width: 860px; }
.mc-text > p { color: var(--text-secondary); }
.mc-data { margin-top: var(--space-md); background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-sm) var(--space-md); }
.mc-data summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; }

/* ── Vergleichsleiste und Dialog ── */
.vgl-leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--purple-900); color: var(--text-on-purple); box-shadow: 0 -8px 30px rgba(30, 10, 60, .25); }
.vgl-leiste[hidden] { display: none; }
.vgl-leiste__inhalt { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.vgl-leiste__stand { margin: 0; font-size: var(--fs-sm); }
.vgl-leiste__tasten { display: flex; gap: var(--space-xs); }
.vgl-leiste .btn-leise { background: rgba(255, 255, 255, .1); color: var(--white); }
.vgl-leiste .btn-go:disabled { background: rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .5); }
body.vgl-aktiv { padding-bottom: 72px; }

.vgl-dialog { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 30px 80px rgba(30, 10, 60, .35); }
.vgl-dialog::backdrop { background: rgba(30, 10, 60, .55); }
.vgl-blatt { padding: var(--space-lg); }
.vgl-kopf { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.vgl-kopf h2 { margin: 0; font-family: var(--ff-display); font-weight: 400; font-size: var(--fs-xl); }
.vgl-tabelle-wrap { overflow-x: auto; }
.vgl-tabelle { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 520px; }
.vgl-tabelle th, .vgl-tabelle td { text-align: left; vertical-align: top; padding: var(--space-xs) var(--space-sm); border-bottom: 1px solid var(--cream-dark); }
.vgl-tabelle thead th { position: sticky; top: 0; background: var(--white); }
.vgl-tabelle thead th strong, .vgl-tabelle thead th span { display: block; }
.vgl-tabelle thead th span { font-weight: 400; color: var(--text-secondary); }
.vgl-tabelle tbody th { color: var(--text-muted); font-weight: 500; width: 9rem; }
.vgl-gleich td { color: var(--text-muted); }
.vgl-unbekannt { color: var(--text-muted); font-style: normal; }
.vgl-fussnote { margin: var(--space-md) 0 0; font-size: var(--fs-xxs); color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  .btn-go { transition: none; }
}

/* Cookie-Hinweis nicht über der Vergleichsleiste */
body.vgl-aktiv .cookie-consent { bottom: calc(72px + var(--space-md)); }
.vgl-dialog { margin: auto; overflow: auto; }
.badge-fill { white-space: nowrap; }
@media (max-width: 760px) {
  .tt caption { display: block; }
  .tt__zeile > :first-child, .tt__zeile > :last-child { padding-left: 0; padding-right: 0; }
}
@media (max-width: 520px) {
  .held { padding: var(--space-md); }
  .held__aktionen { width: 100%; }
  .held__aktionen > * { flex: 1; justify-content: center; }
}

.mc-veraltet {
  position: relative; margin: calc(-1 * var(--space-xl)) 0 var(--space-md); padding: var(--space-sm) var(--space-md);
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); font-size: var(--fs-sm);
}
.mc-veraltet + .held { margin-top: 0; }
