:root {
            --primary: #4CAF50;
            --primary-dark: #388E3C;
            --accent: #FF9800;
            --bg: #f8f9fa;
            --card: white;
            --text: #333;
            --gray: #666;
        }
        body {
            font-family: 'Segoe UI', Arial, sans-serif;
            background: var(--bg);
            color: var(--text);
            margin: 0;
            padding: 0;
            line-height: 1.6;
        }
        header {
            background: var(--primary);
            color: white;
            padding: 20px;
            text-align: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            position: relative;
        }
        h1, h2, h3 { margin: 0 0 15px 0; }

        .header-logo {
            display: block;
            margin: 0 auto 4px;
            width: 300px;
            height: 300px;
            object-fit: contain;
            margin-bottom: -30px !important;
        }
        header h1 {
            margin: 0 0 6px 0;
            line-height: 1;
        }
        @media (max-width: 600px) {
            .header-logo {
                width: 200px !important;
                height: 200px !important;
            }
        }
        nav {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            padding: 20px;
            background: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        nav button {
            padding: 12px 24px;
            border: none;
            border-radius: 30px;
            background: var(--primary);
            color: white;
            font-size: 1em;
            cursor: pointer;
            transition: all 0.3s;
        }
        nav button:hover { background: var(--primary-dark); transform: translateY(-2px); }
        nav button.active { background: var(--primary-dark); font-weight: bold; }

        .container { max-width: 1200px; margin: 20px auto; padding: 0 20px; }
        .card {
            background: var(--card);
            border-radius: 16px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 6px 20px rgba(0,0,0,0.1);
        }
        .grid { display: grid; gap: 20px; }
        .recipe-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
        .nested-folder { margin-left: 20px; border-left: 2px solid var(--gray); padding-left: 10px; }

        input, textarea, select {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 10px;
            box-sizing: border-box;
            font-size: 1em;
        }
        input[type="number"] { -moz-appearance: textfield; }
        input[type="number"]::-webkit-outer-spin-button,
        input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

        button {
            background: var(--primary);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 1em;
            transition: background 0.3s;
        }
        button:hover { background: var(--primary-dark); }
        button.small { padding: 8px 12px; font-size: 0.9em; }
        button.danger { background: #f44336; }
        button.danger:hover { background: #d32f2f; }
        button.accent { background: var(--accent); }
        button.accent:hover { background: #e68a00; }

        .ingredient-row {
            display: grid;
            grid-template-columns: 80px 110px 1fr auto auto;
            gap: 8px;
            align-items: center;
            margin-bottom: 10px;
        }
        .ingredient-name-wrap {
            position: relative;
        }
        .ingredient-name-wrap .name-input {
            width: 100%;
        }
        .error-message {
            color: red;
            position: absolute;
            bottom: -18px;
            left: 0;
            font-size: 0.8em;
            display: none;
        }
        .need-based-label {
            white-space: nowrap;
            margin: 0;
            font-size: 0.82em;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            user-select: none;
            padding: 4px 10px;
            border-radius: 20px;
            border: 2px solid #e0e0e0;
            background: #f8f9fa;
            color: #888;
            transition: all 0.25s ease;
            font-weight: 500;
        }
        .need-based-label:hover {
            border-color: #FF9800;
            color: #FF9800;
            background: rgba(255, 152, 0, 0.06);
        }
        .need-based-label:has(.need-based:checked) {
            border-color: #FF9800;
            background: linear-gradient(135deg, #FF9800, #F57C00);
            color: white;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
        }
        .need-based-label .need-based {
            display: none;
        }
        .need-based-label::before {
            content: '\2727';
            font-size: 1.1em;
            transition: transform 0.25s ease;
        }
        .need-based-label:has(.need-based:checked)::before {
            content: '\2713';
            transform: scale(1.2);
        }
        .ingredient-delete-btn {
            padding: 8px 12px;
        }
        .form-group { margin-bottom: 25px; }

        .image-preview {
            max-width: 100%;
            max-height: 400px;
            border-radius: 12px;
            margin: 15px 0;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            object-fit: cover;
        }

        .image-preview:not([src]),
        .image-preview[src=""],
        .image-preview[src="null"] {
            display: none;
        }

        .hidden { display: none; }

        /* Kochmodus */
        body.cooking {
            background: #111;
            color: white;
            font-size: 1.6em;
        }
        .cooking-layout {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 40px;
            max-width: 1400px;
            margin: 0 auto;
            padding: 40px;
        }
        .cooking-ingredients {
            background: rgba(255,255,255,0.1);
            padding: 30px;
            border-radius: 16px;
        }
        .cooking-step {
            text-align: center;
        }
        .cooking-step img {
            max-height: 60vh;
            border-radius: 16px;
            margin: 30px 0;
        }
        .cooking-nav {
            text-align: center;
            margin-top: 50px;
        }
        .cooking-nav button {
            font-size: 1.4em;
            padding: 20px 40px;
            margin: 0 15px;
        }

        @media (max-width: 1024px) {
            .cooking-layout { grid-template-columns: 1fr; }
            body.cooking { font-size: 1.4em; }
        }
        @media (max-width: 600px) {
            .ingredient-row {
                grid-template-columns: 1fr 1fr;
                gap: 8px;
            }
            /* Zeile 1: Menge + Einheit */
            .ingredient-row .amount-input { grid-column: 1; }
            .ingredient-row .unit-input   { grid-column: 2; }
            /* Zeile 2: Zutatenname (volle Breite) */
            .ingredient-row .ingredient-name-wrap { grid-column: 1 / -1; }
            /* Zeile 3: Nach-Bedarf + Löschen */
            .ingredient-row .need-based-label     { grid-column: 1; }
            .ingredient-row .ingredient-delete-btn { grid-column: 2; justify-self: end; }
        }

        body.cooking {
  background: #000;
  color: white;
  font-size: 1.4em;
  line-height: 1.5;
}

.cooking-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}

.cooking-ingredients {
  background: rgba(255,255,255,0.1);
  padding: 30px;
  border-radius: 16px;
}

.cooking-ingredients li {
  margin-bottom: 15px;
}

.cooking-ingredients input[type="checkbox"] {
  transform: scale(1.5);
  margin-right: 15px;
}

.cooking-step {
  text-align: center;
}

.cooking-step img {
  max-height: 60vh;
  border-radius: 16px;
  margin: 30px 0;
}

.cooking-nav {
  text-align: center;
  margin-top: 50px;
}

.cooking-nav button {
  font-size: 1.4em;
  padding: 20px 40px;
  margin: 0 15px;
}

@media (max-width: 1024px) {
  .cooking-layout { grid-template-columns: 1fr; }
  body.cooking { font-size: 1.4em; }
}

@media (max-width: 768px) {
  .cooking-nav button { padding: 15px 30px; font-size: 1.2em; }
}

.folder-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.folder-item h3 {
  margin: 0 0 10px 0;
  word-break: break-word; /* Lange Namen umbrechen */
}

.folder-item .button-group {
  display: flex;
  flex-wrap: wrap;         /* Buttons umbrechen bei wenig Platz */
  gap: 8px;                /* Abstand zwischen Buttons */
  margin-top: auto;        /* Schiebt Buttons ans untere Ende */
  align-items: center;
}

.folder-item button {
  flex-shrink: 0;          /* Verhindert, dass Buttons zu klein werden */
}

.step-row {
  cursor: grab;  /* Zeigt an, dass es verschiebbar ist */
}

.step-row.dragging {
  opacity: 0.5;  /* Halbtransparent während Drag */
  border: 2px dashed var(--gray);  /* Gestrichelter Rand */
}

button.accent {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

button.accent:hover {
  background: darken(var(--accent), 10%);  /* Falls du SCSS hast, ansonsten #F57C00 */
}

.folder-item .toggle-arrow {
  transition: transform 0.2s;
  display: inline-block;
}

.folder-item strong {
  flex: 1;
}

.subfolders > .folder-item {
  border-left: 2px solid var(--primary);
  margin-left: 10px;
}

.folder-item:hover {
  background: rgba(76, 175, 80, 0.05);
}

.folder-item {
  transition: background-color 0.2s;
}

.folder-item:hover {
  background: rgba(76, 175, 80, 0.08);
}

.toggle-arrow {
  display: inline-block;
  width: 1.2em;
  text-align: center;
  margin-right: 8px;
  font-weight: bold;
  transition: transform 0.25s ease;
}

.subfolders {
  margin-left: 24px;
  padding-left: 12px;
  border-left: 2px dashed #aaa;
  transition: all 0.3s ease;
  overflow: hidden;
  max-height: 0;
}

.subfolders.expanded {
  max-height: 2000px; /* groß genug für sehr viele Unterordner */
}

.breadcrumbs {
  margin: 12px 0;
  padding: 8px 12px;
  background: #f0f0f0;
  border-radius: 8px;
  font-size: 0.95em;
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

#folder-content {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 20px;
}

#folder-left {
  flex: 1; /* Links: Rezepte, 50% Breite */
  border-right: 1px solid #ccc; /* Dünne graue Trennlinie */
  padding-right: 20px;
}

#folder-right {
  flex: 1; /* Rechts: Unterordner */
  padding-left: 20px;
}

@media (max-width: 768px) {
  #folder-content {
    flex-direction: column; /* Auf Mobile: Vertikal stapeln */
  }
  #folder-left {
    border-right: none;
    border-bottom: 1px solid #ccc;
    padding-right: 0;
    padding-bottom: 20px;
  }
  #folder-right {
    padding-left: 0;
    padding-top: 20px;
  }
}

/* ===== NEUE ORDNER/REZEPT KARTEN ===== */

/* Ordner-Karten (Root-Ansicht) */
.folder-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-left: 5px solid var(--primary);
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.folder-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.folder-card-icon {
    font-size: 1.8em;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.folder-card-info {
    flex: 1;
    min-width: 0;
}
.folder-card-info h3 {
    margin: 0;
    font-size: 1.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.folder-card-info p {
    margin: 4px 0 0 0;
    color: #888;
    font-size: 0.85em;
}
.folder-card-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
}
.folder-card-actions button {
    font-size: 0.78em;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

/* Farbvarianten */
.folder-card.folder-meine { border-left-color: #4CAF50; }
.folder-card.folder-meine .folder-card-icon { background: #e8f5e9; }
.folder-card.folder-community { border-left-color: #2196F3; }
.folder-card.folder-community .folder-card-icon { background: #e3f2fd; }
.folder-card.folder-favoriten { border-left-color: #FFD700; }
.folder-card.folder-favoriten .folder-card-icon { background: #fff8e1; }
.folder-card.folder-skaliert { border-left-color: #9C27B0; }
.folder-card.folder-skaliert .folder-card-icon { background: #f3e5f5; }
.folder-card.folder-custom { border-left-color: #FF9800; }
.folder-card.folder-custom .folder-card-icon { background: #fff3e0; }

/* Unterordner-Grid */
.subfolder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.subfolder-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.subfolder-card:hover {
    border-color: var(--primary);
    background: #e8f5e9;
    transform: translateY(-1px);
}
.subfolder-card.drag-over {
    border-color: #667eea;
    background: #e8eaf6;
}
.subfolder-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.subfolder-card-header span.icon {
    font-size: 1.4em;
}
.subfolder-card-header .name {
    font-weight: 600;
    font-size: 0.95em;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.subfolder-card-meta {
    color: #888;
    font-size: 0.8em;
}
.subfolder-card-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: auto;
}
.subfolder-card-actions button {
    font-size: 0.75em;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Rezept-Grid */
.recipe-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 12px;
}
.recipe-tile {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}
.recipe-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.recipe-tile.dragging {
    opacity: 0.4;
    border-color: #667eea;
}
.recipe-tile-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #f0f0f0;
}
.recipe-tile-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: #a5d6a7;
}
.recipe-tile-body {
    padding: 14px;
}
.recipe-tile-title {
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.recipe-tile-meta {
    color: #888;
    font-size: 0.8em;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.recipe-tile-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Breadcrumbs */
.folder-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9em;
}
.folder-breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}
.folder-breadcrumbs a:hover {
    text-decoration: underline;
}
.folder-breadcrumbs .separator {
    color: #bbb;
}
.folder-breadcrumbs .current {
    color: var(--text);
    font-weight: 600;
}

/* Ordner-Sektions-Titel */
.folder-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0 8px 0;
    font-size: 1em;
    font-weight: 600;
    color: #555;
}
.folder-section-title .count {
    background: #e0e0e0;
    color: #666;
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

/* Drop-Zone für Elternordner */
.parent-drop-zone {
    margin: 12px 0;
    padding: 14px;
    text-align: center;
    border: 2px dashed #ddd;
    border-radius: 12px;
    color: #aaa;
    transition: all 0.2s;
    font-size: 0.9em;
}
.parent-drop-zone.drag-over {
    border-color: #667eea;
    color: #667eea;
    background: #e8eaf6;
}

/* Leerer Zustand */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
}
.empty-state .icon {
    font-size: 3em;
    margin-bottom: 12px;
}
.empty-state p {
    margin: 0;
    font-size: 0.95em;
}

/* Skalierte Zeit */
#scaledTimeDisplay {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f3e5f5;
    border-radius: 10px;
    color: #7b1fa2;
    font-weight: 500;
    font-size: 0.95em;
}

@media (max-width: 600px) {
    .subfolder-grid { grid-template-columns: 1fr; }
    .recipe-tile-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .folder-card { flex-direction: column; align-items: flex-start; }
    .folder-card-actions { width: 100%; justify-content: flex-start; }
}

/* ===== HELPER ===== */
.text-muted { text-align: center; color: var(--gray); }

/* ===== HOME-SEITE ===== */
.home-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2e7d32 100%);
    border-radius: 20px;
    padding: 48px 36px;
    margin-bottom: 28px;
    color: white;
    position: relative;
    overflow: hidden;
}
.home-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.home-hero-title {
    font-size: 2em;
    margin: 0 0 8px 0;
    font-weight: 700;
}
.home-hero-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1em;
}

.home-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.quick-action-icon {
    font-size: 1.8em;
}
.quick-action-label {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text);
}

.home-search-box {
    margin-bottom: 28px;
}
.home-search-input {
    font-size: 1.1em;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    transition: border-color 0.3s;
}
.home-search-input:focus {
    border-color: var(--primary);
    outline: none;
}
.home-search-hint {
    display: block;
    margin-top: 6px;
    color: var(--gray);
    font-size: 0.85em;
}

.home-section {
    margin-bottom: 32px;
}
.home-section-title {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--text);
}

@media (max-width: 600px) {
    .home-quick-actions { grid-template-columns: repeat(2, 1fr); }
    .home-hero { padding: 32px 20px; }
    .home-hero-title { font-size: 1.5em; }
}

/* ===== REZEPTFORMULAR ===== */
.recipe-form-header {
    text-align: center;
    margin-bottom: 28px;
}
.recipe-form-header h2 {
    font-size: 1.6em;
    margin: 0 0 6px 0;
}
.recipe-form-subtitle {
    color: var(--gray);
    margin: 0;
}

.form-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.form-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}
.form-section-header h3 {
    margin: 0;
    font-size: 1.15em;
}
.form-section-icon {
    font-size: 1.4em;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.image-upload-area {
    border: 2px dashed #ddd;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.image-upload-area:hover {
    border-color: var(--primary);
    background: rgba(76, 175, 80, 0.03);
}
.image-upload-prompt {
    color: var(--gray);
}
.image-upload-prompt p {
    margin: 8px 0 4px;
    font-weight: 500;
}
.image-upload-prompt small {
    color: #aaa;
}
.image-upload-icon {
    font-size: 2.5em;
    opacity: 0.5;
}
.image-upload-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.image-upload-area .image-preview {
    max-height: 300px;
    border-radius: 12px;
}

.add-item-btn {
    background: transparent;
    color: var(--primary);
    border: 2px dashed var(--primary);
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 10px;
}
.add-item-btn:hover {
    background: rgba(76, 175, 80, 0.08);
}

.community-toggle-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.community-toggle-label {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    color: white;
}
.community-toggle-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
}
.community-toggle-title {
    font-size: 1.15em;
    font-weight: 700;
    display: block;
}
.community-toggle-desc {
    display: block;
    margin-top: 4px;
    opacity: 0.9;
    font-size: 0.85em;
    color: rgba(255,255,255,0.9);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.btn-save {
    flex: 1;
    padding: 16px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-save:hover { background: var(--primary-dark); }
.btn-cancel {
    flex: 0 0 auto;
    padding: 16px 28px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1em;
}
.btn-cancel:hover { background: #d32f2f; }

@media (max-width: 768px) {
    .form-row-3 { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
}

/* ===== REZEPT-DETAILANSICHT ===== */
.recipe-detail-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    min-height: 280px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}
.recipe-detail-hero-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}
.recipe-detail-hero-placeholder {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5em;
    color: #a5d6a7;
}
.recipe-detail-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 28px 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}
.recipe-detail-title {
    font-size: 1.8em;
    margin: 0 0 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.recipe-detail-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.recipe-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82em;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}
.badge-easy { background: rgba(76, 175, 80, 0.7); }
.badge-medium { background: rgba(255, 152, 0, 0.7); }
.badge-hard { background: rgba(244, 67, 54, 0.7); }
.badge-author { background: rgba(33, 150, 243, 0.7); }
.badge-category { background: rgba(156, 39, 176, 0.7); }

.recipe-detail-fav-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 2em;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #ccc;
}
.recipe-detail-fav-btn:hover {
    transform: scale(1.15);
    background: rgba(255,255,255,0.35);
}

.recipe-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.btn-action {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.88em;
    font-weight: 500;
    border: 2px solid #e0e0e0;
    background: white;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-action:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(76,175,80,0.05);
}
.btn-action-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-action-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}
.btn-action-danger {
    color: #f44336;
    border-color: #ffcdd2;
}
.btn-action-danger:hover {
    background: #f44336;
    color: white;
    border-color: #f44336;
}
.btn-action-accent {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.btn-action-accent:hover {
    background: #e68a00;
    border-color: #e68a00;
    color: white;
}

.recipe-detail-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    margin-bottom: 28px;
}
.recipe-detail-ingredients {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.recipe-detail-ingredients h3 {
    margin: 0 0 16px;
}
.recipe-detail-steps {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.recipe-detail-steps h3 {
    margin: 0 0 16px;
}

.ingredient-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ingredient-list-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.ingredient-list-item:last-child {
    border-bottom: none;
}
.ingredient-amount {
    font-weight: 600;
    color: var(--primary-dark);
    min-width: 70px;
    white-space: nowrap;
}
.ingredient-name {
    color: var(--text);
}

.portion-scaler-box {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}
.portion-scaler-box h4 {
    margin: 0 0 12px;
    font-size: 0.95em;
}
.portion-scaler-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.portion-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
}
.portion-btn:hover {
    background: var(--primary);
    color: white;
}
.portion-input {
    width: 60px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1em;
    padding: 6px;
    border-radius: 8px;
}
.portion-scaler-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.step-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.step-card-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-card-content {
    flex: 1;
}
.step-card-content p {
    margin: 0 0 10px;
    line-height: 1.6;
}
.step-card-image {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recipe-detail-share {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 28px;
}
.share-link-input {
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    cursor: pointer;
}

/* Mengenskalierung – eigener Block unterhalb der Zubereitung */
.portion-scaler-section {
    margin-bottom: 28px;
}
.portion-scaler-section .portion-scaler-box {
    margin-top: 0;
    padding: 20px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.portion-scaler-section .portion-scaler-box h4 {
    margin: 0 0 14px;
    font-size: 1em;
    font-weight: 700;
}

@media (max-width: 900px) {
    .recipe-detail-content {
        grid-template-columns: 1fr;
    }
    .recipe-detail-hero-img { height: 240px; }
    .recipe-detail-title { font-size: 1.4em; }
}

/* ===== BEWERTUNGS-SYSTEM ===== */
.recipe-detail-reviews {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 28px;
}
.recipe-detail-reviews h3 {
    margin: 0 0 20px;
}

.reviews-summary {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}
.reviews-avg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.reviews-avg-number {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}
.reviews-avg-stars {
    font-size: 1.4em;
}
.reviews-avg-count {
    color: var(--gray);
    font-size: 0.9em;
}

.star { font-size: 1em; }
.star-filled { color: #FFD700; }
.star-half { color: #FFD700; opacity: 0.6; }
.star-empty { color: #ddd; }

.review-form-box {
    background: #f0f7f0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #c8e6c9;
}
.review-form-box h4 {
    margin: 0 0 12px;
    font-size: 1em;
}

.star-rating-input {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}
.star-input {
    font-size: 2em;
    cursor: pointer;
    color: #ddd;
    transition: color 0.15s, transform 0.15s;
    user-select: none;
}
.star-input:hover,
.star-input-hover {
    transform: scale(1.15);
}
.star-input-active {
    color: #FFD700;
}
.star-input-hover {
    color: #FFEB3B;
}

.review-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.95em;
    resize: vertical;
    box-sizing: border-box;
}

.review-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}
.review-card {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 3px solid #e0e0e0;
}
.review-card.review-own {
    border-left-color: var(--primary);
    background: #f0f7f0;
}
.review-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.review-card-header strong {
    font-size: 0.95em;
}
.review-stars {
    font-size: 0.95em;
}
.review-date {
    color: #aaa;
    font-size: 0.8em;
    margin-left: auto;
}
.review-comment {
    margin: 6px 0 0;
    color: #555;
    font-size: 0.92em;
    line-height: 1.5;
}

/* ===== COMMUNITY-SEITE ===== */
.community-header {
    text-align: center;
    margin-bottom: 24px;
}
.community-header h2 {
    font-size: 1.6em;
    margin: 0 0 6px;
}
.community-subtitle {
    color: var(--gray);
    margin: 0;
}

.community-search-box {
    margin-bottom: 28px;
}
.community-search-input {
    font-size: 1.1em;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    transition: border-color 0.3s;
}
.community-search-input:focus {
    border-color: var(--primary);
    outline: none;
}

.community-section {
    margin-bottom: 32px;
}
.community-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 1.15em;
    font-weight: 700;
    color: var(--text);
}
.community-section-title .count {
    background: var(--primary);
    color: white;
    font-size: 0.75em;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
}

/* ===== KATEGORIE-CHIPS ===== */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.88em;
    font-weight: 500;
    border: 2px solid #e0e0e0;
    background: #f8f9fa;
    color: #555;
    cursor: pointer;
    transition: all 0.18s;
    user-select: none;
    white-space: nowrap;
}
.category-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(76,175,80,0.06);
}
.category-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 700;
}

/* Kategorie-spezifische Farben */
.category-chip[data-value="Vorspeise"].active      { background: #43a047; border-color: #43a047; }
.category-chip[data-value="Hauptgericht"].active   { background: #e65100; border-color: #e65100; }
.category-chip[data-value="Beilage"].active        { background: #558b2f; border-color: #558b2f; }
.category-chip[data-value="Dessert"].active        { background: #c2185b; border-color: #c2185b; }
.category-chip[data-value="Snack"].active          { background: #6a1b9a; border-color: #6a1b9a; }
.category-chip[data-value="Suppe"].active          { background: #4e342e; border-color: #4e342e; }
.category-chip[data-value="Salat"].active          { background: #2e7d32; border-color: #2e7d32; }
.category-chip[data-value="Getränk"].active        { background: #1565c0; border-color: #1565c0; }
.category-chip[data-value="Gebäck"].active         { background: #f57f17; border-color: #f57f17; }
.category-chip[data-value="Sauce"].active          { background: #bf360c; border-color: #bf360c; }
.category-chip[data-value="Sonstiges"].active      { background: #546e7a; border-color: #546e7a; }

/* Filter-Chips in der Community (mit "Alle"-Option) */
.category-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.category-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    border: 2px solid #e8e8e8;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}
.category-filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(76,175,80,0.07);
}
.category-filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
}
.category-filter-chip[data-value="Hauptgericht"].active { background: #e65100; border-color: #e65100; }
.category-filter-chip[data-value="Dessert"].active      { background: #c2185b; border-color: #c2185b; }
.category-filter-chip[data-value="Snack"].active        { background: #6a1b9a; border-color: #6a1b9a; }
.category-filter-chip[data-value="Suppe"].active        { background: #4e342e; border-color: #4e342e; }
.category-filter-chip[data-value="Getränk"].active      { background: #1565c0; border-color: #1565c0; }
.category-filter-chip[data-value="Gebäck"].active       { background: #f57f17; border-color: #f57f17; }
.category-filter-chip[data-value="Sauce"].active        { background: #bf360c; border-color: #bf360c; }
.category-filter-chip[data-value="Sonstiges"].active    { background: #546e7a; border-color: #546e7a; }

/* Folder category filter */
.folder-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.folder-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.83em;
    font-weight: 500;
    border: 2px solid #e8e8e8;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}
.folder-cat-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(76,175,80,0.07);
}
.folder-cat-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
}

/* ===== PASSWORT TOGGLE ===== */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-input-wrapper input {
    padding-right: 48px;
}
.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 1.2em;
    color: var(--gray);
    line-height: 1;
}
.password-toggle-btn:hover {
    color: var(--primary);
    background: none;
}

/* ===== BENUTZERMENÜ DROPDOWN ===== */
.user-menu-container {
    position: absolute;
    top: 12px;
    right: 20px;
    z-index: 100;
}
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    padding: 6px 10px 6px 6px;
    cursor: pointer;
    color: white;
    font-size: 0.9em;
    transition: background 0.2s;
}
.user-menu-btn:hover {
    background: rgba(255,255,255,0.25);
}
.user-menu-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1em;
}
.user-menu-name {
    display: none; /* Ausgeblendet, wird nicht mehr verwendet */
}
.user-menu-arrow {
    font-size: 0.7em;
    opacity: 0.8;
}
.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 220px;
    overflow: hidden;
    z-index: 101;
}
.user-menu-header {
    padding: 16px 18px 12px;
}
.user-menu-nickname {
    font-weight: 700;
    color: var(--text);
    font-size: 1em;
}
.user-menu-email {
    display: block;
    color: var(--gray);
    font-size: 0.82em;
    margin-top: 2px;
}
.user-menu-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0;
}
.user-menu-item {
    display: block;
    width: 100%;
    padding: 12px 18px;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.92em;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 0;
}
.user-menu-item:hover {
    background: #f5f5f5;
}
.user-menu-item-danger {
    color: #f44336;
}
.user-menu-item-danger:hover {
    background: #ffebee;
}

/* ===== BENUTZER-SUCHERGEBNISSE ===== */
.user-result-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-left: 5px solid #9C27B0;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.user-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.user-result-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9C27B0, #E040FB);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2em;
    color: white;
    flex-shrink: 0;
}
.user-result-info {
    flex: 1;
    min-width: 0;
}
.user-result-info h3 {
    margin: 0 0 4px;
    font-size: 1.05em;
}
.user-result-info p {
    margin: 0;
    color: #888;
    font-size: 0.85em;
}
.user-result-arrow {
    color: #ccc;
    font-size: 0.8em;
}

/* ===== BENUTZERPROFIL ===== */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.user-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9C27B0, #E040FB);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.6em;
    color: white;
    flex-shrink: 0;
}
.user-profile-header h2 {
    margin: 0 0 4px;
}
.user-profile-header p {
    margin: 0;
}

/* ===== FOOTER ===== */
.app-footer {
    background: linear-gradient(180deg, #f8f9fa 0%, #eef0f2 100%);
    border-top: 1px solid #e0e0e0;
    padding: 32px 20px 24px;
    margin-top: 60px;
    text-align: center;
}
.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}
.footer-logo {
    width:200px;
    height:200px;
}
.footer-name {
    font-size: 1.15em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 4px;
    margin-bottom: 14px;
}
.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.88em;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.footer-links a:hover {
    color: var(--primary);
    background: rgba(76, 175, 80, 0.08);
}
.footer-divider {
    color: #ccc;
    font-size: 0.8em;
    user-select: none;
}
.footer-copy {
    color: #aaa;
    font-size: 0.78em;
    margin: 0;
}
@media (max-width: 600px) {
    .app-footer {
        padding: 24px 16px 18px;
        margin-top: 40px;
    }
    .footer-links {
        gap: 4px 2px;
    }
    .footer-links a {
        font-size: 0.82em;
    }
}

/* ===== COOKIE-BANNER (DSGVO) ===== */
.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    animation: cookieFadeIn 0.35s ease;
}
@keyframes cookieFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.cookie-banner {
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 32px 28px 24px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    animation: cookieSlideUp 0.4s ease;
}
@keyframes cookieSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-icon {
    font-size: 2.4em;
    text-align: center;
    margin-bottom: 8px;
}
.cookie-title {
    text-align: center;
    font-size: 1.25em;
    color: var(--text);
    margin: 0 0 12px;
    font-weight: 600;
}
.cookie-cook {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}
.cookie-text {
    color: var(--gray);
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0 0 20px;
    text-align: center;
}
.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.cookie-btn {
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}
.cookie-btn-primary {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: white;
    box-shadow: 0 3px 12px rgba(76, 175, 80, 0.3);
}
.cookie-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(76, 175, 80, 0.4);
}
.cookie-btn-secondary {
    background: #f0f0f0;
    color: var(--text);
}
.cookie-btn-secondary:hover {
    background: #e4e4e4;
}
.cookie-btn-link {
    background: none;
    color: var(--gray);
    font-weight: 500;
    font-size: 0.85em;
    padding: 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cookie-btn-link:hover {
    color: var(--text);
}
.cookie-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
    animation: cookieFadeIn 0.3s ease;
}
.cookie-category {
    padding: 10px 0;
}
.cookie-category + .cookie-category {
    border-top: 1px solid #e8e8e8;
}
.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.92em;
}
.cookie-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4CAF50;
    cursor: pointer;
    flex-shrink: 0;
}
.cookie-toggle input[type="checkbox"]:disabled {
    opacity: 0.7;
}
.cookie-toggle-label {
    color: var(--text);
}
.cookie-desc {
    color: var(--gray);
    font-size: 0.8em;
    line-height: 1.5;
    margin: 6px 0 0 28px;
}
.cookie-legal {
    color: #aaa;
    font-size: 0.75em;
    text-align: center;
    line-height: 1.5;
    margin: 0;
}
@media (max-width: 600px) {
    .cookie-banner {
        padding: 24px 18px 18px;
        border-radius: 16px 16px 0 0;
    }
    .cookie-icon {
        font-size: 2em;
    }
    .cookie-title {
        font-size: 1.1em;
    }
}

/* ===== EINKAUFSLISTE ===== */

/* Eingabeformular */
.shopping-add-form {
    margin-bottom: 16px;
}
.shopping-add-row {
    display: grid;
    grid-template-columns: 90px 130px 1fr auto;
    gap: 10px;
    align-items: center;
}
.shopping-add-amount,
.shopping-add-unit,
.shopping-add-name {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1em;
    box-sizing: border-box;
    width: 100%;
    transition: border-color 0.2s;
}
.shopping-add-amount:focus,
.shopping-add-unit:focus,
.shopping-add-name:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}
.shopping-add-btn {
    white-space: nowrap;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
.shopping-add-btn:hover {
    background: var(--primary-dark);
}
@media (max-width: 600px) {
    .shopping-add-row {
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto auto auto;
    }
    .shopping-add-name {
        grid-column: 1 / -1;
    }
    .shopping-add-btn {
        grid-column: 1 / -1;
    }
}

/* Listeneinträge */
.shopping-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 10px;
    transition: box-shadow 0.2s;
}
.shopping-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.shopping-item-amount {
    display: flex;
    align-items: center;
    gap: 6px;
}
.shopping-item-amount input[type="number"] {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95em;
    text-align: center;
}
.shopping-item-unit {
    font-weight: 600;
    color: var(--primary-dark);
    min-width: 36px;
}
.shopping-item-name {
    font-size: 1em;
    color: var(--text);
    font-weight: 500;
}
.shopping-item-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    font-size: 1.3em;
    padding: 4px 8px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
    width: auto;
}
.shopping-item-delete:hover {
    color: #f44336;
    background: #fff0f0;
}