/* ====================================
   NBL V3 - Ultra Modern Design
   Großflächig, Spacious & Animated
   ==================================== */

:root {
    /* Primary Colors - Blau */
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1e40af;
    --primary-rgb: 37, 99, 235;

    /* Secondary Colors - Grün */
    --secondary: #10b981;
    --secondary-light: #34d399;
    --secondary-dark: #059669;
    --secondary-rgb: 16, 185, 129;

    /* Accent Colors */
    --accent-purple: #8b5cf6;
    --accent-orange: #f97316;
    --accent-pink: #ec4899;

    /* Neutral Colors */
    --neutral-900: #0f172a;
    --neutral-800: #1e293b;
    --neutral-700: #334155;
    --neutral-600: #475569;
    --neutral-500: #64748b;
    --neutral-400: #94a3b8;
    --neutral-300: #cbd5e1;
    --neutral-200: #e2e8f0;
    --neutral-100: #f1f5f9;
    --neutral-white: #ffffff;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-sidebar: linear-gradient(180deg, #1e40af 0%, #2563eb 100%);
    --bg-footer: #1e293b;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-inverse: #ffffff;

    /* Großzügiges Spacing System */
    --space-xs: 0.375rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Modern Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-size-xs: 0.7rem;
    --font-size-sm: 0.8rem;
    --font-size-base: 0.875rem;
    --font-size-lg: 0.95rem;
    --font-size-xl: 1.1rem;
    --font-size-2xl: 1.25rem;
    --font-size-3xl: 1.5rem;
    --font-size-4xl: 1.875rem;
    --font-size-5xl: 2.25rem;

    /* Dramatische Schatten */
    --shadow-xs: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.3);

    /* Smooth Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Layout - Großzügig */
    --nav-height: 90px;
    --sidebar-width: 400px;
    --max-content-width: 1600px;
    --max-content-width-wide: 1600px;

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-overlay: 900;
    --z-modal: 1000;
    --z-toast: 1100;
}

/* ====================================
   KEYFRAME ANIMATIONS - EXTENDED
   ==================================== */

@keyframes slideInFromRight {
    from {
        transform: translateX(120px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-120px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

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

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

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleInBounce {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(37, 99, 235, 0.6);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

@keyframes slideExpandIn {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* ====================================
   RESET & BASE STYLES
   ==================================== */

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

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 600px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(16, 185, 129, 0.02) 100%);
    z-index: -1;
    pointer-events: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

img.icon {
    width: 20px !important;
    height: 20px !important;
    display: inline-block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
}

a:hover {
    color: var(--primary-light);
    transform: translateX(2px);
}

a:active {
    transform: scale(0.98);
}

/* ====================================
   TYPOGRAPHY
   ==================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.03em;
    animation: fadeInUp 0.7s ease-out backwards;
}

h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-xl);
    animation-delay: 0.1s;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: var(--font-size-2xl);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
    font-weight: 700;
    position: relative;
    padding-bottom: var(--space-sm);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 2px;
    animation: slideExpandIn 0.6s ease-out 0.3s backwards;
}

h3 {
    font-size: var(--font-size-xl);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

h4 {
    font-size: var(--font-size-lg);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

h5 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

h6 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

h2 a {
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: var(--text-primary);
}

h2 a:hover {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

p {
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-base);
    line-height: 1.9;
    animation: fadeIn 0.8s ease-out backwards;
    animation-delay: 0.3s;
    color: var(--text-secondary);
}

.highlight {
    color: var(--primary);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====================================
   LAYOUT - FULLSCREEN STRUCTURE
   ==================================== */

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

.container {
    width: 100%;
    max-width: var(--max-content-width-wide);
    margin: 0 auto;
    padding: 0 var(--space-2xl);
}

/* ====================================
   NAVIGATION - MODERN & SPACIOUS
   ==================================== */

.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(203, 213, 225, 0.3);
    z-index: var(--z-sticky);
    transition: all var(--transition-normal);
    animation: slideInFromTop 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-wrapper:hover {
    box-shadow: var(--shadow-xl);
    border-bottom-color: var(--primary-light);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 var(--space-2xl);
    max-width: var(--max-content-width-wide);
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    animation: scaleInBounce 0.8s ease-out;
    position: relative;
}

.logo-container::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    border-radius: 50%;
}

.logo-container:hover::before {
    opacity: 1;
}

.logo-container img {
    height: 80px;
    width: auto;
    transition: all var(--transition-slow);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.07));
}

.logo-container:hover img {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 8px 12px rgba(37, 99, 235, 0.2));
}

/* Menu */
.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-sm);
}

.menu > li {
    position: relative;
    display: flex;
    align-items: center;
    animation: fadeInDown 0.5s ease-out backwards;
}

.menu > li:nth-child(1) { animation-delay: 0.15s; }
.menu > li:nth-child(2) { animation-delay: 0.2s; }
.menu > li:nth-child(3) { animation-delay: 0.25s; }
.menu > li:nth-child(4) { animation-delay: 0.3s; }
.menu > li:nth-child(5) { animation-delay: 0.35s; }
.menu > li:nth-child(6) { animation-delay: 0.4s; }
.menu > li:nth-child(7) { animation-delay: 0.45s; }
.menu > li:nth-child(8) { animation-delay: 0.5s; }

.menu > li > a {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all var(--transition-normal);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.menu > li > a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.menu > li > a:hover {
    color: var(--primary);
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.menu > li > a:hover::after {
    width: 60%;
}

.menu > li > a.active {
    color: var(--text-inverse);
    font-weight: 700;
}

.menu > li > a.active::before {
    opacity: 1;
}

.menu > li > a.active::after {
    width: 60%;
    background: var(--text-inverse);
}

/* Submenu - Modern Dropdown */
.sub-menu {
    position: absolute;
    top: calc(100%);
    left: 0;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--neutral-200);
    border-radius: 16px;
    box-shadow: var(--shadow-2xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all var(--transition-normal);
    z-index: var(--z-dropdown);
    padding: var(--space-sm);
    overflow: hidden;
}

.sub-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

.menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: scaleIn 0.3s ease-out;
}

.sub-menu > li {
    display: block;
    width: 100%;
}

.sub-menu > li > a {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--font-size-base);
    transition: all var(--transition-normal);
    position: relative;
    border-radius: 10px;
    margin-bottom: var(--space-xs);
}

.sub-menu > li > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
    transition: height var(--transition-normal);
}

.sub-menu > li > a:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
    padding-left: calc(var(--space-lg) + var(--space-sm));
    transform: translateX(4px);
}

.sub-menu > li > a:hover::before {
    height: 60%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: calc(var(--z-sticky) + 10);
    padding: 2px;
}

.hamburger div {
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}

.hamburger.active div:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active div:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: calc(var(--z-sticky) - 1);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ====================================
   MAIN CONTENT - SPACIOUS & MODERN
   ==================================== */

.content-wrapper {
    display: block;
    margin-top: calc(var(--nav-height) + var(--space-sm));
    padding-bottom: var(--space-3xl);
    min-height: 100vh;
    width: 100%;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-2xl);
    padding-right: var(--space-2xl);
}

/* Content-Wrapper mit Sidebar */
body:has(.sidebar) .content-wrapper {
    width: calc(100% - var(--sidebar-width));
    margin-left: auto;
    margin-right: var(--sidebar-width);
    padding-right: var(--space-2xl);
    display: flex;
    justify-content: center;
}

.main-content {
    max-width: var(--max-content-width);
    width: 100%;
    background: var(--bg-primary);
    padding: var(--space-3xl) var(--space-2xl);
    margin: 0 auto var(--space-2xl);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid var(--neutral-200);
    position: relative;
    overflow: visible;
}

/* Main-Content ohne Sidebar - zentriert über gesamte Breite */
body:not(:has(.sidebar)) .main-content {
    max-width: var(--max-content-width);
    margin-left: auto;
    margin-right: auto;
}

body:not(:has(.sidebar)) .content-wrapper {
    display: flex;
    justify-content: center;
    max-width: 100%;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(16, 185, 129, 0.02) 100%);
    pointer-events: none;
}

.main-content::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: -1;
    border-radius: 24px;
}

.main-content:hover::after {
    opacity: 0.05;
}

/* ====================================
   SIDEBAR - GRADIENT BLUE DESIGN
   ==================================== */

.sidebar {
    width: var(--sidebar-width);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: var(--space-xl) var(--space-lg);
    animation: slideInFromRight 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    right: 0;
    top: var(--nav-height);
    bottom: 0;
    height: calc(100vh - var(--nav-height));
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08), -1px 0 0 rgba(255, 255, 255, 0.5) inset;
    z-index: calc(var(--z-sticky) - 1);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
}

/* Sidebar Toggle Button - Liquid Glass Design */
.sidebar-toggle {
    display: none;
    position: fixed;
    right: 0;
    top: 65%;
    transform: translateY(-50%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 56px;
    cursor: pointer;
    z-index: 1010;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    padding: var(--space-md);
    border-radius: 20px 0 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-right: none;
    box-shadow: -4px 4px 20px rgba(31, 38, 135, 0.08),
                -2px 2px 10px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                background 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                box-shadow 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.sidebar-toggle::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.35) 0%, rgba(16, 185, 129, 0.2) 50%, rgba(37, 99, 235, 0.3) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: 20px 0 0 20px;
    z-index: -1;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: -6px 6px 28px rgba(31, 38, 135, 0.12),
                -3px 3px 14px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sidebar-toggle:hover::before {
    opacity: 1;
}

.sidebar-toggle:active {
    transform: translateY(-50%) scale(0.98);
}

/* Pfeil-Icon aus den drei divs */
.sidebar-toggle div {
    position: absolute;
    width: 10px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 2px;
    transition: all var(--transition-normal);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3);
}

.sidebar-toggle div:nth-child(1) {
    transform: rotate(-45deg) translateY(-3px);
}

.sidebar-toggle div:nth-child(2) {
    width: 0;
    height: 0;
    opacity: 0;
}

.sidebar-toggle div:nth-child(3) {
    transform: rotate(45deg) translateY(3px);
}

.sidebar::before {
    content: '';
    position: fixed;
    top: var(--nav-height);
    left: auto;
    right: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.03) 0%, transparent 60%),
                radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.02) 0%, transparent 60%);
    opacity: 1;
    pointer-events: none;
    z-index: -1;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    transition: all var(--transition-normal);
    color: var(--text-primary);
    animation: fadeInUp 0.6s ease-out backwards;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: visible;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sidebar-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.6) 0%, rgba(16, 185, 129, 0.4) 50%, rgba(37, 99, 235, 0.5) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: 20px;
    z-index: -1;
}

.sidebar-card:nth-child(1) { animation-delay: 0.2s; }
.sidebar-card:nth-child(2) { animation-delay: 0.3s; }
.sidebar-card:nth-child(3) { animation-delay: 0.4s; }
.sidebar-card:nth-child(4) { animation-delay: 0.5s; }
.sidebar-card:nth-child(5) { animation-delay: 0.6s; }
.sidebar-card:nth-child(6) { animation-delay: 0.7s; }
.sidebar-card:nth-child(7) { animation-delay: 0.8s; }
.sidebar-card:nth-child(8) { animation-delay: 0.9s; }

.sidebar-card:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
}

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

.sidebar-card h2 {
    margin: 0 0 var(--space-lg) 0;
    padding-bottom: var(--space-md);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(203, 213, 225, 0.4);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-card h2::after {
    display: none;
}

.sidebar-card h2 a {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-card p {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.sidebar-card a {
    color: var(--primary);
    transition: all var(--transition-normal);
    display: inline-block;
    font-weight: 500;
}

.sidebar-card a:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
    text-decoration: none;
}

.sidebar-card .highlight {
    color: var(--primary);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* User Profile Card */
.user-profile-card .box-icon {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: nowrap;
}

.user-profile-card .box-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    transition: all var(--transition-normal);
    border: 1px solid rgba(203, 213, 225, 0.3);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.user-profile-card .box-icon a:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-3px) scale(1.05);
    border-color: var(--primary-light);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 1);
}

.user-profile-card .box-icon img {
    width: 22px;
    height: 22px;
    filter: brightness(0) saturate(100%) invert(35%) sepia(85%) saturate(2514%) hue-rotate(210deg) brightness(95%) contrast(92%);
    transition: filter var(--transition-normal);
}

.user-profile-card .box-icon a:hover img {
    filter: brightness(0) saturate(100%) invert(35%) sepia(85%) saturate(2514%) hue-rotate(210deg) brightness(110%) contrast(100%);
}

.user-profile-header {
    margin-bottom: var(--space-md);
}

.user-profile-header .user-name {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-profile-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.user-profile-details .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    font-size: var(--font-size-sm);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    border: 1px solid rgba(203, 213, 225, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.user-profile-details .detail-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(3px);
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.user-profile-details .detail-item span {
    color: var(--text-secondary);
}

.user-profile-details .detail-item .highlight {
    color: var(--primary);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-profile-details .detail-item a {
    color: var(--primary);
    font-weight: 500;
}

/* News Card */
.news-card {
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(203, 213, 225, 0.3);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(3px) scale(1.01);
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.news-card a {
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.news-card p {
    margin: var(--space-xs) 0 0;
    font-size: var(--font-size-xs);
}

/* Event Card */
.event-card {
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(203, 213, 225, 0.3);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.event-card:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(3px) scale(1.01);
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.event-card .event-date {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

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

.event-card .event-title {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xs);
}

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

.event-card .event-important {
    color: var(--primary);
    font-weight: 700;
}

.event-card .no-decoration {
    text-decoration: none;
}

.event-card a {
    color: var(--primary);
    font-weight: 500;
}

/* ====================================
   FOOTER - MODERN DARK FOOTER
   ==================================== */

.main-footer {
    background: var(--bg-footer);
    color: var(--neutral-300);
    padding: var(--space-3xl) 0;
    margin-top: auto;
    border-top: 3px solid var(--primary);
    animation: slideInFromBottom 0.8s ease-out;
    overflow: hidden;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(16, 185, 129, 0.03) 100%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content p {
    margin: 0;
    font-size: var(--font-size-base);
    color: var(--neutral-300);
    font-weight: 500;
}

.footer-content a {
    color: var(--primary-light);
    transition: all var(--transition-normal);
    font-weight: 600;
}

.footer-content a:hover {
    color: var(--text-inverse);
    transform: translateX(4px);
}

/* ====================================
   CALENDAR GRID - MODERN & SPACIOUS
   ==================================== */

.calendar-container {
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.6s ease-out backwards;
    animation-delay: 0.4s;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    background: transparent;
    overflow: hidden;
    box-shadow: none;
    border: none;
    padding: var(--space-md);
}

.calendar-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: var(--space-lg);
    text-align: center;
    font-weight: 700;
    font-size: var(--font-size-base);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-day {
    background: var(--bg-primary);
    min-height: 100px;
    padding: var(--space-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    border-radius: 14px;
    border: 2px solid var(--neutral-200);
    box-shadow: var(--shadow-xs);
}

.calendar-day:hover {
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px) scale(1.03);
    border-color: var(--primary-light);
}

.calendar-day-number {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.calendar-day.other-month {
    opacity: 0.4;
}

.calendar-day.other-month .calendar-day-number {
    color: var(--text-tertiary);
}

.calendar-day.today {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

.calendar-day.today .calendar-day-number {
    color: var(--primary);
    font-weight: 800;
    font-size: var(--font-size-xl);
}

.calendar-events {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.calendar-event-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    cursor: pointer;
    transition: all var(--transition-normal);
    border-radius: 50%;
    box-shadow: var(--shadow-xs);
    position: relative;
}

.calendar-event-dot:hover {
    transform: scale(1.5);
    box-shadow: var(--shadow-lg);
}

.calendar-event-dot.important {
    background: #e63946;
    animation: pulse 2s infinite;
}

.calendar-event-dot.official {
    background: var(--secondary);
}

/* Calendar Tooltip - nur bei Hover sichtbar */
.calendar-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    font-size: var(--font-size-xs);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 100;
    pointer-events: none;
}

.calendar-event-dot:hover .calendar-tooltip {
    opacity: 1;
    visibility: visible;
}

.calendar-month-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
    padding: var(--space-2xl);
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--neutral-200);
    border-radius: 20px;
}

.calendar-month-selector h2 {
    margin: 0;
}

.calendar-nav-buttons {
    display: flex;
    gap: var(--space-md);
}

.calendar-nav-buttons button {
    padding: var(--space-md) var(--space-2xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: all var(--transition-normal);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-nav-buttons button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px) scale(1.05);
}

.calendar-nav-buttons button:hover::before {
    opacity: 0;
}

/* ====================================
   TABLES - MODERN & SPACIOUS
   ==================================== */

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--space-2xl) 0;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--neutral-200);
    border-radius: 20px;
    animation: fadeInUp 0.7s ease-out backwards;
    animation-delay: 0.3s;
}

/* Mobile Table Container */
@media (max-width: 768px) {
    table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
    }

    /* Wrapper for tables to handle overflow without breaking layout */
    main-content table {
        box-sizing: border-box;
    }
}

table th {
    background: linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-700) 100%);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 2px solid var(--neutral-900);
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

table th:first-child {
    border-top-left-radius: 18px;
}

table th:last-child {
    border-top-right-radius: 18px;
}

table td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--neutral-200);
    background: var(--bg-primary);
    transition: all var(--transition-normal);
    font-size: var(--font-size-base);
}

table tr:hover td {
    background: var(--bg-tertiary);
}

table tr:last-child td:first-child {
    border-bottom-left-radius: 18px;
}

table tr:last-child td:last-child {
    border-bottom-right-radius: 18px;
}

table tr:last-child td {
    border-bottom: none;
}

/* ====================================
   FORMS - MODERN INPUT DESIGN
   ==================================== */

input, select, textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--neutral-300);
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-xs);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1), var(--shadow-lg);
    transform: translateY(-2px);
    background: var(--bg-primary);
}

input[type="checkbox"],
input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: var(--space-md);
    cursor: pointer;
    accent-color: var(--primary);
}

button,
input[type="submit"],
input[type="button"],
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-xl);
    border-radius: 999px;
    font-weight: 600;
    font-size: var(--font-size-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
    gap: var(--space-xs);
    line-height: 1;
    margin-top: var(--space-xs);
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:hover {
    transform: translateY(-1px);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

button,
input[type="submit"],
input[type="button"],
.btn,
.btn-primary {
    margin-top: var(--space-xs);
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.18);
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.24);
}

.btn-secondary {
    background-color: var(--neutral-200);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.btn-secondary:hover {
    background-color: var(--neutral-300);
    color: var(--text-primary);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.btn-danger {
    background-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
    background-color: #b91c1c;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(220, 38, 38, 0.3);
}

.btn-sm {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--font-size-lg);
}

/* ====================================
   PHOTO GALLERY - MODERN GRID
   ==================================== */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-2xl) 0;
    align-items: start;
}

.photo-item {
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    background: var(--bg-primary);
    border: 2px solid var(--neutral-200);
    border-radius: 20px;
    animation: zoomIn 0.5s ease-out backwards;
    position: relative;
}

.photo-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
    pointer-events: none;
}

.photo-item:nth-child(1) { animation-delay: 0.1s; }
.photo-item:nth-child(2) { animation-delay: 0.15s; }
.photo-item:nth-child(3) { animation-delay: 0.2s; }
.photo-item:nth-child(4) { animation-delay: 0.25s; }
.photo-item:nth-child(5) { animation-delay: 0.3s; }
.photo-item:nth-child(6) { animation-delay: 0.35s; }
.photo-item:nth-child(7) { animation-delay: 0.4s; }
.photo-item:nth-child(8) { animation-delay: 0.45s; }

.photo-item:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-12px) scale(1.03);
    border-color: var(--primary-light);
}

.photo-item:hover::before {
    opacity: 0.05;
}

.photo-item .gallery-image {
    overflow: hidden;
    background: var(--neutral-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-item .gallery-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    background: var(--neutral-100);
    transition: all var(--transition-normal);
}

.photo-item:hover .gallery-image img {
    transform: scale(1.08);
}

.photo-item .gallery-info {
    padding: var(--space-md);
    position: relative;
    z-index: 2;
}

.gallery-info h3, p {
    margin-top: 5px;
    margin-bottom: 0px;
    line-height: initial;
}

.photo-item h4 {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xs);
    font-weight: 700;
}

.photo-item .buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    width: 100%;
}

/* User Grid */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-2xl) 0;
}

.user-container {
    display: flex;
    align-items: center;
    padding: var(--space-lg);
    background: var(--bg-primary);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--neutral-200);
    border-radius: 16px;
    animation: fadeInUp 0.5s ease-out backwards;
}

.user-container:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-8px) scale(1.03);
    background: var(--bg-tertiary);
    border-color: var(--primary-light);
}

.user-container img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    margin-right: var(--space-lg);
    border: 3px solid var(--neutral-200);
    border-radius: 50%;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.user-container:hover img {
    border-color: var(--primary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

/* ====================================
   UTILITY CLASSES
   ==================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.ml-0 { margin-left: 0 !important; }
.mr-0 { margin-right: 0 !important; }

.alert {
    padding: var(--space-lg) var(--space-xl);
    border-radius: 12px;
    margin-bottom: var(--space-xl);
    border-left: 6px solid transparent;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--text-primary);
    animation: slideInLeft 0.4s ease-out;
}

.alert strong {
    font-weight: 700;
}

.alert h4,
.alert h3 {
    margin: 0 0 var(--space-sm) 0;
    font-weight: 700;
    color: inherit;
}

.alert p {
    margin: var(--space-xs) 0;
}

.alert ul {
    margin: var(--space-sm) 0 var(--space-sm) var(--space-lg);
    padding-left: var(--space-lg);
}

.alert ul:last-child {
    margin-bottom: 0;
}

.alert a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.alert a:hover {
    text-decoration: none;
}

.alert--info {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.alert--success {
    background: rgba(var(--secondary-rgb), 0.1);
    border-color: var(--secondary);
    color: var(--secondary-dark);
}

.alert--error {
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
    color: #b91c1c;
}

.icon_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
}

.icon_bar a {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-sm);
    transition: all var(--transition-normal);
    border-radius: 12px;
    background: var(--bg-primary);
    border: 2px solid var(--neutral-200);
}

.icon_bar a:hover {
    background: var(--bg-tertiary);
    transform: translateY(-4px) scale(1.08);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.icon_menu {
    width: 100%;
}

/* reCAPTCHA */
.grecaptcha-badge {
    visibility: hidden;
    display: none;
}

/* Trauer-Modus */
.cross {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    z-index: var(--z-toast);
    opacity: 0.4;
    transition: opacity var(--transition-normal);
}

.cross:hover {
    opacity: 0.8;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 1600px) {
    body:has(.sidebar) .main-content {
        max-width: 900px;
    }

    body:not(:has(.sidebar)) .main-content {
        max-width: 1400px;
    }
}

@media (max-width: 1400px) {
    :root {
        --sidebar-width: 300px;
        --space-3xl: 3rem;
        --space-2xl: 2rem;
    }

    body:has(.sidebar) .content-wrapper {
        width: calc(100% - var(--sidebar-width));
    }

    .container {
        padding: 0 var(--space-xl);
    }

    body:has(.sidebar) .main-content {
        max-width: 800px;
    }

    .main-content {
        padding: var(--space-2xl) var(--space-xl);
    }

    .sidebar {
        width: var(--sidebar-width);
    }
}

@media (max-width: 1200px) {
    :root {
        --space-3xl: 2.5rem;
        --space-2xl: 1.5rem;
    }

    body:has(.sidebar) .main-content {
        max-width: 700px;
    }

    body:not(:has(.sidebar)) .main-content {
        max-width: 1100px;
    }

    .main-content {
        padding: var(--space-xl);
    }

    .container {
        padding: 0 var(--space-lg);
    }
}

@media (max-width: 1024px) {
    :root {
        --nav-height: 90px;
        --space-3xl: 2rem;
        --space-2xl: 1.5rem;
    }

    .content-wrapper,
    body:has(.sidebar) .content-wrapper,
    body:not(:has(.sidebar)) .content-wrapper {
        width: 100%;
        margin-top: calc(var(--nav-height) + var(--space-xs));
        padding-bottom: 0;
        margin-left: 0;
        padding-left: var(--space-xl);
        padding-right: var(--space-xl);
        display: block;
        justify-content: unset;
    }

    /* Off-Canvas Sidebar for Mobile/Tablet */
    .sidebar-toggle {
        display: flex;
    }

    .sidebar-toggle:not(.active):hover {
        right: -4px;
    }

    .sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1001;
        padding: var(--space-2xl) var(--space-xl);
        box-shadow: -4px 0 32px rgba(0, 0, 0, 0.15);
        border-left: 1px solid rgba(255, 255, 255, 0.8);
        animation: none;
        margin: 0;
    }

    .sidebar.active {
        right: 0;
    }

    .sidebar-toggle.active {
        right: min(85%, 380px);
        box-shadow: -4px 4px 28px rgba(31, 38, 135, 0.15),
                    -2px 2px 12px rgba(0, 0, 0, 0.08),
                    inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .sidebar-toggle.active::before {
        opacity: 0.6;
    }

    /* Wenn aktiv: Pfeil zeigt nach rechts (zum Schließen) */
    .sidebar-toggle.active div:nth-child(1) {
        transform: rotate(45deg) translateY(-3px);
    }

    .sidebar-toggle.active div:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .sidebar-toggle.active div:nth-child(3) {
        transform: rotate(-45deg) translateY(3px);
    }

    .main-content,
    body:not(:has(.sidebar)) .main-content {
        padding: var(--space-xl);
        max-width: 100%;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 90px;
        --font-size-4xl: 1.5rem;
        --font-size-3xl: 1.35rem;
        --font-size-2xl: 1.15rem;
        --font-size-xl: 1rem;
        --font-size-lg: 0.9rem;
        --space-3xl: 1.75rem;
        --space-2xl: 1.25rem;
        --space-xl: 1rem;
    }

    .content-wrapper,
    body:has(.sidebar) .content-wrapper {
        margin-top: calc(var(--nav-height) + var(--space-xs));
    }

    .main-content {
        padding: var(--space-lg);
        border-radius: 16px;
    }

    .logo-container img {
        height: 75px;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--space-lg);
    }

    .calendar-day {
        min-height: 80px;
        padding: var(--space-xs);
        font-size: var(--font-size-xs);
    }

    .calendar-day-number {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-xs);
    }

    .calendar-month-selector {
        gap: var(--space-md);
        padding: var(--space-lg);
    }

    .calendar-nav-buttons {
        flex-direction: row;
        gap: var(--space-sm);
    }

    table th,
    table td {
        padding: var(--space-sm);
        font-size: var(--font-size-sm);
    }

    .sidebar-card {
        margin-left: var(--space-xl);
        margin-right: var(--space-xl);
    }
}

@media (max-width: 576px) {
    :root {
        --nav-height: 85px;
        --font-size-4xl: 1.35rem;
        --font-size-3xl: 1.25rem;
        --font-size-2xl: 1.1rem;
        --font-size-xl: 0.95rem;
        --font-size-lg: 0.85rem;
        --font-size-base: 0.8rem;
        --space-3xl: 1.5rem;
        --space-2xl: 1rem;
        --space-xl: 0.875rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-container {
        padding: 0 var(--space-md);
    }

    .logo-container img {
        height: 65px;
    }

    .content-wrapper,
    body:has(.sidebar) .content-wrapper {
        margin-top: calc(var(--nav-height) + var(--space-xs));
        padding-right: var(--space-md);
        padding-left: var(--space-md);
    }

    .sidebar {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .sidebar-card {
        margin-left: var(--space-md);
        margin-right: var(--space-md);
    }

    .menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 90%;
        max-width: 360px;
        height: 100vh;
        background: var(--bg-primary);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
        transition: left var(--transition-slow);
        box-shadow: var(--shadow-2xl);
        overflow-y: auto;
        gap: 0;
        z-index: var(--z-sticky);
        border-right: 2px solid var(--primary);
    }

    .menu.active {
        left: 0;
    }

    .menu > li {
        width: 100%;
        margin-bottom: var(--space-sm);
        display: flex;
        flex-direction: column;
    }

    .menu > li > a {
        width: 100%;
        padding: var(--space-md) var(--space-lg);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(203, 213, 225, 0.4);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05),
                    inset 0 1px 0 rgba(255, 255, 255, 0.8);
        font-weight: 600;
        color: var(--text-primary);
    }

    .menu > li > a:hover,
    .menu > li > a.active {
        background: rgba(37, 99, 235, 0.12);
        border-color: var(--primary-light);
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12),
                    inset 0 1px 0 rgba(255, 255, 255, 1);
        color: var(--primary);
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-slow), padding var(--transition-slow);
        margin: 0;
        padding: 0;
        border: none;
        background: var(--bg-secondary);
        border-radius: 10px;
        width: 100%;
    }

    .sub-menu.open {
        max-height: 600px;
        padding: var(--space-sm) 0;
        margin-top: var(--space-sm);
    }

    .sub-menu > li {
        border-bottom: 1px solid var(--neutral-200);
        width: 100%;
    }

    .sub-menu > li:last-child {
        border-bottom: none;
    }

    .sub-menu > li > a {
        padding: var(--space-md) var(--space-lg);
        width: 100%;
        display: block;
        background: transparent;
    }

    .sub-menu > li > a:hover {
        background: var(--bg-tertiary);
    }

    body.menu-open {
        overflow: hidden;
    }

    .content-wrapper {
        padding-top: calc(var(--nav-height) + var(--space-xs));
        padding-right: var(--space-md);
        padding-left: var(--space-md);
    }

    .main-content {
        padding: var(--space-md);
        border-radius: 12px;
        margin-top: var(--space-2xl);
    }

    .container {
        padding: 0 var(--space-md);
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .user-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .calendar-grid {
        gap: 2px;
        padding: var(--space-xs);
    }

    .calendar-day {
        min-height: 60px;
        padding: 4px;
        border-radius: 8px;
        border-width: 1px;
    }

    .calendar-day-number {
        font-size: var(--font-size-xs);
        margin-bottom: 2px;
    }

    .calendar-event-dot {
        width: 8px;
        height: 8px;
    }

    .calendar-header {
        padding: var(--space-xs);
        font-size: var(--font-size-xs);
        border-radius: 8px;
    }

    table {
        font-size: var(--font-size-sm);
        border-radius: 12px;
    }

    table th,
    table td {
        padding: var(--space-md);
        font-size: var(--font-size-sm);
    }

    button,
    input[type="submit"],
    input[type="button"] {
        margin-top: var(--space-xs);
        padding: var(--space-md) var(--space-xl);
        font-size: var(--font-size-sm);
    }

    .calendar-nav-buttons button {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--font-size-xs);
    }

    .calendar-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .calendar-grid {
        min-width: 100%;
        overflow-x: auto;
    }

    h2::after {
        width: 60px;
        height: 3px;
    }

    .icon_bar a {
        padding: var(--space-xs);
    }
}

/* Mobile Table Wrapper */
.mobile-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    border-radius: 12px;
}

.mobile-table table {
    margin: 0;
    width: max-content !important;
    min-width: 100%;
}

@media (max-width: 768px) {
    .mobile-table {
        margin: var(--space-md) 0;
    }
}

/* ====================================
   ACCESSIBILITY & PERFORMANCE
   ==================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Styles - Enhanced */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(var(--primary-rgb), 0.2);
}

/* Print Styles */
@media print {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .nav-wrapper,
    .sidebar,
    .main-footer,
    .hamburger,
    .menu-overlay {
        display: none !important;
    }

    .content-wrapper {
        padding: 0;
    }

    .main-content {
        box-shadow: none;
        padding: 2rem;
        margin: 0;
        border: none;
        border-radius: 0;
    }

    body {
        background: white;
    }

    body::before {
        display: none;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: black;
        background: none;
        -webkit-text-fill-color: black;
    }

    table {
        page-break-inside: avoid;
        border: 1px solid #000;
    }

    a {
        text-decoration: underline;
        color: #000;
    }
}

/* Scrollbar Styles - Modern */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 6px;
    border: 2px solid var(--neutral-100);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* ====================================
   PUBLIC PAGES - MODERN DESIGN
   ==================================== */

/* Hero Header */
.public-hero {
    position: relative;
    width: 100%;
    margin: 0;
    margin-bottom: var(--space-4xl);
    height: 100vh;
    min-height: 650px;
    max-height: 900px;
    overflow: hidden;
    border-radius: 0;
}

.public-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease-out;
}

.public-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.65) 50%, rgba(15, 23, 42, 0.75) 100%);
    color: white;
    padding: var(--space-xl);
}

.public-hero-content {
    max-width: 1000px;
    text-align: center;
    animation: fadeInUp 1s ease-out;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: var(--space-3xl) var(--space-2xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.public-hero-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-lg);
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.4);
    border-radius: 50px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-lg);
    animation: fadeIn 1.2s ease-out;
}

.public-hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin: 0 0 var(--space-lg) 0;
    color: white !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: white;
    background-clip: unset;
    animation: fadeInUp 1.4s ease-out;
}

.public-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0 0 var(--space-2xl) 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.6;
    animation: fadeInUp 1.6s ease-out;
}

.public-hero-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.8s ease-out;
}

.public-hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeIn 2s ease-out;
    cursor: pointer;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(-45deg) translateY(0);
    }
    40% {
        transform: rotate(-45deg) translateY(-10px);
    }
    60% {
        transform: rotate(-45deg) translateY(-5px);
    }
}

/* Intro Section */
.public-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-3xl) auto;
}

.public-intro h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-lg) 0;
}

.public-intro-text {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Section Container */
.public-section {
    margin-bottom: var(--space-4xl);
}

.public-section h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-2xl) 0;
    text-align: center;
}

.public-section-highlight {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
    padding: var(--space-3xl) var(--space-xl);
    margin-left: calc(-1 * var(--space-xl));
    margin-right: calc(-1 * var(--space-xl));
    width: calc(100% + 2 * var(--space-xl));
    border-radius: 32px;
}

/* Value Rows (Image + Text alternating) */
.public-value-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    margin-bottom: var(--space-4xl);
}

.public-value-row-reverse {
    direction: rtl;
}

.public-value-row-reverse > * {
    direction: ltr;
}

.public-value-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
}

.public-value-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-slow);
}

.public-value-row:hover .public-value-image img {
    transform: scale(1.03);
}

.public-value-content {
    padding: var(--space-xl);
}

.public-value-content h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 var(--space-lg) 0;
    line-height: 1.3;
}

.public-value-content p {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

.public-value-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.public-value-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Offer Grid - 2 Columns */
.public-offer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
}

.public-offer-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: var(--space-2xl);
    text-align: left;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08),
                inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.public-offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12),
                inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.public-offer-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 var(--space-md) 0;
}

.public-offer-card p {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

/* Call to Action Section - Liquid Glass */
.public-cta {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
    backdrop-filter: blur(60px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    color: var(--text-primary);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15),
                inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.public-cta h2 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin: 0 0 var(--space-lg) 0;
    color: var(--text-primary);
}

.public-cta p {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    margin: 0 0 var(--space-md) 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

.public-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.public-link:hover {
    border-bottom-color: var(--primary);
}

/* Rooms Grid (for Bude page) */
.public-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-2xl);
}

.public-room-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all var(--transition-normal);
}

.public-room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12),
                inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.public-room-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.public-room-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.public-room-card:hover .public-room-image {
    transform: scale(1.08);
}

.public-room-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: rgba(37, 99, 235, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: 12px;
    font-size: var(--font-size-sm);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.public-room-content {
    padding: var(--space-xl);
}

.public-room-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-md) 0;
}

.public-room-content p {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 var(--space-lg) 0;
}

.public-room-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.public-room-feature {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: 12px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .public-hero {
        height: 100vh;
        min-height: 550px;
        max-height: 700px;
        border-radius: 0;
        margin-bottom: var(--space-2xl);
    }

    .public-hero-content {
        padding: var(--space-2xl) var(--space-lg);
    }

    .public-hero-badge {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-md);
    }

    .public-hero-title {
        font-size: 2.5rem;
        color: white !important;
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: white;
        background-clip: unset;
    }

    .public-hero-subtitle {
        font-size: 1.125rem;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: var(--space-xl);
    }

    .public-hero-buttons {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
    }

    .public-hero-buttons .btn {
        width: 100%;
        padding: var(--space-md) var(--space-lg);
        font-size: var(--font-size-base);
    }

    .public-hero-scroll-indicator {
        bottom: var(--space-lg);
    }

    .public-intro {
        margin-bottom: var(--space-2xl);
    }

    .public-intro h2 {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-md);
    }

    .public-section {
        margin-bottom: var(--space-2xl);
    }

    .public-section h2 {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-xl);
    }

    .public-section-highlight {
        padding: var(--space-2xl) var(--space-lg);
        margin-left: calc(-1 * var(--space-lg));
        margin-right: calc(-1 * var(--space-lg));
        width: calc(100% + 2 * var(--space-lg));
        margin-bottom: var(--space-2xl);
    }

    /* Value rows stack on mobile */
    .public-value-row,
    .public-value-row-reverse {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        direction: ltr;
        margin-bottom: var(--space-2xl);
    }

    .public-value-row:last-child {
        margin-bottom: 0;
    }

    .public-value-image img {
        height: 280px;
    }

    .public-value-content {
        padding: 0;
    }

    .public-offer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .public-rooms-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .public-cta {
        padding: var(--space-2xl) var(--space-lg);
        margin-top: var(--space-2xl);
    }

    .public-cta h2 {
        font-size: var(--font-size-2xl);
    }

    .public-cta .btn {
        padding: var(--space-md) var(--space-xl);
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .public-hero {
        height: 100vh;
        min-height: 500px;
        max-height: 650px;
        border-radius: 0;
    }

    .public-hero-content {
        padding: var(--space-xl) var(--space-md);
    }

    .public-hero-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
        margin-bottom: var(--space-md);
    }

    .public-hero-title {
        font-size: 2rem;
        color: white !important;
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: white;
        background-clip: unset;
        margin-bottom: var(--space-md);
    }

    .public-hero-subtitle {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: var(--space-lg);
    }

    .public-hero-buttons .btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--font-size-sm);
    }

    .public-hero-scroll-indicator {
        bottom: var(--space-md);
        font-size: 0.7rem;
    }

    .scroll-arrow {
        width: 20px;
        height: 20px;
    }

    .public-value-image img {
        height: 220px;
    }

    .public-room-image-wrapper {
        height: 180px;
    }
}

/* ====================================
   AKTIVE MITGLIEDER - SHOW_AKTIVE.PHP
   ==================================== */

.aktive-section {
    margin-bottom: var(--space-4xl);
}

.aktive-section h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 var(--space-xl) 0;
    padding-bottom: var(--space-md);
    border-bottom: 3px solid var(--primary);
}

.aktive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-xl);
}

.aktive-member {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06),
                inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.aktive-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12),
                inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.aktive-member-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-md) auto;
    display: block;
    border: 3px solid var(--primary-light);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.aktive-member-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .aktive-section {
        margin-bottom: var(--space-3xl);
    }

    .aktive-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--space-md);
    }

    .aktive-member {
        padding: var(--space-md);
    }

    .aktive-member-pic {
        width: 60px;
        height: 60px;
    }

    .aktive-member-name {
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 480px) {
    .aktive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .aktive-member-pic {
        width: 50px;
        height: 50px;
    }
}

/* Selection Styles */
::selection {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--text-primary);
}

/* ====================================
   ACCOUNTING & INVENTORY MODULES
   ==================================== */

/* Dashboard Header */
.dashboard-header {
    background-color: var(--bg-primary);
    border-radius: 16px;
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-2xl);
    border-bottom: 2px solid var(--neutral-200);
    padding-bottom: var(--space-lg);
    animation: fadeInDown 0.6s ease-out;
}

.dashboard-header h1 {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

/* Dashboard Summary Cards */
.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.summary-card {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    border-radius: 16px;
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 2px solid var(--neutral-200);
    animation: scaleIn 0.5s ease-out backwards;
}

.summary-card:nth-child(1) { animation-delay: 0.1s; }
.summary-card:nth-child(2) { animation-delay: 0.2s; }
.summary-card:nth-child(3) { animation-delay: 0.3s; }
.summary-card:nth-child(4) { animation-delay: 0.4s; }

.summary-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.summary-card h2 {
    font-size: var(--font-size-lg);
    margin-top: 0;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.summary-card h2::after {
    display: none;
}

.summary-card .amount {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    display: block;
}

.summary-card .description {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

.summary-card.positive {
    border-left: 5px solid var(--secondary);
}

.summary-card.negative {
    border-left: 5px solid #dc2626;
}

.summary-card.detail-card {
    min-width: 200px;
}

/* Account Lists in Dashboard */
.accounts-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.account-list h2 {
    font-size: var(--font-size-xl);
}

/* Mobile Table - Primary Content Container */
.mobile-table {
    background-color: var(--bg-primary);
    border-radius: 16px;
    margin-bottom: var(--space-2xl);
    overflow-x: auto;
    animation: fadeInUp 0.6s ease-out;
}

.mobile-table h2,
.mobile-table h3 {
    margin-top: 0;
}

.mobile-table--nested {
    margin-top: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--neutral-200);
}

.mobile-table--nested table {
    background: var(--bg-primary);
}

.mobile-table > p:last-of-type {
    margin-bottom: 0;
}

/* All tables inside mobile-table share consistent styling */
.mobile-table table,
.account-transactions {
    border-collapse: collapse;
    background: var(--bg-primary);
}

.account-transactions {
    width: 100%;
}

.mobile-table table thead,
.account-transactions thead {
    background: linear-gradient(135deg, var(--neutral-200) 0%, var(--neutral-300) 100%);
    border-bottom: 2px solid var(--neutral-400);
}

.mobile-table table th,
.account-transactions th {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    font-weight: 600;
    color: var(--neutral-white);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mobile-table table td,
.account-transactions td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--neutral-200);
    transition: background-color var(--transition-fast);
}

.mobile-table table tr:hover,
.account-transactions tr:hover {
    background-color: var(--bg-tertiary);
}

/* Amount color indications */
td.positive,
.positive .amount,
.amount.positive,
p.positive,
span.positive {
    color: var(--secondary);
    font-weight: 600;
}

td.negative,
.negative .amount,
.amount.negative,
p.negative,
span.negative {
    color: #dc2626;
    font-weight: 600;
}

/* Account Actions */
.account-actions {
    margin-top: var(--space-xl);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* Form Buttons Container */
.form-buttons {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    margin-top: var(--space-xl);
}

.form-buttons .btn,
.form-buttons button,
.form-buttons input[type="submit"] {
    margin-top: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    min-width: 120px;
}

/* Form Styling for Accounting/Inventory */
.main-content form {
    margin-bottom: var(--space-lg);
}

.form-table {
    width: 100%;
    margin-bottom: var(--space-lg);
}

.form-table td {
    padding: var(--space-md) var(--space-md) var(--space-md) 0;
    vertical-align: top;
}

.form-table label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
}

/* Account Filters & Account Header - Unified Styling */
.account-filters,
.account-header {
    background-color: var(--bg-tertiary);
    padding: var(--space-md) var(--space-lg);
    border-radius: 12px;
    margin-bottom: var(--space-xl);
    border: 2px solid var(--neutral-200);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
}

.account-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.account-header h2 {
    margin: 0;
    padding: 0;
    font-size: var(--font-size-xl);
}

.account-header h2::after {
    display: none;
}

.account-meta {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.account-meta p {
    margin: 0;
}

.account-filters .filter-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    width: 100%;
}

.search-filter {
    flex-grow: 1;
    min-width: 250px;
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.search-filter input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--neutral-300);
    border-radius: 8px;
    font-size: var(--font-size-base);
}

.search-filter button {
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    white-space: nowrap;
}

.date-filter {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.date-filter label {
    font-weight: 600;
    white-space: nowrap;
    font-size: var(--font-size-sm);
}

.date-filter input[type="date"],
.date-filter select {
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--neutral-300);
    border-radius: 8px;
    font-size: var(--font-size-sm);
}

.date-filter button {
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    font-size: var(--font-size-sm);
    white-space: nowrap;
}

/* Parent/Child Account Styles */
.parent-account-row {
    background-color: rgba(var(--primary-rgb), 0.05);
    font-weight: 600;
}

.child-account {
    opacity: 0.85;
}

.child-account-indent {
    padding-left: var(--space-2xl);
}

/* Child Accounts Filter */
.child-accounts-filter label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
}

.child-accounts-filter input[type="checkbox"] {
    cursor: pointer;
}

/* Filter Row Variants */
.filter-row-primary,
.filter-row-secondary {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    align-items: center;
}

/* Sortable Table Headers */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.sortable:hover {
    background-color: var(--neutral-300);
}

.sortable.active {
    background-color: var(--primary-light);
    color: white;
}

/* Highlight Classes */
.highlight {
    color: var(--primary);
    font-weight: 700;
}

/* Text Utilities */
.text-muted {
    color: var(--text-tertiary);
}

.text-danger {
    color: #dc2626;
}

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

/* ====================================
   SPLIT BOOKING PAGE STYLES
   ==================================== */

/* Grid Layout */
.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

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

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.form-control {
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--neutral-300);
    border-radius: 8px;
    font-size: var(--font-size-base);
    transition: all var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.readonly {
    background-color: var(--neutral-100);
    cursor: not-allowed;
}

/* Split Entries Section */
.split-entries-section {
    background: var(--bg-secondary);
    padding: var(--space-xl);
    border-radius: 12px;
    border: 2px solid var(--neutral-200);
}

#split-entries {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.split-entry {
    display: grid;
    grid-template-columns: 40px 1fr 200px 120px;
    gap: var(--space-md);
    align-items: end;
    padding: var(--space-md);
    background: white;
    border-radius: 8px;
    border: 2px solid var(--neutral-200);
    transition: all var(--transition-normal);
}

.split-entry:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.split-entry-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-sm);
}

.account-select-container,
.amount-input-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.account-select-container label,
.amount-input-container label {
    font-weight: 600;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.remove-entry-container {
    display: flex;
    align-items: flex-end;
    padding-bottom: var(--space-xs);
}

.remove-entry-btn {
    padding: var(--space-sm) var(--space-md);
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.remove-entry-btn:hover {
    background-color: #b91c1c;
    transform: translateY(-1px);
}

.remove-entry-btn.d-none {
    display: none;
}

.add-entry-btn {
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.add-entry-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Balance Indicator */
.balance-indicator {
    padding: var(--space-md) var(--space-lg);
    border-radius: 8px;
    margin-top: var(--space-lg);
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-align: center;
    transition: all var(--transition-normal);
}

.balance-valid {
    background-color: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--secondary);
    color: var(--secondary-dark);
}

.balance-invalid {
    background-color: rgba(220, 38, 38, 0.1);
    border: 2px solid #dc2626;
    color: #b91c1c;
}

.mt-4 {
    margin-top: var(--space-2xl);
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Select2 Overrides for Split Booking */
.select2-container--default .select2-selection--single {
    border: 2px solid var(--neutral-300);
    border-radius: 8px;
    height: auto;
    min-height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary);
    line-height: 1.5;
    padding: var(--space-sm) 60px var(--space-sm) var(--space-md);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: var(--space-sm);
    top: 0;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--neutral-300);
    color: var(--text-primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    background: #dc2626;
    color: white;
}

.select2-container--default .select2-selection--single .select2-selection__clear span {
    display: block;
    line-height: 1;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.select2-dropdown {
    border: 2px solid var(--neutral-300);
    border-radius: 8px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary);
}

/* Responsive Split Entry */
@media (max-width: 1024px) {
    .split-entry {
        grid-template-columns: 40px 1fr 150px 100px;
    }
}

@media (max-width: 768px) {
    .split-entry {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .split-entry-number {
        margin-bottom: 0;
    }

    .remove-entry-container {
        padding-bottom: 0;
    }
}

/* Responsive Tables */
@media (max-width: 768px) {
    .dashboard-summary {
        grid-template-columns: 1fr;
    }

    .accounts-overview {
        grid-template-columns: 1fr;
    }

    .account-filters .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .search-filter {
        max-width: 100%;
    }

    .account-actions {
        flex-direction: column;
    }

    .account-actions .btn,
    .account-actions button,
    .account-actions input[type="submit"] {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .mobile-table,
    .dashboard-header {
        border-radius: 12px;
    }

    .summary-card {
        padding: var(--space-lg);
    }

    .summary-card .amount {
        font-size: var(--font-size-2xl);
    }

    .form-table td {
        display: block;
        padding: var(--space-sm) 0;
    }
}

/* ====================================
   INVENTORY SPECIFIC STYLES
   ==================================== */

/* Article Rows - Clickable table rows */
.article-row {
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.article-row:hover {
    background-color: var(--bg-tertiary);
}

/* Details Rows - Nested tables within expandable rows */
.details-row table {
    font-size: var(--font-size-sm);
    margin-top: var(--space-md);
}

.details-row table th,
.details-row table td {
    padding: var(--space-sm);
    border: 1px solid var(--neutral-200);
}

/* Article Info Display */
.article-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.article-size {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

/* Checkbox Label - Flex layout for checkboxes */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

/* Type Badges for Products */
.type-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: 6px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.type-badge.type-alias {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: white;
}

.type-badge.type-main {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
}

/* Text Utility Classes for Inventory */
.text-small {
    font-size: var(--font-size-sm);
}

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

.text-success {
    color: var(--secondary);
    font-weight: 600;
}

.text-danger {
    color: #dc3545;
    font-weight: 600;
}

/* Input Sizing */
.input-small {
    max-width: 100px;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-sm);
}

/* Detail Items - Key-value pairs in cards */
.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--neutral-200);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item span:first-child {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.detail-item span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

/* ====================================
   TOUCH & MOBILE OPTIMIZATIONS
   ==================================== */

/* Touch-friendly target sizes (Apple HIG: 44px minimum) */
@media (hover: none) and (pointer: coarse) {
    button,
    input[type="submit"],
    input[type="button"],
    input[type="reset"],
    .btn,
    a.btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Navigation links */
    .menu > li > a,
    .sub-menu > li > a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Form elements */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    input[type="date"],
    select,
    textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Table row actions */
    table a,
    table button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Card clickable areas */
    .sidebar-card a,
    .photo-card a,
    .user-card a {
        min-height: 44px;
    }

    /* Calendar touch targets */
    .calendar-day {
        min-height: 48px;
    }

    .calendar-nav-buttons button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Safe Area Insets for notched devices */
@supports (padding: env(safe-area-inset-top)) {
    .page-wrapper {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .nav-wrapper {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .content-wrapper {
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* Fixed elements need safe area consideration */
    .sidebar {
        padding-bottom: calc(var(--space-2xl) + env(safe-area-inset-bottom));
    }
}

/* Prevent text selection on interactive elements */
button,
.btn,
.menu a,
.hamburger {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Smooth momentum scrolling */
.sidebar,
.content-wrapper,
.menu,
table {
    -webkit-overflow-scrolling: touch;
}

/* Remove tap highlight on mobile */
a,
button,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

/* Touch action optimization */
.menu,
.sidebar,
.photo-grid,
.user-grid {
    touch-action: pan-y;
}

/* Prevent pull-to-refresh on app-like pages */
@media (display-mode: standalone) {
    html, body {
        overscroll-behavior-y: contain;
    }
}
