* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #f0f4f5 0%, #e8f0f1 50%, #f5f8f9 100%);
  background-attachment: fixed;
  color: #111827;
  min-height: 100vh;
}

/* Header */

header {
  background: #ffffff;
  color: #111827;
  padding: 1.5rem 2rem;
  border-bottom: 3px solid #4b7a80;
  box-shadow: 0 2px 12px rgba(75, 122, 128, 0.08);
}

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

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo-img {
  height: 65px;
  width: auto;
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.header-logo {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1rem;
  color: #4b7a80;
}

.header-subtitle {
  font-size: 1.3rem;
  color: #111827;
  font-weight: 500;
}

/* Main container */

main {
  max-width: 960px;
  margin: 1.5rem auto 2.5rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.intro h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.85rem;
  color: #111827;
}

.intro-lead {
  margin-top: 0;
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* Welcome Box */

.step-welcome {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #e5e7eb;
}

.welcome-content h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #111827;
  font-size: 1.5rem;
}

.welcome-content > p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.welcome-features {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #ffffff;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #4b7a80;
}

.feature-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.feature-text strong {
  color: #111827;
  font-size: 0.95rem;
}

.feature-text span {
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.4;
}

.welcome-info {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border-left: 3px solid #4b7a80;
  margin: 1.5rem 0;
}

.welcome-info p {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #111827;
}

.welcome-info ol {
  margin: 0;
  padding-left: 1.25rem;
  color: #4b5563;
}

.welcome-info li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.welcome-info li:last-child {
  margin-bottom: 0;
}

.welcome-cta {
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
  color: #111827;
  font-size: 1rem;
  text-align: center;
}

/* Steps & Form */

.steps-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
  position: relative;
  padding: 1rem 0;
}

.steps-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(to right, #e5e7eb 0%, #e5e7eb 100%);
  transform: translateY(-50%);
  z-index: 0;
  border-radius: 3px;
}

.step-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #ffffff;
  color: #374151;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
  border: 2px solid #e5e7eb;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  user-select: none;
}

.step-pill:hover:not(.active) {
  border-color: #4b7a80;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(75, 122, 128, 0.15);
}

.step-pill.active {
  background: #4b7a80;
  color: #ffffff;
  border-color: #4b7a80;
  box-shadow: 0 4px 12px rgba(75, 122, 128, 0.3);
  transform: scale(1.1);
  cursor: default;
}

.step-pill.completed {
  background: #6b9fa6;
  color: #ffffff;
  border-color: #6b9fa6;
  box-shadow: 0 2px 8px rgba(107, 159, 166, 0.2);
}

.step-pill.completed:hover {
  background: #5a8e94;
  border-color: #5a8e94;
}

.step-pill.completed::after {
  content: ' ✓';
  margin-left: 0.25rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .steps-indicator {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 0;
  }
  
  .steps-indicator::before {
    left: 50%;
    right: auto;
    top: 10%;
    bottom: 10%;
    width: 3px;
    height: auto;
    transform: translateX(-50%);
  }
}

.step {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.step:last-of-type {
  border-bottom: none;
  padding-bottom: 0.5rem;
}

.step-subtitle {
  margin: 0.25rem 0 1rem;
  color: #4b5563;
  font-size: 0.9rem;
}

/* Fields */

.field-group {
  margin-bottom: 1rem;
}

.field-group.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.field-label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  max-width: 320px;
  padding: 0.4rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
}

textarea {
  max-width: 100%;
  resize: vertical;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

textarea:focus {
  outline: none;
  border-color: #4b7a80;
  box-shadow: 0 0 0 3px rgba(75, 122, 128, 0.1);
}

textarea::placeholder {
  color: #9ca3af;
}

/* Choices */

/* Size Cards */

.size-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.size-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.size-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-card-content {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.size-card:hover .size-card-content {
  border-color: #4b7a80;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(75, 122, 128, 0.15);
}

.size-card input:checked + .size-card-content {
  border-color: #4b7a80;
  background: linear-gradient(135deg, #f0f7f8 0%, #ffffff 100%);
  box-shadow: 0 4px 16px rgba(75, 122, 128, 0.2);
}

.size-card input:checked + .size-card-content::before {
  content: '✓';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #4b7a80;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.size-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.size-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.size-description {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Branch Cards */

.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.branch-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.branch-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.branch-card-content {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.branch-card:hover .branch-card-content {
  border-color: #4b7a80;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(75, 122, 128, 0.12);
}

.branch-card input:checked + .branch-card-content {
  border-color: #4b7a80;
  background: linear-gradient(135deg, #f0f7f8 0%, #ffffff 100%);
  box-shadow: 0 4px 12px rgba(75, 122, 128, 0.2);
}

.branch-card input:checked + .branch-card-content::after {
  content: '✓';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #4b7a80;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

.branch-icon {
  font-size: 2.25rem;
  line-height: 1;
}

.branch-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #111827;
  line-height: 1.3;
}

/* Risk Cards */

.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.risk-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.risk-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.risk-card-content {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.risk-card:hover .risk-card-content {
  border-color: #4b7a80;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(75, 122, 128, 0.12);
}

.risk-card input:checked + .risk-card-content {
  border-color: #4b7a80;
  background: linear-gradient(135deg, #f0f7f8 0%, #ffffff 100%);
  box-shadow: 0 4px 12px rgba(75, 122, 128, 0.2);
}

.risk-card input:checked + .risk-card-content::after {
  content: '✓';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #4b7a80;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

.risk-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.risk-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.risk-description {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Area Cards */

.areas-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.area-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto;
}

.area-card:hover {
  border-color: #4b7a80;
  box-shadow: 0 4px 12px rgba(75, 122, 128, 0.1);
}

.area-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  background: #f9fafb;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  grid-column: 1;
  grid-row: 1;
}

.area-header:hover {
  background: #f0f7f8;
}

.area-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #4b7a80;
  flex-shrink: 0;
  margin: 0;
}

.area-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.area-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  flex: 1;
  line-height: 1.3;
}

.area-details {
  padding: 1.25rem 1.5rem;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  background: #ffffff;
  transition: all 0.3s ease;
  border-left: 2px solid #e5e7eb;
  grid-column: 2;
  grid-row: 1;
}

.area-card .area-checkbox:checked ~ .area-header + .area-details {
  display: grid;
  opacity: 1;
  pointer-events: all;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.area-card .area-checkbox:checked ~ .area-header {
  background: linear-gradient(135deg, #f0f7f8 0%, #ffffff 100%);
}

.area-card:has(.area-checkbox:checked) {
  border-color: #4b7a80;
  box-shadow: 0 4px 16px rgba(75, 122, 128, 0.15);
}

.area-card .area-checkbox:checked ~ .area-header::after {
  content: '✓';
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: #4b7a80;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Mobile: Stack vertical */
@media (max-width: 768px) {
  .area-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  
  .area-header {
    grid-column: 1;
    grid-row: 1;
  }
  
  .area-details {
    grid-column: 1;
    grid-row: 2;
    border-left: none;
    border-top: 2px solid #e5e7eb;
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.input-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
}

.input-field input {
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: #ffffff;
}

.input-field input:focus {
  outline: none;
  border-color: #4b7a80;
  box-shadow: 0 0 0 3px rgba(75, 122, 128, 0.1);
}

.input-field input::placeholder {
  color: #9ca3af;
}

/* Contact Section */

.contact-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.contact-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.section-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #4b7a80;
  display: inline-block;
}

.field-group {
  margin-bottom: 1rem;
}

.field-group.inline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.field-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #374151;
  font-weight: 500;
  font-size: 0.9rem;
}

.field-label.required::after {
  content: ' *';
  color: #dc2626;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #ffffff;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #4b7a80;
  box-shadow: 0 0 0 3px rgba(75, 122, 128, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #374151;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.3rem;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label.required {
  font-weight: 500;
}

.checkbox-label a {
  color: #4b7a80;
  text-decoration: underline;
}

.checkbox-label a:hover {
  color: #3d6268;
}

@media (max-width: 768px) {
  .field-group.inline {
    grid-template-columns: 1fr;
  }
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.choice-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #111827;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.choice-pill:hover {
  background: #dbeafe;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(75, 122, 128, 0.15);
}

.choice-pill input:checked + span {
  font-weight: 500;
}

.choice-pill input {
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: #4b7a80;
  cursor: pointer;
}

/* Contact Preference Cards */
.contact-preference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.75rem;
}

.contact-preference-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.contact-preference-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-preference-content {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-preference-card:hover .contact-preference-content {
  border-color: #4b7a80;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 122, 128, 0.15);
}

.contact-preference-card input:checked + .contact-preference-content {
  background: linear-gradient(135deg, #4b7a80 0%, #6b9fa6 100%);
  border-color: #4b7a80;
  color: white;
  box-shadow: 0 4px 12px rgba(75, 122, 128, 0.25);
}

.contact-preference-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.contact-preference-card input:checked + .contact-preference-content .contact-preference-icon {
  filter: grayscale(0%) brightness(1.2);
}

.contact-preference-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.contact-preference-card input:checked + .contact-preference-content .contact-preference-title {
  color: white;
}

@media (max-width: 768px) {
  .contact-preference-grid {
    grid-template-columns: 1fr;
  }
}

/* Bereich-Boxen */

.bereich-box {
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: #f9fafb;
}

.bereich-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bereich-title {
  font-weight: 500;
}

.bereich-toggle {
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #374151;
}

.bereich-fields {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.85rem;
}

/* Buttons */

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

button,
.btn-next,
.btn-submit,
.btn-back {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: #4b7a80;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

button:disabled,
.btn-next:disabled,
.btn-submit:disabled,
.btn-disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

button:hover:not(:disabled),
.btn-next:hover:not(:disabled),
.btn-submit:hover:not(:disabled) {
  background: #3d6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 122, 128, 0.3);
}

button:active:not(:disabled),
.btn-next:active:not(:disabled),
.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-back {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
}

.btn-back:hover {
  background: linear-gradient(135deg, #4b7a80 0%, #6b9fa6 100%);
  color: white;
  border-color: #4b7a80;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 122, 128, 0.4);
}

.step {
  display: none;
  opacity: 0;
}

.step.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.step.fade-out {
  animation: fadeOut 0.3s ease-in forwards;
}

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

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

/* Ergebnis-Seite */

.result-container {
  max-width: 900px;
  margin: 2rem auto;
}

.result-section {
  margin-bottom: 2rem;
}

.result-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #4b7a80;
  display: inline-block;
}

.result-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.result-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f3f4f6;
}

/* Result Table Layout */
.result-table {
  width: 100%;
}

.result-table-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
}

.result-table-row:hover {
  background: #f9fafb;
}

.result-table-row:last-child {
  border-bottom: none;
}

.result-table-row-alt {
  background: #fafbfc;
}

.result-table-row-alt:hover {
  background: #f3f4f6;
}

.result-table-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-table-value {
  color: #4b5563;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.result-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.result-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #4b7a80 0%, #6b9fa6 100%);
  color: white;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.result-tag .result-icon {
  font-size: 1.1rem;
}

.result-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.result-value {
  color: #4b5563;
  font-size: 0.95rem;
}

.message-value {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  font-style: italic;
  color: #4b5563;
  line-height: 1.6;
}

/* Risiken-Grid in Zusammenfassung */
.risks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.summary-card-item {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.summary-card-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.summary-card-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
}

/* Betriebsgröße Display */
.business-size-display {
  margin-bottom: 1rem;
}

/* Branchen Grid */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.summary-card-item-small {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.summary-card-icon-small {
  font-size: 1.75rem;
  line-height: 1;
}

.summary-card-text-small {
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
}

/* Bereiche-Grid in Zusammenfassung */
.areas-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.area-card-summary {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
}

.area-card-header {
  background: linear-gradient(135deg, #4b7a80 0%, #6b9fa6 100%);
  color: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.area-card-icon {
  font-size: 2rem;
  line-height: 1;
}

.area-card-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.area-card-details {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  background: #f9fafb;
}

.area-card-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.area-card-detail .detail-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.area-card-detail .detail-value {
  font-size: 1rem;
  color: #111827;
  font-weight: 600;
}

/* Bereichs-Zusammenfassung */
.area-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.area-summary-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
}

.area-summary-header {
  font-size: 1rem;
  color: #111827;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.area-summary-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.area-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

.detail-value {
  font-size: 0.95rem;
  color: #111827;
  font-weight: 600;
}

/* Kontakt-Zusammenfassung */
.contact-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.contact-group h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #4b7a80;
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-description {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.recommendation-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
}

.recommendation-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.recommendation-text {
  font-size: 0.95rem;
  color: #374151;
  font-weight: 500;
}

.result-note {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #92400e;
  line-height: 1.6;
}

.next-steps-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
}

.next-step-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.next-step-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.next-step-item:first-child {
  padding-top: 0;
}

.step-number {
  width: 40px;
  height: 40px;
  background: #4b7a80;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content h3 {
  margin: 0 0 0.5rem 0;
  color: #111827;
  font-size: 1.1rem;
}

.step-content p {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
}

.result-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #4b7a80 0%, #6b9fa6 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(75, 122, 128, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3d6268 0%, #5a8a91 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 122, 128, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: #4b7a80;
  border: 2px solid #4b7a80;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #4b7a80 0%, #6b9fa6 100%);
  color: white;
  border-color: #4b7a80;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 122, 128, 0.4);
}

@media (max-width: 768px) {
  .result-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  
  .recommendation-grid {
    grid-template-columns: 1fr;
  }
  
  .result-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .area-summary-details,
  .area-card-details {
    grid-template-columns: 1fr;
  }
  
  .contact-summary {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .risks-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .areas-summary-grid {
    grid-template-columns: 1fr;
  }
  
  .branches-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

.result-intro h1 {
  margin-top: 0;
}

.result-intro p {
  color: #4b5563;
}

.result-box {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.result-box h2 {
  margin-top: 0;
}

.button-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  text-decoration: none;
  font-size: 0.9rem;
  color: #111827;
  background: #ffffff;
}

.button-link:hover {
  background: #f3f4f6;
}

a {
  color: #4b7a80;
}

a:hover {
  color: #3d6268;
}

/* Responsive */

@media (max-width: 720px) {
  header {
    padding: 0.75rem 1rem;
  }

  .header-inner {
    flex-direction: column;
    gap: 0.25rem;
  }

  main {
    margin: 1rem;
    padding: 1rem;
  }

  .field-group.inline {
    flex-direction: column;
  }

  .bereich-fields {
    flex-direction: column;
  }
}

/* Print Styles für DIN A4 */
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  
  body {
    background: white;
    font-size: 9pt;
    line-height: 1.3;
  }
  
  /* Header sehr kompakt */
  header {
    padding: 3mm 0 2mm 0;
    background: white !important;
    border-bottom: 1.5px solid #4b7a80;
    page-break-after: avoid;
    margin-bottom: 3mm;
  }
  
  .header-logo-img {
    height: 25px;
  }
  
  .header-logo {
    font-size: 0.95rem;
  }
  
  .header-subtitle {
    font-size: 0.7rem;
  }
  
  /* Main Content */
  main {
    margin: 0;
    padding: 0;
    max-width: 100%;
  }
  
  .intro {
    margin-bottom: 3mm;
    page-break-after: avoid;
  }
  
  .intro h1 {
    font-size: 13pt;
    margin: 0 0 2mm 0;
    color: #4b7a80;
  }
  
  .intro-text {
    font-size: 9pt;
    margin: 0;
  }
  
  /* Zeitstrahl verstecken */
  .steps-indicator {
    display: none;
  }
  
  /* Result Container */
  .result-container {
    margin: 0;
  }
  
  .result-section {
    margin-bottom: 3mm;
    page-break-inside: avoid;
  }
  
  .result-heading {
    font-size: 10pt;
    margin-bottom: 2mm;
    padding-bottom: 1mm;
    border-bottom: 1.5px solid #4b7a80;
  }
  
  /* Cards kompakter */
  .result-card {
    border: 1px solid #d1d5db;
    border-radius: 2mm;
    padding: 2mm;
    margin-bottom: 2mm;
    box-shadow: none;
    page-break-inside: avoid;
    background: white !important;
  }
  
  .result-card-title {
    font-size: 9pt;
    margin: 0 0 1.5mm 0;
    padding-bottom: 1.5mm;
  }
  
  /* Betriebsgröße und Branchen */
  .result-table {
    width: 100%;
  }
  
  .result-table-row {
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .result-table-row:hover {
    background: transparent;
  }
  
  .result-table-row-alt {
    background: #fafbfc !important;
  }
  
  .result-table-label {
    font-size: 7pt;
    font-weight: 600;
  }
  
  .result-table-value {
    font-size: 7pt;
  }
  
  .result-icon {
    font-size: 0.9rem;
  }
  
  .result-tags {
    gap: 0.3rem;
  }
  
  .result-tag {
    padding: 0.2rem 0.5rem;
    font-size: 6pt;
    background: #4b7a80 !important;
  }
  
  .result-tag .result-icon {
    font-size: 0.8rem;
  }
  
  /* Kontaktdaten */
  .contact-summary {
    display: none;
  }
  
  .contact-group h4 {
    font-size: 8pt;
    margin-bottom: 1.5mm;
  }
  
  .result-item {
    padding: 0.5mm 0;
    border-bottom: 1px solid #f3f4f6;
  }
  
  .result-label {
    font-size: 7pt;
  }
  
  .result-value {
    font-size: 8pt;
  }
  
  .message-value {
    font-size: 7pt;
    padding: 1.5mm;
  }
  
  /* Produktempfehlung */
  .recommendation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5mm;
  }
  
  .recommendation-item {
    padding: 1.5mm;
    background: #f9fafb !important;
  }
  
  .recommendation-icon {
    font-size: 1.1rem;
  }
  
  .recommendation-text {
    font-size: 7pt;
  }
  
  .result-note {
    background: #fef3c7 !important;
    padding: 1.5mm;
    font-size: 7pt;
  }
  
  /* Nächste Schritte */
  .next-steps-card {
    background: #f0f9ff !important;
  }
  
  .next-step-item {
    padding: 1.5mm 0;
    gap: 2mm;
  }
  
  .step-number {
    width: 25px;
    height: 25px;
    font-size: 9pt;
    background: #4b7a80 !important;
  }
  
  .step-content h3 {
    font-size: 8pt;
    margin: 0 0 0.5mm 0;
  }
  
  .step-content p {
    font-size: 7pt;
    margin: 0;
  }
  
  /* Buttons verstecken */
  .result-actions {
    display: none;
  }
  
  /* Seitenumbrüche verhindern */
  h2, h3, h4 {
    page-break-after: avoid;
  }
  
  .result-card,
  .area-card-summary,
  .next-step-item {
    page-break-inside: avoid;
  }
}