/* Cloud-Server (/cloud-server/, /en/cloud-servers/) und Startseiten-Block.
   Die Bestellansicht des Kundenportals als Vorschau: ausgegraut, gestrichelt
   umrandet, nicht bedienbar (pointer-events: none, Eingaben disabled).
   Ergänzt site.css; alle Klassen mit Präfix cs-. */

.cs-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- Merkmale */
.cs-merkmale { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cs-merkmale li { display: flex; flex-direction: column; gap: 6px; background: var(--flaeche); border-radius: var(--radius); padding: 24px 22px; }
.cs-merkmale .icon { width: 28px; height: 28px; color: var(--blau); margin-bottom: 8px; }
.cs-merkmale strong { font: 700 1.08rem/1.25 var(--titel); letter-spacing: -.01em; }
.cs-merkmale span { color: var(--text-2); font-size: 15px; line-height: 1.5; }

/* ---------------------------------------------------------------- Tarifbereich */
.cs-bereich { padding-top: clamp(56px, 8vw, 96px); }
.cs-bereich > h2 { text-align: center; margin-bottom: 20px; }
.cs-intro { text-align: center; color: var(--text-2); max-width: 680px; margin: 0 auto 28px; }
.cs-klein { font-size: 13.5px; line-height: 1.5; color: var(--text-2); margin: 0 0 14px; }
.cs-stand { text-align: center; margin: 14px 0 0; }

/* Band über der Vorschau: gut sichtbar und als einziges bedienbar. */
.cs-band {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap;
  background: var(--blau); color: #fff; border-radius: var(--radius); padding: 22px 28px; margin-bottom: 20px;
}
.cs-band > div:first-child { flex: 1 1 360px; min-width: 0; }
.cs-band strong { display: block; font: 700 1.2rem/1.3 var(--titel); color: #fff; margin-bottom: 4px; }
.cs-band p { margin: 0; color: #d6e4f7; font-size: 15.5px; max-width: 640px; }
.cs-band .knoepfe { margin-top: 0; flex-shrink: 0; }

/* ---------------------------------------------------------------- Konfigurator (Vorschau) */
.cs-konfig {
  --akzent: #4a4f55;
  --rand: #d9dde2;
  position: relative; border: 2px dashed #c3c8ce; border-radius: var(--radius); background: var(--flaeche);
  padding: 50px 20px 20px; color: #33363a; cursor: not-allowed;
}
.cs-stempel {
  position: absolute; top: 14px; left: 20px; padding: 6px 11px; border-radius: 999px;
  background: #6b7178; color: #fff; font: 700 12px/1 var(--titel); letter-spacing: .08em; text-transform: uppercase;
}
.cs-order { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; pointer-events: none; }
.cs-schritte { min-width: 0; }
.cs-schritt { background: #fff; border: 1px solid var(--rand); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.cs-schritt:last-child { margin-bottom: 0; }
.cs-schritt h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 14px; }
.cs-nr {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%; background: var(--akzent); color: #fff; font-size: 12.5px;
}

/* Auswahlfelder: echtes Eingabefeld (disabled) unsichtbar, Kreis/Kästchen gezeichnet. */
.cs-optionen { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.cs-checks { display: grid; gap: 10px; }
.cs-opt {
  position: relative; display: flex; align-items: flex-start; gap: 10px; min-width: 0;
  border: 1.5px solid var(--rand); border-radius: 10px; padding: 11px 13px; background: #fff;
}
.cs-opt input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.cs-opt.ist-gewaehlt { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); background: #fafafa; }
.cs-marke { display: block; flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; border: 2px solid #b9bec5; background: #fff; }
.cs-marke-radio { border-radius: 50%; }
.cs-marke-checkbox { border-radius: 4px; }
.ist-gewaehlt .cs-marke-radio { border: 5px solid var(--akzent); }
.ist-gewaehlt .cs-marke-checkbox {
  border-color: var(--akzent);
  background: var(--akzent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.cs-opt-text { display: flex; flex-direction: column; min-width: 0; }
.cs-opt-t { font-weight: 600; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.cs-opt-s { font-size: 13px; line-height: 1.4; color: var(--text-2); }
.cs-opt-preis { font-weight: 500; font-size: 13.5px; color: var(--text-2); white-space: nowrap; }

/* Tarifgruppen und Tarif-Zeilen */
.cs-gruppe { margin-top: 18px; }
.cs-gruppe + .cs-gruppe { padding-top: 18px; border-top: 1px solid var(--linie); }
.cs-gruppe-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.cs-gruppe h4 { margin: 0; font: 700 1.02rem/1.3 var(--titel); color: var(--text); }
.cs-chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--akzent); color: #fff;
  font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.cs-gruppe-text { margin: 6px 0 2px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.cs-tarife { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 15px; }
.cs-tarife th {
  padding: 4px 10px 0; text-align: left; color: var(--text-2);
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.cs-tarife td {
  padding: 9px 10px; vertical-align: middle; white-space: nowrap; background: #fff;
  border-top: 1.5px solid var(--rand); border-bottom: 1.5px solid var(--rand);
}
.cs-tarife td:first-child { border-left: 1.5px solid var(--rand); border-radius: 10px 0 0 10px; }
.cs-tarife td:last-child { border-right: 1.5px solid var(--rand); border-radius: 0 10px 10px 0; }
.cs-tarife tr.ist-gewaehlt td { border-color: var(--akzent); background: #fafafa; }
.cs-tarife .cs-wahl { width: 40px; }
.cs-tarife .cs-wahl .cs-marke { margin-top: 0; }
.cs-tarife .cs-preis { text-align: right; }
.cs-preis strong { font: 700 1.12rem/1.2 var(--titel); color: var(--text); letter-spacing: -.01em; }
.cs-netto { display: block; font-size: 12.5px; color: var(--text-2); }
/* Einheiten stehen auf breiten Bildschirmen im Tabellenkopf. */
.cs-einheit { display: none; }

/* Zusammenfassung */
.cs-summe {
  position: sticky; top: calc(var(--kopf-h) + 16px);
  background: #fff; border: 1px solid var(--rand); border-radius: 14px; padding: 20px;
}
.cs-summe h3 { font-size: 1.1rem; margin-bottom: 8px; }
.cs-zeilen { margin: 0; }
.cs-zeilen div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--linie); font-size: 14px; line-height: 1.4; }
.cs-zeilen dt { color: var(--text-2); flex-shrink: 0; }
.cs-zeilen dd { margin: 0; min-width: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.cs-summe-preis { margin: 16px 0 4px; }
.cs-summe-preis strong { font: 700 1.75rem/1.1 var(--titel); letter-spacing: -.02em; color: var(--text); }
.cs-summe-preis span { font-size: 14px; color: var(--text-2); }
.cs-summe .cs-klein { margin-bottom: 0; }
.cs-knopf-aus { margin-top: 14px; background: #d5d9de; color: #4a4f55; border-color: transparent; white-space: normal; text-align: center; cursor: not-allowed; }

/* Hinweis, wenn der Katalog nicht erreichbar ist */
.cs-fehler {
  display: flex; align-items: flex-start; gap: 18px; max-width: 860px; margin: 0 auto;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px;
}
.cs-fehler .icon { flex-shrink: 0; width: 32px; height: 32px; color: var(--blau); }
.cs-fehler p { color: var(--text-2); }
.cs-fehler .cs-fehler-titel { margin-bottom: 6px; color: var(--text); font: 700 1.25rem/1.3 var(--titel); }
.cs-fehler .knoepfe { margin-top: 16px; }

.cs-wissen { padding-top: clamp(56px, 8vw, 96px); max-width: 860px; }

/* ---------------------------------------------------------------- Startseiten-Block */
.cs-teaser-bereich { margin-top: clamp(40px, 6vw, 72px); }
/* Zweiter Teaser direkt darunter (Intelligence auf der Startseite): Abstand wie im Kartenraster */
.cs-teaser-bereich + .cs-teaser-bereich { margin-top: 20px; }
.cs-teaser { flex-direction: row; align-items: center; gap: 24px; background: var(--flaeche); border-color: transparent; }
.cs-teaser-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 56px; height: 56px; border-radius: 14px; background: var(--blau); color: #fff;
}
.cs-teaser-icon .icon { width: 28px; height: 28px; }
.cs-teaser-text { flex: 1 1 auto; min-width: 0; }
.cs-teaser h2 { font-size: 1.5rem; margin-bottom: 6px; }
.cs-teaser p { margin: 0; }
.karte.cs-teaser .btn { margin-top: 0; flex-shrink: 0; }

/* ---------------------------------------------------------------- Feste Preisübersicht */
.cs-hero-preis { margin: 22px 0 4px; font-family: var(--titel); color: var(--text); }
.cs-hero-preis span { font-size: 1.05rem; color: var(--text-2); }
.cs-hero-preis strong { font-size: clamp(2.2rem, 5vw, 2.9rem); line-height: 1; letter-spacing: -.02em; color: var(--blau); }
.cs-hero-klein { margin: 6px auto 0; font-size: 14.5px; color: var(--text-2); }

.cs-preise { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.cs-pkarte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 26px 28px 12px; box-shadow: var(--schatten);
}
.cs-pkarte-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 32px; }
.cs-pkarte-titel { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.cs-pkarte h3 { margin: 0; font: 700 1.35rem/1.2 var(--titel); letter-spacing: -.01em; }
.cs-pkarte-text { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-2); max-width: 620px; }
.cs-ab { margin: 0; font-family: var(--titel); color: var(--text-2); white-space: nowrap; text-align: right; }
.cs-ab strong { font-size: 2rem; line-height: 1; letter-spacing: -.02em; color: var(--blau); }
.cs-ab span { font-size: .95rem; }
.cs-ptabelle { width: 100%; border-collapse: collapse; margin-top: 18px; font-variant-numeric: tabular-nums; }
.cs-ptabelle thead th {
  font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2);
  text-align: left; padding: 0 12px 10px 0; border-bottom: 1px solid var(--linie);
}
.cs-ptabelle tbody tr + tr { border-top: 1px solid var(--linie); }
.cs-ptabelle tbody th, .cs-ptabelle tbody td { padding: 13px 12px 13px 0; vertical-align: baseline; text-align: left; font-size: 15px; }
.cs-ptabelle tbody th { font-weight: 600; }
.cs-ptabelle .cs-p-monat, .cs-ptabelle .cs-p-std { text-align: right; padding-right: 0; }
.cs-ptabelle thead .cs-p-std { padding-left: 16px; }
.cs-p-std { color: var(--text-2); font-size: 14px !important; white-space: nowrap; padding-left: 16px !important; }
.cs-p-monat { white-space: nowrap; }
.cs-p-preis { font: 700 1.15rem/1.2 var(--titel); color: var(--text); }
.cs-p-einheit { font-size: 13px; color: var(--text-2); }
.cs-p-netto { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.cs-p-mobil { display: none; }

.cs-extras {
  margin-top: 24px; background: var(--flaeche); border-radius: var(--radius); padding: 22px 26px;
}
.cs-extras h3 { margin: 0 0 6px; font: 700 1.1rem/1.3 var(--titel); }
.cs-extras .haken { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.cs-preisfuss { text-align: center; max-width: 760px; margin: 18px auto 0; }
.cs-bereich > .knoepfe { margin-top: 18px; }

/* Vorschau der Bestellansicht: aufklappbar unter der Preisübersicht. */
.cs-vorschau { margin-top: 36px; border: 1px solid var(--linie); border-radius: var(--radius); background: #fff; }
.cs-vorschau > summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; display: flex; align-items: center; gap: 10px;
}
.cs-vorschau > summary::-webkit-details-marker { display: none; }
.cs-vorschau > summary::before {
  content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s; flex-shrink: 0;
}
.cs-vorschau[open] > summary::before { transform: rotate(45deg); }
.cs-vorschau > summary:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; border-radius: var(--radius); }
.cs-vorschau[open] > .cs-konfig { margin: 0 14px 14px; }
.cs-teaser-preis { margin-top: 8px !important; font: 700 1.05rem/1.3 var(--titel); color: var(--blau); }

/* ---------------------------------------------------------------- Kleinere Bildschirme */
@media (max-width: 1100px) {
  .cs-merkmale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-order { grid-template-columns: minmax(0, 1fr); }
  .cs-summe { position: static; }
}
@media (max-width: 760px) {
  /* Tariftabelle als Liste von Karten; Einheiten stehen dann in den Zellen. */
  .cs-tarife, .cs-tarife tbody { display: block; }
  .cs-tarife thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cs-tarife tr {
    position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px;
    margin-top: 8px; padding: 10px 12px 10px 40px; background: #fff; border: 1.5px solid var(--rand); border-radius: 10px;
  }
  .cs-tarife tr.ist-gewaehlt { border-color: var(--akzent); background: #fafafa; }
  .cs-tarife td, .cs-tarife tr.ist-gewaehlt td { display: block; padding: 0; border: 0; border-radius: 0; background: none; }
  .cs-tarife td:first-child, .cs-tarife td:last-child { border: 0; border-radius: 0; }
  .cs-tarife td.cs-wahl { position: absolute; left: 12px; top: 14px; width: auto; }
  .cs-tarife td.cs-preis { flex-basis: 100%; margin-top: 4px; text-align: left; }
  .cs-einheit { display: inline; }
  .cs-preis .cs-einheit { font-size: 14px; color: var(--text-2); }
  .cs-netto { display: inline; margin-left: 8px; }
  .cs-teaser { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .cs-pkarte-kopf { flex-direction: column; }
  .cs-ab { text-align: left; }
  .cs-extras .haken { grid-template-columns: minmax(0, 1fr); }
  /* Tabelle als Liste: Zeile 1 Leistung und Preis, Zeile 2 Details klein. */
  .cs-ptabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cs-ptabelle tbody tr {
    display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: 10px; row-gap: 2px;
    padding: 12px 0;
  }
  .cs-ptabelle tbody th, .cs-ptabelle tbody td { padding: 0 !important; font-size: 15px; }
  .cs-p-cpu { grid-area: 1 / 1; }
  .cs-p-ram { grid-area: 1 / 2; font-weight: 600; }
  .cs-p-monat { grid-area: 1 / 3 / 3 / 4; justify-self: end; text-align: right; }
  .cs-p-ssd { grid-area: 2 / 1; }
  .cs-p-traffic { grid-area: 2 / 2; }
  .cs-p-std { grid-area: 3 / 1 / 4 / 4; padding-left: 0 !important; text-align: left !important; }
  .cs-p-ssd, .cs-p-traffic, .cs-p-std { font-size: 13px !important; color: var(--text-2); }
  .cs-p-mobil { display: inline; }
}
@media (max-width: 640px) {
  .cs-merkmale { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cs-pkarte { padding: 20px 16px 6px; }
  .cs-extras { padding: 18px; }
  .cs-merkmale li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 14px; padding: 18px; }
  .cs-merkmale .icon { grid-row: span 2; margin: 0; }
  .cs-opt-t { font-size: 14px; }
  .cs-band { padding: 20px; }
  .cs-konfig { padding: 46px 10px 10px; }
  .cs-stempel { left: 12px; }
  .cs-schritt { padding: 16px 14px; }
  .cs-optionen { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 8px; }
  .cs-opt { padding: 10px; gap: 8px; }
  .cs-fehler { flex-direction: column; padding: 22px; }
  .karte.cs-teaser .btn { width: 100%; white-space: normal; }
}
