/**
 * JuraBuddy - Ultra Modern Dark Theme
 * Silver / Neutral / Premium Design
 * Font: Abel (Google Fonts)
 */

/* ========================================
   CSS Variables
   ======================================== */

:root {
    /* Background Colors */
    --bg-primary: #09090b;
    --bg-secondary: #0f0f12;
    --bg-tertiary: #18181b;
    --bg-glass: rgba(255, 255, 255, 0.02);
    --bg-glass-hover: rgba(255, 255, 255, 0.04);
    --bg-glass-active: rgba(255, 255, 255, 0.06);

    /* Border Colors */
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glass-hover: rgba(255, 255, 255, 0.12);

    /* Text Colors */
    --text-primary: #fafafa;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-tertiary: rgba(255, 255, 255, 0.35);

    /* Accent Colors - Silver/Neutral */
    --accent-primary: #a1a1aa;
    --accent-primary-glow: rgba(161, 161, 170, 0.3);
    --accent-light: #d4d4d8;
    --accent-dark: #71717a;

    /* Button Gradient - Sleek Silver */
    --btn-gradient: linear-gradient(135deg, #52525b 0%, #3f3f46 50%, #27272a 100%);
    --btn-gradient-hover: linear-gradient(135deg, #71717a 0%, #52525b 50%, #3f3f46 100%);
    --btn-glow: rgba(161, 161, 170, 0.2);
    --btn-glow-hover: rgba(212, 212, 216, 0.25);

    /* Status Colors */
    --status-green: #4ade80;
    --status-green-bg: rgba(74, 222, 128, 0.1);
    --status-green-border: rgba(74, 222, 128, 0.25);
    --status-green-glow: rgba(74, 222, 128, 0.4);

    --status-yellow: #fbbf24;
    --status-yellow-bg: rgba(251, 191, 36, 0.1);
    --status-yellow-border: rgba(251, 191, 36, 0.25);
    --status-yellow-glow: rgba(251, 191, 36, 0.4);

    --status-red: #f87171;
    --status-red-bg: rgba(248, 113, 113, 0.1);
    --status-red-border: rgba(248, 113, 113, 0.25);
    --status-red-glow: rgba(248, 113, 113, 0.4);

    /* Blur & Effects */
    --blur-amount: 20px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px var(--btn-glow);
}

/* ========================================
   Reset & Base
   ======================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Abel', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: 0.02em;
}

/* Subtle Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(63, 63, 70, 0.15), transparent 60%),
        radial-gradient(ellipse 80% 60% at 100% 100%, rgba(39, 39, 42, 0.2), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   Layout
   ======================================== */

.container {
    max-width: 940px;
    margin: 0 auto;
    padding: 30px 24px;
}

/* ========================================
   Glass Card Component
   ======================================== */

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    transition: all var(--transition-medium);
}

.glass-card:hover {
    border-color: var(--border-glass-hover);
    background: var(--bg-glass-hover);
}

/* ========================================
   Header
   ======================================== */

header {
    text-align: center;
    padding: 45px 0 35px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: var(--btn-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-icon svg,
.logo-icon img {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
    object-fit: contain;
}

.logo-text {
    text-align: left;
}

header h1 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    line-height: 1.1;
}

.brand {
    font-size: 0.85rem;
    color: var(--accent-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.03em;
}

/* ========================================
   Login Page
   ======================================== */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    padding: 40px 36px;
}

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

.login-logo {
    margin-bottom: 8px;
}

.login-logo img {
    width: 100px;
    height: auto;
    object-fit: contain;
}

.login-title {
    margin-bottom: 12px;
}

.login-title h1 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.login-title .version {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
}

.login-title .beta {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.login-subtitle {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.login-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form .form-group label svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.login-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* ========================================
   Alerts
   ======================================== */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.alert-warning {
    background: var(--status-yellow-bg);
    border: 1px solid var(--status-yellow-border);
}

.alert-warning .alert-icon {
    color: var(--status-yellow);
}

.alert-error {
    background: var(--status-red-bg);
    border: 1px solid var(--status-red-border);
}

.alert-error .alert-icon {
    color: var(--status-red);
}

.alert a {
    color: var(--accent-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.alert a:hover {
    border-color: var(--accent-light);
}

.alert code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ========================================
   Form Elements
   ======================================== */

.form-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: 0.03em;
}

.form-section h2 .section-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    font-family: 'Abel', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-dark);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(161, 161, 170, 0.08);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.35)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 48px;
    cursor: pointer;
}

/* Custom Select */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-wrapper select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-select-trigger {
    width: 100%;
    padding: 14px 18px;
    padding-right: 48px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    font-family: 'Abel', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--transition-fast);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.35)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.custom-select-trigger:hover {
    border-color: var(--border-glass-hover);
}

.custom-select-trigger.open {
    border-color: var(--accent-dark);
    background-color: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(161, 161, 170, 0.08);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.custom-select-trigger.placeholder {
    color: var(--text-tertiary);
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-dark);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 100;
    transition: all 0.2s ease;
}

.custom-select-dropdown.open {
    max-height: 280px;
    overflow-y: auto;
    opacity: 1;
}

.custom-select-option {
    padding: 12px 18px;
    font-family: 'Abel', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--border-glass);
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.custom-select-option.selected {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Scrollbar für Dropdown */
.custom-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

/* ========================================
   Upload Area
   ======================================== */

.upload-area {
    position: relative;
    border: 1px dashed var(--border-glass-hover);
    border-radius: var(--radius-lg);
    padding: 48px 30px;
    text-align: center;
    transition: all var(--transition-medium);
    cursor: pointer;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.upload-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(161, 161, 170, 0.03), transparent);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent-dark);
    border-style: solid;
}

.upload-area:hover::before,
.upload-area.dragover::before {
    opacity: 1;
}

.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.upload-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.upload-icon-wrapper {
    width: 68px;
    height: 68px;
    background: var(--btn-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.upload-icon-wrapper svg {
    width: 30px;
    height: 30px;
    color: var(--text-primary);
}

.upload-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.upload-text strong {
    color: var(--text-primary);
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.file-name {
    margin-top: 6px;
    font-weight: 400;
    color: var(--accent-light);
    font-size: 0.95rem;
}

/* ========================================
   Buttons
   ======================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 32px;
    background: var(--btn-gradient);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    font-family: 'Abel', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-md), 0 0 30px var(--btn-glow);
}

.btn-primary:hover:not(:disabled) {
    background: var(--btn-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 40px var(--btn-glow-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-primary svg {
    width: 20px;
    height: 20px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass-hover);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-family: 'Abel', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: all var(--transition-medium);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-dark);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
}

/* Logout Button */
.logout-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.logout-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glass-hover);
    color: var(--text-primary);
}

.logout-btn svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   Results Page
   ======================================== */

.result-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
    letter-spacing: 0.03em;
}

.result-section h2 svg {
    width: 22px;
    height: 22px;
    color: var(--accent-primary);
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.summary-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    padding: 18px;
    border-radius: var(--radius-md);
    transition: all var(--transition-medium);
}

.summary-item:hover {
    border-color: var(--border-glass-hover);
}

.summary-item .label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.summary-item .label svg {
    width: 14px;
    height: 14px;
}

.summary-item .value {
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

/* Risk Badges */
.risk-low {
    color: var(--status-green);
    text-shadow: 0 0 20px var(--status-green-glow);
}

.risk-medium {
    color: var(--status-yellow);
    text-shadow: 0 0 20px var(--status-yellow-glow);
}

.risk-high, .risk-critical {
    color: var(--status-red);
    text-shadow: 0 0 20px var(--status-red-glow);
}

.summary-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ========================================
   Cost Overview
   ======================================== */

.cost-overview {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 16px;
}

.cost-overview h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.cost-overview h4 svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.cost-item {
    background: var(--bg-secondary);
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
}

.cost-item .cost-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.cost-item .cost-value {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.cost-item .cost-value.highlight {
    color: var(--status-green);
}

.cost-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cost-total .total-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cost-total .total-value {
    font-size: 1.3rem;
    color: var(--text-primary);
}

/* Clauses Overview */
.clauses-overview {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.count-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.count-badge svg {
    width: 16px;
    height: 16px;
}

.count-badge.green {
    background: var(--status-green-bg);
    color: var(--status-green);
    border: 1px solid var(--status-green-border);
}

.count-badge.yellow {
    background: var(--status-yellow-bg);
    color: var(--status-yellow);
    border: 1px solid var(--status-yellow-border);
}

.count-badge.red {
    background: var(--status-red-bg);
    color: var(--status-red);
    border: 1px solid var(--status-red-border);
}

/* Clause Items */
.clauses-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clause-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-medium);
}

.clause-item:hover {
    border-color: var(--border-glass-hover);
}

.clause-item summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    transition: background var(--transition-fast);
}

.clause-item summary::-webkit-details-marker {
    display: none;
}

.clause-item summary:hover {
    background: var(--bg-glass-hover);
}

.clause-item[open] {
    border-color: var(--border-glass-hover);
}

.clause-item[open] summary {
    border-bottom: 1px solid var(--border-glass);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 12px currentColor;
}

.status-indicator.green {
    background: var(--status-green);
    color: var(--status-green);
}

.status-indicator.yellow {
    background: var(--status-yellow);
    color: var(--status-yellow);
}

.status-indicator.red {
    background: var(--status-red);
    color: var(--status-red);
}

.clause-name {
    flex: 1;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.clause-name .section {
    color: var(--text-tertiary);
    margin-right: 10px;
}

.clause-status {
    font-size: 0.7rem;
    font-weight: 400;
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.clause-green .clause-status {
    background: var(--status-green-bg);
    color: var(--status-green);
}

.clause-yellow .clause-status {
    background: var(--status-yellow-bg);
    color: var(--status-yellow);
}

.clause-red .clause-status {
    background: var(--status-red-bg);
    color: var(--status-red);
}

.expand-icon {
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    transition: transform var(--transition-medium);
}

.clause-item[open] .expand-icon {
    transform: rotate(180deg);
}

.clause-details {
    padding: 24px;
    background: var(--bg-secondary);
}

.detail-block {
    margin-bottom: 20px;
}

.detail-block:last-child {
    margin-bottom: 0;
}

.detail-block h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.detail-block h4 svg {
    width: 14px;
    height: 14px;
}

.detail-block p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.detail-block blockquote {
    background: var(--bg-tertiary);
    padding: 16px 20px;
    border-left: 2px solid var(--accent-dark);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.detail-block.redline {
    background: var(--status-green-bg);
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--status-green-border);
}

.detail-block.redline h4 {
    color: var(--status-green);
}

.detail-block.redline p {
    color: var(--text-primary);
}

.detail-block.fallback {
    background: var(--status-yellow-bg);
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--status-yellow-border);
}

.detail-block.fallback h4 {
    color: var(--status-yellow);
}

.clause-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

.priority {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    padding: 6px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.priority svg {
    width: 12px;
    height: 12px;
}

.priority-must-have {
    background: var(--status-red-bg);
    color: var(--status-red);
    border: 1px solid var(--status-red-border);
}

.priority-should-have {
    background: var(--status-yellow-bg);
    color: var(--status-yellow);
    border: 1px solid var(--status-yellow-border);
}

.priority-nice-to-have {
    background: var(--status-green-bg);
    color: var(--status-green);
    border: 1px solid var(--status-green-border);
}

.legal-ref {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid var(--border-glass);
}

.legal-ref svg {
    width: 12px;
    height: 12px;
}

/* Warning / Missing Lists */
.warning-list,
.missing-list {
    list-style: none;
}

.warning-list li,
.missing-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.warning-list li svg,
.missing-list li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.warning-list li svg {
    color: var(--status-yellow);
}

.missing-list li svg {
    color: var(--status-red);
}

/* Meta Section */
.meta-section {
    background: var(--bg-secondary) !important;
}

.meta-section ul {
    list-style: none;
}

.meta-section li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-section li svg {
    width: 16px;
    height: 16px;
    color: var(--text-tertiary);
}

.meta-section li strong {
    color: var(--text-primary);
    font-weight: 400;
}

/* Actions */
.actions {
    text-align: center;
    margin-top: 32px;
}

/* Raw Result */
.raw-result {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    white-space: pre-wrap;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow-x: auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

footer p {
    margin-bottom: 12px;
}

footer strong {
    color: var(--text-secondary);
}

.credits a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.credits a:hover {
    color: var(--text-primary);
}

/* Debug Details */
details summary {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

details pre {
    margin-top: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ========================================
   Loading Animation & Overlay
   ======================================== */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--text-primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 9, 11, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    display: flex;
    opacity: 1;
}

.loading-content {
    text-align: center;
    padding: 48px 60px;
    max-width: 420px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-logo {
    margin-bottom: 32px;
}

.loading-icon-wrapper {
    width: 72px;
    height: 72px;
    background: var(--btn-gradient);
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg), 0 0 60px var(--btn-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: pulse 2s ease-in-out infinite;
}

.loading-icon-wrapper svg,
.loading-icon-wrapper img {
    width: 36px;
    height: 36px;
    color: var(--text-primary);
    object-fit: contain;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: var(--shadow-lg), 0 0 40px var(--btn-glow);
    }
    50% {
        box-shadow: var(--shadow-lg), 0 0 80px var(--btn-glow-hover);
    }
}

/* Spinner Ring */
.loading-spinner-ring {
    width: 48px;
    height: 48px;
    margin: 0 auto 28px;
    border: 3px solid var(--border-glass);
    border-radius: 50%;
    border-top-color: var(--accent-light);
    animation: spin 1s linear infinite;
}

/* Status Text */
.loading-status {
    font-size: 1.15rem;
    color: var(--text-primary);
    letter-spacing: 0.03em;
    margin-bottom: 16px;
    min-height: 28px;
    animation: fadeInText 0.4s ease;
}

.loading-warning {
    font-size: 0.85rem;
    color: var(--status-yellow);
    margin-bottom: 32px;
    opacity: 0.9;
}

@keyframes fadeInText {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Progress Steps */
.loading-steps {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
}

.step.active {
    color: var(--accent-light);
}

.step.completed {
    color: var(--status-green);
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-tertiary);
    transition: all 0.3s ease;
}

.step.active .step-dot {
    background: var(--accent-light);
    box-shadow: 0 0 12px var(--accent-light);
    animation: stepPulse 1s ease-in-out infinite;
}

.step.completed .step-dot {
    background: var(--status-green);
    box-shadow: 0 0 12px var(--status-green);
}

@keyframes stepPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 640px) {
    .container {
        padding: 20px 16px;
    }

    header {
        padding: 30px 0;
    }

    header h1 {
        font-size: 1.7rem;
    }

    .glass-card {
        padding: 22px 18px;
    }

    .upload-area {
        padding: 40px 20px;
    }

    .summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .cost-grid {
        grid-template-columns: 1fr 1fr;
    }

    .clauses-overview {
        gap: 8px;
    }

    .count-badge {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .clause-item summary {
        padding: 14px 16px;
    }

    .clause-details {
        padding: 18px;
    }

    .logout-btn {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* ========================================
   Main Navigation
   ======================================== */

.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.nav-brand-text {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.nav-version {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    margin-left: 6px;
}

.nav-beta {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    margin-left: 4px;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

/* Benutzer-Info in der Mitte */
.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
}

.nav-user-id {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.nav-user-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.nav-link svg {
    width: 20px;
    height: 20px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-glass-active);
    border-color: var(--border-glass);
}

.nav-link.nav-logout {
    margin-left: 8px;
    color: var(--text-tertiary);
}

.nav-link.nav-logout:hover {
    color: var(--status-red);
    background: var(--status-red-bg);
}

/* ========================================
   Dashboard Styles
   ======================================== */

.page-container {
    padding-top: 40px;
}

.dashboard-container {
    padding-top: 40px;
}

.welcome-card {
    text-align: center;
    padding: 40px 30px;
    margin-bottom: 24px;
}

.welcome-content h1 {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.kanzlei-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.kanzlei-name svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

/* Balance Card */
.balance-card {
    text-align: center;
    padding: 32px;
    margin-bottom: 24px;
}

.balance-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.balance-header svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.balance-header h2 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.balance-amount {
    font-size: 3rem;
    font-weight: 400;
    color: var(--status-green);
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    text-shadow: 0 0 40px var(--status-green-glow);
}

.balance-amount.medium {
    color: var(--status-yellow);
    text-shadow: 0 0 40px var(--status-yellow-glow);
}

.balance-amount.low {
    color: var(--status-red);
    text-shadow: 0 0 40px var(--status-red-glow);
}

.balance-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.balance-hint svg {
    width: 16px;
    height: 16px;
}

/* Actions Card */
.actions-card {
    margin-bottom: 24px;
}

.actions-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.actions-card h2 svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-medium);
}

.action-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glass-hover);
    transform: translateX(4px);
}

.action-icon {
    width: 48px;
    height: 48px;
    background: var(--btn-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.action-text {
    flex: 1;
}

.action-text strong {
    display: block;
    font-weight: 400;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.action-text span {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.action-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    transition: transform var(--transition-fast);
}

.action-btn:hover .action-arrow {
    transform: translateX(4px);
    color: var(--accent-primary);
}

/* Form Hint */
.form-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.form-hint.error {
    color: var(--status-red);
}

.form-hint svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   Hamburger Button
   ======================================== */

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Navigation Responsive
   ======================================== */

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
        height: 60px;
    }

    .nav-brand-text {
        font-size: 1.2rem;
    }

    .nav-version {
        display: none;
    }

    .nav-user {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-link {
        padding: 18px 20px;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-glass);
        justify-content: flex-start;
    }

    .nav-link:last-child {
        border-bottom: none;
        margin-top: 20px;
    }

    .nav-link span {
        display: inline;
    }

    .nav-link svg {
        width: 22px;
        height: 22px;
    }

    /* User Info im Mobile Menü */
    .nav-links::before {
        content: attr(data-user);
        display: block;
        padding: 16px 20px;
        margin: -20px -20px 20px -20px;
        background: var(--bg-tertiary);
        border-bottom: 1px solid var(--border-glass);
        font-size: 0.9rem;
        color: var(--text-secondary);
    }
}

@media (max-width: 480px) {
    .nav-brand-text {
        display: none;
    }
}

@media (max-width: 640px) {
    .welcome-card {
        padding: 30px 20px;
    }

    .welcome-content h1 {
        font-size: 1.4rem;
    }

    .balance-amount {
        font-size: 2.2rem;
    }

    .action-btn {
        padding: 16px;
    }

    .action-icon {
        width: 40px;
        height: 40px;
    }

    .action-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   Info Page Styles
   ======================================== */

.info-section {
    margin-bottom: 24px;
}

.info-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
    letter-spacing: 0.03em;
}

.info-section h2 svg {
    width: 22px;
    height: 22px;
    color: var(--accent-primary);
}

.info-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.info-content p {
    margin-bottom: 16px;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.info-highlight {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    margin-top: 20px;
    font-size: 0.95rem;
}

.info-highlight svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.info-highlight.warning {
    background: var(--status-yellow-bg);
    border: 1px solid var(--status-yellow-border);
    color: var(--text-primary);
}

.info-highlight.warning svg {
    color: var(--status-yellow);
}

.info-list {
    list-style: none;
    margin-top: 16px;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: all var(--transition-fast);
}

.info-list li:last-child {
    margin-bottom: 0;
}

.info-list li:hover {
    border-color: var(--border-glass-hover);
}

.info-list li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    margin-top: 2px;
}

.info-list li span {
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-list li strong {
    color: var(--text-primary);
    font-weight: 400;
}

/* Workflow Steps */
.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.workflow-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    transition: all var(--transition-medium);
}

.workflow-step:hover {
    border-color: var(--border-glass-hover);
    transform: translateX(4px);
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--btn-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-primary);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Status Dots for Workflow */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 2px;
    vertical-align: middle;
}

.status-dot.green {
    background: var(--status-green);
    box-shadow: 0 0 8px var(--status-green-glow);
}

.status-dot.yellow {
    background: var(--status-yellow);
    box-shadow: 0 0 8px var(--status-yellow-glow);
}

.status-dot.red {
    background: var(--status-red);
    box-shadow: 0 0 8px var(--status-red-glow);
}

/* Tech Specs */
.tech-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.tech-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: all var(--transition-fast);
}

.tech-item:hover {
    border-color: var(--border-glass-hover);
}

.tech-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.tech-value {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

/* Impressum */
.impressum {
    line-height: 2;
}

.impressum p {
    margin-bottom: 20px;
}

.impressum a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.impressum a:hover {
    color: var(--text-primary);
}

/* Info Page Responsive */
@media (max-width: 640px) {
    .workflow-step {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .tech-specs {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Page Transitions
   ======================================== */

/* Container für Blur-Effekt */
.page-content {
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.page-content.blur-out {
    filter: blur(8px);
    opacity: 0.6;
}

.page-content.blur-in {
    filter: blur(8px);
    opacity: 0;
}

/* Transition Spinner Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.page-transition-overlay.active {
    opacity: 1;
}

.page-transition-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-glass);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: pageSpinner 0.8s linear infinite;
}

@keyframes pageSpinner {
    to { transform: rotate(360deg); }
}

/* Einblend-Animation beim Laden */
.page-content.fade-in {
    animation: pageFadeIn 0.4s ease forwards;
}

@keyframes pageFadeIn {
    from {
        filter: blur(8px);
        opacity: 0;
    }
    to {
        filter: blur(0);
        opacity: 1;
    }
}
