@import url("https://fonts.googleapis.com/css2?family=Yantramanav:wght@300;400;500;700;900&display=swap");

/* ============================================================
   1. Root Variables & Scoped Container
   ============================================================ */
#prechnerwizard,
.pgr-wrapper {
  /* Brand Colors */
  --primary-color: #00933b;
  --primary-dark: #006027;
  --primary-light: #67b184;
  --accent-color: #e88800;

  /* Functional Colors */
  --text-color: #333333;
  --text-muted: #808080;
  --bg-color: #efefef;
  --card-bg: #ffffff;
  --border-color: #e6e6e6;

  /* Typography */
  --font-heading:
    "Yantramanav", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-body:
    "Yantramanav", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  /* Spacing & Layout */
  --border-radius: 4px;
  --container-width: 900px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Scoped Container Styles */
  box-sizing: border-box;
  font-family: var(--font-body);
  color: var(--text-color);
  line-height: 1.5;
  font-weight: 300;
  font-size: 18px;
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-bottom: 6rem;
  text-align: left;
}

#prechnerwizard *,
.pgr-wrapper * {
  box-sizing: border-box;
}

/* Standalone helper for standalone test page (without affecting WP) */
body:has(#prechnerwizard) {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color, #efefef);
}

/* ============================================================
   2. Main Layout (Wizard & Sidebar)
   ============================================================ */
.wizard-layout {
  display: flex;
  gap: 2rem;
  max-width: 1500px;
  margin: 2rem auto;
  align-items: flex-start;
}

.wizard-main {
  flex: 1;
  min-width: 0;
}

.wizard-container {
  position: relative;
  padding-bottom: 60px;
}

/* Progress Bar */
.progress-wrapper {
  margin-bottom: 2rem;
}

.progress-track {
  background-color: #e5e7eb;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  background-color: var(--primary-color);
  height: 100%;
  width: 0%;
  transition: width 0.4s ease;
}

/* Wizard Steps */
.wizard-step {
  display: none;
  animation: pgrFadeIn 0.4s ease-out;
}

.wizard-step.active {
  display: block;
}

@keyframes pgrFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Module Card */
.module-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.module-title {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.module-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.intro-card {
  text-align: center;
  border-top: 4px solid var(--primary-color);
}

.intro-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.module-header-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0c4a6e;
  margin-bottom: 0.5rem;
}

.module-stats {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
  text-transform: uppercase;
  text-align: center;
}

.q-num {
  background: var(--primary-color);
  color: white;
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

/* Question Block (Fallback / Sonderblöcke) */
.question-block {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.question-block:last-child {
  border-bottom: none;
}

.question-text {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.question-help {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.input-number {
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
}

/* ============================================================
   3. Questions Grid Layout
   ============================================================ */
.questions-grid {
  width: 100%;
  margin-top: 1.5rem;
}

.grid-header {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 0.5rem;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 10;
}

.header-label {
  background: rgba(0, 147, 59, 0.1);
  color: #334155;
  padding: 1rem 0.75rem;
  text-align: center;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2rem;
  font-size: 1rem;
  min-width: 125px;
  text-transform: capitalize;
}

.header-label strong {
  word-wrap: break-word;
  width: 100%;
}

.label-desc {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #64748b;
  margin-top: 0.5rem;
}

.cell-desc-mobile {
  display: none;
}

.grid-row {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

.grid-row:hover {
  border-color: var(--primary-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.grid-row.has-selection {
  background: #f8fafc;
}

.grid-row.active-focus {
  background: #e7fff0;
  border-color: #00933b;
}

.question-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  color: #1e293b;
  padding: 0.5rem 0;
}

.question-cell .info-icon {
  margin-left: auto;
  background: transparent;
  color: #64748b;
  border: 1px solid #cbd5e1;
  cursor: pointer;
}

.option-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 60px;
  min-width: 125px;
}

.option-cell:hover {
  border-color: var(--primary-color);
  background: #f0fdf4;
}

.option-cell.selected {
  border-color: var(--primary-color);
  background: #f0fdf4;
  box-shadow: inset 0 0 0 1px var(--primary-color);
}

.option-cell input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  margin: 0;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.option-cell input[type="radio"]:checked {
  border-color: var(--primary-color);
  background: #fff;
}

.option-cell input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
}

/* Frequency & Counter (Tages-Häufigkeit) */
.freq-option {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px;
  cursor: pointer;
}

.freq-option-label {
  display: none;
}

.freq-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.freq-option.selected .freq-circle {
  background: #b0d7d1;
  border-color: #b0d7d1;
}

.freq-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color, #00933b);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.freq-check svg {
  width: 20px;
  height: 20px;
}

.freq-counter {
  display: flex;
  align-items: center;
  background: #b0d7d1;
  border-radius: 4px;
  overflow: hidden;
  height: 36px;
  padding: 0 4px;
}

.freq-counter .btn-minus,
.freq-counter .btn-plus {
  border: none;
  background: transparent;
  color: #2c5270;
  width: 30px;
  height: 100%;
  cursor: pointer;
  font-size: 1.4rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.freq-counter .btn-minus:hover,
.freq-counter .btn-plus:hover {
  background: rgba(255, 255, 255, 0.3);
}

.freq-counter .freq-val {
  background: #fff;
  border-radius: 2px;
  padding: 0 8px;
  margin: 0 2px;
  font-weight: bold;
  color: #1e293b;
  min-width: 30px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 28px;
}

.freq-option.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.hidden-radio {
  display: none !important;
}

/* Module 4 & 5 Special Rules */
.module5-group-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 2rem 0 1rem 0;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.inkontinenz-toggle-row {
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.inkontinenz-row {
  transition: opacity 0.3s ease;
}

/* ============================================================
   4. Modules Sidebar (Right)
   ============================================================ */
.modules-nav-sidebar {
  display: none;
  flex: 0 0 300px;
  position: sticky;
  top: 2rem;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.modules-nav-sidebar.visible {
  display: block;
}

.modules-nav-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modules-nav-sidebar li {
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  border: 1px solid var(--border-color);
}

.modules-nav-sidebar li:hover {
  border-color: var(--primary-light);
  transform: translateX(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.modules-nav-sidebar li.active {
  background: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
}

.modules-nav-sidebar li.visited {
  cursor: pointer;
  color: var(--primary-color);
  border-color: var(--primary-light);
}

.modules-nav-sidebar li.visited:hover {
  background: #f0fdf4;
  transform: translateX(-3px);
}

.modules-nav-sidebar li.visited::after {
  content: " ✓";
  font-size: 0.85em;
  opacity: 0.7;
}

.modules-nav-sidebar li.visited.active::after {
  content: "";
}

.def-info-box {
  margin-top: 2rem;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

/* ============================================================
   5. Contact Step Form
   ============================================================ */
.contact-card {
  border-top: 4px solid var(--primary-color);
}

.contact-form-wrapper {
  margin-top: 1.5rem;
}

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

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-color);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.3s ease;
}

.input-with-icon input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 3rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fcfcfc;
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 147, 59, 0.1);
  background: white;
}

.input-with-icon input:focus + svg {
  color: var(--primary-color);
}

.checkbox-group {
  margin: 2rem 0;
}

.checkbox-container {
  display: block;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-muted);
  user-select: none;
  line-height: 1.4;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  background-color: #eee;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary-color);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-footer-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  text-align: center;
  border-top: 1px solid #f0f0f0;
  padding-top: 1.5rem;
}

/* ============================================================
   6. Navigation Footer (Fixed Bottom)
   ============================================================ */
.wizard-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.25rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.footer-content {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  font-family: inherit;
}

.btn-prev {
  background: white;
  color: var(--text-color);
}

.btn-prev:hover {
  background: #f9f9f9;
  border-color: var(--primary-light);
  transform: translateX(-4px);
}

.btn-next {
  background: var(--primary-color);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 147, 59, 0.2);
}

.btn-next:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(0, 147, 59, 0.3);
  transform: translateX(4px);
}

.btn-next:active {
  transform: scale(0.98);
}

.btn-next:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ============================================================
   7. Result Page
   ============================================================ */
.result-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.result-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pg-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

.pg-title {
  font-size: 2.2rem;
  color: var(--text-color);
  font-weight: 400;
}

.result-layout-grid {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.result-main-card {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.05),
    0 10px 10px -5px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  flex: 1.4;
  margin-bottom: 0;
}

.pflegegrad-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.pg-circle {
  width: 150px;
  height: 150px;
  border: 8px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f0fdf4;
}

.pg-prefix {
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 500;
}

.pg-value {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-color);
}

.total-points {
  display: flex;
  flex-direction: column;
}

.total-points strong {
  font-size: 2.5rem;
  color: var(--text-color);
  line-height: 1;
}

.total-points span {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Scale Track & Markers */
.pg-scale-container {
  padding: 0 1rem;
}

.pg-scale-track {
  height: 12px;
  background: #e5e7eb;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.pg-scale-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-light),
    var(--primary-color)
  );
  border-radius: 6px;
  transition: width 1s ease-out;
}

.pg-scale-markers {
  position: relative;
  height: 40px;
}

.pg-scale-markers .marker {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pg-scale-markers .marker::before {
  content: "";
  width: 2px;
  height: 8px;
  background: #d1d5db;
  margin-bottom: 0.5rem;
}

.pg-scale-markers .marker span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.pg-scale-markers .marker.active span {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.9rem;
}

.pg-scale-markers .marker.active::before {
  background: var(--primary-color);
  height: 12px;
}

.breakdown-grid {
  flex: 1;
  margin-top: 0;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-color);
}

.modules-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.module-score-card {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.module-score-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border-color: var(--primary-light);
}

.mod-icon {
  width: 50px;
  height: 50px;
  background: #f8fafc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.mod-info {
  display: flex;
  flex-direction: column;
}

.mod-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.mod-pts {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
}

.btn-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.budget-tile {
  background: #f7f9fc;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

/* ============================================================
   8. Tooltips, Modals & Toasts
   ============================================================ */
.info-icon {
  color: #64748b;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  transition: all 0.2s;
  border: 1px solid #e2e8f0;
  margin-left: 0.5rem;
}

.info-icon:hover {
  background: #f1f5f9;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: white;
  padding: 2rem;
  border-radius: 4px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-footer {
  margin-top: 1.5rem;
  text-align: right;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.btn-close-modal {
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
}

.toast {
  background: white;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent-color);
  margin-bottom: 0.5rem;
}

.error-view {
  text-align: center;
  padding: 3rem 1rem;
  color: #dc2626;
}

.error-view h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* ============================================================
   9. Responsive Design
   ============================================================ */
@media (max-width: 1200px) {
  .grid-header {
    display: none !important;
  }

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

  .question-cell {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
    padding-bottom: 0;
    align-items: flex-start;
  }

  .question-cell .info-icon {
    margin-top: 2px;
  }

  .option-cell {
    display: block;
    position: relative;
    padding: 1rem 1rem 1rem 3.5rem;
    margin-bottom: 0.75rem;
    min-height: auto;
    text-align: left;
    border: 1px solid var(--border-color);
    border-radius: 6px;
  }

  .option-cell input[type="radio"] {
    position: absolute;
    left: 1rem;
    top: 1.2rem;
  }

  .option-cell::after {
    content: attr(data-label);
    font-weight: 700;
    font-size: 1.05rem;
    display: block;
    color: var(--text-color);
    line-height: 1.2;
    margin: 0;
  }

  .option-cell .cell-desc-mobile {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.4rem;
    line-height: 1.4;
  }

  .option-cell.selected {
    border-color: var(--primary-color);
    background: #f0fdf4;
    box-shadow: 0 2px 4px rgba(0, 147, 59, 0.1);
  }

  /* Module 5 Mobile Frequency Options */
  .grid-row.freq-row {
    display: block !important;
  }

  .option-cell.freq-option {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.85rem 1.15rem !important;
    min-height: 54px;
    cursor: pointer;
    box-sizing: border-box;
    text-align: left;
    transition: all 0.2s ease;
  }

  .option-cell.freq-option::after {
    display: none !important;
    content: none !important;
  }

  .option-cell.freq-option .freq-option-label {
    display: block !important;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
    padding-right: 0.75rem;
    text-align: left;
    flex: 1 1 auto;
  }

  .option-cell.freq-option.selected .freq-option-label {
    color: var(--primary-dark, #007a31);
    font-weight: 700;
  }

  .option-cell.freq-option .freq-circle,
  .option-cell.freq-option .freq-check,
  .option-cell.freq-option .freq-counter {
    margin: 0;
    flex-shrink: 0;
  }

  .option-cell.freq-option.disabled {
    opacity: 0.45;
    pointer-events: none;
    background: #f8fafc !important;
    border-color: #e2e8f0;
  }

  .option-cell.freq-option.disabled .freq-option-label::after {
    content: " (nicht zutreffend)";
    font-size: 0.82rem;
    font-weight: normal;
    color: #94a3b8;
  }

  .result-layout-grid {
    flex-direction: column;
  }

  .result-main-card {
    width: 100%;
    margin-bottom: 2rem;
  }

  .breakdown-grid {
    width: 100%;
  }

  .btn-nav {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    min-width: 110px;
    justify-content: center;
  }

  .q-num {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
    margin-right: 0.75rem;
  }

  .pflegegrad-display {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .pg-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }

  .pg-value {
    font-size: 3rem;
  }

  .result-actions {
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
  }

  .btn-action {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .wizard-layout {
    flex-direction: column;
    padding: 0rem;
  }

  .wizard-main {
    width: 100%;
  }

  .modules-nav-sidebar {
    width: 100%;
    position: static;
    flex: none;
    margin-bottom: 2rem;
  }
}

@media (max-width: 600px) {
  #prechnerwizard,
  .pgr-wrapper {
    font-size: 16px;
  }

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

  .module-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .module-header-title {
    font-size: 1.8rem;
  }

  .module-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 400px) {
  .module-header-title {
    font-size: 1.5rem;
  }

  .btn-nav {
    padding: 0.7rem 0.8rem;
    min-width: 90px;
    font-size: 0.85rem;
  }

  .option-cell.freq-option {
    padding: 0.75rem 0.85rem !important;
  }

  .option-cell.freq-option .freq-option-label {
    font-size: 0.92rem;
  }
}

/* ============================================================
   10. Print Styles
   ============================================================ */
.print-only {
  display: none;
}

@media print {
  .no-print,
  .wizard-footer,
  .progress-wrapper {
    display: none !important;
  }

  .print-only {
    display: block !important;
    padding: 2rem;
  }

  .wizard-layout {
    display: block;
  }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
  }

  .print-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
  }

  .print-logo {
    display: block !important;
    max-height: 60px;
    margin-bottom: 1.5rem;
  }

  .print-pg-scale {
    display: block !important;
    margin: 1.5rem 0;
  }

  .print-pg-scale table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
  }

  .print-pg-scale td {
    padding: 0.4rem 0.6rem;
    border: 1px solid #ddd;
    text-align: center;
  }

  .print-pg-scale thead td {
    background: #f0fdf4;
    font-weight: bold;
  }
}
