/* Grundlegende Reset und Variablen */
:root {
    --background-dark: #1a1a1a;
    --card-background: #242424;
    --accent-green: #22c55e;
    --accent-blue: #3b82f6;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container und Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.section {
    padding: 40px 0;
}

.hidden {
    display: none !important;
}

/* Navigation */
nav {
    background-color: var(--card-background);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 20px;
    margin: -20px -20px 20px -20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    margin: 0;
    font-size: 1.5em;
}

/* Login-spezifische Styles */
.login-page {
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/hintergrund_login.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 1; /* Sicherstellen, dass das Bild nicht transparent ist */
    filter: brightness(0.7); /* Optional: leicht abgedunkelt für besseren Kontrast */
}

#loginSection {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

.auth-container {
    background: var(--card-background);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Verstärkte Schatten für bessere Sichtbarkeit */
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(5px); /* Optional: leichter Blur-Effekt für modernes Design */
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 8px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-link {
    background: transparent;
    color: var(--accent-blue);
    padding: 4px 8px;
}

.btn-link:hover {
    text-decoration: underline;
    background: transparent;
}

/* Dashboard */
#dashboardSection {
    flex: 1;
}

.card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card-header {
    margin-bottom: 20px;
}

.card-title {
    margin: 0;
    font-size: 1.5em;
    color: var(--text-primary);
}

/* Übungsliste */
.exercise-list {
    margin-top: 20px;
}

.day-group {
    margin-bottom: 30px;
    background-color: var(--card-background);
    border-radius: 16px;
    overflow: hidden;
}

.day-header {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.exercise-card {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.exercise-card:last-child {
    border-bottom: none;
}

.exercise-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.exercise-info strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.1em;
    margin-bottom: 4px;
}

.exercise-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9em;
}

.exercise-info small {
    color: var(--text-secondary);
    font-size: 0.8em;
}

/* Delete Button */
.btn-delete {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-delete:hover {
    background-color: #ef4444;
    color: white;
}

/* Help Icon */
.help-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    z-index: 100;
}

.help-icon:hover {
    transform: scale(1.1);
    color: white;
}

/* Impressum Page */
.impressum-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: rgba(40, 40, 40, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: white;
}

.legal-content h1 {
    margin-bottom: 30px;
    font-size: 2.2em;
}

.legal-content h2 {
    margin-top: 25px;
    font-size: 1.5em;
    color: #007bff;
}

.legal-content a {
    color: #007bff;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.back-button {
    margin-top: 30px;
    margin-bottom: 20px;
}
