:root {
    --primary-gradient: linear-gradient(135deg, #4869b7 0%, #e0aa2d 100%);
    --primary-color: #4869b7;
    --secondary-color: #ba9345;
    --highlight-gold: #e0aa2d;
    --title-color: #f5db79;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --background-dark: #0f172a;
    --background-card: #1e293b;
    --border-dark: #334155;
    --border-darker: #475569;
    --success-color: #059669;
    --error-color: #dc2626;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 24px rgba(0, 0, 0, 0.4);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --button-primary: #3b82f6;
    --button-primary-dark: #2563eb;
    --button-hover: #1d4ed8;
    --button-shadow: rgba(59, 130, 246, 0.2);
    --button-shadow-hover: rgba(59, 130, 246, 0.3);
    --macro-protein: #4869b7;
    --macro-carbs: #e0aa2d;
    --macro-fat: #ba9345;
    --goal-gain: #e0aa2d;
    --goal-lose: #4869b7;
    --goal-fitness: #ba9345;
    --goal-maintain: #f5db79;
    --goal-diabetes: #e0aa2d;
    --button-gray: #64748b;
    --button-yellow: #e0aa2d;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--background-dark);
    min-height: 100vh;
}

.container {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
}

/* Header */
header {
    background: var(--background-card);
    border-bottom: 1px solid var(--border-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    position: relative;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-panel {
    background: var(--background-card);
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    padding: 1rem 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease, opacity 0.3s;
    opacity: 0;
    visibility: hidden;
    border-bottom: 1px solid var(--border-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    z-index: 999;
    max-height: 70vh;
    overflow-y: auto;
}

.nav-panel.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Overlay-Schicht hinzufügen, um Hintergrund-Scrollen zu verhindern */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hintergrund-Scrollen verhindern */
body.nav-open {
    overflow: hidden;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.nav-list li {
    padding: 0.5rem 0;
}

.nav-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: block;
    padding: 0.4rem 0;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.nav-list a:hover {
    background: var(--border-dark);
    color: var(--primary-color);
}

.logo h1 {
    color: var(--title-color);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-title {
    transition: opacity 0.2s ease;
    user-select: none;
}

.logo-title:hover {
    opacity: 0.8;
}

.logo-title:active {
    opacity: 0.6;
}

/* Hero Section */
.hero {
    background: var(--background-card);
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-lg);
    border-radius: 19px;
    margin: 1.6rem 0 1.2rem 0;
    padding: 2rem 1.2rem;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2rem;
    color: var(--title-color);
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.hero-content p {
    font-size: 0.8rem;
    color: #e5e7eb;
    max-width: 500px;
    margin: 0 auto;
}

/* Language Selector */
.language-selector {
    margin: 2rem auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(224, 170, 45, 0.1), rgba(224, 170, 45, 0.05));
    border: 1px solid rgba(224, 170, 45, 0.3);
    border-radius: 12px;
    max-width: 320px;
    backdrop-filter: blur(10px);
}

.language-selector label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--highlight-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}


.language-select {
    background: var(--background-card);
    border: 2px solid var(--highlight-gold);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(224, 170, 45, 0.2);
}

.language-select:hover {
    border-color: var(--highlight-gold);
    box-shadow: 0 6px 20px rgba(224, 170, 45, 0.4);
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--background-card), rgba(224, 170, 45, 0.05));
}

.language-select:focus {
    outline: none;
    border-color: var(--highlight-gold);
    box-shadow: 0 0 0 4px rgba(224, 170, 45, 0.3), 0 6px 20px rgba(224, 170, 45, 0.4);
    transform: translateY(-2px);
}

.language-select option {
    background: var(--background-card);
    color: var(--text-primary);
    padding: 0.75rem;
    font-weight: 500;
}

/* Sprachauswahl-Eingangsanimation */
@keyframes languageSelectorFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.language-selector {
    animation: languageSelectorFadeIn 0.6s ease-out 0.3s both;
}

/* Subtilen Pulseffekt hinzufügen */
@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(224, 170, 45, 0.2);
    }
    50% {
        box-shadow: 0 4px 12px rgba(224, 170, 45, 0.35);
    }
}

.language-select {
    animation: subtlePulse 3s ease-in-out infinite;
}

/* Externe Link-Stile - Website-eigene Farben verwenden */
.info-section a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-dark);
    transition: all 0.2s ease;
    padding-bottom: 1px;
}

.info-section a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-secondary);
}

.info-section a:focus {
    outline: none;
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

/* Calculator Form */
.calculator, .results, .info-section {
    background: var(--background-card);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
    color: #fff;
    border: 1px solid var(--border-dark);
}

.form-section {
    margin-bottom: 3rem;
}

.form-section h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
    width: 100%;
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    background: var(--background-dark);
    color: #fff;
    font-weight: 500;
    transition: border 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-group input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

/* Goal Options */
.goal-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.goal-option {
    flex: 1 1 150px;
    max-width: 210px;
    min-width: 140px;
    display: flex;
}

.goal-option input[type="radio"] {
    display: none;
}

.goal-card {
    background: var(--background-card);
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    padding: 1rem 0.5rem;
    text-align: center;
    color: var(--text-primary);
    transition: border 0.2s, box-shadow 0.2s;
    width: 100%;
}

.goal-card:hover,
.goal-option input[type="radio"]:checked + .goal-card {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    background: var(--border-dark);
}

.goal-icon img {
    margin-bottom: 0.7rem;
    width: 32px;
    height: 32px;
    filter: invert(1) brightness(2) drop-shadow(0 0 6px #3b82f6) drop-shadow(0 0 2px #fff);
    background: transparent;
    border-radius: 50%;
}

.goal-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #fff;
}

.goal-card p {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #cbd5e1;
}

/* Calculate Button */
.calculate-btn, .recalculate-btn {
    width: 100%;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    padding: 1.2rem 2rem;
    border-radius: var(--radius-xl);
    cursor: pointer;
    margin-top: 2rem;
    box-shadow: 0 4px 6px var(--button-shadow),
                0 8px 16px var(--button-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.calculate-btn::before,
.recalculate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.calculate-btn:hover::before,
.recalculate-btn:hover::before {
    left: 100%;
}

.calculate-btn:hover,
.recalculate-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--button-primary-dark) 0%, var(--button-hover) 100%);
    box-shadow: 0 6px 8px var(--button-shadow-hover),
                0 12px 24px var(--button-shadow-hover);
}

.calculate-btn:active,
.recalculate-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px var(--button-shadow);
}

/* Results Section */
.results {
    background: var(--background-card);
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-lg);
    border-radius: 13px;
    padding: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.hidden {
    display: none;
}

.results h3 {
    font-size: 2rem;
    margin-bottom: 2.4rem;
    font-weight: 800;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: var(--background-card);
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-sm);
    border-radius: 13px;
    padding: 1.2rem;
    text-align: center;
    color: var(--text-primary);
}

.result-card.primary {
    background: var(--primary-gradient);
}

.result-card h4 {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.result-card.primary h4 {
    color: #fff;
}

.result-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #3b82f6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.result-card.primary .result-value {
    color: #fff;
}

.macros-section,
.food-recommendations {
    margin-top: 2.5rem;
}

.macros-section h4,
.food-recommendations h4 {
    color: #2563eb;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.macros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
}

.macro-item {
    background: var(--background-card);
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    border-radius: 14px;
    text-align: center;
}

.macro-item h5 {
    color: #fff;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.food-item {
    background: var(--background-card);
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    border-radius: 14px;
    color: var(--text-primary);
}

.food-item h5 {
    color: #fff;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.food-item p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Info Section Headers */
.info-section h2,
.info-section .info-title,
.info-section .section-title {
    color: var(--title-color) !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.12);
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.info-section h3,
.info-section .info-subtitle {
    color: var(--highlight-gold) !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-size: 1.02rem;
    font-weight: 500;
    margin: 1.1rem 0 0.5rem 0;
}

.info-section h2::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: var(--border-dark);
    border-radius: 2px;
    margin: 0.5rem 0 0 0;
}

.info-section h3::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--border-dark);
    border-radius: 2px;
    margin: 0.4rem 0 0 0;
}

.info-section p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.info-section ul {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-left: 1.5rem;
    margin-bottom: 2rem;
    color: #e5e7eb;
}

/* Media Queries */
@media (max-width: 614px) {
    .container, .header-content {
        max-width: 100%;
        padding: 0 8px;
    }
    .hero, .calculator, .results, .info-section {
        padding: 1.2rem 0.5rem;
        border-radius: 14px;
    }
    .goal-card {
        padding: 0.7rem 0.3rem;
        border-radius: 8px;
    }
    .goal-card h4 {
        font-size: 0.95rem;
    }
    .goal-card p {
        font-size: 0.7rem;
    }
    .goal-icon img {
        width: 26px;
        height: 26px;
    }
    .results-grid, .macros-grid, .food-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .nav-panel {
        top: 56px;
        padding: 0.5rem 0;
    }

    .nav-list a {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    /* Hamburger-Menü auf Mobilgeräten sichtbar stellen */
    .hamburger-btn {
        z-index: 1001;
        position: relative;
    }


    .hero-content h2 {
        font-size: 1.6rem;
    }

    .info-section h2 {
        font-size: 1.6rem;
    }

    .info-section h3 {
        font-size: 1.2rem;
    }

    .info-section p,
    .info-section ul {
        font-size: 0.8rem;
    }

    .result-value {
        font-size: 1.6rem;
    }
    .goal-options {
        gap: 0.5rem;
    }
    .goal-option {
        flex: 1 1 120px;
        max-width: 160px;
        min-width: 100px;
    }
}

@media (max-width: 384px) {
    .logo h1 {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .hero-content h2 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .info-section h2 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .info-section h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .calculate-btn,
    .recalculate-btn {
        font-size: 0.85rem;
        padding: 0.9rem 1.2rem;
        border-radius: var(--radius-lg);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-content p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* Deutsche Text-Optimierung */
    .goal-card h4 {
        font-size: 0.85rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .goal-card p {
        font-size: 0.65rem;
        line-height: 1.3;
        word-break: break-word;
    }

    .activity-select-button {
        font-size: 0.8rem;
        padding: 0.8rem;
        word-break: break-word;
    }

    /* Mobile Sprachauswahl */
    .language-selector {
        margin: 1.5rem auto 0.5rem auto;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        max-width: 280px;
    }

    .language-selector label {
        font-size: 0.8rem;
        letter-spacing: 0.08em;
    }

    .language-select {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
        min-width: 140px;
        box-shadow: 0 3px 10px rgba(224, 170, 45, 0.25);
    }

    .language-select:hover {
        box-shadow: 0 4px 15px rgba(224, 170, 45, 0.4);
        transform: translateY(-1px);
    }

    .calculator {
        padding: 1.5rem;
    }

    .results {
        padding: 2rem;
    }

    .goal-card {
        padding: 1.5rem 1rem;
    }
}

/* Sehr kleine Bildschirm-Optimierung - für deutsche Langtexte */
@media (max-width: 320px) {
    .container {
        padding: 0 6px;
    }

    .logo h1 {
        font-size: 1rem;
        line-height: 1.1;
    }

    .hero-content h2 {
        font-size: 1.2rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .goal-card h4 {
        font-size: 0.8rem;
        line-height: 1.1;
    }

    .goal-card p {
        font-size: 0.6rem;
        line-height: 1.2;
    }

    .calculate-btn {
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }

    .language-selector {
        max-width: 260px;
        padding: 0.5rem 0.8rem;
    }

    .language-select {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
        min-width: 120px;
    }

    .nav-list a {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
        word-break: break-word;
    }
}

/* Activity Level Modal */
.activity-select-wrapper {
    position: relative;
    width: 100%;
}

.activity-select-button {
    width: 100%;
    font-size: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    background: var(--background-dark);
    color: #fff;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.activity-select-button::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.activity-select-button:hover {
    border-color: var(--primary-color);
    background: var(--border-dark);
}

.activity-select-button.has-value {
    color: #fff;
    font-weight: 600;
    border-color: var(--primary-color);
}

.activity-select-button.has-value::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--background-card);
    border-radius: 16px;
    padding: 1.5rem 1.2rem;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.12);
    border: 1px solid var(--border-dark);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.98rem;
    color: #fff;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.activity-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    margin: 1.5rem 0;
}

.activity-options::-webkit-scrollbar {
    width: 6px;
}

.activity-options::-webkit-scrollbar-track {
    background: var(--background-dark);
    border-radius: 10px;
}

.activity-options::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.activity-option {
    padding: 0.7rem 1rem;
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--background-card);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.activity-option:hover {
    border-color: var(--primary-color);
    background: var(--border-dark);
    transform: translateY(-2px);
}

.activity-option.selected {
    border-color: var(--primary-color);
    background: var(--border-dark);
    box-shadow: var(--shadow-md);
}

.activity-option.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.activity-option h4 {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.activity-option p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.4;
}

.modal-footer {
    margin-top: 1.2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-button {
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-button.cancel {
    background: var(--border-dark);
    border: 2px solid var(--border-darker);
    color: var(--text-primary);
}

.modal-button.cancel:hover {
    background: var(--border-darker);
}

.modal-button.confirm {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.modal-button.confirm:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 500px) {
    .modal-content {
        max-width: 95vw;
        padding: 1rem 0.5rem;
        font-size: 0.92rem;
    }
    .modal-header h3 {
        font-size: 1.1rem;
    }
    .activity-option {
        font-size: 0.95rem;
        padding: 0.6rem 0.5rem;
    }
}

.goal-icon img,
.macro-item img {
    filter: invert(1) brightness(2) drop-shadow(0 0 6px #3b82f6) drop-shadow(0 0 2px #fff);
    background: transparent;
    border-radius: 50%;
}

/* Reichhaltige Button-Farbgebung */
.calculate-btn {
    background: var(--primary-gradient);
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--button-shadow);
    transition: background 0.2s, box-shadow 0.2s;
    border: 2px solid var(--highlight-gold);
}
.calculate-btn:hover {
    background: var(--highlight-gold);
    color: #222;
    border-color: var(--primary-color);
}
.recalculate-btn {
    background: var(--button-gray);
    color: #fff;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.2s;
    border: 2px solid var(--highlight-gold);
}
.recalculate-btn:hover {
    background: #ba9345;
    color: #fff;
}

/* Zielkarten-Farbgebung */
.goal-card.gain { background: var(--goal-gain); color: #fff; }
.goal-card.lose { background: var(--goal-lose); color: #fff; }
.goal-card.fitness { background: var(--goal-fitness); color: #fff; }
.goal-card.maintain { background: var(--goal-maintain); color: #222; }
.goal-card.diabetes { background: var(--goal-diabetes); color: #fff; }
.goal-card { transition: background 0.2s, color 0.2s; }
.goal-card:not(.selected) { background: var(--background-card); color: var(--text-secondary); }
.goal-card.selected { box-shadow: 0 2px 12px rgba(0,0,0,0.18); border: 2px solid var(--highlight-gold); }

/* Nährstoff-Karten-Farbgebung */
.macro-item.protein { background: var(--macro-protein); color: #fff; border-radius: 12px; }
.macro-item.carbs { background: var(--macro-carbs); color: #222; border-radius: 12px; }
.macro-item.fat { background: var(--macro-fat); color: #fff; border-radius: 12px; }
.macro-item { box-shadow: 0 2px 8px rgba(0,0,0,0.10); }

/* Aktivitätslevel-Modal-Buttons */
.modal-button.confirm { background: var(--primary-color); color: #fff; }
.modal-button.cancel { background: var(--button-yellow); color: #222; }
.modal-button.confirm:hover { background: var(--button-hover); }
.modal-button.cancel:hover { background: #f7c96f; }

/* Wichtige Hinweise/Warnungen */
.alert-warning { background: #fff3cd; border: 1px solid #ffeeba; color: #856404; border-radius: 8px; }
/* Menüpunkte mit Unterstrich-Trennung, letzter Punkt ohne Unterstrich */
.nav-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #3a4252;
}
.nav-list li:last-child {
    border-bottom: none;
}