/* ========================================
   Crusoe's House - Optimized CSS
   Modern, minimalist, conflict-free styles
   ======================================== */

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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   INDEX.PHP STYLES - Minimalist Welcome
   ======================================== */

.welcome-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    color: #000;
}

.welcome-header {
    margin-bottom: 60px;
}

.welcome-header h1 {
    font-size: 48px;
    font-weight: 100;
    color: #000;
    letter-spacing: 2px;
    margin-bottom: 20px;
    background: transparent;
    text-shadow: none;
}

.online-since {
    font-size: 14px;
    color: #999;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: transparent;
}

.enter-navigation {
    margin-top: 40px;
}

.enter-button {
    display: inline-block;
    padding: 12px 24px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid #000;
    transition: all 0.15s ease;
    background: transparent;
}

.enter-button:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

.enter-button:focus {
    outline: none;
    background: #000;
    color: #fff;
}

/* ========================================
   CHP_MM.PHP STYLES - Home Page
   ======================================== */

/* Header Styles */
header {
    background: #fff;
    padding: 20px 0;
}

#header {
    font-size: 2rem;
    font-weight: 300;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Navigation */
nav {
    text-align: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

nav li {
    margin: 0;
}

nav a {
    color: #666;
    text-decoration: none;
    padding: 8px 16px;
    font-weight: 300;
    transition: color 0.2s ease;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

nav a:hover,
nav a.aktuell {
    color: #000;
    text-decoration: none;
}

.header-divider {
    border: 1px solid #000;
    margin: 10px 0;
}

/* Main Content */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.home-map-container {
    text-align: center;
    margin: 20px 0;
}

.home-map {
    max-width: 100%;
    height: auto;
    border: none;
}

/* Quote Section */
.quote-section {
    margin: 40px 0;
}

.quote-container {
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quote-text {
    font-size: 1.1em;
    font-style: italic;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: #333;
}

.quote-author {
    font-size: 0.9em;
    color: #666;
    display: block;
    margin-top: 10px;
}

.no-quote {
    color: #999;
    font-style: italic;
}

/* Back to top */
.back-to-top {
    text-align: center;
    margin: 40px 0;
}

.back-to-top a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.back-to-top a:hover {
    color: #000;
    text-decoration: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Mobile First Approach */
@media (max-width: 768px) {
    /* Index.php responsive */
    .welcome-header h1 {
        font-size: 36px;
        letter-spacing: 1px;
    }
    
    .online-since {
        font-size: 12px;
    }
    
    .enter-button {
        font-size: 12px;
        padding: 10px 20px;
    }
    
    /* Chp_mm.php responsive */
    .wrapper {
        padding: 15px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    nav a {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .home-map {
        width: 100%;
        height: auto;
    }
    
    .quote-container {
        margin: 10px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    /* Index.php mobile */
    .welcome-section {
        padding: 20px 15px;
    }
    
    .welcome-header h1 {
        font-size: 28px;
    }
    
    .welcome-header {
        margin-bottom: 40px;
    }
    
    .enter-navigation {
        margin-top: 30px;
    }
    
    /* Chp_mm.php mobile */
    #header {
        font-size: 1.5rem;
    }
    
    .quote-container {
        padding: 10px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .welcome-section {
        position: static;
        height: auto;
    }
    
    .enter-button {
        border: 1px solid #000;
        background: transparent !important;
        color: #000 !important;
    }
    
    .quote-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
