/* Basis-Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
.main-header {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-content h1 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-content nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.header-content nav a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}

.header-content nav a:hover {
    background: rgba(255,255,255,0.1);
}

/* Landing Page */
.landing-page {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features */
.features {
    padding: 4rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    color: #4361ee;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #4361ee;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background: #3a0ca3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Formular */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    margin-bottom: 0.5rem;
    color: #333;
}

.auth-header p {
    color: #666;
}

/* Dashboard */
.dashboard-header {
    margin: 2rem 0;
    text-align: center;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.income {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.stat-icon.expense {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.stat-icon.balance {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.stat-content h3 {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 1rem;
}

.stat-content .amount {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* Dashboard Sections */
.dashboard-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.dashboard-section h3 {
    margin-bottom: 1rem;
    color: #333;
}

/* Transaction Form */
.transaction-form {
    display: grid;
    gap: 1rem;
}

/* Transactions Table */
.transactions-table {
    overflow-x: auto;
}

.transactions-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.transactions-table th,
.transactions-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.transactions-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.transactions-table tr:hover {
    background-color: #f8f9fa;
}

/* Profile */
.profile-content {
    margin: 2rem 0;
}

.profile-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.profile-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

/* Messages */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

/* Berichts- und Statistik-Stile */
.monthly-summary {
    margin-bottom: 2rem;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.summary-table th,
.summary-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.summary-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.summary-table tr:hover {
    background-color: #f8f9fa;
}

.category-summary {
    margin-bottom: 2rem;
}

.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.chart-placeholder {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chart-placeholder h4 {
    margin-top: 0;
    color: #333;
}

.chart-placeholder-content {
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 1rem;
}

.chart-bar {
    flex: 1;
    background: #007bff;
    border-radius: 4px 4px 0 0;
    position: relative;
    min-width: 20px;
}

.income-bar {
    background: #28a745;
}

.expense-bar {
    background: #dc3545;
}

.chart-pie {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    position: relative;
}

.pie-slice {
    height: 100%;
    border-radius: 50%;
    margin: 0 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Responsive Design für Berichte */
@media (max-width: 768px) {
    .charts-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .summary-table {
        font-size: 0.9rem;
    }
    
    .summary-table th,
    .summary-table td {
        padding: 0.5rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

