/*
Theme Name: gemini-tw
Theme URI: https://www.thomaswill.de
Author: der-mali
Description: Ein einfaches, einspaltiges Theme mit Slide-In Menü, Overlay und Spalten-Layouts.
Version: 20251209.3
*/

/* =========================================
   1. BASIS-STRUKTUR & LAYOUT
   ========================================= */
body {
    background-color: #f4f4f4;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}
#page-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    display: flex;
    flex-direction: column;
    position: relative;
}
/* Schatten nur Desktop */
@media (min-width: 1024px) {
    #page-container {
        box-shadow: 10px 10px 0 0 grey;
    }
}

/* =========================================
   2. HEADER LAYOUT
   ========================================= */
.header-container {
    background-color: #2a4861;
    position: relative;
    padding: 0px;
}
/* MOBILE HEADER (Logo links, Hamburger rechts) */
.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #2a4861;
}
/* Hamburger Button RECHTS */
.mobile-header .menu-toggle {
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    order: 2;
}
.menu-toggle-hidden {
    font-size: 24px;
    color: transparent !important;
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    order: 2;
}
.mobile-header .menu-toggle:hover {
    transform: scale(1.1);
}
/* Logo LINKS */
.mobile-header .mobile-logo {
    flex-grow: 1;
    text-align: left;
    order: 1;
}
.mobile-header .mobile-logo img {
    max-width: 80%;
    height: auto;
    display: block;
}

/* MOBILE SLIDE-IN MENÜ von RECHTS - KOMPLETT AUSSERHALB */
.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -100%; /* Komplett rechts außerhalb */
    width: 280px;
    height: 100vh;
    background-color: #2a4861;
    z-index: 1001 !important;
    transition: right 0.3s ease-in-out;
    box-shadow: -2px 0 15px rgba(0,0,0,0.3);
    overflow-y: auto;
}
.mobile-menu-container.toggled {
    right: 0; /* Kommt von rechts rein */
}
/* X-Button oben rechts im Menü */
.mobile-menu-container .menu-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 35px;
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}
.mobile-menu-container .menu-close-btn:hover {
    color: #ff4444 !important;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}
/* Menü-Liste */
.mobile-menu-container ul {
    list-style: none;
    margin: 0;
    padding: 70px 0 0 0;
}
.mobile-menu-container li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu-container li a {
    color: white !important;
    text-decoration: none !important;
    padding: 15px 20px;
    font-size: 18px;
    display: block;
    transition: all 0.3s ease;
}
.mobile-menu-container li a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: red !important;
}

/* DESKTOP LOGO BEREICH */
header#masthead.site-header {
    display: block;
    background-color: #2a4861;
    padding: 20px;
    text-align: center;
}
.site-branding img {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 0 auto;
}
.site-description {
    color: white;
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

/* =========================================
   3. OVERLAY
   ========================================= */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000 !important;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
body.menu-is-open .menu-overlay {
    display: block;
    opacity: 1;
}

/* =========================================
   4. RESPONSIVE UMSCHALTUNG
   ========================================= */
/* MOBILE (max-width: 768px) */
@media screen and (max-width: 768px) {
    .mobile-header {
        display: flex;
    }
    .desktop-navigation {
        display: none;
    }
    header#masthead.site-header {
        display: none;
    }
}
/* DESKTOP (min-width: 769px) */
@media screen and (min-width: 769px) {
    .mobile-header {
        display: none;
    }
    .mobile-menu-container {
        display: none;
    }
}

/* =========================================
   5. INHALT & FOOTER
   ========================================= */
#content {
    padding: 20px;
    color: black;
    flex-grow: 1;
}
footer#colophon {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    color: white;
    padding: 20px;
    margin-top: auto;
    background-color: #2a4861;
}
footer#colophon a {
    color: white !important; 
    text-decoration: none;
}
footer#colophon a:hover {
    color: red !important;
}

/* =========================================
   6. SPEZIAL-KLASSEN (Spalten & Listen)
   ========================================= */
a { 
    color: black; 
    text-decoration: none; 
}
a:hover { 
    color: red; 
}
.inline-page-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    gap: 20px;
}
.inline-page-list li {
    margin: 0;
}
.inline-page-list li a { 
    color: white !important; 
    font-size: 14px;
    padding: 5px 10px;
    display: inline-block;
}
.inline-page-list li a:hover { 
    color: red !important; 
}
.menu-columns {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
    text-align: left;
}
.menu-column-left, .menu-column-right {
    flex: 1;
}
.menu-platform-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

/* =========================================
   7. RESPONSIVE ANPASSUNGEN
   ========================================= */
@media screen and (max-width: 768px) {
    .inline-page-list {
        flex-direction: column;
        gap: 15px;
    }
    .inline-page-list li a {
        font-size: 16px;
        padding: 10px;
    }
    footer#colophon {
        padding: 15px 10px;
    }
    footer#colophon p {
        font-size: 14px;
        margin-top: 15px;
        color: white;
    }
    .menu-columns {
        flex-direction: column;
        gap: 20px;
    }
}
@media screen and (max-width: 480px) {
    .mobile-header .mobile-logo img {
        max-width: 70%;
    }
    .inline-page-list li a {
        font-size: 15px;
        padding: 8px;
    }
}

/* =========================================
   8. HILFSKLASSEN
   ========================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.p-10 { padding: 10px; }
.p-20 { padding: 20px; }

/* =========================================
   9. ALTE NAVIGATION AUSBLENDEN
   ========================================= */
.header-top-navigation {
    display: none !important;
}

/* =========================================
   10. SONSTIGES
   ========================================= */
h1, h2 {
    text-transform: uppercase;
}
h1 {
    letter-spacing: 3px;
}
h2 {
    letter-spacing: 2px;
}
h3 {
    letter-spacing: 1px;
}
h1, h2, h3 {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}