:root {
      --bg:           #EEECE1;
      --bg-card:      #FAFAF6;
      --primary:      #557D68;
      --primary-dark: #3D5C4D;
      --primary-light: #91AA9D;
      --accent:       #91AA9D;
      --text:         #4D5553;
      --text-light:   #7A8C87;
      --border:       #D5D2C4;
      --shadow:       0 2px 20px rgba(61,92,77,0.10);
      --radius:       10px;
      --font-head:    'Caudex', Georgia, serif;
      --font-body:    'Forum', Georgia, serif;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

    body {
      font-family: var(--font-body);
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      min-height: 100vh;
      padding: 1.5rem 1rem 4rem;
    }

    .view {
      display: none;
      max-width: 660px;
      margin: 0 auto;
      animation: fadeIn 0.35s ease;
    }
    .view.active { display: block; }

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

    .card {
      background: var(--bg-card);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 2rem;
      margin-bottom: 1.5rem;
    }
    .card--center { text-align: center; }

    .logo-area {
      margin-bottom: 2rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid var(--border);
    }
    .logo-img {
      max-width: 220px;
      height: auto;
      display: block;
      margin: 0 auto;
    }

    h1, .view-title {
      font-family: var(--font-head);
      font-size: 1.75rem;
      color: var(--text);
      margin-bottom: 0.75rem;
      line-height: 1.3;
    }
    .view-desc {
      color: var(--text-light);
      margin-bottom: 1.5rem;
      line-height: 1.75;
    }

    .btn {
      display: inline-block;
      font-family: var(--font-body);
      font-size: 1rem;
      padding: 0.85rem 2rem;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      transition: background 0.2s, transform 0.1s;
      text-decoration: none;
    }
    .btn--primary {
      background: var(--primary);
      color: #fff;
    }
    .btn--primary:hover { background: var(--primary-dark); }
    .btn--full { width: 100%; text-align: center; }
    .btn:active { transform: scale(0.98); }

    /* Progress bar */
    .progress-wrap {
      margin-bottom: 1.75rem;
    }
    .progress-label {
      font-size: 0.8rem;
      color: var(--text-light);
      margin-bottom: 0.4rem;
    }
    .progress-bar {
      background: var(--border);
      border-radius: 99px;
      height: 6px;
      overflow: hidden;
    }
    .progress-fill {
      background: var(--primary);
      height: 100%;
      border-radius: 99px;
      transition: width 0.4s ease;
    }

    /* Question */
    .question-text {
      font-family: var(--font-head);
      font-size: 1.25rem;
      line-height: 1.45;
      margin-bottom: 1.75rem;
      color: var(--text);
    }

    .options {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
    .option {
      display: flex;
      align-items: center;
      gap: 0.9rem;
      padding: 0.85rem 1.1rem;
      border: 2px solid var(--border);
      border-radius: 8px;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
      font-size: 0.97rem;
    }
    .option:hover {
      border-color: var(--accent);
      background: #f0f5f2;
    }
    .option.selected {
      border-color: var(--primary);
      background: #eaf1ec;
    }
    .option-dot {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border: 2px solid var(--border);
      flex-shrink: 0;
      transition: border-color 0.2s, background 0.2s;
    }
    .option.selected .option-dot {
      border-color: var(--primary);
      background: var(--primary);
    }

    .next-wrap {
      margin-top: 1.5rem;
    }

    /* Email form */
    .field { margin-bottom: 1.1rem; }
    .field label {
      display: block;
      font-size: 0.88rem;
      color: var(--text-light);
      margin-bottom: 0.35rem;
    }
    .field input {
      width: 100%;
      padding: 0.75rem 1rem;
      border: 2px solid var(--border);
      border-radius: 8px;
      font-family: var(--font-body);
      font-size: 1rem;
      color: var(--text);
      background: #fff;
      transition: border-color 0.2s;
    }
    .field input:focus {
      outline: none;
      border-color: var(--primary);
    }
    .field-hint {
      font-size: 0.8rem;
      color: var(--text-light);
      margin-top: 0.5rem;
    }

    /* Result */
    .result-badge {
      display: inline-block;
      background: var(--primary);
      color: #fff;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 0.3rem 0.9rem;
      border-radius: 99px;
      margin-bottom: 1rem;
    }
    .result-title {
      font-family: var(--font-head);
      font-size: 2rem;
      color: var(--text);
      margin-bottom: 0.5rem;
      line-height: 1.2;
    }
    .result-tagline {
      font-size: 1.05rem;
      color: var(--primary);
      font-style: italic;
      margin-bottom: 1.75rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid var(--border);
    }
    .result-block {
      margin-bottom: 1.25rem;
    }
    .result-block h3 {
      font-family: var(--font-head);
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-light);
      margin-bottom: 0.4rem;
    }
    .result-block p {
      line-height: 1.7;
      color: var(--text);
    }
    .erlaubnis-section {
      margin: 1.75rem 0;
    }
    .erlaubnis-label {
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--primary);
      margin-bottom: 0.5rem;
    }
    .erlaubnis-box {
      background: #eaf1ec;
      border-left: 3px solid var(--primary);
      border-radius: 0 8px 8px 0;
      padding: 1rem 1.25rem;
      margin: 0 0 1rem 0;
      font-family: var(--font-head);
      font-size: 1.1rem;
      color: var(--primary-dark);
      font-style: italic;
    }
    .erlaubnis-erklaerung {
      font-size: 0.9rem;
      color: #555;
      line-height: 1.6;
    }
    .erlaubnis-erklaerung p {
      margin: 0 0 0.5rem 0;
    }
    .cta-box {
      background: var(--primary);
      border-radius: var(--radius);
      padding: 1.75rem 2rem;
      text-align: center;
      color: #fff;
      margin-top: 1.5rem;
    }
    .cta-box h3 {
      font-family: var(--font-head);
      font-size: 1.25rem;
      line-height: 1.35;
      margin-bottom: 0.7rem;
    }
    /* Häkchenliste im Abspann — linksbündig, die Box selbst ist zentriert */
    .cta-list {
      list-style: none;
      text-align: left;
      margin: 0 0 1.1rem;
      padding: 0;
    }
    .cta-list li {
      padding: 0.3rem 0 0.3rem 1.4rem;
      position: relative;
      font-size: 0.95rem;
      line-height: 1.55;
      opacity: 0.95;
    }
    .cta-list li::before {
      content: "✓";
      position: absolute;
      left: 0;
      font-weight: 700;
    }
    .cta-preis {
      font-family: var(--font-head);
      font-size: 1.15rem;
      font-weight: 700;
      margin-bottom: 0.2rem;
    }
    .cta-gar {
      font-size: 0.9rem;
      font-style: italic;
      opacity: 0.9;
      margin-bottom: 1.2rem;
    }
    .cta-box p {
      font-size: 0.95rem;
      opacity: 0.9;
      margin-bottom: 1.25rem;
      line-height: 1.6;
      text-align: left;   /* langer Text zentriert liest sich schlecht */
    }
    .btn--white {
      background: #fff;
      color: var(--primary-dark);
      font-weight: 700;
    }
    .btn--white:hover { background: #f0f5f2; }

    .second-result {
      margin-top: 1.5rem;
      padding-top: 1.5rem;
      border-top: 1px solid var(--border);
      font-size: 0.95rem;
      color: var(--text);
    }
    .second-result h3 {
      font-family: var(--font-head);
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-light);
      margin-bottom: 0.75rem;
    }
    .second-result strong {
      color: var(--primary-dark);
      font-weight: 700;
    }

    /* Zurück-Link über den Aussagen */
    .btn-zurueck {
      background: none;
      border: 0;
      padding: 0 0 0.6rem 0;
      font: inherit;
      font-size: 0.9rem;
      color: var(--text-light);
      cursor: pointer;
    }
    .btn-zurueck:hover { color: var(--primary); }

    .intro-list {
      list-style: none;
      margin: 1.25rem 0;
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
    }
    .intro-list li {
      display: flex;
      align-items: flex-start;
      gap: 0.6rem;
      font-size: 0.97rem;
      line-height: 1.5;
    }
    .intro-list li::before {
      content: "✓";
      color: var(--primary);
      font-weight: 700;
      flex-shrink: 0;
      margin-top: 0.05rem;
    }

    /* Likert scale */
    .likert-wrap {
      margin-top: 0.5rem;
    }
    .likert-labels {
      display: flex;
      justify-content: space-between;
      font-size: 0.75rem;
      color: var(--text-light);
      margin-bottom: 0.5rem;
    }
    .likert-buttons {
      display: flex;
      gap: 0.5rem;
      justify-content: center;
    }
    .likert-btn {
      flex: 1;
      aspect-ratio: 1;
      max-width: 56px;
      border: 2px solid var(--border);
      border-radius: 8px;
      background: var(--bg-card);
      font-family: var(--font-head);
      font-size: 1.1rem;
      color: var(--text-light);
      cursor: pointer;
      transition: border-color 0.18s, background 0.18s, color 0.18s;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .likert-btn:hover {
      border-color: var(--accent);
      color: var(--primary);
    }
    .likert-btn.selected {
      border-color: var(--primary);
      background: var(--primary);
      color: #fff;
    }
    .attribution {
      font-size: 0.72rem;
      color: var(--text-light);
      text-align: center;
      margin-top: 2rem;
      opacity: 0.7;
    }

    .error-msg {
      color: #B84C3A;
      font-size: 0.88rem;
      margin-top: 0.5rem;
    }
    .hidden { display: none; }

    @media (max-width: 480px) {
      body { padding: 1rem 0.75rem 3rem; }
      .card { padding: 1.5rem 1.25rem; }
      h1, .view-title { font-size: 1.45rem; }
      .result-title { font-size: 1.65rem; }
    }
    [hidden]{display:none!important}
