/* --------------------------------------------------------
   Template Style: Modern Minimalist PWA
   -------------------------------------------------------- */

:root {
    --primary-color: #3498db; /* Standard-Blau, wird dynamisch überschrieben */
    --primary-color-dark: #2980b9;
    --background-light: #f4f7f6;
    --text-dark: #2c3e50;
    --border-radius: 8px;
    --header-height: 56px;
    --footer-height: 72px; /* Erhöht von 64px auf 72px */
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    /* Verhindert Scrollen des Headers/Footers mit der Seite */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --------------------------------------------------------
   Header & Footer (Fixed Layout)
   -------------------------------------------------------- */

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
}

.app-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color-dark);
}

.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-height);
    background-color: #ffffff;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid #eee;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: color 0.2s;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* --------------------------------------------------------
   Main Content Area
   -------------------------------------------------------- */

.app-content {
    /* Platz für Header und Footer schaffen */
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height); /* Anpassung an neue Footer-Höhe */
    flex-grow: 1;
    width: 100%;
    max-width: 800px; /* Max-Breite für Desktop-Lesbarkeit */
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* --------------------------------------------------------
   General UI Components
   -------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s, box-shadow 0.2s;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.message-box {
    padding: 12px;
    margin-bottom: 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.message-error {
    background-color: #fdd;
    color: #c00;
    border: 1px solid #f00;
}

.message-success {
    background-color: #ddf;
    color: #00c;
    border: 1px solid #00f;
}

/* Burger Menu Styling */
.burger-menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.burger-menu-icon div {
    width: 100%;
    height: 3px;
    background: var(--primary-color-dark);
    border-radius: 1px;
    transition: all 0.3s linear;
}

/* Module Sidebar (Simuliert) */
.module-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 250px;
    background-color: #ffffff;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-top: var(--header-height);
    z-index: 999;
}

.module-sidebar.open {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.sidebar-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.module-sidebar ul {
    list-style: none;
    padding: 10px;
}

.module-sidebar li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: var(--border-radius);
}

.module-sidebar li a:hover {
    background-color: var(--background-light);
    color: var(--primary-color-dark);
}