/* --- 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 {
    --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);
    --color-bg-light: #dce7e7;
    --color-text-light: #1b2b2b;
    --card-bg-light: #ffffff;
    --color-border-light: #ccc;
    --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);
    transition: background 0.6s ease, border-bottom 0.6s ease;
    flex-shrink: 0;
}

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 {
    display: flex;
    gap: 15px;
}

/* --- 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;
}

/* Keine Hintergrundfarbe für den Button */
button img {
    width: 28px;
    height: 28px;
    display: block;
    transition: filter 0.6s ease;
}

/* Die Icons passen sich an das gewählte Theme an */
body.dark-mode button img {
    filter: invert(85%);
}

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

/* --- Sandwich Menü --- */
#menuToggle {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuToggle img {
    width: 28px;
    height: 28px;
    display: block;
}

/* --- Menü --- */
.menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 30px;
    background: var(--card-bg-dark); /* Dunklerer Hintergrund für Menü */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10;
}

.menu.open {
    display: block;
    transform: translateY(0);
}

/* --- Menü-Item (Knöpfe) --- */
.menu-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    color: var(--color-text-light);  /* Textfarbe im Menü */
    background: var(--card-bg-light); /* Heller Hintergrund im Light Mode */
}

/* Dark Mode - Menü-Items */
body.dark-mode .menu-item {
    background: var(--card-bg-dark);  /* Dunkler Hintergrund im Dark Mode */
    color: var(--color-text-dark);  /* Textfarbe im Dark Mode */
}

/* Light Mode - Menü-Items */
body.light-mode .menu-item {
    background: var(--card-bg-light);  /* Heller Hintergrund im Light Mode */
    color: var(--color-text-light);  /* Textfarbe im Light Mode */
}

/* Menü-Items, die den grünen Hintergrund bekommen sollen */
.menu-item.green-bg {
    background-color: var(--color-accent-green); /* Grüner Hintergrund */
    color: white; /* Textfarbe für die grünen Buttons */
}

/* Hover-Effekt für Menü-Items */
.menu-item:hover {
    background-color: var(--color-accent-green);  /* Farbe für Hover-Effekt */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Links innerhalb der Menü-Items */
.menu-item a {
    text-decoration: none;
    color: inherit; /* Vererbt die Farbe vom übergeordneten Menü-Item */
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu-item a:hover {
    color: var(--color-accent-green);  /* Mildere Hover-Farbe */
}

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

.menu-item p {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.7;
}

/* --- 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);
}

/* --- Info Section --- */
#info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 20px;
    line-height: 1.6;
}

.greeting {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

#info p {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.8;
}

/* --- Projekte Section --- */
main.projects {
    max-width: 650px;
    margin: 30px auto 40px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Projekt-Karten (keine Änderungen hier) */
.project-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .project-card {
    background: var(--card-bg-dark);
    border: 1px solid var(--color-border-dark);
}

body.light-mode .project-card {
    background: var(--card-bg-light);
    border: 1px solid var(--color-border-light);
}

/* Hover-Effekt für Projektkarten */
.project-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-accent-green);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.project-icon {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.project-content {
    flex-grow: 1;
}

.project-content h2 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.project-content p {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.65;
    margin-bottom: 8px;
}

.project-btn {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
    background-color: var(--color-accent-green);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

