*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background: radial-gradient(circle at top, #e9f7ff 0, #ffffff 55%, #f3f7fa);
  color: #05324a;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 169, 238, 0.15);
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
}

.header-left {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.header-right {
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  position: relative;
}

.header-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#app-title {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #05324a;
  text-align: center;
}

.unit-toggle {
  margin-top: 0.1rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #05324a;
}

.unit-toggle-label {
  display: none;
}

.unit-switch {
  position: relative;
  display: inline-block;
  width: 112px;
  height: 26px;
}

.unit-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.unit-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: linear-gradient(135deg, #ffffff, #f2f7fb);
  border-radius: 999px;
  border: 1px solid rgba(5, 50, 74, 0.25);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  font-size: 0.72rem;
  color: #05324a;
}

.unit-slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 52px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00a9ee, #0084c7);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}

.unit-switch input:checked + .unit-slider::before {
  transform: translateX(54px);
}

.unit-slider-label {
  position: relative;
  z-index: 1;
}

.unit-slider-label-si {
  color: #ffffff;
}

.unit-switch input:checked + .unit-slider .unit-slider-label-si {
  color: #05324a;
}

.unit-switch input:checked + .unit-slider .unit-slider-label-imperial {
  color: #ffffff;
}

.unit-primary {
  color: #000000;
}

.unit-secondary {
  color: #7a8aa0;
}

.unit-label {
  margin-left: 0.15rem;
}

.unit-conversion-display {
  margin-top: 0.1rem;
  font-size: 0.8rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}

.logo-image {
  max-height: 32px;
  width: auto;
}

.logo-watermark {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.2rem;
  width: 160px;
  height: 70px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("Kappen_Wasserzeichen.jpg");
  opacity: 0.18;
  filter: grayscale(40%);
  pointer-events: none;
}

.app-main {
  max-width: 1100px;
  margin: 1.5rem auto 3.5rem;
  padding: 0 1rem;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 18px 45px rgba(5, 50, 74, 0.12);
  position: relative;
}

.wizard-card {
  overflow: hidden;
}

.progress-section {
  margin-bottom: 1rem;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: #4c6f85;
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 169, 238, 0.12);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00a9ee, #36d4ff);
  box-shadow: 0 0 12px rgba(0, 169, 238, 0.7);
  transition: width 0.35s ease-out;
}

.step {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.step.active {
  display: block;
}

.step-description {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #4c6f85;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.step[data-step="1"] .form-grid {
  row-gap: 0.5rem;
}

.step[data-step="1"] .form-field {
  gap: 0.2rem;
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #05324a;
}

.required {
  color: #d7263d;
  margin-left: 0.15rem;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="url"],
select {
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(5, 50, 74, 0.18);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

/* Voreingestellte Defaultwerte grau anzeigen,
   bis der Benutzer sie überschreibt */
.default-value {
  color: #8a8a8a;
}

input::placeholder {
  color: #9caeb8;
}

input:focus,
select:focus {
  border-color: #00a9ee;
  box-shadow: 0 0 0 2px rgba(0, 169, 238, 0.16);
}

.error-message {
  min-height: 1rem;
  font-size: 0.8rem;
  color: #d7263d;
}

.hint-text {
  font-size: 0.85rem;
  color: #4c6f85;
}

.section-divider {
  margin: 1.5rem 0 1.25rem;
  border-top: 1px dashed rgba(0, 169, 238, 0.28);
}

.cross-section-section h3 {
  margin: 0 0 0.35rem;
}

.cross-section-wrapper {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(5, 50, 74, 0.1);
  background: radial-gradient(circle at top, #f5fbff 0, #e1effa 40%, #ffffff);
}

.cross-section-svg {
  width: 100%;
  max-height: 260px;
  display: block;
}

.axis-line {
  stroke: rgba(5, 50, 74, 0.4);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

.rect-min {
  fill: rgba(0, 169, 238, 0.22);
  stroke: #00a9ee;
  stroke-width: 2;
}

.rect-max {
  fill: rgba(5, 50, 74, 0.12);
  stroke: #05324a;
  stroke-width: 2;
}

.drag-handle {
  fill: #ffffff;
  stroke: #00a9ee;
  stroke-width: 2;
  cursor: pointer;
}

.drag-handle:hover {
  fill: #00a9ee;
  stroke: #ffffff;
}

.measure-line {
  stroke: #05324a;
  stroke-width: 1.2;
  marker-start: url(#arrow);
  marker-end: url(#arrow);
}

.measure-text {
  fill: #05324a;
  font-size: 11px;
  font-weight: 500;
}

.cross-section-summary {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.querschnitt-warning {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #d97a00;
}

.summary-label {
  font-size: 0.85rem;
  color: #4c6f85;
}

.summary-value {
  font-size: 1rem;
  font-weight: 600;
  color: #05324a;
}

.summary-value .area-muted {
  color: #7f8b93;
  font-weight: 400;
  font-size: 0.9em;
  margin-left: 0.35rem;
}

.wizard-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.wizard-footer-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.primary-button {
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, #00a9ee, #36d4ff);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 169, 238, 0.6);
  transition: transform 0.08s ease, box-shadow 0.08s ease,
    background 0.12s ease, color 0.12s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 169, 238, 0.7);
}

.primary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.secondary-button {
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(5, 50, 74, 0.16);
  background: #f5f9fc;
  color: #05324a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: background 0.12s ease, color 0.12s ease,
    box-shadow 0.08s ease, transform 0.08s ease;
}

.secondary-button:hover {
  background: #e7f1f8;
}

.secondary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(5, 50, 74, 0.14);
  background: #f5f9fc;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.chip input {
  accent-color: #00a9ee;
}

.language-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.language-dropdown {
  position: relative;
}

.language-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 169, 238, 0.6);
  background: #ffffff;
  color: #05324a;
  font-size: 0.85rem;
  cursor: pointer;
}

.language-dropdown-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 169, 238, 0.25);
}

.language-dropdown-menu {
  position: absolute;
  top: 115%;
  left: 0;
  min-width: 150px;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(0, 169, 238, 0.25);
  box-shadow: 0 12px 24px rgba(5, 50, 74, 0.18);
  z-index: 30;
}

.language-option {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.35rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #05324a;
  cursor: pointer;
  text-align: left;
}

.language-option:hover {
  background: #f0f7fb;
}

.language-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.language-label {
  white-space: nowrap;
}

.flag-de {
  background-image: url("https://flagcdn.com/w20/de.png");
}

.flag-en {
  background-image: url("https://flagcdn.com/w20/gb.png");
}

.flag-fr {
  background-image: url("https://flagcdn.com/w20/fr.png");
}

.flag-es {
  background-image: url("https://flagcdn.com/w20/es.png");
}

.flag-zh {
  background-image: url("https://flagcdn.com/w20/cn.png");
}

.hidden {
  display: none !important;
}

.app-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32px;
  background: #333333;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  z-index: 6;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.brett-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: flex-start;
}

.brett-item {
  text-align: center;
}

.brett-image {
  max-width: 40%;
  height: 120px;
  object-fit: cover;
  border: none;
  box-shadow: none;
}

.brett-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

.brett-checkbox input {
  accent-color: #00a9ee;
}

.scanner-fehler-section {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(0, 169, 238, 0.28);
}

.scanner-fehler-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.scanner-fehler-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.scanner-image-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  justify-content: flex-start;
}

.scanner-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(5, 50, 74, 0.12);
}

.scanner-fehler-item label {
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.scanner-fehler-item input {
  accent-color: #00a9ee;
}

.paket-bilder {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: flex-start;
}

.paket-item {
  text-align: center;
}

.paket-image {
  max-width: 70%;
  height: 120px;
  object-fit: cover;
  border: none;
  box-shadow: none;
}

.paket-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

.paket-checkbox input {
  accent-color: #00a9ee;
}

.leistung-brett-wrapper {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(5, 50, 74, 0.1);
  background: radial-gradient(circle at top, #f5fbff 0, #e1effa 40%, #ffffff);
}

.leistung-scale {
  margin-bottom: 0.5rem;
}

.leistung-scale-bar {
  position: relative;
  height: 18px;
  max-width: 520px;
  margin: 0 auto 0.25rem;
  border-bottom: 2px solid #05324a;
}

.leistung-scale-tick {
  position: absolute;
  bottom: -1px;
  width: 1px;
  height: 10px;
  background: #05324a;
}

.leistung-scale-label {
  position: absolute;
  top: -0.9rem;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #05324a;
  white-space: nowrap;
}

.leistung-brett-area {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  cursor: crosshair;
}

.leistung-brett-image {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.cut-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e02424;
  box-shadow: 0 0 0 2px rgba(224, 36, 36, 0.35);
}

.cut-label {
  position: absolute;
  bottom: 6px;
  transform: translateX(-50%);
  padding: 2px 4px;
  font-size: 0.75rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  color: #05324a;
  white-space: nowrap;
}

.leistung-brett-info {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #05324a;
  text-align: center;
}

.machine-image-wrapper {
  margin-top: 0.75rem;
  text-align: center;
}

.machine-image {
  max-width: 70%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.summary-panel {
  margin-top: 1rem;
  border-radius: 14px;
  background: #f5f9fc;
  border: 1px solid rgba(5, 50, 74, 0.06);
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}

.summary-group {
  margin-bottom: 0.9rem;
}

.summary-group-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #05324a;
}

.summary-list {
  margin: 0;
  padding-left: 1.1rem;
}

.summary-list li {
  margin-bottom: 0.15rem;
}

.form-actions-row {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.print-area {
  display: none;
}

.length-summary {
  min-width: 180px;
}

.length-slider {
  position: relative;
  height: 32px;
  margin-top: 0.25rem;
}

.length-slider input[type="range"] {
  width: 100%;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.length-slider input[type="range"]:first-child {
  pointer-events: auto;
}

.length-slider input[type="range"]:last-child {
  pointer-events: auto;
}

.length-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 169, 238, 0.2);
}

.length-slider input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 169, 238, 0.2);
}

.length-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00a9ee;
  box-shadow: 0 0 0 3px rgba(0, 169, 238, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.35);
  border: 2px solid #ffffff;
  cursor: pointer;
  margin-top: -6px;
}

.length-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00a9ee;
  box-shadow: 0 0 0 3px rgba(0, 169, 238, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.35);
  border: 2px solid #ffffff;
  cursor: pointer;
}

.input-with-icon {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.input-with-inline-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
}

.inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.input-with-inline-checkbox input[type="number"] {
  flex: 1 1 auto;
}

.input-with-icon input[type="number"],
.input-with-icon select {
  flex: 1 1 auto;
}

.inline-checkbox input[type="checkbox"] {
  accent-color: #00a9ee;
}

.info-icon {
  border: none;
  border-radius: 999px;
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
  cursor: pointer;
  background: #00a9ee;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 169, 238, 0.4);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.info-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 169, 238, 0.5);
  background: #0090cc;
}

.info-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.info-modal.hidden {
  display: none;
}

.info-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 50, 74, 0.45);
}

.info-modal-content {
  position: relative;
  z-index: 51;
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem 1.25rem 1rem;
  max-width: 460px;
  width: calc(100% - 2rem);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.info-modal-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.info-modal-content p {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.info-modal-close {
  position: absolute;
  top: 0.3rem;
  right: 0.45rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #4c6f85;
}

/* 3D-Würfel unten rechts */
.cube-container {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 120px;
  height: 120px;
  pointer-events: none;
  z-index: 10;
}

.cube {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 70px;
  height: 70px;
  transform-style: preserve-3d;
  animation: spin 6s linear infinite;
}

.face {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00a9ee, #36d4ff);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cube.cube-complete .face {
  background: linear-gradient(135deg, #00a9ee, #36d4ff);
}

.face-front {
  transform: translateZ(35px);
}

.face-back {
  transform: rotateY(180deg) translateZ(35px);
}

.face-right {
  transform: rotateY(90deg) translateZ(35px);
}

.face-left {
  transform: rotateY(-90deg) translateZ(35px);
}

.face-top {
  transform: rotateX(90deg) translateZ(35px);
}

.face-bottom {
  transform: rotateX(-90deg) translateZ(35px);
}

@keyframes spin {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

.form-grid.paket-fields-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .paket-fields {
  grid-column: span 1;
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

.form-grid .paket-fields.hidden {
  display: none;
}

.form-grid .paket-fields:not(.hidden) {
  display: flex;
}

.length-summary .summary-value {
  white-space: nowrap;
}

.length-summary {
  margin-top: 0.25rem;
}

.length-summary .summary-label {
  margin-bottom: 0.1rem;
}

.form-grid .paket-fields {
  align-self: flex-start;
}

.form-grid .paket-fields input {
  width: 100%;
}

.form-grid .paket-fields label {
  white-space: nowrap;
}

.form-grid .paket-fields .error-message {
  min-height: 0.75rem;
}

.form-grid .paket-fields.hidden .error-message {
  display: none;
}

.form-grid .paket-fields.hidden input {
  display: none;
}

.form-grid .paket-fields.hidden label {
  display: none;
}

.form-grid .paket-fields.hidden {
  margin: 0;
}

.form-grid .paket-fields:not(.hidden) {
  margin-top: 0;
}

.form-grid .paket-fields .hint-text {
  margin-top: 0.25rem;
}

.form-grid .paket-fields input[type="number"] {
  max-width: 100%;
}

.form-grid .paket-fields label span {
  display: inline-block;
}

.form-grid .paket-fields label span.required {
  margin-left: 0.15rem;
}

.form-grid .paket-fields label span[data-i18n] {
  white-space: normal;
}

.form-grid .paket-fields label span[data-i18n]::after {
  content: "";
}

.form-grid .paket-fields label span[hidden] {
  display: none;
}

.form-grid .paket-fields label span[aria-hidden="true"] {
  display: inline-block;
}

.form-grid .paket-fields label span[aria-hidden="true"]::before {
  content: "";
}

.form-grid .paket-fields label span[aria-hidden="true"]::after {
  content: "";
}

.form-grid .paket-fields label span[aria-hidden="true"][data-i18n]::before {
  content: "";
}

.form-grid .paket-fields label span[aria-hidden="true"][data-i18n]::after {
  content: "";
}

.form-grid .paket-fields input[aria-hidden="true"] {
  display: none;
}

.form-grid .paket-fields .hint-text[aria-hidden="true"] {
  display: none;
}

.form-grid .paket-fields .hint-text[hidden] {
  display: none;
}

.form-grid .paket-fields[hidden] {
  display: none;
}

.form-grid .paket-fields[aria-hidden="true"] {
  display: none;
}

.form-grid .paket-fields[aria-hidden="true"] .error-message {
  display: none;
}

.form-grid .paket-fields[aria-hidden="true"] input {
  display: none;
}

.form-grid .paket-fields[aria-hidden="true"] label {
  display: none;
}

.form-grid .paket-fields[aria-hidden="true"] .hint-text {
  display: none;
}

.form-grid .paket-fields[aria-hidden="true"] .summary-label {
  display: none;
}

.form-grid .paket-fields[aria-hidden="true"] .summary-value {
  display: none;
}

.form-grid .paket-fields[aria-hidden="true"] .summary-group {
  display: none;
}

.form-grid .paket-fields[aria-hidden="true"] .summary-panel {
  display: none;
}

.form-grid .paket-fields[aria-hidden="true"] .scanner-fehler-section {
  display: none;
}

.form-grid .paket-fields[aria-hidden="true"] .scanner-fehler-list {
  display: none;
}

.form-grid .paket-fields[aria-hidden="true"] .scanner-fehler-item {
  display: none;
}

.form-grid .paket-fields[aria-hidden="true"] .scanner-image {
  display: none;
}

.form-grid .paket-fields[aria-hidden="true"] .scanner-fehler-item label {
  display: none;
}

.form-grid .paket-fields[aria-hidden="true"] .scanner-fehler-item input {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .app-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .header-center {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  #app-title {
    font-size: 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .cross-section-svg {
    max-height: none;
  }

  .scanner-fehler-list {
    grid-template-columns: 1fr;
  }
}

@media print {
  .app-header,
  .wizard-footer,
  .cube-container,
  .app-footer,
  #step-container {
    display: none !important;
  }

  .print-area {
    display: block;
    padding: 1rem 1.5rem;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
  }
}


