/* ============================================================
   NONDOS.NET – Hauptstylesheet
   ============================================================ */

/* -------------------------------------------------------
   Webfonts (self-hosted, DSGVO-konform)
   Lizenz: SIL Open Font License (OFL) — siehe assets/fonts/OFL.txt
   ------------------------------------------------------- */

/* Barlow */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-400-italic.woff2') format('woff2');
}

/* Barlow Condensed */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-condensed-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-condensed-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/barlow-condensed-800.woff2') format('woff2');
}

/* Source Sans 3 */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/source-sans-3-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-sans-3-600.woff2') format('woff2');
}

/* -------------------------------------------------------
   CSS Custom Properties
   ------------------------------------------------------- */
:root {
  /* Midnight & Amber */
  --navy:      #111827;
  --navy-mid:  #1f2937;
  --navy-soft: #374151;
  --orange:    #f59e0b;
  --orange-lt: #fbbf24;
  --orange-dk: #d97706;
  --silver:    #f9fafb;
  --white:     #ffffff;
  --text:      #111827;
  --text-muted:#6b7280;
  --border:    #e5e7eb;
  --success:   #059669;
  --danger:    #dc2626;
  --warn:      #d97706;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(17,24,39,.08);
  --shadow:    0 4px 20px rgba(17,24,39,.12);
  --shadow-lg: 0 8px 40px rgba(17,24,39,.18);
  --transition: 0.22s ease;
}

/* -------------------------------------------------------
   Reset & Base
   ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--silver);
  line-height: 1.6;
}

a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dk); }

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

/* -------------------------------------------------------
   Typography
   ------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}

.display-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -.5px;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* -------------------------------------------------------
   Layout
   ------------------------------------------------------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* -------------------------------------------------------
   HEADER / NAVIGATION
   ------------------------------------------------------- */
.site-header {
  background: #111827;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,.20);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 48px; }
.site-logo span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}

.nav-main { display: flex; align-items: center; gap: 6px; }

.nav-main a {
  color: rgba(255,255,255,.82);
  font-weight: 500;
  font-size: .9rem;
  padding: 7px 14px;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-main a:hover,
.nav-main a.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}

.btn-nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}
.btn-nav-cta:hover { background: var(--orange-lt) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* -------------------------------------------------------
   HERO
   ------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #111827 0%, #1f2937 60%, #111827 100%);
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(245,158,11,.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(251,191,36,.08) 0%, transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  color: #fbbf24;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero h1 span { color: var(--orange); }

.hero p {
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-bullets {
  list-style: none;
  margin-bottom: 32px;
}
.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  margin-bottom: 8px;
}
.hero-bullets li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--orange);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
}

.hero-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  text-align: center;
  color: var(--navy);
}

/* -------------------------------------------------------
   BUTTONS
   ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-lt);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,93,38,.4);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--navy-mid);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-lg { padding: 15px 32px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: .88rem; }
.btn-full { width: 100%; }

.btn-success {
  background: var(--success);
  color: var(--white);
}
.btn-success:hover {
  background: #15683a;
  color: var(--white);
}

/* -------------------------------------------------------
   CARDS
   ------------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.card:hover { box-shadow: var(--shadow); }
.card-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

/* -------------------------------------------------------
   ORDER FORM (Multi-Step)
   ------------------------------------------------------- */
.order-wizard {
  max-width: 860px;
  margin: 0 auto;
}

.wizard-steps {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(16px + 20px);
  right: calc(16px + 20px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
  transition: all var(--transition);
  border: 3px solid var(--white);
}

.wizard-step.active .step-circle {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(232,93,38,.2);
}

.wizard-step.completed .step-circle {
  background: var(--success);
  color: var(--white);
}

.step-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}
.wizard-step.active .step-label { color: var(--orange); }
.wizard-step.completed .step-label { color: var(--success); }

.wizard-panel { display: none; }
.wizard-panel.active { display: block; }

/* -------------------------------------------------------
   PRODUCT CARDS
   ------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.product-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  position: relative;
}

.product-card:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 20px rgba(232,93,38,.15);
  transform: translateY(-2px);
}

.product-card.selected {
  border-color: var(--orange);
  background: #fff8f5;
  box-shadow: 0 4px 20px rgba(232,93,38,.2);
}

.product-card.selected::after {
  content: '✓';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.product-days {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.product-days span { font-size: 1rem; font-weight: 600; color: var(--text-muted); }

.product-name { font-size: .88rem; color: var(--text-muted); margin: 4px 0; }

.product-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--orange);
  margin-top: 8px;
}

.product-price-note { font-size: .75rem; color: var(--text-muted); }

.product-ivk {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e8f5e9;
  color: var(--success);
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  margin-top: 6px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-features li {
  position: relative;
  padding-left: 18px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--success);
  line-height: 1.35;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.product-note {
  margin-top: 10px;
  padding: 8px 10px;
  background: #fff8e1;
  border-left: 3px solid var(--orange);
  border-radius: 4px;
  font-size: .72rem;
  color: #5c4a1f;
  line-height: 1.45;
}

.product-note strong { color: var(--orange); }

/* -------------------------------------------------------
   FORM ELEMENTS
   ------------------------------------------------------- */
.form-group {
  position: relative;
  margin-bottom: 18px;
  padding-top: 8px;
}

.form-label {
  position: absolute;
  top: 0;
  left: 10px;
  background: var(--white);
  padding: 0 6px;
  font-size: .75rem;
  font-weight: 400;
  color: #6b7a8d;
  line-height: 1;
  z-index: 2;
  pointer-events: none;
  transition: color var(--transition);
}

.form-label .required { color: var(--orange); margin-left: 3px; }

.form-control {
  width: 100%;
  padding: 14px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,35,66,.1);
}

.form-group:focus-within .form-label {
  color: var(--navy);
}

.form-control.is-invalid ~ .form-label,
.form-group:has(.form-control.is-invalid) .form-label {
  color: var(--danger);
}

.form-group--static { padding-top: 0; }
.form-group-title {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.profile-prefill-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  background: rgba(10,35,66,.05);
  border: 1px solid rgba(10,35,66,.15);
  border-radius: var(--radius);
}
.profile-prefill-banner .btn-sm {
  padding: 8px 14px;
  font-size: .85rem;
  white-space: nowrap;
}

.form-control.is-invalid {
  border-color: var(--danger);
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(196,43,43,.12);
}

.invalid-feedback {
  display: none;
  font-size: .82rem;
  color: var(--danger);
  margin-top: 4px;
}
.form-control.is-invalid ~ .invalid-feedback { display: block; }

/* Live-Hinweis zu erlaubten Zeichen */
.input-hint {
  margin-top: 0;
  padding: 0 12px;
  background: #fff8e1;
  border-left: 3px solid var(--warn);
  color: #7a5000;
  font-size: .82rem;
  line-height: 1.45;
  border-radius: 6px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: opacity .2s ease, max-height .25s ease, padding .2s ease, margin-top .2s ease, transform .2s ease;
}
.input-hint.show {
  opacity: 1;
  max-height: 120px;
  padding: 8px 12px;
  margin-top: 6px;
  transform: translateY(0);
}

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7a8d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .92rem;
}

.form-check input[type="radio"],
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--orange);
  cursor: pointer;
}

.customer-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.type-btn {
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  background: var(--white);
}

.type-btn.active {
  border-color: var(--orange);
  background: #fff8f5;
}

.type-btn-icon { font-size: 1.5rem; margin-bottom: 4px; }
.type-btn-label { font-size: .9rem; font-weight: 600; color: var(--navy); }

/* -------------------------------------------------------
   PAYMENT METHODS
   ------------------------------------------------------- */
.payment-methods { display: flex; flex-direction: column; gap: 10px; }

.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
}

.payment-option:hover { border-color: var(--navy-soft); }

.payment-option.selected {
  border-color: var(--orange);
  background: #fff8f5;
}

.payment-option input[type="radio"] { display: none; }

.payment-logo {
  width: 60px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.payment-label { font-weight: 600; font-size: .95rem; }
.payment-desc { font-size: .8rem; color: var(--text-muted); }

/* -------------------------------------------------------
   ORDER SUMMARY SIDEBAR
   ------------------------------------------------------- */
.order-summary {
  background: #1f2937;
  border-radius: var(--radius-lg);
  padding: 22px;
  color: rgba(255,255,255,.9);
  position: sticky;
  top: 80px;
}

.order-summary h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  padding: 6px 0;
  color: rgba(255,255,255,.75);
}

.summary-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,.2);
}

.summary-row.total .amount { color: var(--orange); }

/* -------------------------------------------------------
   TRUST INDICATORS
   ------------------------------------------------------- */
.trust-bar {
  background: #1f2937;
  padding: 12px 0;
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.8);
  font-size: .85rem;
}

.trust-icon { font-size: 1.2rem; }

/* -------------------------------------------------------
   FEATURES SECTION
   ------------------------------------------------------- */
.section { padding: 64px 0; }
.section-light { background: var(--white); }
.section-dark { background: #1f2937; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--orange);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--orange-lt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* -------------------------------------------------------
   FAQ
   ------------------------------------------------------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}

.faq-question {
  padding: 16px 20px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--silver); }

.faq-question.open { color: var(--orange); }
.faq-toggle { font-size: 1.2rem; transition: transform var(--transition); }
.faq-question.open .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  background: var(--white);
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer.open {
  max-height: 400px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

/* -------------------------------------------------------
   SUCCESS PAGE
   ------------------------------------------------------- */
.success-container {
  max-width: 600px;
  margin: 60px auto;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1a7a3d, #2daa5a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
  box-shadow: 0 8px 30px rgba(26,122,61,.3);
}

.evb-display {
  background: linear-gradient(135deg, #111827, #1f2937);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 24px 0;
  color: white;
}

.evb-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #fbbf24;
}

/* -------------------------------------------------------
   ALERTS
   ------------------------------------------------------- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: .92rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-success { background: #e8f5e9; color: #1a5e30; border-left: 4px solid var(--success); }
.alert-danger  { background: #dc2626; color: #fff; border-left: 4px solid #7f1d1d; font-weight: 600; }
.alert-warning { background: #fff8e1; color: #7a5000; border-left: 4px solid var(--warn); }
.alert-info    { background: #e3f2fd; color: #0d3d6b; border-left: 4px solid var(--navy-soft); }

/* -------------------------------------------------------
   FOOTER
   ------------------------------------------------------- */
.site-footer {
  background: #111827;
  color: rgba(255,255,255,.8);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand p { font-size: .9rem; line-height: 1.7; margin: 12px 0; }

.footer-col h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  padding: 3px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: .82rem;
}

.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: .78rem;
  color: rgba(255,255,255,.7);
}

/* Widerruf-Schaltflaeche im Footer: muss sich als Button von den normalen
   Textlinks abheben (gesetzliche Pflicht-Schaltflaeche). Ghost-Button in
   Marken-Orange, der sich bei Hover fuellt. Der zweite Selektor schlaegt die
   .footer-col-a-Regel in index.php (Spezifitaet), ohne !important. */
.footer-widerruf,
.footer-col a.footer-widerruf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  background: rgba(245,158,11,.12);
  border: 1px solid var(--orange);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--orange);
  transition: background var(--transition), color var(--transition);
}
.footer-widerruf:hover,
.footer-col a.footer-widerruf:hover {
  background: var(--orange);
  color: #111827;
}

/* -------------------------------------------------------
   Cookie-Banner
   ------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  background: var(--navy);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
  max-width: 980px;
  margin: 0 auto;
}
.cookie-banner.show { opacity: 1; transform: translateY(0); }
.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
}
.cookie-text { flex: 1 1 auto; min-width: 0; }
.cookie-text h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.cookie-text p {
  font-size: .9rem;
  line-height: 1.5;
  color: rgba(255,255,255,.8);
  margin: 0;
}
.cookie-text a { color: var(--orange-lt); text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-actions .btn-outline {
  border-color: rgba(255,255,255,.3);
  color: rgba(255,255,255,.9);
  background: transparent;
}
.cookie-actions .btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,.08);
}

@media (max-width: 720px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1 1 50%; }
}

/* Ungültige Checkbox (AGB) */
.form-check input[type="checkbox"].is-invalid {
  outline: 2px solid var(--danger);
  outline-offset: 2px;
}

/* -------------------------------------------------------
   Bestätigungs-Blöcke (Schritt 4)
   ------------------------------------------------------- */
.confirm-block {
  background: var(--silver);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.confirm-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.confirm-block-header h4 {
  font-size: 1rem;
  color: var(--navy);
  margin: 0;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: .92rem;
}
.confirm-row strong {
  color: var(--text);
  text-align: right;
  word-break: break-word;
}
.confirm-label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.confirm-row.total-row {
  font-size: 1.1rem;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
}
.confirm-row.total-row .confirm-label { color: var(--navy); font-weight: 700; }
.amount-orange { color: var(--orange); font-weight: 800; }

@media (max-width: 560px) {
  .confirm-row { flex-direction: column; gap: 2px; padding: 6px 0; }
  .confirm-row strong { text-align: left; }
  .confirm-block-header { flex-wrap: wrap; }
}

/* -------------------------------------------------------
   Wizard-Layout (Form + Summary-Sidebar)
   ------------------------------------------------------- */
.wizard-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.form-row--street { grid-template-columns: 2fr 1fr 1fr; }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.wizard-nav .btn { flex: 1 1 auto; min-width: 0; }

/* -------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .wizard-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .container, .container-sm { padding: 0 16px; }
  .section { padding: 40px 0; }

  /* Navigation */
  .nav-main { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 10px 0; box-shadow: var(--shadow-lg); }
  .nav-main.open { display: flex; }
  .nav-main a { padding: 14px 20px; border-radius: 0; font-size: 1rem; }
  .hamburger { display: flex; }
  .site-logo img { height: 38px; width: auto; }

  /* Hero */
  .hero { padding: 32px 0 40px; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero p { font-size: 1rem; margin-bottom: 20px; }
  .hero-bullets { margin-bottom: 24px; }
  .hero-bullets li { font-size: .92rem; }
  .hero-card { padding: 20px 18px; }

  /* Trust-Bar */
  .trust-items { gap: 10px 18px; }
  .trust-item { font-size: .78rem; }

  /* Forms */
  .form-row,
  .form-row-3,
  .form-row--street { grid-template-columns: 1fr; gap: 0; }
  .form-control { font-size: 16px; } /* verhindert iOS-Zoom */

  /* Wizard-Schritte */
  .wizard-steps { margin-bottom: 20px; }
  .wizard-steps::before { left: 10%; right: 10%; }
  .step-circle { width: 34px; height: 34px; font-size: .85rem; }
  .step-label { font-size: .68rem; }

  /* Produkt-Grid */
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card { padding: 14px 12px; }
  .product-days { font-size: 1.8rem; }
  .product-price { font-size: 1.4rem; }

  /* Cards & Panels */
  .card { padding: 18px 16px; }
  .card-title { font-size: 1.05rem; }

  /* Summary */
  .order-summary { padding: 18px; position: static; }

  /* Wizard-Navigation (Zurück / Weiter) */
  .wizard-nav { gap: 8px; margin-top: 16px; }
  .wizard-nav .btn-lg { padding: 13px 18px; font-size: 1rem; }
  .btn-ext { display: none; }

  /* Kundentyp-Toggle */
  .customer-type-toggle { gap: 8px; }
  .type-btn { padding: 12px 8px; }

  /* Zahlungsmethoden */
  .payment-option { padding: 12px; gap: 10px; }
  .payment-label { font-size: .9rem; }
  .payment-desc { font-size: .75rem; }

  /* Profil-Prefill */
  .profile-prefill-banner { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; }

  /* FAQ */
  .faq-question { padding: 14px 16px; font-size: .92rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .site-footer { padding: 32px 0 0; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; padding: 16px 0; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .wizard-steps .step-label { display: none; }
  .hero-badge { font-size: .72rem; padding: 4px 10px; }
  .hero h1 { font-size: 1.55rem; line-height: 1.2; }
  .hero-card h3 { font-size: 1rem; }
  .btn-lg { padding: 13px 18px; font-size: 1rem; }
  .wizard-nav .btn { flex: 1 1 100%; }
  .trust-items { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .trust-item { white-space: nowrap; }
}

/* -------------------------------------------------------
   Animationen
   ------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp .5s ease both;
}

.stagger-1 { animation-delay: .1s; }
.stagger-2 { animation-delay: .2s; }
.stagger-3 { animation-delay: .3s; }
.stagger-4 { animation-delay: .4s; }

/* -------------------------------------------------------
   Utility
   ------------------------------------------------------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-orange { color: var(--orange); }
.text-navy { color: var(--navy); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.w-100 { width: 100%; }
.spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.3); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
