/* --- Allgemeine Reset und bestehende Variablen --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", 'Roboto', Arial, sans-serif;
}

:root {
    /* Dark Mode Farben */
    --color-bg-dark: #1b2b2b;
    --color-text-dark: #e0f0f0;
    --card-bg-dark: #283a3a;
    --color-border-dark: #4a5c5c;
    --color-header-bg-dark: rgba(0, 0, 0, 0.2);

    /* Light Mode Farben */
    --color-bg-light: #dce7e7;
    --color-text-light: #1b2b2b;
    --card-bg-light: #ffffff;
    --color-border-light: #ccc;

    /* Akzentfarbe (Salbeigrün) */
    --color-accent-green: #2e8b57;
    --color-accent-green-hover: #256b45;
}

/* --- Body und Übergänge --- */
body {
    transition: background-color 0.6s ease, color 0.6s ease;
    line-height: 1.6;
    min-height: 100vh;
}

/* --- Dark Mode / Light Mode --- */
body.dark-mode {
    background-color: var(--color-bg-dark);
    color: var(--color-text-dark);
}

body.light-mode {
    background-color: var(--color-bg-light);
    color: var(--color-text-light);
}

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode header {
    border-bottom: 1px solid var(--color-border-dark);
}

body.light-mode header {
    border-bottom: 1px solid var(--color-border-light);
}

header h1 {
    font-size: 1.8rem;
}

/* --- Controls --- */
.controls {
    display: flex;
    gap: 15px;
    position: relative;
}

/* --- Icon Buttons --- */
button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

button:hover {
    transform: scale(1.1) rotate(10deg);
    opacity: 0.9;
}

button img {
    width: 28px;
    height: 28px;
    display: block;
    transition: filter 0.6s ease;
}

body.dark-mode button img { filter: invert(85%); }
body.light-mode button img { filter: invert(0%); }

/* --- Theme Switch Button (Icon) --- */
button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

button:hover {
    transform: scale(1.1) rotate(10deg);
    opacity: 0.9;
}

button img {
    width: 28px;
    height: 28px;
    display: block;
    transition: filter 0.6s ease;
}

/* =====================================================
   ðŸ” SANDWICH-MENÃœ â€“ SMOOTH ANIMATION (KEIN AUFPLOPPEN)
   ===================================================== */

.menu {
    position: absolute;
    top: 60px;
    right: 30px;
    padding: 14px;
    border-radius: 10px;
    z-index: 100;

    /* Animation Basis */
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0.35s ease;
}

.menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}

/* MenÃ¼ Container Farben */
body.light-mode .menu {
    background: var(--card-bg-light);
    border: 1px solid var(--color-border-light);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

body.dark-mode .menu {
    background: #314545;
    border: 1px solid var(--color-border-dark);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

/* --- MenÃ¼ Items --- */
.menu-item {
    padding: 14px 18px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.menu-item:last-child {
    margin-bottom: 0;
}

.menu-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Light Mode Items */
body.light-mode .menu-item {
    background: #f4fafa;
    color: var(--color-text-light);
}

body.light-mode .menu-item:hover {
    background: var(--color-accent-green);
    color: white;
}

/* Dark Mode Items */
body.dark-mode .menu-item {
    background: #3b5757;
    color: var(--color-text-dark);
}

body.dark-mode .menu-item:hover {
    background: var(--color-accent-green);
    color: white;
}

/* Item Hover Animation */
.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.menu-item h2 {
    font-size: 1.1rem;
    font-weight: 500;
}

.menu-item p {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.75;
}

/* Profil Icon */
.product-icon-container { display: block; margin: 40px auto 20px auto; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.4); transition: transform 0.5s ease; }
.product-icon { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-icon:hover { transform: scale(1.1); }
/* --- Produkt-Icon --- */
.product-icon {
    display: block;
    margin: 40px auto 20px auto;
    width: 120px;
    transition: transform 0.5s ease;
}

.product-icon:hover {
    transform: scale(1.1);
}

/* --- Info Section --- */
#info {
    text-align: center;
    max-width: 600px;
    margin: auto;
    line-height: 1.6;
    transition: color 0.6s ease;
}

/* Button */
.btn_pg {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-accent-green);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: 
        background 0.3s ease, 
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn_pg:hover {
    background: var(--color-accent-green-hover);
    transform: translateY(-1px);
}
