/* CTTR.link - Main Stylesheet */
/* Dark Mode First Approach */

:root {
    /* Dark Theme (Default) - Blau-Schwarz */
    --bg-primary: #0a0e1a;
    --bg-secondary: #1a1f2e;
    --bg-tertiary: #252b3d;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: #60a5fa;
    --accent-secondary: #1e40af;
    --border: #334155;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-lg: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] {
    /* Light Theme - Blau-Weiß */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #3b82f6;
    --accent-secondary: #1e40af;
    --border: #e2e8f0;
    --shadow: rgba(59, 130, 246, 0.1);
    --shadow-lg: rgba(59, 130, 246, 0.2);
}

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

/* Global Smooth Scrollbar Styles */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-tertiary);
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
    transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

/* Links - Visited Links sind erkennbar aber passen zum Design */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:visited {
    color: var(--accent-light);
    opacity: 0.85;
    position: relative;
}

[data-theme="light"] a:visited {
    color: var(--accent-secondary);
    opacity: 0.9;
}

a:visited::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-light), transparent);
    opacity: 0.6;
}

[data-theme="light"] a:visited::after {
    background: linear-gradient(90deg, var(--accent-secondary), transparent);
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    opacity: 1;
}

a:visited:hover {
    color: var(--accent-hover);
    opacity: 1;
}

a:active {
    color: var(--accent-hover);
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] body::before {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
}

.main-content {
    position: relative;
    z-index: 1;
}

.theme-dark {
    color-scheme: dark;
}

[data-theme="light"] {
    color-scheme: light;
}

/* Header */
.header {
    background-color: rgba(26, 31, 46, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .header {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.05);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.btn-icon:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.875rem;
    min-height: 40px;
    box-sizing: border-box;
    line-height: 1;
}

/* Button Groups - Alle Buttons gleich groß */
.btn-group {
    display: inline-flex;
    align-items: stretch;
    gap: 0.5rem;
}

.btn-group .btn {
    flex: 0 0 auto;
    min-height: 40px;
    height: auto;
}

.btn-group .btn-sm {
    min-height: 32px;
}

.btn-group .btn-lg {
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-outline:hover {
    background-color: var(--bg-tertiary);
}

/* Button Farben - Konsistent für Aktionen */
.btn-danger,
.btn-outline-danger {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

.btn-outline-danger {
    background: transparent;
    color: var(--error);
}

.btn-danger:hover,
.btn-outline-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-warning,
.btn-outline-warning {
    background: var(--warning);
    border-color: var(--warning);
    color: white;
}

.btn-outline-warning {
    background: transparent;
    color: var(--warning);
}

.btn-warning:hover,
.btn-outline-warning:hover {
    background: #d97706;
    border-color: #d97706;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-success,
.btn-outline-success {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.btn-outline-success {
    background: transparent;
    color: var(--success);
}

.btn-success:hover,
.btn-outline-success:hover {
    background: #059669;
    border-color: #059669;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-info,
.btn-outline-info {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-outline-info {
    background: transparent;
    color: var(--accent);
}

.btn-info:hover,
.btn-outline-info:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary,
.btn-outline-secondary {
    background: var(--bg-tertiary);
    border-color: var(--border);
    color: var(--text-secondary);
}

.btn-outline-secondary {
    background: transparent;
}

.btn-secondary:hover,
.btn-outline-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-trigger:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-light);
}

.dropdown-trigger i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.dropdown.active .dropdown-trigger i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    display: none;
    z-index: 1000;
    animation: fadeInDown 0.2s ease-out;
    backdrop-filter: blur(10px);
}

.dropdown-menu-left {
    right: auto;
    left: 0;
}

.dropdown-menu-right {
    left: auto;
    right: 0;
}

.dropdown.active .dropdown-menu,
.dropdown-menu.dropdown-open {
    display: block;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--text-primary);
    transform: translateX(4px);
}

.dropdown-item.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
}

.dropdown-item i {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0.5rem 0;
    border: none;
}

/* Scroll-Menü Styling für Dropdowns */
.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
    transition: background 0.2s;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* User Menu */
.btn-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0 6rem;
    text-align: center;
}

.guest-shortener-card {
    max-width: 700px;
    margin: 3rem auto 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem;
}

.input-group-large {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group-large input {
    flex: 1;
    padding: 1rem 1.5rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-size: 1.125rem;
    transition: all 0.2s;
}

.input-group-large input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.terms-checkbox {
    text-align: left;
    margin-top: 1rem;
}

.terms-checkbox a {
    color: var(--accent);
    text-decoration: none;
}

.terms-checkbox a:visited {
    color: var(--accent);
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

.shorten-result {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.result-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--success);
}

.result-success i {
    font-size: 2rem;
}

.result-success h3 {
    margin: 0;
    font-size: 1.5rem;
}

.result-link {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.result-link input {
    flex: 1;
    padding: 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: monospace;
}

.result-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.result-info a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.result-info a:visited {
    color: var(--accent);
}

.cta-section {
    text-align: center;
    margin-top: 5rem;
    padding: 3rem;
    background-color: var(--bg-secondary);
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features */
.features-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

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

.feature-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Auth */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
}

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

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover:not(:focus),
.form-group select:hover:not(:focus),
.form-group textarea:hover:not(:focus) {
    border-color: var(--accent-light);
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
}

.auth-footer a:visited {
    color: var(--accent);
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-container {
    padding: 2rem 0;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.quick-shorten {
    margin-bottom: 2rem;
}

.shorten-form {
    margin-top: 1.5rem;
}

.input-group {
    display: flex;
    gap: 1rem;
}

.input-group input {
    flex: 1;
    padding: 0.875rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

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

.stat-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 12px 30px var(--shadow);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.stat-content h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Card */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-header h2 {
    font-size: 1.5rem;
}

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

.links-table {
    width: 100%;
    border-collapse: collapse;
}

.links-table th,
.links-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.links-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
}

.url-truncate {
    max-width: 300px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--text-secondary);
}

/* Footer - Sticky am Bottom */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto;
}

.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    flex-shrink: 0;
}

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

.footer-column h3,
.footer-column h4 {
    margin-bottom: 1rem;
}

.footer-logo-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo-image {
    height: 24px;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
}

[data-theme="light"] .footer-logo-image {
    filter: brightness(0.85);
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:visited {
    color: var(--text-secondary);
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* Spinner */
.spin {
    animation: spin 1s linear infinite;
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
}

.toast {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 6px var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--error);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* CMS Page */
.cms-page {
    padding: 3rem 0;
}

.cms-content {
    max-width: 800px;
    margin: 0 auto;
}

.cms-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.cms-body {
    line-height: 1.8;
}

.cms-body h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.cms-body h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.cms-body p {
    margin-bottom: 1rem;
}

.cms-body ul,
.cms-body ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.cms-body code {
    background-color: var(--bg-tertiary);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875em;
}

.cms-body pre {
    background-color: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

/* Error Page */
.error-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.error-content {
    text-align: center;
}

.error-content h1 {
    font-size: 6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Settings */
.settings-container {
    padding: 2rem 0;
}

.settings-header h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.settings-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.settings-tabs .tab {
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.settings-tabs .tab:hover {
    color: var(--text-primary);
}

.settings-tabs .tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.settings-form {
    max-width: 600px;
}

/* Admin */
.admin-container {
    padding: 2rem 0;
}

.admin-header h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-form {
    max-width: 800px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--bg-primary);
    border-radius: 0.5rem;
}

.stat-value {
    font-weight: 600;
    color: var(--accent);
}

.text-muted {
    color: var(--text-muted);
}

/* QR Code */
.qr-preview {
    text-align: center;
    padding: 2rem;
}

.qr-code-image {
    max-width: 300px;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    background: white;
}

.stats-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Modal - Projektweit einheitlich mittig positioniert */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Standardmäßig versteckt */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    overflow-y: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 1rem;
}

.modal-dialog.modal-lg {
    max-width: 800px;
}

.modal-dialog.modal-sm {
    max-width: 300px;
}

.modal-dialog.modal-xl {
    max-width: 1200px;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 1rem;
    width: 100%;
    max-width: 100%;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Email Template Editor */
.template-editor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.editor-panel,
.preview-panel {
    display: flex;
    flex-direction: column;
}

.editor-panel label,
.preview-panel label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.preview-container {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: white;
    min-height: 500px;
}

.email-preview-frame {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 0.5rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-primary { background: var(--accent); color: white; }
.badge-secondary { background: var(--text-muted); color: white; }
.badge-success { background: var(--success); color: white; }
.badge-danger { background: var(--error); color: white; }
.badge-warning { background: var(--warning); color: white; }
.badge-pending { background: var(--warning); color: white; }
.badge-actioned { background: var(--success); color: white; }

.text-success { color: var(--success); }
.text-error { color: var(--error); }

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Admin Quick Actions */
.admin-quick-actions {
    margin-top: 3rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.quick-action-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quick-action-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.quick-action-card span {
    font-weight: 500;
}

/* UTM Builder */
.utm-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.utm-preview {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
}

.preview-url {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    word-break: break-all;
}

.preview-url code {
    color: var(--accent);
    font-family: 'Courier New', monospace;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* API Docs */
.api-docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.api-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.api-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.api-nav li {
    margin-bottom: 0.5rem;
}

.api-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.api-nav a:visited {
    color: var(--text-secondary);
}

.api-nav a:hover {
    background: var(--bg-tertiary);
    color: var(--accent);
}

.api-nav ul ul {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.api-section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.api-section h2 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.api-section pre {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
    position: relative;
}

.api-section code {
    font-family: 'Courier New', monospace;
    color: var(--accent);
}

.endpoint {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
    border-left: 4px solid var(--accent);
}

.endpoint h3 {
    margin-top: 0;
    color: var(--accent);
}

.btn-copy {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

@media (max-width: 1024px) {
    .api-docs-layout {
        grid-template-columns: 1fr;
    }
    
    .api-sidebar {
        position: static;
    }
}

/* Home Page */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.logo {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.shorten-form-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.quick-shorten-form .form-group-inline {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-control-lg {
    flex: 1;
    padding: 1rem;
    font-size: 1.125rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-control-lg:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.shorten-result {
    margin-top: 2rem;
    text-align: center;
}

.result-success {
    margin-bottom: 1rem;
}

.result-success i {
    font-size: 3rem;
    color: var(--success);
}

.result-url-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.result-url {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-family: monospace;
    font-size: 1.125rem;
}

.result-hint {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.features-section, .benefits-section, .stats-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

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

.feature-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.benefits-section {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 4rem 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-item i {
    font-size: 1.5rem;
    color: var(--success);
    flex-shrink: 0;
}

.benefit-item h4 {
    margin: 0 0 0.25rem;
}

.benefit-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.benefits-cta {
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Health Cards */
.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.health-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.health-card.healthy {
    border-color: var(--success);
}

.health-card.warning {
    border-color: var(--warning);
}

.health-card.unhealthy {
    border-color: var(--error);
}

.health-icon {
    font-size: 2.5rem;
    color: var(--accent);
}

.health-card.healthy .health-icon {
    color: var(--success);
}

.health-card.warning .health-icon {
    color: var(--warning);
}

.health-card.unhealthy .health-icon {
    color: var(--error);
}

.health-content h3 {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
}

.health-status {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.25rem 0;
}

.health-content small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.info-table th {
    font-weight: 600;
    width: 30%;
    color: var(--text-secondary);
}

.error-log {
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 0.5rem;
}

.error-entry {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.error-entry:last-child {
    border-bottom: none;
}

.error-entry strong {
    color: var(--error);
    display: block;
    margin-bottom: 0.25rem;
}

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

.metric {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.maintenance-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.secret-code {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.875rem;
}

/* Folders Layout */
.folders-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.folders-sidebar {
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sidebar-header h3 {
    margin: 0;
}

.folder-tree {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.folder-item:hover {
    background: var(--bg-tertiary);
}

.folder-item.active {
    background: var(--accent);
    color: white;
}

.folder-item i {
    font-size: 1.25rem;
}

.folder-item span {
    flex: 1;
}

.folder-count {
    background: var(--bg-tertiary);
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.folder-item.active .folder-count {
    background: rgba(255, 255, 255, 0.2);
}

.folder-delete {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.folder-item:hover .folder-delete {
    opacity: 1;
}

.folders-content {
    min-height: 400px;
}

.bulk-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.move-to-folder {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .folders-layout {
        grid-template-columns: 1fr;
    }
    
    .folders-sidebar {
        position: static;
    }
}

/* Modal Styles entfernt - bereits oben definiert (Zeile ~1279) */

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--accent);
    color: white;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-danger {
    background: var(--error);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: var(--bg-primary);
}

.badge-secondary {
    background: var(--text-muted);
    color: white;
}

/* Geo Rule Form */
.geo-rule-form .form-row {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 1rem;
    align-items: end;
}

@media (max-width: 768px) {
    .geo-rule-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* DNS Config */
.dns-config {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.dns-config .info-table {
    margin: 0;
}

.dns-config code {
    background: var(--bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    color: var(--accent);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .quick-shorten-form .form-group-inline {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .result-url-box {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Select Dropdowns (Scroll-Menüs) */
select.form-control,
select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2360a5fa' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

select.form-control:hover,
select:hover {
    border-color: var(--accent-light);
    background-color: var(--bg-secondary);
}

select.form-control:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

select.form-control option,
select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
}

select.form-control:disabled,
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--bg-tertiary);
}

/* Multiple Select */
select[multiple] {
    min-height: 120px;
    padding: 0.5rem;
    background-image: none;
}

select[multiple] option {
    padding: 0.5rem 0.75rem;
    margin: 0.25rem 0;
    border-radius: 0.375rem;
    cursor: pointer;
}

select[multiple] option:checked {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
}

/* Checkboxen */
.checkbox-label,
.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 0;
}

.checkbox-label input[type="checkbox"],
.form-check-input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    cursor: pointer;
    appearance: none;
    background-color: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 0.375rem;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:hover,
.form-check-input[type="checkbox"]:hover {
    border-color: var(--accent-light);
    background-color: var(--bg-secondary);
}

.checkbox-label input[type="checkbox"]:checked,
.form-check-input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.checkbox-label input[type="checkbox"]:checked::after,
.form-check-input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    border-radius: 1px;
}

.checkbox-label input[type="checkbox"]:focus,
.form-check-input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.checkbox-label input[type="checkbox"]:disabled,
.form-check-input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-label span,
.form-check-label {
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Radio Buttons */
.radio-label,
.form-check-radio {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 0;
}

.radio-label input[type="radio"],
.form-check-input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    cursor: pointer;
    appearance: none;
    background-color: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.radio-label input[type="radio"]:hover,
.form-check-input[type="radio"]:hover {
    border-color: var(--accent-light);
    background-color: var(--bg-secondary);
}

.radio-label input[type="radio"]:checked,
.form-check-input[type="radio"]:checked {
    border-color: var(--accent);
    background-color: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.radio-label input[type="radio"]:checked::after,
.form-check-input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0.625rem;
    height: 0.625rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 50%;
}

.radio-label input[type="radio"]:focus,
.form-check-input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.radio-label input[type="radio"]:disabled,
.form-check-input[type="radio"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.radio-label span,
.form-check-radio-label {
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Radio Button Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-group-inline {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Zeitauswahlmenüs (Date, Time, Datetime-local) */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

input[type="date"]:hover,
input[type="time"]:hover,
input[type="datetime-local"]:hover,
input[type="month"]:hover,
input[type="week"]:hover {
    border-color: var(--accent-light);
    background-color: var(--bg-secondary);
}

input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

input[type="date"]:disabled,
input[type="time"]:disabled,
input[type="datetime-local"]:disabled,
input[type="month"]:disabled,
input[type="week"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--bg-tertiary);
}

/* Datetime Picker Styling (Browser-native) */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="week"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(200deg);
    opacity: 0.7;
    transition: opacity 0.2s;
}

[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="light"] input[type="time"]::-webkit-calendar-picker-indicator,
[data-theme="light"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
[data-theme="light"] input[type="month"]::-webkit-calendar-picker-indicator,
[data-theme="light"] input[type="week"]::-webkit-calendar-picker-indicator {
    filter: invert(0.3) sepia(1) saturate(5) hue-rotate(200deg);
}

input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="time"]:hover::-webkit-calendar-picker-indicator,
input[type="datetime-local"]:hover::-webkit-calendar-picker-indicator,
input[type="month"]:hover::-webkit-calendar-picker-indicator,
input[type="week"]:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

/* Scroll-Menü Styling für Select-Elemente */
select::-webkit-scrollbar,
.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

select::-webkit-scrollbar-track,
.dropdown-menu::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

select::-webkit-scrollbar-thumb,
.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
    transition: background 0.2s;
}

select::-webkit-scrollbar-thumb:hover,
.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* Firefox Scrollbar */
select,
.dropdown-menu {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg-primary);
}

/* Admin Layout Styles - Global */
.admin-container {
    min-height: 100vh;
    background: var(--bg-primary);
}

.admin-wrapper {
    display: flex;
    gap: 0;
    margin-left: 260px; /* Platz für fixed Sidebar */
    min-height: calc(100vh - 70px);
}

.admin-content {
    flex: 1;
    padding: 2rem;
    overflow-x: auto;
    width: calc(100% - 260px);
}

.admin-header,
.page-header {
    margin-bottom: 2rem;
}

.admin-header h1,
.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.admin-header p,
.page-header p {
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 992px) {
    .admin-wrapper {
        margin-left: 0;
    }
    
    .admin-content {
        width: 100%;
        padding: 1rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .links-table {
        font-size: 0.875rem;
    }
    
    .user-name {
        display: none;
    }
    
    .settings-tabs {
        flex-direction: column;
    }
    
    .admin-table {
        font-size: 0.875rem;
    }
}

/* Modern Modal System - CTTR Modal */
.cttr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cttr-modal.active {
    display: flex;
    opacity: 1;
}

.cttr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.cttr-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cttr-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

.cttr-modal-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.cttr-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
}

.cttr-modal[data-type="warning"] .cttr-modal-icon {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.cttr-modal[data-type="danger"] .cttr-modal-icon {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.cttr-modal[data-type="info"] .cttr-modal-icon {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.cttr-modal[data-type="success"] .cttr-modal-icon {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.cttr-modal-title {
    flex: 1;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cttr-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.cttr-modal-close:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.cttr-modal-body {
    padding: 1.5rem;
}

.cttr-modal-message {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.cttr-modal-footer {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-top: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.cttr-modal-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.cttr-modal-btn i {
    font-size: 1rem;
}

.cttr-modal-btn-cancel {
    background: var(--bg-primary);
    border-color: var(--border);
    color: var(--text-secondary);
}

.cttr-modal-btn-cancel:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--accent);
}

.cttr-modal-btn-confirm {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.cttr-modal-btn-confirm:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cttr-modal[data-type="danger"] .cttr-modal-btn-confirm {
    background: var(--error);
    border-color: var(--error);
}

.cttr-modal[data-type="danger"] .cttr-modal-btn-confirm:hover {
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.cttr-modal[data-type="warning"] .cttr-modal-btn-confirm {
    background: var(--warning);
    border-color: var(--warning);
}

.cttr-modal[data-type="warning"] .cttr-modal-btn-confirm:hover {
    background: #d97706;
    border-color: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.cttr-modal[data-type="success"] .cttr-modal-btn-confirm {
    background: var(--success);
    border-color: var(--success);
}

.cttr-modal[data-type="success"] .cttr-modal-btn-confirm:hover {
    background: #059669;
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
    .cttr-modal-dialog {
        max-width: 100%;
    }
    
    .cttr-modal-content {
        border-radius: 0.75rem;
    }
    
    .cttr-modal-header {
        padding: 1.25rem;
    }
    
    .cttr-modal-body {
        padding: 1.25rem;
    }
    
    .cttr-modal-footer {
        flex-direction: column-reverse;
        padding: 1rem;
    }
    
    .cttr-modal-btn {
        width: 100%;
        justify-content: center;
    }
}

