/**
 * Theme Name: Rufbereitschaft Theme
 * Theme URI: https://webalytics.de/
 * Description: Minimalistisches Theme für die Rufbereitschaftsverwaltung
 * Author: webalytics GmbH
 * Author URI: https://webalytics.de/
 * Version: 1.0.0
 * License: GPL v2 or later
 * Text Domain: rufbereitschaft-theme
 * Domain Path: /languages
 * Requires at least: 6.8
 * Requires PHP: 8.0
 */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #2c3e50;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #2271b1;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Layout */
.site-container {
    width: 100%;
    max-width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #666;
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: #2271b1;
    border-bottom-color: #2271b1;
    text-decoration: none;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu .user-name {
    color: #666;
    font-weight: 500;
}

.user-menu .logout-link {
    background-color: #f0f0f1;
    color: #333;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
}

.user-menu .logout-link:hover {
    background-color: #e0e0e0;
    text-decoration: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s;
}

/* Main Content */
.site-main {
    flex: 1;
    width: 100%;
    padding: 40px 0;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #bdc3c7;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
}

/* Login Page */
.login-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.login-header p {
    color: #7f8c8d;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 500;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: #2271b1;
}

.login-form .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.login-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form input[type="submit"]:hover {
    background-color: #135e96;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: #7f8c8d;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding: 30px 20px;
        transition: left 0.3s;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        left: 0;
        box-shadow: 0 0 50px rgba(0,0,0,0.3);
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 10px;
        border-bottom: 1px solid #eee;
    }
    
    .user-menu {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }
    
    /* Content */
    .site-main {
        padding: 20px 0;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Dark Mode */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .site-header {
    background-color: #2c2c2c;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

body.dark-mode .site-title,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #e0e0e0;
}

body.dark-mode .nav-menu a {
    color: #bbb;
}

body.dark-mode .nav-menu a:hover,
body.dark-mode .nav-menu .current-menu-item a {
    color: #4a9eff;
    border-bottom-color: #4a9eff;
}

body.dark-mode .user-menu .logout-link {
    background-color: #3c3c3c;
    color: #e0e0e0;
}

body.dark-mode .user-menu .logout-link:hover {
    background-color: #4c4c4c;
}

body.dark-mode .site-footer {
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

body.dark-mode .footer-bottom {
    border-top-color: #333;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s;
}

.dark-mode-toggle:hover {
    color: #2271b1;
}

.dark-mode-toggle i {
    font-size: 20px;
}

body.dark-mode .dark-mode-toggle {
    color: #bbb;
}

body.dark-mode .dark-mode-toggle:hover {
    color: #4a9eff;
}

/* Accessibility */
.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 20px;
    background-color: #2271b1;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 9999;
}

.skip-link:focus {
    left: 20px;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .user-menu,
    .dark-mode-toggle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .site-main {
        padding: 0;
    }
}