/* ══════════════════════════════════════════════════
   essenplaner – Stylesheet
   Stil: modern | Primärfarbe: #0A2463
   Tag/Nacht-Modus via data-theme
   ══════════════════════════════════════════════════ */

/* ── Light Theme (Standard) ─────────────────────── */
:root, [data-theme="light"] {
    --brand-color: #0A2463;
    --brand-dark: #061539;
    --brand-light: #D6E4F0;
    --bg: #f5f7fa;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #1a1a2e;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --check-bg: #e5e7eb;
    --radius: 12px;
    --transition: 0.2s ease;
}

/* ── Dark Theme ─────────────────────────────────── */
[data-theme="dark"] {
    --brand-color: #3A7BD5;
    --brand-dark: #2E6BC4;
    --brand-light: #0f1e3d;
    --bg: #0f1117;
    --bg-card: #1a1d27;
    --text: #e4e6eb;
    --text-muted: #8b8fa3;
    --border: #2d3040;
    --header-bg: rgba(15, 17, 23, 0.95);
    --footer-bg: #0a0c10;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.4);
    --check-bg: #2d3040;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ─────────────────────────────────────── */
.header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

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

.header__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-color);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.header__logo-name {
    display: block;
}

.header__logo-by {
    display: block;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--text-muted, #9ca3af);
    text-transform: lowercase;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header__nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.header__nav a:hover {
    color: var(--brand-color);
}

.header__nav-active {
    color: var(--brand-color) !important;
}

/* ── Theme Toggle ───────────────────────────────── */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--brand-color);
    transform: scale(1.1);
}

.theme-toggle__icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle__icon--light {
    color: #f59e0b;
}

.theme-toggle__icon--dark {
    color: #64B5F6;
}

[data-theme="light"] .theme-toggle__icon--light {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .theme-toggle__icon--dark {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle__icon--light {
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="dark"] .theme-toggle__icon--dark {
    opacity: 1;
    transform: rotate(0deg);
}

/* ── Main ───────────────────────────────────────── */
.main {
    flex: 1;
    padding: 2rem 0;
}

/* ── Hero ───────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 1.5rem 0 2.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

/* ── Button ─────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.btn--primary {
    background: var(--brand-color);
    color: white;
}

.btn--primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* ── Weekplan Grid ──────────────────────────────── */
.weekplan__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
}

.weekplan__day {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition), background 0.3s ease;
}

.weekplan__day:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.weekplan__day-header {
    background: var(--brand-color);
    color: white;
    text-align: center;
    padding: 0.5rem;
}

.weekplan__day-name {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.weekplan__day-zeit {
    font-size: 0.65rem;
    opacity: 0.8;
}

.weekplan__meals {
    padding: 0.6rem;
}

.weekplan__meal {
    padding: 0.5rem;
    border-radius: 8px;
    transition: background var(--transition);
}

.weekplan__meal--filled {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.25rem;
}

.weekplan__meal--empty {
    border: 1px dashed var(--border);
    text-align: center;
    padding: 1rem 0.5rem;
}

.weekplan__meal-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.weekplan__meal-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.weekplan__meal-meta {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.weekplan__meal-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.weekplan__detail-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.weekplan__detail-btn:hover {
    background: var(--brand-color);
    color: white;
    border-color: var(--brand-color);
}

.weekplan__detail {
    padding: 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

.weekplan__detail h4 {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-color);
    margin: 0.5rem 0 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.weekplan__detail h4:first-child {
    margin-top: 0;
}

.weekplan__detail ul,
.weekplan__detail ol {
    padding-left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.5;
}

.weekplan__detail-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.weekplan__detail-link {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--brand-color);
    text-decoration: none;
}

.weekplan__detail-link:hover {
    text-decoration: underline;
}

.weekplan__meal-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-color);
    line-height: 1.3;
    text-decoration: none;
}

.weekplan__meal-name:hover {
    text-decoration: underline;
}

/* ── Einkaufsliste ──────────────────────────────── */
.shopping {
    margin-top: 3rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: background 0.3s ease;
}

.shopping__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.shopping__title {
    font-size: 1.5rem;
    font-weight: 700;
}

.btn--small {
    padding: 0.45rem 1.2rem;
    font-size: 0.8rem;
}

.btn--outline {
    background: transparent;
    color: var(--brand-color);
    border: 2px solid var(--brand-color);
}

.btn--outline:hover {
    background: var(--brand-color);
    color: white;
}

.hero__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.shopping__stores {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.shopping__store-tag {
    background: var(--brand-light);
    color: var(--brand-color);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

[data-theme="dark"] .shopping__store-tag {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.shopping__grouped {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.shopping__section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-color);
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--brand-color);
    margin-bottom: 0.25rem;
}

.shopping__section-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.15rem;
}

.shopping__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.25rem;
}

.shopping__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition);
}

.shopping__item:hover {
    background: var(--brand-light);
}

.shopping__checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--border);
    appearance: none;
    -webkit-appearance: none;
    background: var(--check-bg);
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition);
}

.shopping__checkbox:checked {
    background: var(--brand-color);
    border-color: var(--brand-color);
}

.shopping__checkbox:checked + .shopping__item-name {
    text-decoration: line-through;
    color: var(--text-muted);
}

.shopping__item-name {
    flex: 1;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.shopping__item-days {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ── Footer ─────────────────────────────────────── */
.footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem 0;
    margin-top: auto;
    transition: background 0.3s ease;
}

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

.footer__text {
    font-size: 0.85rem;
}

.footer__text strong {
    color: white;
}

.footer__links {
    display: flex;
    gap: 1.5rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer__link:hover {
    color: var(--brand-light);
}

/* ── Bug-Report (DEV_MODE) ──────────────────────── */
.bug-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ff5252;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.4);
    z-index: 1000;
    transition: transform var(--transition);
}

.bug-toggle:hover {
    transform: scale(1.1);
}

.bug-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    backdrop-filter: blur(4px);
}

.bug-modal__content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.bug-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.bug-modal__header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.bug-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
}

.bug-modal__field {
    margin-bottom: 1rem;
}

.bug-modal__field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.bug-modal__field input,
.bug-modal__field textarea,
.bug-modal__field select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--transition);
}

.bug-modal__field input:focus,
.bug-modal__field textarea:focus,
.bug-modal__field select:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px var(--brand-light);
}

.bug-modal__submit {
    width: 100%;
    padding: 0.75rem;
    background: #ff5252;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    margin-top: 0.5rem;
}

.bug-modal__submit:hover {
    background: #d32f2f;
}

/* ── Einstellungen ──────────────────────────────── */
.settings {
    max-width: 700px;
    margin: 0 auto;
}

.settings__title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.settings__alert {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

[data-theme="dark"] .settings__alert {
    background: #1a3a2a;
    color: #7dd3a0;
    border-color: #2d5a3d;
}

.settings__form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings__section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.settings__section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.settings__section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

.settings__radio {
    cursor: pointer;
}

.settings__radio input {
    display: none;
}

.settings__radio-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 2px solid var(--border);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}

.settings__radio input:checked + .settings__radio-label {
    background: var(--brand-color);
    color: white;
    border-color: var(--brand-color);
}

.settings__radio-label:hover {
    border-color: var(--brand-color);
}

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

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

.settings__day-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.settings__day-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--transition);
}

.settings__day-input:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px var(--brand-light);
}

.settings__day-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.settings__personen {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings__personen-input {
    width: 80px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 600;
    text-align: center;
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--transition);
}

.settings__personen-input:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px var(--brand-light);
}

.settings__personen-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ── Rezept-Detailseite ─────────────────────────── */
.rezept-detail {
    max-width: 800px;
    margin: 0 auto;
}

.rezept-detail__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.rezept-detail__back {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.rezept-detail__back:hover {
    color: var(--brand-color);
}

.rezept-detail__title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.rezept-detail__meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.rezept-detail__tag {
    background: var(--bg);
    color: var(--text-muted);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

.rezept-detail__tag--day {
    background: var(--brand-light);
    color: var(--brand-color);
    border-color: var(--brand-color);
}

.rezept-detail__columns {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.rezept-detail__zutaten,
.rezept-detail__zubereitung {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.rezept-detail__zutaten h2,
.rezept-detail__zubereitung h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--brand-color);
}

.rezept-detail__zutaten ul {
    list-style: none;
    padding: 0;
}

.rezept-detail__zutaten li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.rezept-detail__zutaten li:last-child {
    border-bottom: none;
}

.rezept-detail__zubereitung ol {
    padding-left: 1.5rem;
}

.rezept-detail__zubereitung li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ── Landing Page ──────────────────────────────── */
.landing-hero {
    text-align: center;
    padding: 3rem 0 3.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.landing-hero__title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--text);
}

.landing-hero__text {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.landing-hero__text strong {
    color: var(--brand-color);
}

.landing-section {
    padding: 2.5rem 0;
}

.landing-section__title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.landing-section__desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto 2rem;
}

/* ── Steps ─────────────────────────────────────── */
.landing-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.landing-step {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition);
}

.landing-step:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.landing-step__number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-color);
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.landing-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.landing-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Features Grid ─────────────────────────────── */
.landing-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.landing-feature {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}

.landing-feature:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.landing-feature__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.landing-feature h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.landing-feature p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Beispiel-Plan ─────────────────────────────── */
.landing-example {
    margin-top: 1rem;
}

/* ── Auth (Login / Registrieren) ───────────────── */
.auth {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.auth__card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px;
}

.auth__title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.auth__subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth__field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.auth__field input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--transition);
}

.auth__field input:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px var(--brand-light);
}

.auth__alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.auth__alert--error {
    background: #fde8e8;
    color: #9b1c1c;
    border: 1px solid #f8b4b4;
}

[data-theme="dark"] .auth__alert--error {
    background: #3a1a1a;
    color: #f8b4b4;
    border-color: #5a2d2d;
}

.auth__alert--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

[data-theme="dark"] .auth__alert--success {
    background: #1a3a2a;
    color: #7dd3a0;
    border-color: #2d5a3d;
}

.auth__footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth__link {
    color: var(--brand-color);
    text-decoration: none;
    font-weight: 600;
}

.auth__link:hover {
    text-decoration: underline;
}

.btn--full {
    width: 100%;
    text-align: center;
}

.btn--danger {
    background: #dc3545;
    color: white;
}

.btn--danger:hover {
    background: #c82333;
}

/* ── User Dropdown ─────────────────────────────── */
.header__user-menu {
    position: relative;
}

.header__user-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--brand-color);
    background: var(--brand-color);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.header__user-btn:hover {
    transform: scale(1.1);
}

.header__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    min-width: 200px;
    z-index: 200;
    overflow: hidden;
}

.header__dropdown-email {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    word-break: break-all;
}

.header__dropdown-item {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    transition: background var(--transition);
}

.header__dropdown-item:hover {
    background: var(--brand-light);
}

.header__dropdown-item--logout {
    color: #dc3545;
    border-top: 1px solid var(--border);
}

/* ── Admin-Tabelle ─────────────────────────────── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}

.admin-table td {
    padding: 0.75rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table__badge {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand-color);
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.admin-table__status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-table__status--active {
    background: #d4edda;
    color: #155724;
}

[data-theme="dark"] .admin-table__status--active {
    background: #1a3a2a;
    color: #7dd3a0;
}

.admin-table__status--inactive {
    background: #fde8e8;
    color: #9b1c1c;
}

/* ── Favoriten ─────────────────────────────────── */
.favoriten__grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.favoriten__card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: box-shadow var(--transition);
}

.favoriten__card:hover {
    box-shadow: var(--shadow-hover);
}

.favoriten__info {
    flex: 1;
    min-width: 0;
}

.favoriten__name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.favoriten__date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.favoriten__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1100px) {
    .weekplan__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .weekplan__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shopping__list {
        grid-template-columns: 1fr;
    }

    .rezept-detail__columns {
        grid-template-columns: 1fr;
    }

    .admin-table th:nth-child(2),
    .admin-table td:nth-child(2) {
        display: none;
    }

    .favoriten__card {
        flex-direction: column;
        align-items: stretch;
    }

    .header__nav {
        gap: 0.75rem;
    }

    .header__nav a {
        font-size: 0.8rem;
    }

    .landing-steps {
        grid-template-columns: 1fr;
    }

    .landing-features {
        grid-template-columns: 1fr;
    }

    .landing-hero__title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .weekplan__grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .footer__content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .shopping {
        padding: 1.25rem;
    }
}
