/* ==========================================================================
   style.css – Digiturk-Partnerportal von IT-360
   Ruhiges, sachliches Design: Navy + IT-360-Gold, keine Effekte.
   Farben zentral in :root ändern.
   ========================================================================== */

:root {
  --navy: #0f1f3d;
  --navy-2: #1b2f57;
  --gold: #c9a24a;
  --gold-dark: #a9842f;
  --green: #12804a;
  --bg: #f5f6f9;
  --card: #ffffff;
  --text: #1c2333;
  --muted: #5d6679;
  --line: #dfe3ea;
  --red: #c0392b;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 31, 61, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Grundlayout ---------- */
* {
  box-sizing: border-box;
}

/* hidden-Attribut muss immer gewinnen (sonst überschreibt z. B. .btn display:flex) */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--navy-2);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100% - 2rem);
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.section-lead {
  color: var(--muted);
  margin: 0 0 2rem;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-sm {
  padding: 0.5rem 1rem;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: #0d6a3d;
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text small {
  color: var(--gold);
  font-size: 0.78rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-nav > a:not(.btn) {
  color: #dfe5f1;
  text-decoration: none;
  font-size: 0.95rem;
}

.lang-switch {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.lang-switch button {
  background: transparent;
  color: #fff;
  border: 0;
  padding: 0.3rem 0.6rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 4rem 0 4.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  margin: 0 0 0.6rem;
}

.lead {
  color: #c8d1e3;
  font-size: 1.1rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  display: grid;
  gap: 1.2rem;
}

.hero-points li {
  display: flex;
  gap: 0.9rem;
}

.hero-points p {
  margin: 0.1rem 0 0;
  color: #c8d1e3;
  font-size: 0.95rem;
}

.icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* ---------- Paketkarten ---------- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.package {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.package.highlight {
  border: 2px solid var(--gold);
}

.package .badge {
  position: absolute;
  top: -12px;
  left: 1.5rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.package h3 {
  margin-bottom: 0.2rem;
}

.package .duration {
  color: var(--muted);
  font-size: 0.9rem;
}

.price {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0.8rem 0 0.2rem;
}

.price s {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
  margin-left: 0.4rem;
}

.per-month {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.45rem;
  flex: 1;
}

.features li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}

/* ---------- Kanäle ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chips span {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.92rem;
}

/* ---------- Ablauf ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.steps li span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.steps p {
  color: var(--muted);
  margin: 0.2rem 0 0;
}

/* ---------- Formular ---------- */
.order-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-card {
  padding: 1.8rem;
}

/* Fortschrittsanzeige oben */
.stepper {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  counter-reset: step;
}

.stepper li {
  background: var(--bg);
  color: var(--muted);
  text-align: center;
  padding: 0.6rem 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.stepper li:first-child {
  border-radius: 8px 0 0 8px;
}

.stepper li:last-child {
  border-radius: 0 8px 8px 0;
}

.stepper li.active,
.stepper li.done {
  background: var(--navy);
  color: #fff;
}

.form-step {
  border: 0;
  padding: 0;
  margin: 0;
  display: none;
}

.form-step.active {
  display: grid;
  gap: 1rem;
}

legend {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 0;
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.label {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

input,
select,
textarea {
  font: inherit;
  color: var(--text);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}

.invalid {
  border-color: var(--red) !important;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.row-phone {
  grid-template-columns: 130px 1fr;
}

/* Checkboxen */
.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--green);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.check-grid .check {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
}

.consent {
  align-items: flex-start;
  font-size: 0.88rem;
}

/* Paketauswahl als Karten-Radios */
.radio-cards {
  display: grid;
  gap: 0.7rem;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: var(--text);
  cursor: pointer;
}

.radio-card:has(input:checked) {
  border: 2px solid var(--green);
  background: #f1faf5;
}

.radio-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.radio-card .rc-name {
  flex: 1;
  font-weight: 600;
}

.radio-card .rc-name small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.radio-card .rc-price {
  font-weight: 700;
}

/* Honeypot unsichtbar */
.hp {
  position: absolute;
  left: -9999px;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.8rem;
}

.form-nav #btn-next,
.form-nav #btn-submit {
  margin-left: auto;
}

.form-error {
  color: var(--red);
  margin: 1rem 0 0;
  font-size: 0.92rem;
}

.form-success {
  text-align: center;
  padding: 2rem 0 1rem;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}

.ref {
  color: var(--muted);
}

/* ---------- Bestellübersicht ---------- */
.summary {
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.summary-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 1rem;
}

.summary-head {
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.summary-head small {
  color: var(--gold);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 1rem;
}

.summary-total strong {
  font-size: 1.8rem;
}

.summary-trust {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.summary-trust li::before {
  content: "✓ ";
  color: var(--green);
}

/* ---------- FAQ ---------- */
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
}

summary {
  font-weight: 600;
  cursor: pointer;
}

details p {
  color: var(--muted);
  margin: 0.7rem 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c8d1e3;
  padding: 2rem 0 1rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.disclaimer {
  font-size: 0.8rem;
  color: #8e9ab3;
  margin-top: 1.5rem;
}

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .hero-inner,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .package-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .summary {
    position: static;
    order: -1; /* Übersicht auf dem Handy oberhalb des Formulars */
  }

  .header-nav > a:not(.btn) {
    display: none;
  }
}

@media (max-width: 560px) {
  .row,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .row-phone {
    grid-template-columns: 110px 1fr;
  }

  .brand-text small {
    display: none;
  }
}
