    :root {
      --bg: #f7f3ec;
      --bg-alt: #fffaf3;
      --accent: #d86a3d;
      --accent-soft: rgba(216, 106, 61, 0.15);
      --accent-strong: #b54f27;
      --text: #26211a;
      --muted: #7a6f62;
      --border: #e1d4c3;
      --success: #3a9b5a;
      --radius-lg: 20px;
      --radius-xl: 28px;
      --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.1);
      --transition: 0.25s ease;
      --font-display: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
      --font-body: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
    }

    body[data-theme="dark"] {
      --bg: #17130f;
      --bg-alt: #221b14;
      --accent: #ff8a4a;
      --accent-soft: rgba(255, 138, 74, 0.15);
      --accent-strong: #ffb27f;
      --text: #f5eee5;
      --muted: #a39786;
      --border: #3b3228;
      --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.6);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: var(--font-body);
      background: radial-gradient(circle at top, #fff3e3 0, var(--bg) 42%, #cbb49c 100%);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: stretch;
      padding: 24px;
      overflow-x: hidden;
    }

    /* INTRO OVERLAY -------------------------------------------------------- */

    .intro-overlay {
      position: fixed;
      inset: 0;
      padding: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: radial-gradient(circle at top, rgba(255, 243, 227, 0.96), rgba(126, 99, 72, 0.95));
      z-index: 1000;
      opacity: 1;
      transform: translateY(0) scale(1);
      transition: opacity 0.45s ease, transform 0.45s ease;
    }

    body[data-theme="dark"] .intro-overlay {
      background: radial-gradient(circle at top, rgba(40, 32, 24, 0.98), rgba(8, 5, 2, 0.98));
    }

    .intro-overlay.hidden {
      opacity: 0;
      transform: translateY(10px) scale(0.98);
      pointer-events: none;
    }

    .intro-card {
      width: 100%;
      max-width: 460px;
      border-radius: 28px;
      padding: 22px 20px 20px;
      background: rgba(255, 255, 255, 0.9);
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
      position: relative;
      overflow: hidden;
      text-align: center;
      backdrop-filter: blur(10px);
    }

    body[data-theme="dark"] .intro-card {
      background: rgba(22, 17, 10, 0.96);
      border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .intro-card::before {
      content: "";
      position: absolute;
      inset: -40%;
      background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.6), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(255, 191, 140, 0.6), transparent 55%);
      opacity: 0.7;
      mix-blend-mode: soft-light;
      pointer-events: none;
    }

    .intro-inner {
      position: relative;
      z-index: 2;
    }

    .intro-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.78rem;
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(0, 0, 0, 0.06);
      color: var(--muted);
      margin-bottom: 10px;
      backdrop-filter: blur(6px);
    }

    body[data-theme="dark"] .intro-pill {
      background: rgba(0, 0, 0, 0.6);
      border-color: rgba(255, 255, 255, 0.12);
    }

    .intro-title {
      margin: 0 0 6px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 1.4rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .intro-subtitle {
      margin: 0 0 10px;
      font-size: 1rem;
      font-weight: 600;
      color: var(--accent-strong);
    }

    .intro-text {
      margin: 0 0 14px;
      font-size: 0.9rem;
      color: var(--muted);
    }

    .intro-meta {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-bottom: 16px;
      font-size: 0.8rem;
      color: var(--muted);
      flex-wrap: wrap;
    }

    .intro-meta span {
      padding: 4px 8px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.8);
      border: 1px solid rgba(0, 0, 0, 0.06);
    }

    body[data-theme="dark"] .intro-meta span {
      background: rgba(0, 0, 0, 0.6);
      border-color: rgba(255, 255, 255, 0.14);
    }

    .intro-illustration {
      width: 100%;
      display: flex;
      justify-content: center;
      margin-bottom: 12px;
    }

    .intro-illustration svg {
      width: 170px;
      max-width: 60%;
      height: auto;
      filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.3));
    }

    .intro-actions {
      display: flex;
      flex-direction: column;
      gap: 8px;
      align-items: center;
    }

    .intro-primary-btn {
      border-radius: 999px;
      padding: 9px 18px;
      border: none;
      font-size: 0.9rem;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      color: #fff;
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      box-shadow: 0 12px 26px rgba(216, 106, 61, 0.7);
      transition: transform var(--transition), box-shadow var(--transition),
        background var(--transition);
    }

    .intro-primary-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 16px 32px rgba(216, 106, 61, 0.8);
    }

    .intro-secondary {
      font-size: 0.78rem;
      color: var(--muted);
    }

    .intro-secondary span {
      opacity: 0.8;
    }


    /* APP WRAPPER ---------------------------------------------------------- */

    .app {
      width: 100%;
      max-width: 1120px;
      background: linear-gradient(145deg, var(--bg-alt), var(--bg));
      border-radius: 32px;
      box-shadow: var(--shadow-soft);
      padding: 24px 24px 28px;
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.3);
      opacity: 0;
      transform: translateY(12px) scale(0.98);
      animation: appIn 0.5s ease-out forwards;
    }

    @media (min-width: 900px) {
      .app {
        padding: 32px 32px 36px;
      }
    }

    .app::before {
      content: "";
      position: absolute;
      inset: -120px;
      background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.35), transparent 60%),
        radial-gradient(circle at bottom right, rgba(255, 186, 125, 0.35), transparent 60%);
      mix-blend-mode: soft-light;
      opacity: 0.9;
      pointer-events: none;
    }

    .app-inner {
      position: relative;
      z-index: 2;
    }

    /* Recipe Header with Image */
    .recipe-header {
      width: 100%;
      margin-bottom: 24px;
      border-radius: var(--radius-xl);
      overflow: hidden;
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
      position: relative;
    }

    .recipe-header-image-container {
      position: relative;
      width: 100%;
      min-height: 320px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .recipe-header-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .recipe-header-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.5) 100%
      );
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 24px;
    }

    .recipe-header-content {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

    .recipe-header-content .title-block {
      flex: 1;
      min-width: 280px;
    }

    .recipe-header-content .headline h1,
    .recipe-header-content .headline h2,
    .recipe-header-content .headline p {
      color: #fff;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }

    .recipe-header-content .headline h1 .emphasis {
      background: rgba(255, 255, 255, 0.25);
      backdrop-filter: blur(8px);
      color: #fff;
    }

    .recipe-header-content .header-controls {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .recipe-header-content .pill {
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(8px);
      border-color: rgba(255, 255, 255, 0.3);
    }

    .recipe-header-content .theme-toggle {
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(8px);
      border-color: rgba(255, 255, 255, 0.3);
    }

    .recipe-image-credit {
      font-size: 0.75rem;
      color: rgba(255, 255, 255, 0.9);
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
      align-self: flex-end;
    }

    @media (max-width: 768px) {
      .recipe-header-image-container {
        min-height: 240px;
      }

      .recipe-header-overlay {
        padding: 16px;
      }

      .recipe-header-content {
        flex-direction: column;
      }

      .recipe-header-content .header-controls {
        width: 100%;
        justify-content: space-between;
      }
    }

    header.app-header {
      display: flex;
      align-items: center;
      gap: 16px;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .title-block {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .dish-badge {
      width: 52px;
      height: 52px;
      border-radius: 999px;
      background: conic-gradient(from 140deg, #fbe2c7, #f6c086, #fbe2c7);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
      animation: floatSlow 6s ease-in-out infinite alternate;
    }

    .dish-badge::after {
      content: "";
      position: absolute;
      width: 120%;
      height: 120%;
      border-radius: inherit;
      background:
        radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.7), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(255, 255, 255, 0.8), transparent 60%);
      mix-blend-mode: soft-light;
      opacity: 0.9;
    }

    .dish-icon {
      position: relative;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #fff7ee;
      border: 2px solid rgba(216, 106, 61, 0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      color: var(--accent);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    }

    .headline {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .headline h1 {
      margin: 0;
      font-family: var(--font-display);
      font-weight: 700;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      font-size: 1.2rem;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .headline h1 span.emphasis {
      padding: 2px 8px;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent-strong);
      font-size: 0.85rem;
      letter-spacing: 0.12em;
    }

    .headline h2 {
      margin: 0;
      font-size: 1.5rem;
      font-weight: 600;
      letter-spacing: 0.02em;
    }

    .headline p {
      margin: 0;
      font-size: 0.9rem;
      color: var(--muted);
    }

    .header-controls {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .pill {
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.28);
      border: 1px solid rgba(255, 255, 255, 0.55);
      font-size: 0.8rem;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      backdrop-filter: blur(8px);
      color: var(--muted);
      white-space: nowrap;
    }

    .pill strong {
      color: var(--accent-strong);
      font-weight: 600;
    }

    .theme-toggle {
      border-radius: 999px;
      border: 1px solid rgba(0, 0, 0, 0.06);
      background: rgba(255, 255, 255, 0.6);
      backdrop-filter: blur(8px);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      font-size: 0.8rem;
      cursor: pointer;
      transition: transform var(--transition), box-shadow var(--transition),
      background var(--transition);
    }

    .theme-toggle:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
      background: rgba(255, 255, 255, 0.9);
    }

    .theme-toggle-icon {
      width: 18px;
      height: 18px;
      border-radius: 999px;
      background: radial-gradient(circle at 30% 25%, #fff, #f5da9d);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
    }

    main.layout {
      display: grid;
      gap: 20px;
      margin-top: 12px;
    }

    @media (min-width: 900px) {
      main.layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: flex-start;
        gap: 24px;
      }
    }

    .card {
      border-radius: var(--radius-xl);
      background: rgba(255, 255, 255, 0.82);
      border: 1px solid rgba(255, 255, 255, 0.9);
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
      padding: 16px 16px 18px;
      position: relative;
      overflow: hidden;
      backdrop-filter: blur(6px);
      transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
    }

    .card:hover {
      transform: translateY(-2px);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    }

    body[data-theme="dark"] .card {
      background: rgba(20, 15, 10, 0.94);
      border-color: rgba(255, 255, 255, 0.06);
    }

    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 10px;
    }

    .card-title {
      font-size: 0.95rem;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .card-title::before {
      content: "";
      width: 26px;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--accent), transparent);
      opacity: 0.8;
    }

    .card-subtitle {
      margin: 0;
      font-size: 0.85rem;
      color: var(--muted);
    }

    /* LEFT: Ingredients */

    .servings-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 10px;
      flex-wrap: wrap;
    }

    .servings-row-label {
      font-size: 0.86rem;
      color: var(--muted);
    }

    .servings-row-label strong {
      color: var(--text);
    }

    .servings-control {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.86rem;
    }

    .servings-value {
      min-width: 32px;
      text-align: center;
      padding: 4px 0;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.03);
      border: 1px solid rgba(0, 0, 0, 0.08);
      font-weight: 600;
    }

    body[data-theme="dark"] .servings-value {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.12);
    }

    input[type="range"] {
      accent-color: var(--accent);
    }

    .ingredients-list {
      list-style: none;
      padding: 0;
      margin: 12px 0 10px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .ingredient-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.9rem;
      padding: 6px 8px;
      border-radius: 14px;
      transition: background var(--transition), transform var(--transition),
      box-shadow var(--transition), opacity var(--transition);
      position: relative;
    }

    .ingredient-item.checked {
      background: rgba(58, 155, 90, 0.08);
      animation: ingredientPulse 0.3s ease-out;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
      opacity: 0.95;
    }

    .ingredient-checkbox {
      width: 18px;
      height: 18px;
      border-radius: 6px;
      border: 2px solid rgba(0, 0, 0, 0.2);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 12px;
      background: rgba(255, 255, 255, 0.7);
      transition: background var(--transition), border-color var(--transition),
      transform var(--transition);
    }

    body[data-theme="dark"] .ingredient-checkbox {
      border-color: rgba(255, 255, 255, 0.3);
      background: rgba(0, 0, 0, 0.4);
    }

    .ingredient-item.checked .ingredient-checkbox {
      background: var(--success);
      border-color: var(--success);
      color: white;
      transform: scale(1.06);
    }

    .ingredient-main {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .ingredient-top {
      display: flex;
      justify-content: space-between;
      gap: 10px;
    }

    .ingredient-name {
      font-weight: 500;
    }

    .ingredient-amount {
      font-weight: 500;
      font-variant-numeric: tabular-nums;
      font-size: 0.9rem;
      color: var(--accent-strong);
    }

    .ingredient-note {
      font-size: 0.8rem;
      color: var(--muted);
    }

    .ingredients-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-top: 6px;
      flex-wrap: wrap;
    }

    .progress-bar {
      flex: 1;
      height: 7px;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.05);
      overflow: hidden;
      position: relative;
    }

    body[data-theme="dark"] .progress-bar {
      background: rgba(255, 255, 255, 0.06);
    }

    .progress-bar-fill {
      position: absolute;
      inset: 0;
      width: 0%;
      background: linear-gradient(90deg, var(--success), var(--accent));
      border-radius: inherit;
      transition: width 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    .ingredients-progress-text {
      font-size: 0.8rem;
      color: var(--muted);
      white-space: nowrap;
    }

    .badge-soft {
      font-size: 0.76rem;
      padding: 4px 8px;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.03);
      color: var(--muted);
    }

    body[data-theme="dark"] .badge-soft {
      background: rgba(255, 255, 255, 0.05);
    }

    .tip-card {
      margin-top: 10px;
      padding: 10px 12px;
      border-radius: 16px;
      background: var(--accent-soft);
      font-size: 0.82rem;
      color: var(--accent-strong);
      display: flex;
      gap: 8px;
      align-items: flex-start;
    }

    .tip-card-icon {
      width: 18px;
      height: 18px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.82);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
    }

    .tip-card strong {
      font-weight: 600;
    }

    /* RIGHT: Steps */

    .steps-header-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 6px;
      flex-wrap: wrap;
    }

    .steps-progress-pill {
      font-size: 0.8rem;
      padding: 4px 8px;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.04);
      color: var(--muted);
    }

    body[data-theme="dark"] .steps-progress-pill {
      background: rgba(255, 255, 255, 0.05);
    }

    .steps-progress-pill strong {
      color: var(--accent-strong);
    }

    .pro-tip-toggle {
      font-size: 0.8rem;
      padding: 4px 8px;
      border-radius: 999px;
      border: 1px dashed rgba(0, 0, 0, 0.15);
      background: rgba(255, 255, 255, 0.7);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      transition: background var(--transition), transform var(--transition),
      box-shadow var(--transition);
    }

    body[data-theme="dark"] .pro-tip-toggle {
      border-color: rgba(255, 255, 255, 0.25);
      background: rgba(0, 0, 0, 0.5);
    }

    .pro-tip-toggle:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    }

    .steps-progress-bar {
      width: 100%;
      height: 7px;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.05);
      overflow: hidden;
      position: relative;
      margin-bottom: 8px;
    }

    body[data-theme="dark"] .steps-progress-bar {
      background: rgba(255, 255, 255, 0.06);
    }

    .steps-progress-fill {
      position: absolute;
      inset: 0;
      width: 0%;
      background: linear-gradient(90deg, var(--accent), var(--success));
      border-radius: inherit;
      transition: width 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    .steps-nav {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      padding-bottom: 4px;
      margin-bottom: 10px;
      scrollbar-width: thin;
    }

    .step-chip {
      flex: 0 0 auto;
      padding: 5px 10px;
      border-radius: 999px;
      font-size: 0.78rem;
      border: 1px solid rgba(0, 0, 0, 0.08);
      background: rgba(255, 255, 255, 0.8);
      color: var(--muted);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: background var(--transition), transform var(--transition),
      box-shadow var(--transition), border-color var(--transition);
    }

    .step-chip-index {
      width: 18px;
      height: 18px;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.04);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--text);
    }

    body[data-theme="dark"] .step-chip {
      border-color: rgba(255, 255, 255, 0.12);
      background: rgba(0, 0, 0, 0.5);
    }

    .step-chip.active {
      border-color: var(--accent);
      background: var(--accent-soft);
      color: var(--accent-strong);
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    }

    .step-chip.completed {
      border-color: var(--success);
    }

    .step-chip.completed .step-chip-index {
      background: var(--success);
      color: #fff;
    }

    .steps-body {
      display: flex;
      flex-direction: column;
      gap: 10px;
      max-height: 380px;
      overflow-y: auto;
      padding-right: 4px;
      scrollbar-width: thin;
    }

    .step-card {
      border-radius: 18px;
      padding: 10px 11px 10px;
      background: rgba(255, 255, 255, 0.85);
      border: 1px solid rgba(0, 0, 0, 0.04);
      display: grid;
      grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
      gap: 10px;
      align-items: flex-start;
      opacity: 0.4;
      transform: translateY(2px) scale(0.99);
      transition: opacity var(--transition), transform var(--transition),
      box-shadow var(--transition), border-color var(--transition),
      background var(--transition);
      position: relative;
    }

    .step-card.active {
      opacity: 1;
      transform: translateY(0) scale(1);
      box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
      border-color: rgba(0, 0, 0, 0.08);
    }

    .step-card::before {
      content: attr(data-step-label);
      position: absolute;
      top: 8px;
      left: 10px;
      font-size: 0.7rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--muted);
      opacity: 0.7;
    }

    .step-text {
      margin-top: 18px;
      font-size: 0.9rem;
      line-height: 1.5;
    }

    /* Step-Illustrationen */

    .step-illustration {
      width: 100%;
      max-height: 80px;
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      opacity: 0.9;
    }

    .step-illustration svg {
      width: 100%;
      max-width: 120px;
      height: auto;
    }

    body[data-theme="dark"] .step-illustration svg {
      filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.7));
    }

    .step-meta-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 6px;
      flex-wrap: wrap;
    }

    .step-tag {
      font-size: 0.76rem;
      padding: 3px 7px;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.03);
      color: var(--muted);
    }

    body[data-theme="dark"] .step-tag {
      background: rgba(255, 255, 255, 0.06);
    }

    .step-pro-tip {
      font-size: 0.8rem;
      margin-top: 6px;
      color: var(--accent-strong);
      display: none;
    }

    .step-pro-tip.visible {
      display: block;
    }

    .step-actions {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 16px;
    }

    .timer-pill {
      padding: 8px 8px;
      border-radius: 14px;
      background: rgba(0, 0, 0, 0.03);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 0.82rem;
    }

    body[data-theme="dark"] .timer-pill {
      background: rgba(255, 255, 255, 0.04);
    }

    .timer-main {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .timer-badge {
      width: 22px;
      height: 22px;
      border-radius: 999px;
      border: 2px solid rgba(0, 0, 0, 0.15);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.8rem;
      font-weight: 600;
    }

    body[data-theme="dark"] .timer-badge {
      border-color: rgba(255, 255, 255, 0.18);
    }

    .timer-label {
      color: var(--muted);
    }

    .timer-time {
      font-variant-numeric: tabular-nums;
      font-weight: 600;
    }

    .btn {
      border-radius: 999px;
      padding: 7px 10px;
      border: none;
      font-size: 0.8rem;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      white-space: nowrap;
      transition: transform var(--transition), box-shadow var(--transition),
      background var(--transition), opacity var(--transition);
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      color: white;
      box-shadow: 0 8px 20px rgba(216, 106, 61, 0.5);
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 26px rgba(216, 106, 61, 0.65);
    }

    .btn-ghost {
      background: transparent;
      border: 1px solid rgba(0, 0, 0, 0.12);
      color: var(--muted);
    }

    body[data-theme="dark"] .btn-ghost {
      border-color: rgba(255, 255, 255, 0.2);
    }

    .btn-ghost:hover {
      background: rgba(0, 0, 0, 0.04);
    }

    .step-check-row {
      display: flex;
      justify-content: flex-end;
      margin-top: 4px;
      font-size: 0.78rem;
      color: var(--muted);
      align-items: center;
      gap: 4px;
    }

    .step-check-input {
      width: 15px;
      height: 15px;
      border-radius: 5px;
      border: 2px solid rgba(0, 0, 0, 0.18);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 0.75rem;
      background: rgba(255, 255, 255, 0.8);
      transition: background var(--transition), border-color var(--transition),
      transform var(--transition);
    }

    body[data-theme="dark"] .step-check-input {
      border-color: rgba(255, 255, 255, 0.25);
      background: rgba(0, 0, 0, 0.5);
    }

    .step-check-input.checked {
      background: var(--success);
      border-color: var(--success);
      color: white;
      transform: scale(1.05);
    }

    /* Notes */

    .notes-textarea {
      width: 100%;
      border-radius: 18px;
      border: 1px solid rgba(0, 0, 0, 0.10);
      padding: 8px 10px;
      resize: vertical;
      min-height: 70px;
      font-family: var(--font-body);
      font-size: 0.9rem;
      background: rgba(255, 255, 255, 0.9);
      transition: border-color var(--transition), box-shadow var(--transition),
      background var(--transition);
    }

    .notes-textarea:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 1px var(--accent-soft);
      background: rgba(255, 255, 255, 1);
    }

    body[data-theme="dark"] .notes-textarea {
      background: rgba(0, 0, 0, 0.5);
      border-color: rgba(255, 255, 255, 0.18);
      color: var(--text);
    }

    .notes-footer {
      margin-top: 6px;
      font-size: 0.76rem;
      color: var(--muted);
      display: flex;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
    }

    .notes-status {
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    footer.app-footer {
      margin-top: 16px;
      font-size: 0.75rem;
      color: var(--muted);
      display: flex;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
    }

    .footer-link {
      text-decoration: underline dotted;
      cursor: default;
    }

    /* globale Doodles */

    .doodle {
      position: absolute;
      opacity: 0.24;
      mix-blend-mode: multiply;
      z-index: 1;
      pointer-events: none;
    }

    body[data-theme="dark"] .doodle {
      opacity: 0.18;
      mix-blend-mode: screen;
    }

    .doodle svg {
      width: 160px;
      height: auto;
      filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    }

    .doodle-beans {
      top: -12px;
      right: -10px;
      animation: doodleFloat 7s ease-in-out infinite alternate;
    }

    .doodle-olive {
      bottom: -40px;
      left: -20px;
      animation: doodleFloat 9s ease-in-out infinite alternate-reverse;
    }

    .doodle-pot {
      top: 40%;
      left: -32px;
      animation: doodleWiggle 6s ease-in-out infinite;
    }

    /* Confetti */

    #confettiContainer {
      position: fixed;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
      z-index: 999;
    }

    .confetti-piece {
      position: absolute;
      width: 8px;
      height: 14px;
      border-radius: 999px;
      opacity: 0;
      animation: confettiFall 2.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    }

    /* Motion / keyframes */

    @keyframes appIn {
      0% {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    @keyframes floatSlow {
      0% {
        transform: translateY(0px);
      }
      100% {
        transform: translateY(-4px);
      }
    }

    @keyframes doodleFloat {
      0% {
        transform: translate3d(0, 0, 0) rotate(-1deg);
      }
      100% {
        transform: translate3d(0, -12px, 0) rotate(2deg);
      }
    }

    @keyframes doodleWiggle {
      0% {
        transform: translate3d(0, 0, 0) rotate(-2deg);
      }
      50% {
        transform: translate3d(4px, -8px, 0) rotate(2deg);
      }
      100% {
        transform: translate3d(0, 0, 0) rotate(-2deg);
      }
    }

    @keyframes ingredientPulse {
      0% {
        transform: translateX(0) scale(1);
      }
      40% {
        transform: translateX(2px) scale(1.03);
      }
      100% {
        transform: translateX(2px) scale(1);
      }
    }

    @keyframes confettiFall {
      0% {
        transform: translate3d(0, -100vh, 0) rotateZ(0deg);
        opacity: 0;
      }
      15% {
        opacity: 1;
      }
      100% {
        transform: translate3d(0, 100vh, 0) rotateZ(360deg);
        opacity: 0;
      }
    }

    .hidden {
      display: none !important;
    }

    /* Highlight für geklickte Schritte */
    .step-card.clicked {
      border-color: var(--accent);
      background: rgba(216, 106, 61, 0.08);
      box-shadow: 0 8px 20px rgba(216, 106, 61, 0.25);
      animation: stepHighlight 0.4s ease-out;
    }

    body[data-theme="dark"] .step-card.clicked {
      background: rgba(255, 138, 74, 0.12);
      border-color: var(--accent);
    }

    @keyframes stepHighlight {
      0% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.02);
      }
      100% {
        transform: scale(1);
      }
    }

