/* =======================================================
   🌍 GLOBALE STYLES & TYPOGRAFIE
   ======================================================= */
html, body {
    padding-top: 45px; /* Schafft Platz für die fixierte TopBar */
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 120px;
    background-color: var(--bg-dark); 
    color: var(--text-main);
}

.container {
    padding-top: 45px; /* Schafft Platz für die fixierte TopBar */
    width: 100%;
    max-width: 1200px; !important;
    margin: 0 auto;
}

/* --- GLOBALE ÜBERSCHRIFTEN (Sicherheits-Fallback) --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-white); 
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: bold;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color); 
    margin-top: 30px; 
}

h3 {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-top: 25px;
}

/* =======================================================
   🔝 HEADER & NAVIGATION 
   ======================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 120px; 
    background-color: var(--bg-card);
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 10px solid var(--bg-card); 
}

.site-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
}

.header-top {
    display: flex;
    width: 100%;
    justify-content: space-between; /* Sorgt für maximalen Platz zwischen Logo und Menü */
    align-items: center;
}

/* --- LOGO --- */
.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary-color); 
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
}

.logo-img {
    width: 100px; 
    height: 100px;
    border-radius: 50%;
    object-fit: cover; 
    object-position: center center; 
    vertical-align: middle; 
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px var(--shadow-color);
    margin-right: 15px; 
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--shadow-color);
    border-color: var(--text-white);
}

/* --- NAVIGATION LINKS --- */
.mobile-toggle {
    display: none !important; /* Versteckt auf dem Desktop */
}

.navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
}

.navigation a {
    display: inline-block;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    white-space: nowrap; /* <--- DAS VERHINDERT, DASS DER TEXT SICH STAPELT! */
    transition: color 0.3s ease;
}

.navigation a:hover {
    color: var(--primary-color);
}

.navigation a.active {
    color: var(--primary-color) !important;
    font-weight: bold;
}

/* =======================================================
   🦸‍♂️ HERO SEKTION
   ======================================================= */
#hero {
    min-height: calc(100vh - 120px); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    border-bottom: 2px solid var(--primary-color); 
    padding: 0 20px; 
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

#hero h1 span {
    color: var(--primary-color);
}

#hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-invert); 
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* =======================================================
   📑 SEKTIONEN (Zebra-Look)
   ======================================================= */
.page-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--bg-lighter);
    min-height: 60vh;
}

.page-section:nth-child(odd) {
    background-color: var(--bg-dark);
}

.page-section:nth-child(even) {
    background-color: var(--bg-card);
    box-shadow: inset 0 5px 15px var(--shadow-color); 
}

.page-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    display: inline-block; 
}

.page-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.page-section a:not(.hero-btn):not(.social-btn):not(.btn-stream):not(.btn-action) {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.page-section a:not(.hero-btn):not(.social-btn):not(.btn-stream):not(.btn-action):hover {
    color: var(--primary-hover);
    border-bottom: 1px solid var(--primary-hover);
}

/* =======================================================
   📄 REGULÄRE SEITEN (Impressum, Datenschutz etc.)
   ======================================================= */
.regular-page {
    padding: 60px 0 100px 0; 
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: transparent; 
}

.regular-page .container {
    background-color: var(--bg-card);
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    padding: 50px 60px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px var(--shadow-color); 
}

.regular-page h1 {
    text-align: center;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 40px;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.regular-page a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.regular-page a:hover {
    color: var(--primary-hover);
    border-bottom: 1px solid var(--primary-hover);
}

/* =======================================================
   👤 ÜBER MICH SEKTION
   ======================================================= */
.about-me-sectionContainer {
    background: linear-gradient(
        135deg, 
        var(--bg-card) 0%, 
        var(--bg-dark) 50%, 
        var(--primary-hover) 100%
    );
    background-size: 200% 200%; 
    animation: auroraGlow 12s ease infinite;
    padding: 60px 30px;
    border-radius: 15px; 
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    overflow: hidden; 
}

@keyframes auroraGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.about-me-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.about-me-text { flex: 2; }

.about-me-text h2 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-me-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 15px;
}

.about-me-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-placeholder {
    width: 220px;
    height: 220px;
    background-color: var(--bg-lighter);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.placeholder-icon {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -2px;
}

.profile-placeholder:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px var(--shadow-color);
}

.profile-image-container {
    width: 250px;
    height: 250px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px var(--shadow-color);
    transition: all 0.3s ease;
    background-color: var(--bg-card);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center center; 
    transform: scale(1.10) translateY(-10px);
}

.profile-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--shadow-color);
    border-color: var(--text-white);
}

.about-profile-pic {
    background-image: var(--about-image);
    background-size: cover;
    background-position: center;
    width: 200px; 
    height: 200px;
    border-radius: 50%; 
}

.deine-profilbild-klasse {
    background-image: var(--about-image);
    background-size: cover;
    background-position: center;
}

/* =======================================================
   📦 FEATURES & PROJEKTE & DONUTS
   ======================================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--text-white);
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.status-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-item {
    background: var(--bg-lighter);
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.project-header {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--text-white);
}

.project-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.btn-action {
    display: inline-block;
    width: 140px;
    padding: 10px;
    background: var(--btn-bg);
    color: var(--primary-color);
    border: 1px solid var(--btn-border);
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: var(--primary-color);
    color: var(--text-invert);
    border-color: var(--primary-color);
}

.homepages-grid-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.donut-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.donut-project-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 25px var(--shadow-color);
    position: relative;
}

.circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.circle-chart {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--shadow-color);
    margin-bottom: 12px;
}

.circle-inner {
    width: 92px; 
    height: 92px;
    border-radius: 50%;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-white);
}

.circle-label {
    font-weight: bold;
    color: var(--text-white);
    font-size: 1.1rem;
    margin-top: 5px;
}

.donut-project-item .info p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    text-align: left; 
    margin: 0 0 10px 0;
}

@media (min-width: 1101px) {
    .donut-project-item .info {
        position: absolute; 
        top: 0; 
        left: calc(100% + 20px); 
        width: 450px; 
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        border-left: 3px solid var(--primary-color); 
        border-radius: 8px;
        padding: 25px;
        box-shadow: 0 15px 40px var(--shadow-color); 
        z-index: 100; 
        max-height: none !important; 
        overflow: visible;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }
    .donut-project-item .info.open {
        opacity: 1;
        visibility: visible;
        transform: translateX(0); 
    }
    .donut-project-item:last-child .info {
        left: auto; 
        right: calc(100% + 20px); 
        border-left: 1px solid var(--border-color);
        border-right: 3px solid var(--primary-color); 
        transform: translateX(20px); 
    }
    .donut-project-item:last-child .info.open {
        transform: translateX(0);
    }
}

/* =======================================================
   🪗 AKKORDEON & BILDER
   ======================================================= */
.project-accordion {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.project-accordion li {
    margin-bottom: 10px;
}

.toggle-info {
    width: 100%;
    text-align: left;
    background-color: var(--bg-card);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.toggle-info:hover, 
.toggle-info.active {
    background-color: var(--bg-dark);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.info {
    max-height: 0;
    overflow: hidden;
    background-color: var(--bg-dark);
    border-left: 2px solid var(--primary-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    margin-top: -5px;
    padding: 0 20px;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.info.open {
    padding: 15px 20px;
}

.info p {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-main);
}

.info .note {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-card img, 
.project-card .project-card-img,
.accordion-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-card:hover img,
.project-card:hover .project-card-img,
.accordion-img:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--shadow-color);
}

/* =======================================================
   💬 KONTAKTFORMULAR
   ======================================================= */
.form-container {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-width: 80%;
    margin: 0 auto;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.form-container label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: bold;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 25px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-container textarea {
    resize: vertical;
    min-height: 150px;
}

.form-container input[type="text"]:hover,
.form-container input[type="email"]:hover,
.form-container textarea:hover {
    border-color: var(--border-hover);
}

.form-container input[type="text"]:focus,
.form-container input[type="email"]:focus,
.form-container textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--shadow-color);
}

.form-submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-invert);
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.form-submit-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

#custom-contact-form select {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-lighter);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

#custom-contact-form select:focus {
    border-color: var(--primary-color);
    outline: none;
    background: var(--bg-card);
}

#custom-contact-form select option {
    background: var(--bg-lighter);
    color: var(--text-main);
}

/* =======================================================
   🔗 BUTTONS & SOCIAL MEDIA (Streaming, Support)
   ======================================================= */

/* --- PILL BUTTONS (Für Donuts, Infos, Homepage, Kontakt) --- */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none !important;
    text-align: center;
    border: 1px solid var(--border-color);
    outline: none;
    margin: 0 5px 10px 5px;

    /* 👇 HIER SIND DIE ÄNDERUNGEN 👇 */
    width: 140px !important; /* Erzwingt bei allen exakt die gleiche Breite */
    padding: 10px 0; /* Links/Rechts auf 0 setzen, da die feste Breite den Platz vorgibt */
    /* 👆 ------------------------ 👆 */

    background-color: var(--bg-card);
    color: var(--text-main);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-pill:hover,
.btn-pill.active {
    background-color: var(--primary-color);
    color: var(--text-invert);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.social-media-buttons {
    display: flex;
    flex-wrap: wrap; 
    gap: 15px; 
    justify-content: center; 
    align-items: center;   
    margin-top: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;     
    height: 45px;    
    border-radius: 50%;
    font-size: 20px; 
    color: var(--text-muted);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.social-btn:hover {
    transform: scale(1.1) translateY(-3px);
    background-color: var(--primary-color);
    color: var(--text-invert);
    border-color: var(--primary-color);
    box-shadow: 0 6px 15px var(--shadow-color);
}

.stream-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-stream {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--btn-bg);
    color: var(--text-main); 
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--btn-border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-stream i { font-size: 1.2rem; }

.btn-stream.btn-twitch:hover {
    background: #9146FF;
    border-color: #9146FF;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(145, 70, 255, 0.4);
}

.btn-stream.btn-tiktok:hover {
    background: #000000;
    border-color: #ff0050;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 0, 80, 0.4);
}

.btn-stream.btn-youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.logo-grid a img, .donate-img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
    background-color: var(--bg-card);
    box-sizing: border-box; 
}

.logo-grid a img:hover, .donate-img:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--shadow-color);
}

.donate-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
}

.donate-img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    border: 2px solid transparent;
}

.donate-text {
    max-width: 100%;
    margin: 0 auto 25px auto;
    line-height: 1.6;
    color: var(--text-main);
}

/* =======================================================
   🦶 FOOTER
   ======================================================= */
.site-footer {
    background-color: var(--bg-footer); 
    padding: 40px 0;
    border-top: 1px solid var(--border-color); 
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: var(--text-muted); 
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* =========================================
   🏗️ LAYOUTS FÜR SEITEN & SIDEBARS
   ========================================= */
.layout-default .container { max-width: 1200px; margin: 0 auto; }
.layout-leftside .container { max-width: 1400px; margin: 0 auto; }
.layout-bothside .container { max-width: 1600px; margin: 0 auto; }
.layout-fullwidth .container { max-width: 100%; padding: 0 20px; margin: 0 auto; }
.layout-fullwidth { width: 100%; }

.layout-default, .layout-leftside, .layout-rightside, .layout-bothside, .layout-fullwidth {
    padding-top: 80px; 
    padding-bottom: 50px; 

    
}

.layout-leftside .sidebar { background-color: var(--bg-dark); border-right: 4px solid var(--primary-color); }
.layout-bothside .sidebar-left, .layout-bothside .sidebar-right { background-color: transparent; border: 1px solid var(--border-color); }

.layout-leftside .container { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.layout-rightside .container { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }
.layout-bothside .container { display: grid; grid-template-columns: 300px 1fr 300px; gap: 30px; align-items: start; }

.navigation-sidebar ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.navigation-sidebar li a { display: block; padding: 12px 15px; background-color: var(--bg-dark); color: var(--text-main); text-decoration: none; font-weight: bold; border-radius: 6px; border-left: 3px solid transparent; transition: all 0.3s ease; }
.navigation-sidebar li a:hover { background-color: var(--bg-lighter); color: var(--primary-color); border-left: 3px solid var(--primary-color); padding-left: 20px; }


/* ===================================================
   📱 RESPONSIVE DESIGN (Tablets & Handys ab 1100px)
   =================================================== */
@media screen and (max-width: 1100px) { 
    
    /* Sidebars und Content untereinander zwingen */
    .bothside, .leftside, .rightside, .content-wrapper, .main-container,
    .layout-leftside .container, .layout-rightside .container, .layout-bothside .container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .main-content, .sidebar, .sidebar-left, .sidebar-right {
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 40px !important;
    }

    /* Mobile Navigation & Hamburger */
    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .mobile-toggle {
        display: block !important; 
        background: transparent;
        color: var(--text-white);
        border: none;
        font-size: 28px;
        cursor: pointer;
        padding: 5px 10px;
    }

    .navigation ul {
        display: none !important; 
        flex-direction: column !important;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        padding: 20px 0;
        border-bottom: 2px solid var(--primary-color);
        box-shadow: 0 10px 20px var(--shadow-color);
        margin: 0;
        gap: 0;
    }

    .navigation ul.open {
        display: flex !important; 
        animation: fadeInDown 0.3s ease;
    }

    .navigation ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        margin: 0;
    }

    .navigation ul li a {
        display: block;
        padding: 15px;
        white-space: normal; /* Auf dem Handy darf der Text wieder umbrechen */
    }

    /* Mobile Donuts & Footer */
    .donut-project-item .info {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background-color: var(--bg-dark);
        border-left: 2px solid var(--primary-color);
        border-radius: 4px;
        margin-top: 15px;
        padding: 0 20px;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }
    .donut-project-item .info.open {
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links ul {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ===================================================
   📱 GANZ KLEINE HANDYS (z.B. iPhone SE)
   =================================================== */
@media screen and (max-width: 576px) {
    .container {
        width: 100% !important;
        padding: 0 15px !important;
    }
    h1 {
        font-size: 28px !important;
    }
    .about-me-layout {
        flex-direction: column-reverse;
        gap: 30px;
        padding: 30px 20px;
    }
    .about-me-text {
        text-align: center;
    }
    .form-container {
        max-width: 100%;
        padding: 20px;
    }
    .profile-placeholder {
        width: 180px;
        height: 180px;
    }
    .profile-image-container {
        width: 200px;
        height: 200px;
    }
}

