/**
 * FM Machines System - Main Stylesheet
 * Funktionale Implementierung ohne JavaScript-Abhängigkeiten
 * CSS-only Lösungen für Interaktivität
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Pink-Schwarz-Weiß Farbschema - Design 1 Modern */
    --primary-pink: #FF0080;
    --primary-pink-hover: #CC0066;
    --primary-pink-light: #FF99CC;
    --primary-black: #000000;
    --primary-white: #FFFFFF;

    /* Graustufen */
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-light: #E5E5E5;
    --bg-off-white: #FFFFFF;
    --border-light: #E5E5E5;
    --border-dark: #000000;

    /* Alte Variablen für Rückwärtskompatibilität */
    --primary-color: #FF0080;
    --primary-hover: #CC0066;
    --text-muted: #666666;
    --border-color: #000000;

    /* Animation Timing */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
    --cubic-bezier: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    color: var(--text-primary);
    background-color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== LAYOUT SYSTEM (Custom Grid System) ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
        padding: 0 2rem;
    }
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col,
.col-12,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-lg-4,
.col-lg-6 {
    padding: 0 0.75rem;
    flex: 1;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Medium screens and up */
@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-md-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

/* Large screens and up */
@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Flexbox utilities */
.d-flex {
    display: flex;
}

.d-none {
    display: none;
}

@media (min-width: 768px) {
    .d-md-flex {
        display: flex;
    }
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-end {
    justify-content: flex-end;
}

.justify-content-md-start {
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .justify-content-md-start {
        justify-content: flex-start;
    }

    .justify-content-md-end {
        justify-content: flex-end;
    }
}

@media (min-width: 992px) {
    .justify-content-lg-end {
        justify-content: flex-end;
    }
}

/* Text alignment */
.text-center {
    text-align: center;
}

@media (min-width: 768px) {
    .text-md-start {
        text-align: left;
    }
}

/* Margin and padding utilities */
.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.me-1 {
    margin-right: 0.25rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.me-3 {
    margin-right: 1rem;
}

.ms-2 {
    margin-left: 0.5rem;
}

.ms-3 {
    margin-left: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.my-3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.w-100 {
    width: 100%;
}

/* Gap utility */
.gap-2 {
    gap: 0.5rem;
}

/* ===== BUTTON SYSTEM ===== */
.btn {
    display: inline-block;
    padding: 7px 14px;
    border: 2px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    transition: all 0.3s ease;
    background: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Primär-Button (Pink) */
.btn-primary {
    background: var(--primary-pink);
    color: var(--primary-white);
    border-color: var(--primary-pink);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-pink-hover);
    border-color: var(--primary-pink-hover);
    color: var(--primary-white);
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.4);
}

/* Sekundär-Button (Outline Black) */
.btn-outline-primary,
.btn-secondary {
    background: transparent;
    color: var(--primary-black);
    border-color: var(--primary-black);
}

.btn-outline-primary:hover,
.btn-secondary:hover {
    background: var(--primary-black);
    border-color: var(--primary-black);
    color: var(--primary-white);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Ghost-Button (für dunkle Hintergründe) */
.btn-outline-secondary,
.btn-ghost {
    background: transparent;
    color: var(--primary-white);
    border-color: var(--primary-white);
}

.btn-outline-secondary:hover,
.btn-ghost:hover {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    color: var(--primary-white);
    text-decoration: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* ===== FORM SYSTEM - Pink-Schwarz-Weiß Design ===== */
.form-control {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--primary-white);
    border: 2px solid var(--border-light);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-pink);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(225, 1, 135, 0.1);
}

.form-select {
    display: block;
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--primary-white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23E10187' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    transition: all 0.3s ease;
    appearance: none;
}

.form-select:focus {
    border-color: var(--primary-pink);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(225, 1, 135, 0.1);
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ===== NAVIGATION SYSTEM ===== */
.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.navbar-expand-lg .navbar-collapse {
    display: flex;
    flex-basis: auto;
    justify-content: center;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    align-items: center;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-item {
    margin-bottom: 0;
}

.dropdown {
    position: relative;
}

/* Dropdown Navigation - anthracite styling */
.navbar-nav .nav-item.dropdown {
    background-color: #2d2d2d;
    border-radius: 6px;
    margin: 0 4px;
    border: 1px solid #1a1a1a;
}

.navbar-nav .nav-item.dropdown .primary-nav__link {
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    min-height: 42px;
    display: flex;
    align-items: center;
    font-weight: 700;
    border-radius: 6px;
    border-bottom: none;
}

.navbar-nav .nav-item.dropdown .primary-nav__link:hover {
    color: #ffffff;
    background-color: #525252;
    border-bottom: none;
}

.dropdown-toggle {
    position: relative;
}

.dropdown-toggle::after {
    content: "";
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: left;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--text-primary);
    text-align: inherit;
    text-decoration: none;
    background-color: transparent;
    border: 0;
}

.dropdown-item:hover {
    color: var(--primary-color);
    background-color: #f8f9fa;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* ===== NAVBAR TOGGLER (for mobile) - CSS Only ===== */
.mobile-menu-toggle {
    display: none; /* Hidden checkbox for CSS-only toggle */
}

.navbar-toggler {
    display: none; /* Hidden by default on desktop */
    padding: 0.5rem;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.375rem;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}

/* Animate hamburger to X when checked */
.mobile-menu-toggle:checked ~ .navbar-toggler .hamburger-icon {
    background-color: transparent;
}

.mobile-menu-toggle:checked ~ .navbar-toggler .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle:checked ~ .navbar-toggler .hamburger-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile menu visibility */
.navbar-collapse {
    display: none;
}

/* Mobile navbar styles */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block; /* Show hamburger on mobile */
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2B2B2B;
        border-top: 1px solid #1F1F1F;
        box-shadow: 0 2px 8px rgba(0,0,0,0.5);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }

    .mobile-menu-toggle:checked ~ .navbar-collapse {
        max-height: 500px; /* Enough for menu items */
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        padding: 0.5rem 0;
    }

    .nav-item {
        width: 100%;
    }

    .primary-nav__link {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .primary-nav__link:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .primary-nav__link.active {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .dropdown-menu {
        position: static;
        display: block;
        width: 100%;
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .dropdown-item {
        padding: 0.5rem 1rem;
    }
}

@media (min-width: 992px) {
    .navbar-toggler {
        display: none; /* Hide hamburger on desktop */
    }

    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        position: static;
        box-shadow: none;
    }
}

/* ===== RATIO (for responsive embeds) ===== */
.ratio {
    position: relative;
    width: 100%;
}

.ratio::before {
    display: block;
    padding-top: var(--aspect-ratio);
    content: "";
}

.ratio > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ratio-16x9 {
    --aspect-ratio: 56.25%;
}

/* ===== ALERT SYSTEM ===== */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error,
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* ===== TEXT UTILITIES ===== */
.text-muted {
    color: var(--text-muted);
}

.small {
    font-size: 0.875em;
}

/* ===== HORIZONTAL RULE ===== */
hr {
    margin: 1rem 0;
    color: inherit;
    background-color: currentColor;
    border: 0;
    opacity: 0.25;
}

hr:not([size]) {
    height: 1px;
}

.main-content {
    flex: 1;
}

.content-wrapper {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -4rem;
    left: 1rem;
    background: #1f2937;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 0.5rem;
    z-index: 1000;
}

.skip-link:focus {
    top: 1rem;
}

/* ===== HEADER ===== */
/* ===== HEADER STYLES ===== */
.site-header {
    background: var(--primary-white);
    border-bottom: 3px solid var(--primary-pink);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: none;
}

.site-header__logo img {
    max-width: 160px;
    max-height: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.site-header__contacts {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.site-header__contacts a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-header__contacts a:hover {
    color: var(--primary-pink);
    text-decoration: underline;
}

.site-header__contacts .address a,
.site-header__contacts .email a,
.site-header__contacts .phone a,
.site-header__contacts .vat span {
    color: var(--text-secondary);
}

/* Social Links - Professional Style */
.social-links-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
}

.social-link-item {
    color: #666;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link-item:hover {
    color: #d34f9d;
    transform: translateY(-2px);
}

.social-link-item svg {
    width: 20px;
    height: 20px;
}

.site-header__languages-widget img {
    width: 20px;
    height: auto;
    margin: 0 1px;
}

/* Header right section layout */
.header-right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.header-top-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* User Profile Menu - CSS-only Dropdown */
.user-profile-menu {
    position: relative;
    display: inline-block;
}

.user-profile-toggle {
    display: none;
}

.user-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--primary-pink);
    transition: all var(--transition-fast);
    display: block;
    background: white;
}

.user-profile-avatar:hover {
    border-color: var(--primary-pink-hover);
    transform: scale(1.05);
}

.user-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-profile-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1100;
}

.user-profile-toggle:checked ~ .user-profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-profile-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-off-white);
}

.user-profile-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.user-profile-email {
    font-size: 0.8rem;
    color: var(--text-secondary);
    word-break: break-word;
}

.user-profile-links {
    padding: 0.5rem 0;
}

.user-profile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.user-profile-link:hover {
    background: var(--bg-off-white);
    color: var(--primary-pink);
}

.user-profile-link svg {
    flex-shrink: 0;
}

.user-profile-logout {
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.user-profile-logout:hover {
    color: #dc3545;
    background: #fff5f5;
}

/* Schließen des Dropdowns beim Klick außerhalb */
.user-profile-toggle:checked ~ label::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1099;
}


.site-header__languages-widget {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.125rem;
    max-width: 280px;
    justify-content: flex-end;
}

@media (max-width: 767px) {
    .header-right-section {
        align-items: center;
        text-align: center;
    }

    .header-top-row {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-header__languages-widget {
        justify-content: center;
        max-width: 100%;
    }
}

.primary-nav {
    background: #2B2B2B;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(255, 255, 255, 0.02) 35px,
        rgba(255, 255, 255, 0.02) 70px
    );
    border-top: 1px solid #1F1F1F;
    border-bottom: 1px solid #1F1F1F;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.primary-nav .navbar {
    padding: 0;
    position: relative;
}

.primary-nav__link {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 20px 18px;
    transition: all 0.3s ease;
    position: relative;
}

.primary-nav__link.active {
    background: linear-gradient(90deg, var(--primary-pink), #d34f9d);
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    color: white;
}

.primary-nav__link:hover {
    color: var(--primary-pink);
    text-decoration: none;
}

/* Dropdown Menu Styling */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1F1F1F; /* Dunkleres Anthrazit */
    min-width: 250px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    border-top: 3px solid var(--primary-pink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1100;
    border-radius: 0 0 4px 4px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Language Selector Dropdown Styling */
.nav-item.dropdown .dropdown-toggle::after {
    content: ' ▾';
    font-size: 12px;
    margin-left: 5px;
}

.dropdown-menu.language-selector {
    min-width: 200px;
    padding: 10px 0;
}

.language-selector .dropdown-item {
    color: #ffffff;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    font-size: 13px;
}

.language-selector .dropdown-item:hover {
    background: linear-gradient(90deg, #a70082, #d34f9d);
    color: #ffffff;
    border-left-color: var(--primary-pink);
}

.language-selector .dropdown-item img {
    width: 16px;
    height: 12px;
    margin-right: 8px;
    object-fit: cover;
    border-radius: 2px;
}

.dropdown-item {
    color: #CCCCCC;
    padding: 12px 20px;
    display: block;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(225, 1, 135, 0.1);
    color: #FFFFFF;
    border-left-color: var(--primary-pink);
    padding-left: 25px;
    text-decoration: none;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 6rem;
    flex-wrap: wrap;
}

/* Brand */
.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
    font-size: 1.8rem;
}

.brand-logo {
    height: 3.5rem;
    margin-right: 1rem;
    max-width: 200px;
    object-fit: contain;
}

.brand-text {
    color: #0066cc;
    font-weight: 600;
    font-size: 1.8rem;
}

.brand-subtitle {
    color: #666666;
    font-weight: 400;
    font-size: 1.4rem;
    margin-left: 0.5rem;
}

/* Navigation */
.main-nav .nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #666666;
    border-radius: 0;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #0066cc;
    background-color: transparent;
    border-bottom-color: #0066cc;
}

.nav-icon {
    margin-right: 0.5rem;
    font-size: 1.4rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    width: 3rem;
    height: 3rem;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger {
    width: 2rem;
    height: 2px;
    background: #374151;
    margin: 2px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .brand-logo {
        height: 3rem;
        max-width: 150px;
    }

    .brand-text {
        font-size: 1.6rem;
    }

    .brand-subtitle {
        font-size: 1.2rem;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .mobile-menu-toggle:checked ~ .main-nav {
        display: block;
    }

    .mobile-menu-button {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-link {
        margin: 0 1rem;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle:checked ~ .mobile-menu-button .hamburger:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle:checked ~ .mobile-menu-button .hamburger:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle:checked ~ .mobile-menu-button .hamburger:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* ===== FLASH MESSAGES ===== */
.flash-messages {
    background: transparent;
}

.alert {
    padding: 0.6rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    position: relative;
    font-size: 0.75rem;
}

.alert-success {
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-warning {
    background-color: #fefce8;
    border: 1px solid #fef08a;
    color: #a16207;
}

.alert-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.alert-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.alert-message {
    flex: 1;
}

.alert-close {
    margin-left: auto;
}

.alert-close-button {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
    list-style: none;
}

.alert-close-button:hover {
    opacity: 1;
}

.alert-close[open] ~ * {
    display: none;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-wrapper {
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumb-link:hover {
    color: #3b82f6;
}

.breadcrumb-current {
    color: #1f2937;
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 1rem;
    color: #9ca3af;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #333333;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 0.65rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.page-title-section {
    flex: 1;
    min-width: 0;
}

.page-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    color: #1f2937;
    font-size: 1rem;
}

.title-icon {
    margin-right: 0.35rem;
    font-size: 1rem;
}

.page-subtitle {
    color: #6b7280;
    font-size: 0.65rem;
}

.page-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    /* background: none removed - let button classes (btn-primary, btn-secondary, etc.) set background */
}

/* Duplicate .btn-primary removed - using new pink design above */

/* Duplicate .btn-secondary removed - using new design above */

.btn-danger {
    background: #ef4444;
    border-color: #ef4444;
    color: var(--primary-white);
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: var(--primary-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.btn-large {
    padding: 8px 16px;
    font-size: 0.75rem;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-disabled:hover {
    opacity: 0.5;
}

.btn-icon {
    margin-right: 0.25rem;
    font-size: 0.9rem;
}

.btn:last-child .btn-icon {
    margin-right: 0;
    margin-left: 0.25rem;
}

/* ===== FORMS ===== */
.form-container {
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-sections {
    padding: 0;
}

.form-section {
    padding: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    color: #1f2937;
    font-size: 0.75rem;
    font-weight: 600;
}

.section-icon {
    margin-right: 0.25rem;
    font-size: 0.7rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-weight: 500;
    margin-bottom: 0.15rem;
    color: #374151;
    font-size: 0.7rem;
}

label.required::after {
    content: " *";
    color: #ef4444;
}

.form-input,
.form-textarea,
.form-select {
    padding: 4px 6px;
    border: 1px solid var(--border-light);
    border-radius: 2px;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    background-color: var(--primary-white);
    color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 1px rgba(225, 1, 135, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 3rem;
}

.field-help {
    margin-top: 0.15rem;
    font-size: 0.65rem;
    color: #6b7280;
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
    font-size: 0.7rem;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    transform: scale(0.85);
}

.checkbox-text {
    display: flex;
    flex-direction: column;
}

.checkbox-help {
    font-size: 0.65rem;
    color: #6b7280;
    font-weight: normal;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.primary-actions,
.secondary-actions {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-actions,
    .secondary-actions {
        justify-content: center;
    }
}

/* ===== TABLES ===== */
.table-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #f9fafb;
    padding: 0.75rem 0.5rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

td {
    padding: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: #f9fafb;
}

/* ===== TAGS ===== */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: var(--tag-color, #6b7280);
    color: white;
    border-radius: 9999px;
    font-size: 1.2rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Tag Selection */
.tags-selection {
    margin-top: 0.5rem;
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag-checkbox {
    display: flex;
    align-items: center;
    padding: 0.4rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-checkbox:hover {
    border-color: #0066cc;
    background-color: #f8f9fa;
}

.tag-checkbox input[type="checkbox"] {
    margin-right: 0.35rem;
    transform: scale(0.9);
}

.tag-label {
    flex: 1;
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.4rem;
    background-color: var(--tag-color, #6b7280);
    color: white;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-right: 0.25rem;
}

.tag-count {
    font-size: 0.65rem;
    color: #6b7280;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 1.2rem;
    font-weight: 500;
}

.status-yes {
    background-color: #dcfce7;
    color: #166534;
}

.status-no {
    background-color: #fef2f2;
    color: #991b1b;
}

/* ===== FILTERS ===== */
.filters-section {
    background: white;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.filters-form {
    width: 100%;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-label {
    font-weight: 500;
    font-size: 0.75rem;
    color: #6b7280;
}

.filter-input,
.filter-select {
    padding: 0.4rem 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    font-size: 0.85rem;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filter-actions {
        justify-content: center;
    }
}

/* ===== CATEGORY TILES ===== */
.category-tiles-wrapper {
    margin-bottom: 2rem;
}

/* Alle-Tile (flach, horizontal) */
.category-tile-all {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.7rem 2rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-tile-all:hover {
    border-color: var(--primary-pink);
    box-shadow: 0 4px 16px rgba(255, 0, 128, 0.15);
    transform: translateY(-2px);
}

.category-tile-all.active {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 0, 128, 0.25);
}

.category-tile-all .tile-icon {
    font-size: 2rem;
}

.category-tile-all.active .tile-icon,
.category-tile-all.active .tile-name,
.category-tile-all.active .tile-count {
    color: white;
}

/* Kategorie-Grid (alle anderen) */
.category-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 160px;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-tile:hover {
    border-color: var(--primary-pink);
    box-shadow: 0 4px 16px rgba(255, 0, 128, 0.15);
    transform: translateY(-2px);
}

.category-tile.active {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 0, 128, 0.25);
}

.tile-icon {
    font-size: 3rem;
}

.category-tile.active .tile-icon,
.category-tile.active .tile-name,
.category-tile.active .tile-count {
    color: white;
}

.tile-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-black);
    text-align: center;
    line-height: 1.3;
}

.tile-count {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .category-tiles {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .category-tile {
        min-height: 120px;
        padding: 1.5rem 1rem;
    }

    .tile-icon {
        font-size: 2.5rem;
    }

    .tile-name {
        font-size: 0.9rem;
    }

    .category-tile-all {
        padding: 1rem 1.5rem;
    }
}

/* ===== PAGINATION ===== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    text-decoration: none;
    color: #374151;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.pagination .page-link.active {
    background-color: #0066cc;
    border-color: #0066cc;
    color: white;
}

.pagination .page-ellipsis {
    padding: 0 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-title {
    margin-bottom: 1rem;
    color: #374151;
}

.empty-message {
    color: #6b7280;
    margin-bottom: 2rem;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== CONTACT-SPECIFIC STYLES ===== */
.contacts-table .contact-link {
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
}

.contacts-table .contact-link:hover {
    color: #3b82f6;
}

.contacts-table .email-link {
    color: #3b82f6;
    text-decoration: none;
}

.contacts-table .email-link:hover {
    text-decoration: underline;
}

.contact-actions .action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.contact-actions .action-buttons form {
    display: flex;
    margin: 0;
}

/* Modern Action Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
    text-decoration: none;
}

.action-btn svg {
    stroke: currentColor;
}

.action-view:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #3b82f6;
}

.action-edit:hover {
    background: #dcfce7;
    border-color: #22c55e;
    color: #22c55e;
}

.action-delete:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #ef4444;
}

/* Row Alternating Colors */
.contacts-table .row-even {
    background-color: #f5f5f5; /* Hellgrau */
}

.contacts-table .row-odd {
    background-color: #c0c0c0; /* Silber */
}

.contacts-table .row-even:hover,
.contacts-table .row-odd:hover {
    background-color: #E10187; /* Pink */
    color: white;
}

/* Row Edit Links */
.row-edit-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    padding: 6px 4px;
    margin: -6px -4px;
}

.row-edit-link:hover {
    color: inherit;
    text-decoration: none;
}

.phone-link {
    color: inherit;
    text-decoration: none;
}

.phone-link:hover {
    text-decoration: underline;
}

.tag-more {
    background-color: #e5e7eb;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 1rem;
}

/* ===== DETAIL VIEWS ===== */
.contact-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-section {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 2rem;
}

.detail-rows {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    align-items: start;
}

.detail-label {
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0;
}

.detail-value {
    color: #1f2937;
}

.contact-link {
    color: #3b82f6;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.actions-group {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 2rem;
}

.actions-group h3 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.6rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 768px) {
    .contact-details {
        grid-template-columns: 1fr;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 3px solid #007bff;
}

.service-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.service-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #666;
    line-height: 1.4;
}

.service-highlight {
    background: #e8f4f8;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #17a2b8;
}

.service-highlight h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #17a2b8;
}

.service-highlight p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #666;
}

/* Subtitle styling */
.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* Legal content styling */
.legal-content {
    max-width: 800px;
    line-height: 1.6;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: #555;
}

.legal-content em {
    color: #888;
    font-size: 0.9rem;
}

/* ===== IMPORT/EXPORT ===== */
.import-result {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 2rem;
    margin-bottom: 2rem;
}

.result-summary h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.stat-item.success {
    background-color: #dcfce7;
    border-color: #bbf7d0;
}

.stat-item.info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
}

.stat-item.error {
    background-color: #fef2f2;
    border-color: #fecaca;
}

.stat-value {
    display: block;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 1.2rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* File Upload */
.file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    background-color: #f9fafb;
}

.file-label {
    font-weight: 500;
    margin-bottom: 1rem;
}

.file-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1.4rem;
}

/* Format Help */
.format-help {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.column-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.column-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.column-desc {
    font-size: 1.2rem;
    color: #6b7280;
}

.required {
    color: #ef4444;
    font-size: 1.2rem;
    font-weight: normal;
}

.format-example {
    background: white;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 1.2rem;
    line-height: 1.5;
    overflow-x: auto;
}

/* Import History */
.import-history {
    margin-top: 3rem;
}

.import-history h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.history-table-container {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* ===== TAG MANAGEMENT ===== */
.tags-management {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.create-tag-section,
.existing-tags-section {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 2rem;
}

.tag-form .form-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1.5rem;
    align-items: end;
}

.color-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.color-input {
    width: 5rem;
    height: 4rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
}

.color-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-preset {
    width: 3rem;
    height: 3rem;
    border: 2px solid transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.color-preset:hover {
    border-color: #374151;
}

/* Tag Cards */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.tag-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: border-color 0.2s ease;
}

.tag-card:hover {
    border-color: #0066cc;
}

.tag-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.tag-display {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--tag-color, #6b7280);
    color: white;
    border-radius: 9999px;
    font-weight: 500;
}

.tag-usage {
    font-size: 1.2rem;
    color: #6b7280;
}

.tag-actions {
    display: flex;
    gap: 0.5rem;
}

/* Tag Edit Form */
.tag-edit-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edit-fields {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.edit-fields input[type="text"] {
    flex: 1;
}

.edit-fields input[type="color"] {
    width: 4rem;
    height: 4rem;
}

.edit-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .tag-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .edit-fields {
        flex-direction: column;
        align-items: stretch;
    }

    .tag-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
}

/* ===== FOOTER ===== */
/* ===== FOOTER STYLES ===== */
.site-footer {
    background-color: var(--primary-black);
    border-top: none;
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    color: var(--primary-white);
}

.footer__company {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-pink);
}

.footer__company a {
    color: var(--primary-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__link {
    color: var(--primary-white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer__link:hover {
    color: var(--primary-pink);
    opacity: 1;
    text-decoration: none;
}

.footer-nav__link {
    color: var(--primary-white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
}

.footer-nav__link:hover {
    color: var(--primary-pink);
    opacity: 1;
    text-decoration: none;
}

/* ===== HERO SLIDER ===== */
.slider__image {
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    background-color: #eee;
    padding: 3rem 0;
}

.content-inner {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
}

.listings-section {
    background-color: #ffffff;
    padding: 3rem 0;
}

/* ===== LISTING CARDS ===== */
.listing {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: box-shadow 0.2s ease;
}

.listing:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.listing-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.listing-info {
    padding: 1rem;
}

.listing-info__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.listing-info__title a {
    color: var(--text-primary);
    text-decoration: none;
}

.listing-info__title a:hover {
    color: var(--primary-color);
}

.listing-info__price {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.listing-info__location {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.listing-info__description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.listing-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin: 0.25rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.listing-btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    text-decoration: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.6rem;
    font-weight: 500;
    color: #333333;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.75rem;
}

.footer-info {
    color: #666666;
    line-height: 1.6;
}

.footer-address {
    font-style: normal;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.footer-phone {
    margin-bottom: 0.5rem;
}

.footer-phone .contact-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.footer-phone .contact-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

.footer-tax {
    font-size: 1.2rem;
    color: #999999;
    margin-bottom: 0;
}

.footer-nav {
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #666666;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: #999999;
    font-size: 1.2rem;
}

.footer-powered {
    color: #999999;
    font-size: 1.1rem;
}

.powered-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.powered-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .main-footer {
        padding: 2rem 0 1rem;
    }
}

@media (max-width: 480px) {
    .footer-title {
        font-size: 1.4rem;
    }

    .footer-info,
    .footer-links {
        font-size: 1.2rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-muted {
    color: #6b7280;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 60%;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .page-actions {
        justify-content: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .main-content {
        padding: 1rem 0;
    }

    .page-header {
        margin-bottom: 2rem;
    }
}

/* ===== DASHBOARD STYLES ===== */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.stat-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.stat-icon {
    font-size: 1rem;
    opacity: 0.7;
}

.stat-body {
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1;
}

.stat-value-split {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-value-split .stat-active,
.stat-value-split .stat-inactive {
    font-size: 1.3rem;
    font-weight: 600;
}

.stat-value-split .stat-active {
    color: #10b981;
}

.stat-value-split .stat-inactive {
    color: #ef4444;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.stat-footer {
    border-top: 1px solid #f3f4f6;
    padding-top: 1rem;
}

.stat-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.stat-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Dashboard Actions */
.dashboard-actions {
    margin-bottom: 4rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333333;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    color: #333333;
    border-color: #0066cc;
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.action-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.action-desc {
    font-size: 1.2rem;
    color: #6b7280;
    text-align: center;
}

/* Dashboard Recent Activity */
.dashboard-recent {
    margin-bottom: 3rem;
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.recent-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.recent-title {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #374151;
}

.recent-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.375rem;
    gap: 1rem;
}

.recent-main {
    flex: 1;
    min-width: 0;
}

.recent-meta {
    font-weight: normal;
    color: #6b7280;
}

.recent-status {
    display: flex;
    align-items: center;
}

.recent-time {
    font-size: 1.1rem;
    color: #9ca3af;
    white-space: nowrap;
}

.recent-empty {
    padding: 2rem;
    text-align: center;
    color: #9ca3af;
    font-style: italic;
}

.recent-footer {
    border-top: 1px solid #f3f4f6;
    padding-top: 1rem;
    text-align: right;
}

.recent-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.recent-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* ==========================================================================
   USER MANAGEMENT STYLES
   ========================================================================== */

/* User List & Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.user-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.user-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.user-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.user-info h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
}

.user-email {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

.user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Role and Status Badges */
.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.role-admin {
    background: #fef2f2;
    color: #dc2626;
}

.role-manager {
    background: #f0f9ff;
    color: #0284c7;
}

.role-user {
    background: #f0fdf4;
    color: #16a34a;
}

.role-readonly {
    background: #f9fafb;
    color: #6b7280;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-active {
    background: #f0fdf4;
    color: #16a34a;
}

.status-inactive {
    background: #f9fafb;
    color: #6b7280;
}

.status-suspended {
    background: #fef2f2;
    color: #dc2626;
}

/* User Details View */
.user-content {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.user-info-section {
    border: 1px solid #f3f4f6;
    border-radius: 0.375rem;
    padding: 1.5rem;
}

.user-info-section h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item.span-2 {
    grid-column: span 2;
}

.info-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.info-value {
    color: #6b7280;
    font-size: 1rem;
}

.form-display {
    padding: 0.5rem 0;
    color: #6b7280;
}

/* Verification Badges */
.verification-badge {
    margin-left: 0.5rem;
    font-size: 0.875rem;
}

.verification-badge.verified {
    color: #16a34a;
}

.verification-badge.unverified {
    color: #dc2626;
}

/* Permissions */
.permissions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.permission-tag {
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    color: #374151;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.permission-category h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.5rem;
}

.permission-item {
    margin-bottom: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
}

.checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkbox-text small {
    color: #6b7280;
    font-size: 0.8rem;
}

/* Activities */
.activities-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
}

.activities-timeline {
    position: relative;
}

.activities-timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #f3f4f6;
}

.timeline-date-header {
    margin: 2rem 0 1rem 0;
    position: relative;
}

.timeline-date-header h4 {
    background: white;
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.activity-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: white;
    border: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    z-index: 1;
}

.activity-content {
    flex: 1;
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
    min-width: 0;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.user-link {
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
}

.user-link:hover {
    text-decoration: underline;
}

.activity-time {
    color: #6b7280;
    font-size: 0.9rem;
    text-align: right;
    white-space: nowrap;
}

.activity-description {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.activity-resource {
    color: #6b7280;
    font-style: italic;
}

.activity-meta {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.activity-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.meta-item {
    font-size: 0.9rem;
    color: #6b7280;
}

.meta-item strong {
    color: #374151;
}

.action-badge {
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.action-login {
    background: #f0fdf4;
    color: #16a34a;
}

.action-logout {
    background: #f9fafb;
    color: #6b7280;
}

.action-create {
    background: #eff6ff;
    color: #2563eb;
}

.action-update {
    background: #fef3c7;
    color: #d97706;
}

.action-delete {
    background: #fef2f2;
    color: #dc2626;
}

.action-view {
    background: #f0f9ff;
    color: #0284c7;
}

.activity-metadata details {
    margin-top: 0.5rem;
}

.activity-metadata summary {
    cursor: pointer;
    font-size: 0.9rem;
    color: #6b7280;
}

.metadata-json {
    background: #f3f4f6;
    border-radius: 0.25rem;
    padding: 0.75rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    white-space: pre-wrap;
    overflow-x: auto;
}

.preferences-json {
    background: #f3f4f6;
    border-radius: 0.25rem;
    padding: 0.75rem;
    font-size: 0.9rem;
    white-space: pre-wrap;
    overflow-x: auto;
}

.activities-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Filter Section for Activities */
.filter-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.filter-form {
    margin: 0;
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr auto;
    gap: 0.75rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.75rem;
}

.filter-select,
.filter-input {
    padding: 0.4rem 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    font-size: 0.85rem;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background: #f9fafb;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.25rem 0;
}

.text-danger {
    color: #dc2626 !important;
}

.text-warning {
    color: #d97706 !important;
}

.text-muted {
    color: #6b7280 !important;
}

/* Profile specific styles */
.profile-content {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
}

/* Mobile Responsiveness for Users */
@media (max-width: 768px) {
    .users-grid {
        grid-template-columns: 1fr;
    }

    .user-info-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .activity-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .activity-time {
        text-align: left;
    }

    .activity-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .permissions-grid {
        grid-template-columns: 1fr;
    }

    .activities-timeline::before {
        display: none;
    }

    .activity-icon {
        position: relative;
    }
}

/* ==========================================================================
   AUTHENTICATION STYLES
   ========================================================================== */

/* Auth Container */
.auth-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-subtitle {
    color: #6b7280;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Auth Forms */
.auth-form {
    margin: 0;
}

.auth-form .form-section {
    margin-bottom: 1.5rem;
}

.auth-form .form-section:last-child {
    margin-bottom: 0;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Auth Actions */
.auth-actions {
    margin: 2rem 0 1.5rem 0;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.auth-links p {
    margin: 0.5rem 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.auth-links .btn {
    margin: 0.5rem 0;
}

.link-secondary {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.link-secondary:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* Auth Separator */
.auth-separator {
    margin: 1rem 0;
    position: relative;
}

.auth-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.auth-separator span {
    background: white;
    color: #6b7280;
    font-size: 0.875rem;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Remember Me & Terms */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #3b82f6;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Password Strength */
.form-help {
    transition: color 0.2s;
}

/* Mobile Auth */
@media (max-width: 640px) {
    .auth-container {
        padding: 1rem;
        min-height: 50vh;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 0.75rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .auth-subtitle {
        font-size: 0.9rem;
    }
}

/* Error Page */
.error-content {
    text-align: center;
    padding: 4rem 2rem;
}

.error-title {
    font-size: 8rem;
    font-weight: 700;
    color: #e5e7eb;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-subtitle {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: #374151;
}

.error-message {
    font-size: 1.6rem;
    color: #6b7280;
    margin-bottom: 3rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Status Badges for Dashboard */
.status-new { background: #dbeafe; color: #1e40af; }
.status-open { background: #fef3c7; color: #d97706; }
.status-in_progress { background: #e0e7ff; color: #5b21b6; }
.status-closed { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fef2f2; color: #991b1b; }

/* Section Titles */
.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    width: 2px;
    height: 1rem;
    background: #0066cc;
    margin-right: 0.5rem;
    border-radius: 1px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .recent-grid {
        grid-template-columns: 1fr;
    }

    .recent-item {
        flex-direction: column;
        align-items: stretch;
    }

    .recent-time {
        align-self: flex-end;
    }

    .error-title {
        font-size: 6rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .main-header,
    .breadcrumb-wrapper,
    .page-actions,
    .form-actions,
    .action-buttons,
    .mobile-menu-button,
    .dashboard-actions {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .stat-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* =========================
   LOGIN & USER AUTHENTICATION
   ========================= */

/* User Actions in Header */
.user-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.login-btn,
.btn-inquiry {
    background: linear-gradient(90deg, #a70082, #d34f9d);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.login-btn:hover,
.btn-inquiry:hover {
    background: linear-gradient(90deg, #8a0069, #b8408a);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167, 0, 130, 0.3);
}

.user-menu {
    position: relative;
}

.user-info {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.user-info:hover {
    background-color: #e9ecef;
}

.user-name {
    font-weight: 500;
    color: #333333;
    margin-right: 0.5rem;
}

.user-role {
    font-size: 0.875rem;
    color: #666666;
    text-transform: capitalize;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 180px;
    margin-top: 0.25rem;
    display: none;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #333333;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #333333;
    text-decoration: none;
}

.dropdown-item.logout-link {
    border-top: 1px solid #e0e0e0;
    color: #dc3545;
}

.dropdown-item.logout-link:hover {
    background-color: #f8d7da;
    color: #dc3545;
}

/* Login Button */
.login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.login-btn:hover {
    background: var(--primary-hover);
    color: white;
}

.login-icon {
    font-size: 1rem;
}

/* User Menu (eingeloggt) */
.user-menu {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-info:hover {
    background: var(--bg-lighter);
}

.user-icon {
    font-size: 1.2rem;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    margin-top: 0.25rem;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.dropdown-item.logout-link {
    border-top: 1px solid var(--border-color);
    color: var(--danger-color);
}

.dropdown-item.logout-link:hover {
    background: var(--danger-bg);
    color: var(--danger-color);
}

.item-icon {
    font-size: 1rem;
    width: 1.2rem;
    text-align: center;
}

/* Login Page */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.login-header h1 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.login-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.login-form {
    padding: 2rem;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.login-footer {
    padding: 1rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-muted);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.auth-tab:hover {
    color: var(--primary-color);
    text-decoration: none;
    background: rgba(0, 102, 204, 0.05);
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: white;
}

/* Profile Page */
.profile-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.profile-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-info {
    padding: 2rem;
}

.info-group {
    display: flex;
    margin-bottom: 1.5rem;
}

.info-group:last-child {
    margin-bottom: 0;
}

.info-label {
    width: 120px;
    font-weight: 500;
    color: var(--text-muted);
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    color: var(--text-primary);
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.role-badge.role-admin {
    background: var(--danger-bg);
    color: var(--danger-color);
}

.role-badge.role-manager {
    background: var(--warning-bg);
    color: var(--warning-color);
}

.role-badge.role-user {
    background: var(--info-bg);
    color: var(--info-color);
}

.profile-actions {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

/* Error Page */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    text-align: center;
}

.error-content h1 {
    font-size: 4rem;
    margin: 0;
    color: var(--text-muted);
}

.error-content h2 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.error-content p {
    margin: 1rem 0 2rem 0;
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .user-actions {
        order: -1;
        margin-left: 0;
        margin-right: auto;
    }

    .user-info {
        padding: 0.375rem 0.75rem;
        font-size: 0.9rem;
    }

    .user-name {
        display: none;
    }

    .user-role {
        display: none;
    }

    .user-dropdown {
        right: auto;
        left: 0;
    }

    .login-card {
        margin: 0 1rem;
    }

    .login-header,
    .login-form {
        padding: 1.5rem;
    }

    .profile-wrapper {
        padding: 1rem;
    }

    .info-group {
        flex-direction: column;
        gap: 0.25rem;
    }

    .info-label {
        width: auto;
        font-size: 0.9rem;
    }
}

/* =========================
   PUBLIC HOME PAGE
   ========================= */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-icon {
    font-size: 3.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 0 0 2rem 0;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    min-width: 120px;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-title {
    font-size: 2rem;
    margin: 0 0 1rem 0;
}

.cta-subtitle {
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Public Home Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-icon {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 280px;
    }

    .features-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-content,
    .cta-content {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }
}

/* ===== FM MACHINES SPECIFIC STYLES ===== */

/* Bootstrap dropdown enhancements */
.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hero Slider */
.slider__image {
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider__text_wrapper {
    color: #fff;
    text-shadow: 0 0 8px #000, 0 0 4px #000;
}

/* Content Sections */
.content-section {
    background-color: #eee;
    padding: 3rem 0;
}

.content-inner {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
}

/* Listings Section */
.listings-section {
    background-color: #ffffff;
    padding: 3rem 0;
}

.listing {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: box-shadow 0.2s ease;
}

.listing:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.listing-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.listing-info {
    padding: 1rem;
}

.listing-info__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.listing-info__title a {
    color: var(--text-primary);
    text-decoration: none;
}

.listing-info__title a:hover {
    color: var(--primary-color);
}

.listing-info__price {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.listing-info__location {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.listing-info__description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.listing-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin: 0.25rem;
}

.listing-btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
}

/* Footer Enhancements - Pink-Schwarz-Weiß Design */
.site-footer {
    background-color: var(--primary-black);
    border-top: 1px solid var(--border-dark);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
    color: var(--primary-white);
}

.footer__company {
    font-size: 1.25rem;
    font-weight: 600;
}

.footer__company a {
    color: var(--primary-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__company a:hover {
    color: var(--primary-pink);
}

.footer__link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--primary-pink);
    text-decoration: underline;
}

.footer-nav__link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
}

.footer-nav__link:hover {
    color: var(--primary-pink);
    text-decoration: underline;
}

/* Footer bottom section */
.site-footer hr {
    border-color: var(--border-dark);
}

.site-footer .text-muted {
    color: var(--text-light) !important;
}

.site-footer .text-muted a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.site-footer .text-muted a:hover {
    color: var(--primary-pink);
}

/* ===== DYNAMISCHE DESIGN-ELEMENTE ===== */

/* 1. HERO-SECTION MIT WOW-EFFEKT */
.hero-dynamic {
    background: linear-gradient(-45deg, var(--primary-pink), var(--primary-black), var(--primary-pink), var(--text-primary));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Glitch-Effect für Headlines */
.glitch {
    position: relative;
    color: var(--primary-white);
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0.05em 0 0 var(--primary-pink), -0.05em -0.025em 0 #00FFFC;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 90%, 100% {
        text-shadow: 0.05em 0 0 var(--primary-pink), -0.05em -0.025em 0 #00FFFC;
    }
    5%, 60% {
        text-shadow: 0.025em 0 0 var(--primary-pink), -0.05em -0.025em 0 #00FFFC;
    }
    15% {
        text-shadow: -0.05em -0.025em 0 var(--primary-pink), 0.025em 0.025em 0 #00FFFC;
    }
}

/* 2. INTERAKTIVE 3D-KARTEN */
.card-3d {
    transform-style: preserve-3d;
    transition: transform var(--transition-slow);
    position: relative;
    background: var(--primary-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(-10deg) scale(1.05);
}

.card-3d::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary-pink), transparent, var(--primary-pink));
    border-radius: 10px;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.card-3d:hover::before {
    opacity: 1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 3. LIQUID BUTTON EFFEKTE */
.btn-liquid {
    position: relative;
    padding: 16px 32px;
    background: var(--primary-pink);
    color: var(--primary-white);
    overflow: hidden;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
}

.btn-liquid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn-liquid:hover::before {
    width: 300px;
    height: 300px;
}

/* 4. NEON TEXT EFFEKTE */
.neon-text {
    color: var(--primary-white);
    text-shadow:
        0 0 10px var(--primary-pink),
        0 0 20px var(--primary-pink),
        0 0 30px var(--primary-pink),
        0 0 40px var(--primary-pink);
    animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% {
        text-shadow:
            0 0 10px var(--primary-pink),
            0 0 20px var(--primary-pink),
            0 0 30px var(--primary-pink),
            0 0 40px var(--primary-pink);
    }
    50% {
        text-shadow:
            0 0 5px var(--primary-pink),
            0 0 10px var(--primary-pink),
            0 0 15px var(--primary-pink),
            0 0 20px var(--primary-pink);
    }
}

/* 5. GEOMETRISCHE FLOATING SHAPES */
.float-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
    z-index: -1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
    }
    66% {
        transform: translateY(-60px) rotate(240deg);
    }
}

.triangle-shape {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid var(--primary-pink);
}

.circle-shape {
    width: 100px;
    height: 100px;
    border: 3px dashed var(--primary-pink);
    border-radius: 50%;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 6. PINK PULSE ANIMATION */
.btn-pulse {
    animation: pinkPulse 2s infinite;
}

@keyframes pinkPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 1, 135, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(225, 1, 135, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(225, 1, 135, 0);
        transform: scale(1);
    }
}

/* 7. TEXT REVEAL EFFEKTE */
.reveal-text {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.reveal-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--primary-pink);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.reveal-text:hover::after {
    transform: translateY(0);
}

.reveal-text:hover {
    color: transparent;
}

/* 8. SCROLL INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-pink);
    border-radius: 25px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-pink);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0% { top: 10px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* 9. SPLIT COLOR TEXT */
.split-text {
    background: linear-gradient(90deg, var(--primary-black) 50%, var(--primary-pink) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    transition: background-position var(--transition-slow);
}

.split-text:hover {
    background-position: -100% 0;
}

/* 10. LOADING ANIMATIONS */
.loader-morph {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.loader-dot {
    width: 15px;
    height: 15px;
    background: var(--primary-pink);
    border-radius: 50%;
    animation: morph 1.5s ease-in-out infinite;
}

.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes morph {
    0%, 100% {
        transform: scale(1);
        background: var(--primary-pink);
        border-radius: 50%;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        background: var(--primary-black);
        border-radius: 0;
    }
}

/* ===== RESPONSIVE OPTIMIERUNGEN FÜR MOBILE ===== */
@media (max-width: 768px) {
    /* Hero-Section Mobile Anpassungen */
    .hero-dynamic {
        min-height: 70vh;
        padding: 2rem 0;
    }

    .glitch {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        animation-duration: 3s; /* Langsamere Animation auf Mobile */
    }

    /* 3D-Effekte auf Mobile reduzieren */
    .card-3d:hover {
        transform: scale(1.02) translateY(-5px); /* Weniger intensive 3D-Effekte */
    }

    /* Floating Shapes kleiner auf Mobile */
    .float-shape {
        opacity: 0.05; /* Noch dezenter */
        animation-duration: 25s; /* Langsamere Animation */
    }

    .triangle-shape {
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-bottom: 30px solid var(--primary-pink);
    }

    .circle-shape {
        width: 60px;
        height: 60px;
    }

    /* Pulse-Animation reduzieren */
    @keyframes pinkPulse {
        0% {
            box-shadow: 0 0 0 0 rgba(225, 1, 135, 0.5);
            transform: scale(1);
        }
        70% {
            box-shadow: 0 0 0 5px rgba(225, 1, 135, 0);
            transform: scale(1.02);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(225, 1, 135, 0);
            transform: scale(1);
        }
    }

    /* Neon-Effekte auf Mobile reduzieren */
    .neon-text {
        text-shadow:
            0 0 5px var(--primary-pink),
            0 0 10px var(--primary-pink),
            0 0 15px var(--primary-pink);
    }

    /* Liquid Button Mobile Optimierung */
    .btn-liquid::before {
        transition: width 0.4s ease, height 0.4s ease;
    }

    /* Scroll Indicator kleiner */
    .scroll-arrow {
        width: 25px;
        height: 40px;
    }

    .scroll-arrow::after {
        width: 4px;
        height: 4px;
    }
}

/* Performance-Optimierung: Reduce Motion für Benutzer mit Präferenz */
@media (prefers-reduced-motion: reduce) {
    .hero-dynamic {
        animation: none;
        background: linear-gradient(135deg, var(--primary-pink), var(--primary-black));
    }

    .glitch {
        animation: none;
        text-shadow: none;
    }

    .card-3d:hover {
        transform: scale(1.02);
    }

    .float-shape {
        animation: none;
    }

    .btn-pulse {
        animation: none;
    }

    .neon-text {
        animation: none;
        text-shadow: 0 0 5px var(--primary-pink);
    }

    .scroll-arrow::after {
        animation: none;
        top: 20px;
        opacity: 1;
    }
}

/* ===== NAVIGATION ANTHRAZIT-DESIGN ERGÄNZUNGEN ===== */

/* Mobile Hamburger Menu */
.mobile-menu-button {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger {
    display: block;
    height: 3px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 3px;
    opacity: 1;
    transform: rotate(0deg);
    transition: all 0.3s ease;
}

.hamburger:nth-child(2) {
    background: var(--primary-pink);
}

/* Mobile Menu Active State */
.mobile-menu-toggle:checked ~ .mobile-menu-button .hamburger:nth-child(1) {
    transform: rotate(135deg);
    background: var(--primary-pink);
    position: relative;
    top: 8px;
}

.mobile-menu-toggle:checked ~ .mobile-menu-button .hamburger:nth-child(2) {
    opacity: 0;
    left: -30px;
}

.mobile-menu-toggle:checked ~ .mobile-menu-button .hamburger:nth-child(3) {
    transform: rotate(-135deg);
    background: var(--primary-pink);
    position: relative;
    top: -8px;
}

/* Logo Styling in Anthrazit Header - Override für Navigation */
.primary-nav .site-header__logo img {
    filter: brightness(0) invert(1);
    max-height: 50px;
}

.primary-nav .site-header__logo:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--primary-pink));
}

/* Header CTA Button */
.header-cta {
    background: var(--primary-pink);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--primary-pink);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.header-cta:hover {
    background: transparent;
    color: var(--primary-pink);
    box-shadow: 0 0 20px rgba(225, 1, 135, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Scroll Effect für Sticky Header */
.primary-nav.scrolled {
    padding: 5px 0;
    background: rgba(43, 43, 43, 0.95);
    backdrop-filter: blur(10px);
}

/* Search Bar in Header */
.header-search {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-right: 20px;
}

.header-search:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-pink);
    box-shadow: 0 0 15px rgba(225, 1, 135, 0.3);
}

.header-search input {
    background: transparent;
    border: none;
    color: #FFFFFF;
    outline: none;
    width: 200px;
    transition: width 0.3s ease;
    font-size: 14px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.header-search:focus-within input {
    width: 250px;
}

.search-icon {
    color: var(--primary-pink);
    margin-left: 10px;
}

/* Responsive Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: flex;
    }

    .primary-nav .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #2B2B2B;
        flex-direction: column;
        padding-top: 80px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 1200;
    }

    .primary-nav .navbar-collapse.show {
        right: 0;
    }

    .primary-nav__link {
        width: 100%;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #1F1F1F;
        margin-left: 20px;
        border-radius: 4px;
        margin-top: 10px;
    }

    .header-search {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

/* ===== FM-MACHINES STYLE LISTINGS ===== */

/* Listings Container */
.listings-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
    max-width: 100%;
    margin: 0;
}

/* Machine Listing Card */
.machine-listing {
    background: var(--primary-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    position: relative;
}

.machine-listing:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Machine Image Container */
.machine-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f9fafb;
}

.machine-image-link {
    display: block;
    height: 100%;
    width: 100%;
}

.machine-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: none;
}

.machine-listing:hover .machine-image {
    transform: none;
}

/* Dummy Image Styling */
.machine-dummy-image {
    object-fit: contain;
    background: #ffffff;
    padding: 1rem;
}

/* Image Placeholder */
.machine-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-off-white), #E5E5E5);
    color: var(--text-secondary);
}

.placeholder-content {
    text-align: center;
}

.placeholder-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.placeholder-text {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Badges */
.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-pink);
    color: var(--primary-white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.condition-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.condition-new {
    background: #10b981;
    color: var(--primary-white);
}

.condition-used {
    background: #f59e0b;
    color: var(--primary-white);
}

.condition-refurbished {
    background: #6366f1;
    color: var(--primary-white);
}

/* Machine Content */
.machine-content {
    padding: 1rem;
}

/* Machine Title */
.machine-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.machine-title-link {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.machine-title-link:hover {
    color: #0066cc;
    text-decoration: none;
}

/* Machine Location */
.machine-location {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.location-icon {
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

/* Machine Description */
.machine-description {
    margin-bottom: 1rem;
}

.description-text {
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    font-size: 0.85rem;
}

/* Machine Specifications */
.machine-specs {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-off-white);
    border-radius: 4px;
}

.specs-list {
    display: grid;
    gap: 0.5rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.spec-key {
    color: var(--text-secondary);
    font-weight: 500;
}

.spec-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

/* Machine Price Section */
.machine-price-section {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-pink-hover));
    border-radius: 4px;
    text-align: center;
}

.price-container {
    color: var(--primary-white);
}

.price-amount {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.price-note {
    font-size: 0.4rem;
    opacity: 0.9;
}

.price-on-request {
    font-size: 0.75rem;
    font-weight: 600;
    animation: neon-pulse 2s ease-in-out infinite;
}

/* Machine Actions */
.machine-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex: 1;
}

/* Admin Actions */
.admin-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    background: var(--primary-white);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.admin-btn:hover {
    background: var(--primary-pink);
    color: var(--primary-white);
    border-color: var(--primary-pink);
    transform: scale(1.1);
}

.admin-delete-form {
    display: inline-block;
    margin: 0;
}

.delete-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
}

/* Responsive Optimierungen */
@media (max-width: 1200px) {
    .listings-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .listings-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }

    .machine-image-container {
        height: 200px;
    }

    .machine-content {
        padding: 1rem;
    }

    .action-buttons {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .featured-badge,
    .condition-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .price-amount {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .listings-row {
        padding: 0.5rem;
    }

    .machine-image-container {
        height: 180px;
    }

    .machine-title {
        font-size: 1.1rem;
    }
}

/* ===== CUSTOM PAGE TITLE (FM-MACHINES STYLE) ===== */

/* Custom Page Title mit Pink Unterline */
.custom-page-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
    padding-bottom: 0.75rem;
    position: relative;
    text-align: left;
    line-height: 1.2;
}

.custom-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 4px;
    background: var(--primary-pink);
    border-radius: 2px;
}

/* Custom Page Body */
.custom-page__body {
    margin-top: 2rem;
}

.custom-page__body__content {
    line-height: 1.6;
    font-size: 1rem;
    color: var(--text-primary);
}

/* Responsive Anpassungen für Page Title */
@media (max-width: 768px) {
    .custom-page-title {
        font-size: 2rem;
        margin: 1.5rem 0 0.75rem 0;
        padding-bottom: 0.75rem;
    }

    .custom-page-title::after {
        width: 300px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .custom-page-title {
        font-size: 1.75rem;
        margin: 1rem 0 0.5rem 0;
        padding-bottom: 0.5rem;
    }

    .custom-page-title::after {
        width: 250px;
        height: 2px;
    }
}

/* ===== COOKIE BANNER STYLES ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(43, 43, 43, 0.98);
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--primary-pink);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.cookie-banner__text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner__title {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.cookie-banner__message {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner__link {
    color: var(--primary-pink);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner__link:hover {
    color: #ffffff;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-btn--accept {
    background: linear-gradient(90deg, #a70082, #d34f9d);
    color: #ffffff;
}

.cookie-btn--accept:hover {
    background: linear-gradient(90deg, #8a006b, #b8417e);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 1, 135, 0.4);
}

.cookie-btn--necessary {
    background: #4a4a4a;
    color: #ffffff;
    border: 1px solid #666;
}

.cookie-btn--necessary:hover {
    background: #555;
    border-color: #777;
}

.cookie-btn--decline {
    background: transparent;
    color: #cccccc;
    border: 1px solid #666;
}

.cookie-btn--decline:hover {
    background: #333;
    color: #ffffff;
    border-color: #888;
}

.cookie-btn--settings {
    background: transparent;
    color: var(--primary-pink);
    border: 1px solid var(--primary-pink);
}

.cookie-btn--settings:hover {
    background: var(--primary-pink);
    color: #ffffff;
}

.cookie-btn--secondary {
    background: #4a4a4a;
    color: #ffffff;
    border: 1px solid #666;
}

.cookie-btn--secondary:hover {
    background: #555;
    border-color: #777;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.cookie-modal__content {
    position: relative;
    background: #2B2B2B;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-pink);
}

.cookie-modal__header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #404040;
    margin-bottom: 24px;
}

.cookie-modal__title {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.cookie-modal__close {
    background: none;
    border: none;
    color: #cccccc;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-modal__close:hover {
    background: #404040;
    color: #ffffff;
}

.cookie-modal__body {
    padding: 0 24px;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 16px;
    background: #333333;
    border-radius: 8px;
    border-left: 4px solid var(--primary-pink);
}

.cookie-category__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category__title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.cookie-category__description {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #666;
    transition: 0.4s;
    border-radius: 24px;
}

.cookie-toggle__slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
    background: linear-gradient(90deg, #a70082, #d34f9d);
}

.cookie-toggle input:checked + .cookie-toggle__slider:before {
    transform: translateX(26px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
    background: linear-gradient(90deg, #a70082, #d34f9d);
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-modal__footer {
    padding: 20px 24px 24px;
    border-top: 1px solid #404040;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .cookie-banner__actions {
        justify-content: center;
    }

    .cookie-btn {
        font-size: 13px;
        padding: 8px 12px;
    }

    .cookie-modal__content {
        width: 95%;
        margin: 10px;
    }

    .cookie-modal__header {
        padding: 20px 20px 0;
    }

    .cookie-modal__body {
        padding: 0 20px;
    }

    .cookie-modal__footer {
        padding: 16px 20px 20px;
        flex-direction: column;
    }

    .cookie-category__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ===== CLEAN LOGIN PAGE STYLES ===== */
.login-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.login-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #6a7280;
    font-size: 0.95rem;
    margin: 0;
}

.login-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.login-error p {
    color: #dc2626;
    font-size: 0.9rem;
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.form-field input {
    padding: 0.75rem;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-field input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    margin: 0;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    background-color: #3b82f6;
    color: white;
    padding: 0.875rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.5rem;
}

.login-btn:hover {
    background-color: #2563eb;
}

.login-btn:active {
    background-color: #1d4ed8;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.login-footer p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.login-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Mobile optimizations for login */
@media (max-width: 640px) {
    .login-page {
        padding: 1rem;
        min-height: 50vh;
    }

    .login-card {
        padding: 2rem 1.5rem;
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-form-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.auth-form-container h3 {
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    margin: 0 0 2rem 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group-half {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(225, 1, 135, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    padding: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-pink);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-text {
    color: #374151;
}

.checkbox-text a {
    color: var(--primary-pink);
    text-decoration: underline;
    font-weight: 500;
}

.checkbox-text a:hover {
    color: #8a006b;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-link {
    color: var(--primary-pink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
    color: #8a006b;
}

/* Alert Styles for Auth Forms */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 14px;
    line-height: 1.5;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem 0;
    }

    .auth-form-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .auth-tabs {
        margin: 0 1rem 2rem;
    }

    .auth-tab {
        padding: 0.75rem 1rem;
        font-size: 14px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group-half {
        margin-bottom: 1.5rem;
    }

    .auth-form-container h3 {
        font-size: 20px;
    }
}

/* ===== FAVORITES SYSTEM ===== */

/* Favoriten-Button */
.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.favorite-btn.active {
    background: rgba(225, 1, 135, 0.1);
    border: 2px solid #E10187;
}

.favorite-btn.active:hover {
    background: rgba(225, 1, 135, 0.2);
}

.favorite-icon {
    font-size: 2rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.favorite-btn:hover .favorite-icon {
    transform: scale(1.2);
}

/* Loading-State für Favoriten-Button */
.favorite-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.favorite-btn.loading .favorite-icon {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Maschinen-Container für relative Positionierung */
.machine-listing {
    position: relative;
}

.machine-image-container {
    position: relative;
}

/* Favoriten in der Liste */
.favorites-page .machine-listing {
    border: 2px solid #E10187;
}

.favorites-page .machine-listing .favorite-btn {
    background: rgba(225, 1, 135, 0.9);
    color: white;
}

/* Favoriten-Counter in Navigation */
.favorites-counter {
    background: #E10187;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    margin-left: 0.5rem;
    min-width: 2rem;
    text-align: center;
}

.favorites-counter.hidden {
    display: none;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .favorite-btn {
        width: 3.5rem;
        height: 3.5rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .favorite-icon {
        font-size: 1.8rem;
    }
}

/* Favoriten-Toast-Nachrichten */
.favorite-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #16a34a;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.favorite-toast.show {
    transform: translateX(0);
}

.favorite-toast.error {
    background: #dc2626;
}

/* Leere Favoriten-Seite */
.favorites-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.favorites-empty-icon {
    font-size: 6rem;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.favorites-empty h3 {
    font-size: 2.4rem;
    color: #374151;
    margin-bottom: 1rem;
}

.favorites-empty p {
    color: #6b7280;
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

/* Favoriten-Button in Detailansicht */
.favorite-btn-detail {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    height: auto;
    border-radius: 0.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.favorite-btn-detail.active {
    background: rgba(225, 1, 135, 0.1);
    border-color: #E10187;
    color: #E10187;
}

.favorite-btn-detail:hover {
    border-color: #E10187;
    background: rgba(225, 1, 135, 0.05);
}

.favorite-btn-detail.active:hover {
    background: rgba(225, 1, 135, 0.15);
}

.favorite-btn-detail .favorite-icon {
    font-size: 1.6rem;
}

/* ===== CUSTOMER DASHBOARD ===== */

/* Customer Stats Grid */
.customer-stats {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.customer-stats .stat-card {
    background: linear-gradient(135deg, #E10187 0%, #B8016F 100%);
    color: white;
    border: none;
}

.customer-stats .stat-card .stat-icon {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
}

.customer-stats .stat-card .stat-number {
    color: white;
    font-size: 1.8rem;
}

.customer-stats .stat-card .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.customer-stats .stat-card .stat-link {
    color: white;
    font-weight: 600;
}

.customer-stats .stat-card .stat-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Customer Actions Grid */
.customer-actions {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.customer-actions .action-card {
    background: white;
    border: 2px solid #f3f4f6;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.customer-actions .action-card:hover {
    border-color: #E10187;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(225, 1, 135, 0.15);
}

.customer-actions .action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.customer-actions .action-title {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.customer-actions .action-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.customer-actions .action-link {
    color: #E10187;
    font-weight: 600;
    text-decoration: none;
}

.customer-actions .action-link:hover {
    color: #B8016F;
}

/* Recent Favorites Grid */
.recent-favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.favorite-preview {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.favorite-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.favorite-image {
    width: 100%;
    height: 180px;
    background: #f9fafb;
    position: relative;
    overflow: hidden;
}

.favorite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.favorite-placeholder .placeholder-icon {
    font-size: 3rem;
    color: #9ca3af;
}

.favorite-info {
    padding: 1.5rem;
}

.favorite-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.favorite-title a {
    color: #1f2937;
    text-decoration: none;
}

.favorite-title a:hover {
    color: #E10187;
}

.favorite-category {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.favorite-price {
    margin-bottom: 0.5rem;
}

.favorite-price .price-amount {
    font-size: 1.6rem;
    font-weight: 600;
    color: #E10187;
}

.favorite-price .price-on-request {
    font-size: 1.4rem;
    color: #6b7280;
    font-style: italic;
}

.favorite-date {
    color: #9ca3af;
    font-size: 1.2rem;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, #E10187 0%, #B8016F 100%);
    color: white;
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.welcome-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: white;
}

.welcome-text {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.welcome-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-features li {
    padding: 0.5rem 0;
    font-size: 1.4rem;
    opacity: 0.9;
}

.welcome-actions .btn {
    background: white;
    color: #E10187;
    border: 2px solid white;
}

.welcome-actions .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Account Grid */
.account-grid {
    display: grid;
    gap: 2rem;
}

.account-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.account-info h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.account-info p {
    margin-bottom: 0.5rem;
}

.account-actions {
    flex-shrink: 0;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-link {
    color: #E10187;
    text-decoration: none;
    font-weight: 500;
}

.section-link:hover {
    color: #B8016F;
}

/* Responsive Anpassungen für Dashboard */
@media (max-width: 768px) {
    .customer-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .customer-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .recent-favorites-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .welcome-card {
        padding: 2rem;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .account-card {
        flex-direction: column;
        gap: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ===== CUSTOM BUTTON STYLES ===== */

/* Small Pink Button - 50% smaller and always pink */
.btn-small-pink {
    padding: 7px 14px !important;  /* 50% smaller than standard 14px 28px */
    font-size: 0.75rem !important; /* 50% smaller than standard 0.9rem */
    background: var(--primary-pink) !important;
    color: var(--primary-white) !important;
    border-color: var(--primary-pink) !important;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-small-pink:hover {
    background: var(--primary-pink-hover) !important;
    border-color: var(--primary-pink-hover) !important;
    color: var(--primary-white) !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(225, 1, 135, 0.3);
}

.btn-small-pink .btn-icon {
    margin-right: 0.25rem;
    font-size: 1rem;
}

/* Regular Pink Button - standard size, always pink */
.btn-pink {
    background: var(--primary-pink) !important;
    color: var(--primary-white) !important;
    border-color: var(--primary-pink) !important;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-pink:hover {
    background: var(--primary-pink-hover) !important;
    border-color: var(--primary-pink-hover) !important;
    color: var(--primary-white) !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(225, 1, 135, 0.3);
}

/* ===== PROFILE PAGE ===== */
.profile-container {
    max-width: 600px;
    margin: 2rem auto;
}

.profile-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.profile-avatar-section {
    margin-bottom: 1.5rem;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary-pink);
    object-fit: cover;
}

.profile-info-section h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.profile-email {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.profile-role {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-off-white);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 1rem 0;
}

.profile-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.profile-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive Design für Profil-Menü */
@media (max-width: 768px) {
    .user-profile-menu {
        position: static;
    }

    .user-profile-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }

    .user-profile-toggle:checked ~ .user-profile-dropdown {
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== ADMIN LAYOUT ===== */
/* Minimalistisches Admin-Interface mit Sidebar links und Content rechts */

/* Admin Body Layout */
body.admin-layout {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
}

/* Admin Container - Flex Layout */
.admin-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Admin Sidebar - Links fixiert */
.admin-sidebar {
    width: 260px;
    background: #1a1a1a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: #2a2a2a;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

/* Sidebar Logo */
.admin-sidebar-logo {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-sidebar-logo img {
    height: 32px;
    width: auto;
}

.admin-sidebar-logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

/* Sidebar Navigation */
.admin-sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.admin-nav-section {
    margin-bottom: 1.5rem;
}

.admin-nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.admin-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav-item {
    margin: 2px 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    position: relative;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.admin-nav-link.active {
    background: var(--primary-pink);
    color: #ffffff;
}

.admin-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ffffff;
}

.admin-nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.admin-nav-text {
    flex: 1;
}

.admin-nav-badge {
    background: var(--primary-pink);
    color: #ffffff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Sidebar Footer */
.admin-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.admin-user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-user-details {
    flex: 1;
    min-width: 0;
}

.admin-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-role {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.admin-logout-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.admin-logout-btn:hover {
    color: var(--primary-pink);
}

/* Admin Content Area - Rechts */
.admin-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f5f5f5;
}

/* Admin Top Bar */
.admin-topbar {
    background: #ffffff;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-page-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.admin-breadcrumb-separator {
    color: #d1d5db;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Admin Main Content */
.admin-main-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.admin-main-content::-webkit-scrollbar {
    width: 8px;
}

.admin-main-content::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.admin-main-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.admin-main-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Admin Content Container */
.admin-content-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Admin Card System */
.admin-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.admin-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.admin-card-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-card-body {
    padding: 1.25rem;
}

.admin-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
}

.admin-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 0, 128, 0.1);
    color: var(--primary-pink);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.admin-stat-details {
    flex: 1;
}

.admin-stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.admin-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
}

.admin-stat-value-split {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-stat-value-split .stat-active,
.admin-stat-value-split .stat-inactive {
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-stat-value-split .stat-active {
    color: #10b981;
}

.admin-stat-value-split .stat-inactive {
    color: #ef4444;
}

.admin-stat-sublabel {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.admin-stat-change {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.admin-stat-change.positive {
    color: #10b981;
}

.admin-stat-change.negative {
    color: #ef4444;
}

/* Hide non-admin elements when in admin layout */
body.admin-layout .site-header,
body.admin-layout .slider__image,
body.admin-layout .main-content > .container {
    display: none;
}

body.admin-layout .main-content {
    padding: 0;
}

/* Responsive Admin Layout */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        max-height: 60px;
        overflow: visible;
        position: relative;
    }

    .admin-sidebar-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #1a1a1a;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .admin-sidebar.mobile-open .admin-sidebar-nav {
        display: block;
    }

    .admin-mobile-toggle {
        display: block;
        background: none;
        border: none;
        color: #ffffff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        margin-left: auto;
    }

    .admin-content-wrapper {
        height: calc(100vh - 60px);
    }

    .admin-page-title {
        font-size: 1.1rem;
    }
}

/* ===================================================================
   FM Machines Horizontal Listing Layout
   =================================================================== */

.listings-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.listing__wrapper {
    width: 100%;
}

.listing {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: var(--primary-white);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.listing:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Bild links (25%) */
.listing-img__wrapper {
    position: relative;
    width: 25%;
    min-width: 200px;
    max-width: 300px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}

.listing-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-img-placeholder {
    object-fit: contain;
    padding: 1rem;
}

.listing-img__wrapper:hover .listing-img {
    transform: scale(1.05);
}

.featured-badge-listing {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 215, 0, 0.95);
    color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.condition-badge-listing {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.condition-badge-listing.condition-new {
    background: #22c55e;
}

.condition-badge-listing.condition-used {
    background: #f59e0b;
}

.condition-badge-listing.condition-refurbished {
    background: #8b5cf6;
}

/* Info Mitte (50-60%) */
.listing-info {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.listing-info__title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.listing-info__title a {
    color: var(--primary-black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.listing-info__title a:hover {
    color: var(--primary-pink);
}

.listing-info__price {
    margin-bottom: 0.5rem;
}

.listing-price-data {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.primary-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-pink);
}

.price-note {
    font-size: 0.75rem;
    color: #666;
}

.listing-info__location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.listing-info__location i {
    font-style: normal;
}

.listing-info__description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* Buttons rechts (15-25%) */
.listing-controls {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: #f8f9fa;
    min-width: 180px;
    max-width: 220px;
    border-left: 1px solid #e0e0e0;
}

.listing-controls__inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.listing-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.listing-btn.btn-contact {
    background: var(--primary-pink);
    color: #fff;
}

.listing-btn.btn-contact:hover {
    background: #e91e63;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 0, 128, 0.3);
}

.listing-btn.btn-details {
    background: #fff;
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
}

.listing-btn.btn-details:hover {
    background: var(--primary-pink);
    color: #fff;
    transform: translateY(-1px);
}

.listing-admin-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #ddd;
}

.admin-link {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.admin-link:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .listing {
        flex-direction: column;
    }

    .listing-img__wrapper {
        width: 100%;
        max-width: none;
        height: 220px;
    }

    .listing-controls {
        max-width: none;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }

    .listing-controls__inner {
        flex-direction: row;
    }
}

@media (max-width: 640px) {
    .listing-info__title {
        font-size: 1rem;
    }

    .primary-price {
        font-size: 1rem;
    }

    .listing-info__description {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
    }

    .listing-controls__inner {
        flex-direction: column;
    }

    .listing-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
}

/* ===================================================================
   FM Machines Detail View Layout
   =================================================================== */

/* Navigation Card */
.detail-nav-card {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--primary-white);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

/* Main Detail Container */
.machine-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Left Column */
.machine-detail-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Detail Cards */
.detail-card {
    background: var(--primary-white);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.detail-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.detail-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1.25rem 0;
    color: var(--primary-black);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

/* Gallery Card */
.gallery-card {
    padding: 0;
    overflow: hidden;
}

.gallery-main {
    padding: 0;
    margin: 0;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #f9f9f9;
    display: block;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    background: #f9f9f9;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-pink);
    box-shadow: 0 2px 8px rgba(255, 0, 128, 0.25);
}

.gallery-placeholder {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    color: #999;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Info Grid */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-table-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.info-table-row:last-child {
    border-bottom: none;
}

.info-table-row.price-row {
    background: var(--primary-pink);
    color: white;
    padding: 1rem;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}

.price-row .info-label {
    color: white;
}

.price-value-inline {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: var(--primary-black);
    font-weight: 500;
}

.condition-new { color: #22c55e; font-weight: 700; }
.condition-used { color: #f59e0b; font-weight: 700; }
.condition-refurbished { color: #8b5cf6; font-weight: 700; }

/* Description */
.description-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #374151;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.feature-icon {
    color: var(--primary-pink);
    font-weight: 700;
}

/* Specifications Grid */
.specifications-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-key {
    font-weight: 600;
    color: #666;
}

.spec-value {
    color: var(--primary-black);
}

/* Right Sidebar */
.machine-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Contact Card in Sidebar */
.contact-card-sidebar {
    background: linear-gradient(135deg, var(--primary-pink) 0%, #e91e63 100%);
    color: white;
    text-align: center;
}

.contact-card-sidebar .detail-card-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Price Card in Sidebar */
.price-card-sidebar {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
}

.price-display {
    padding: 1rem 0;
}

.price-amount-large {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-pink);
    margin-bottom: 0.5rem;
}

.price-note-small {
    font-size: 0.85rem;
    color: #666;
}

.price-on-request-large {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-pink);
}

/* Sidebar Info List */
.sidebar-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
}

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

.sidebar-info-label {
    font-weight: 600;
    color: #666;
}

.sidebar-info-value {
    color: var(--primary-black);
}

/* Documents in Sidebar */
.documents-list-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.document-link-sidebar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.document-link-sidebar:hover {
    background: var(--primary-pink);
    color: white;
    border-color: var(--primary-pink);
}

.document-icon-sidebar {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.document-name-sidebar {
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Share Actions in Sidebar */
.share-actions-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: var(--primary-black);
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: var(--primary-pink);
    color: white;
    border-color: var(--primary-pink);
    transform: translateY(-1px);
}

/* Similar Machines Grid */
.similar-machines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.similar-machine-card {
    display: flex;
    flex-direction: column;
    background: var(--primary-white);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.similar-machine-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-pink);
}

.similar-machine-image {
    height: 150px;
    background: #f9f9f9;
    overflow: hidden;
}

.similar-machine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.similar-machine-card:hover .similar-machine-image img {
    transform: scale(1.1);
}

.similar-machine-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ccc;
}

.similar-machine-content {
    padding: 1rem;
}

.similar-machine-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-black);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.similar-machine-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-pink);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .machine-detail-container {
        grid-template-columns: 1fr;
    }

    .machine-detail-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .detail-card {
        padding: 1rem;
    }

    .main-image {
        height: 300px;
    }

    .info-table-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .price-amount-large {
        font-size: 1.4rem;
    }

    .similar-machines-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .similar-machine-image {
        height: 120px;
    }
}

/* ===================================================================
   Single Column Layout Override
   =================================================================== */

/* Single Column Container */
.machine-detail-single {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Price and Contact Card (Prominent) */
.price-contact-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--primary-pink);
}

.price-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.price-section-main {
    text-align: center;
    padding: 1rem;
}

.price-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-amount-main {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-pink);
    margin-bottom: 0.5rem;
}

.price-note-main {
    font-size: 0.85rem;
    color: #666;
}

.price-on-request-main {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-pink);
}

.contact-section-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
}

/* Documents List (Non-Sidebar) */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.document-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.document-link:hover {
    background: var(--primary-pink);
    color: white;
    border-color: var(--primary-pink);
    transform: translateX(4px);
}

.document-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.document-name {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Responsive for Single Column */
@media (max-width: 768px) {
    .machine-detail-single {
        max-width: 100%;
    }

    .price-contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .price-amount-main {
        font-size: 1.5rem;
    }

    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===================================================================
   Maschinentransporte Page - Modern Design
   =================================================================== */

/* Hero Section */
.transport-hero {
    background: linear-gradient(135deg, var(--primary-pink) 0%, #e91e63 100%);
    color: white;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255, 0, 128, 0.2);
}

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

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: white;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    opacity: 0.95;
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 0 2rem 0;
    opacity: 0.9;
}

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

/* Transport Section */
.transport-section {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 0 1rem;
}

.section-title-center {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-black);
    margin: 0 0 3rem 0;
    position: relative;
    padding-bottom: 1rem;
}

.section-title-center::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-pink);
    border-radius: 2px;
}

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

.service-card-modern {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(255, 0, 128, 0.15);
    border-color: var(--primary-pink);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-black);
    margin: 0 0 1rem 0;
}

.service-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.service-card-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--primary-pink);
}

.service-card-highlight .service-title {
    color: var(--primary-pink);
}

/* Benefits Section */
.benefits-section {
    background: #f8f9fa;
    padding: 3rem 1rem;
    border-radius: 8px;
}

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

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

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary-pink);
    margin-bottom: 1rem;
    font-weight: 700;
}

.benefit-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-black);
    margin: 0 0 0.5rem 0;
}

.benefit-item p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* Contact Section */
.contact-section {
    background: white;
    padding: 3rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-box h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-black);
    margin: 0 0 1rem 0;
}

.contact-intro {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-detail-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.25rem;
}

.contact-detail-item p {
    margin: 0;
    font-size: 0.95rem;
}

.contact-detail-item a {
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: 500;
}

.contact-detail-item a:hover {
    text-decoration: underline;
}

.contact-info-highlight {
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-pink);
    border-radius: 4px;
    margin: 0;
}

.contact-info-highlight a {
    color: var(--primary-pink);
    font-weight: 600;
    text-decoration: none;
}

.contact-info-highlight a:hover {
    text-decoration: underline;
}

.contact-form-box {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.contact-form-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin: 0 0 1.5rem 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .section-title-center {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form-box {
        padding: 1.5rem;
    }
}

/* Simple Hero Section (dezent) */
.transport-hero-simple {
    background: #f8f9fa;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-pink);
}

.transport-hero-content-simple {
    max-width: 900px;
    margin: 0 auto;
}

.hero-subtitle-simple {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-black);
    margin: 0 0 1rem 0;
}

.hero-text-simple {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
}
