/**
 * MDC Facility Management - Main Stylesheet
 * Modern, Professional, Clean Design
 */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary-color: #2A7DE1;
    --primary-dark: #155EB8;
    --primary-light: #73AEEF;
    --secondary-color: #2BB5E8;
    --accent-color: #FFB81C;
    
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #6B6B6B;
    --text-white: #FFFFFF;
    
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gray: #E9ECEF;
    --bg-dark: #2C3E50;
    
    --border-color: #DEE2E6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Container */
    --container-width: 1200px;
    --container-padding: 1rem;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Container ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-primary);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-white);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #0089BD;
    border-color: #0089BD;
    color: var(--text-white);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--bg-white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

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

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.header-top {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 0.625rem 0;
    font-size: 0.875rem;
}

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

.contact-info {
    display: flex;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    text-decoration: none;
}

.contact-item:hover {
    color: var(--accent-color);
}

.header-right {
    display: flex;
    gap: var(--spacing-md);
}

.header-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    text-decoration: none;
}

.header-link:hover {
    color: var(--accent-color);
}

.header-main {
    padding: 1rem 0;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.logo img {
    width: auto;
    max-height: 80px;
    height: auto;
    display: block;
    transition: var(--transition-normal);
}

@media (max-width: 768px) {
    .logo img {
        max-height: 60px;
    }
}

/* Sehr schmale Geraete (z. B. iPhone SE): Kopfbereich kompakter darstellen */
@media (max-width: 400px) {
    .logo img {
        max-height: 48px;
    }

    .main-nav {
        gap: var(--spacing-sm);
    }

    .header-cta {
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    margin: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    display: inline-block;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.has-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    min-width: 220px;
    list-style: none;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.header-cta {
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all var(--transition-fast);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 60, 120, 0.62) 0%, rgba(17, 60, 120, 0.44) 50%, rgba(17, 60, 120, 0.65) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    color: var(--text-white);
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.95);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* ===== Section Styles ===== */
section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* ===== Grid System ===== */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Lange deutsche Komposita duerfen umbrechen, damit kein horizontaler Scroll entsteht */
h1, h2, h3, h4, h5, h6, p, li, a, dd, dt, figcaption, label, .card, .btn {
    overflow-wrap: break-word;
    word-break: normal;
}

/* Silbentrennung nur in Ueberschriften - dort entstehen die langen Komposita */
h1, h2, h3, h4, h5, h6 {
    hyphens: auto;
}

img, svg, video, iframe, table {
    max-width: 100%;
}

/* ===== Cards ===== */
.card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    height: 100%;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.card h3 {
    margin-bottom: var(--spacing-sm);
}

.card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

/* ===== Contact Form ===== */
.contact-form-section {
    background-color: var(--bg-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

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

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
    background-color: var(--bg-white);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-group label {
    cursor: pointer;
    font-size: 0.875rem;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    margin-top: var(--spacing-2xl);
}

.footer-main {
    padding: var(--spacing-2xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.footer-col h3,
.footer-col h4 {
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

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

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 0.25rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
    color: var(--text-white);
}

.footer-hours {
    list-style: none;
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.625rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-hours .emergency {
    margin-top: var(--spacing-sm);
    color: var(--accent-color);
    gap: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-md);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* ===== Home Badge / Certification Block ===== */
.home-badge-section {
    padding: 2.5rem 0 0;
    background: #ffffff;
}

.home-badge-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    flex-wrap: wrap;
}

.home-badge-card {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    text-align: center;
}

.home-badge-card--secondary {
    max-width: 460px;
    text-align: center;
    background: transparent;
    padding: 0;
}

.home-badge-icon {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-badge-icon--image {
    width: 260px;
    height: 110px;
    padding: 0;
    margin: 0 auto 0.25rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.home-badge-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: none;
}

.home-badge-brand {
    font-size: 2.1rem;
    line-height: 1.15;
    font-weight: 700;
    color: #0c3b74;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}

.home-badge-content p {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #0f0f10;
    max-width: 360px;
    margin: 0 auto;
}

/* ===== Scroll to Top ===== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== Cookie-Einwilligung ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    color: #1f2a37;
    padding: var(--spacing-lg) var(--spacing-md);
    box-shadow: 0 -6px 28px rgba(15, 23, 42, 0.18);
    border-top: 3px solid var(--primary-color);
    z-index: 1100;
    max-height: 85vh;
    overflow-y: auto;
}

.cookie-consent[hidden] { display: none; }

.cookie-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.cookie-text h2 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    color: #1f2a37;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-text h2 i { color: var(--primary-color); }

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-details {
    margin-top: var(--spacing-md);
    display: grid;
    gap: var(--spacing-sm);
}

.cookie-details[hidden] { display: none; }

.cookie-option {
    border: 1px solid var(--border-color, #e3e9f2);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    background-color: #f8fafc;
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    margin-bottom: 0.35rem;
}

.cookie-option input[disabled] { cursor: not-allowed; }

.cookie-option-title {
    font-weight: 600;
    color: #1f2a37;
}

.cookie-option p { font-size: 0.85rem; }

.cookie-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.cookie-buttons .btn { flex: 1 1 auto; min-width: 150px; }

/* ===== Einwilligungspflichtige externe Inhalte ===== */
.consent-embed { position: relative; }

.consent-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(135deg, #eef3f9 0%, #e2ecf7 100%);
    border: 1px dashed #b9cde4;
    border-radius: var(--radius-md);
    color: #4a5568;
}

.consent-placeholder[hidden] { display: none; }

.consent-placeholder-icon {
    font-size: 2.25rem;
    color: var(--primary-color);
}

.consent-placeholder h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #1f2a37;
}

.consent-placeholder p {
    margin: 0;
    max-width: 560px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.consent-placeholder-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.consent-placeholder-remember {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: #6b7684;
    cursor: pointer;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all var(--transition-normal);
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .header-cta {
        width: 100%;
        text-align: center;
    }
    
    .has-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
    }
    
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.5rem; }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: minmax(0, 1fr);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        width: 100%;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-white); }

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

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

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

/* ===== Dashboard Styles ===== */
.dashboard {
    padding: var(--spacing-xl) 0;
}

.dashboard-header {
    margin-bottom: var(--spacing-xl);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-lg);
}

.dashboard-sidebar {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

.dashboard-nav {
    list-style: none;
}

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

.dashboard-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.dashboard-main {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.table-responsive {
    overflow-x: auto;
}

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

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

table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

table tr:hover {
    background-color: var(--bg-light);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #1A1A1A;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

/* ===== Alert Messages ===== */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===== Angebotskonfigurator ===== */
[hidden] {
    display: none !important;
}

.cfg-progress {
    margin-bottom: var(--spacing-md);
}

.cfg-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cfg-progress-bar {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 999px;
    overflow: hidden;
}

.cfg-progress-bar > div {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 999px;
    transition: width 0.3s ease;
}

.cfg-heading {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cfg-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
}

.cfg-option {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.cfg-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cfg-option span {
    display: block;
    padding: 0.75rem 0.875rem;
    text-align: center;
    font-size: 0.9375rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.cfg-option:hover span {
    border-color: var(--primary-color);
}

.cfg-option input:checked + span {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.cfg-option input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(42, 125, 225, 0.3);
}

.cfg-range {
    width: 100%;
    margin-top: 0.75rem;
    accent-color: var(--primary-color);
}

.cfg-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.cfg-chip {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-family: var(--font-primary);
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.cfg-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cfg-summary {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--bg-white);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
}

.cfg-summary ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.cfg-actions {
    display: flex;
    gap: var(--spacing-sm, 1rem);
    margin-top: var(--spacing-md);
}

.cfg-actions .btn-primary {
    flex: 1;
}

.form-control.error {
    border-color: #dc3545;
}

/* ===== Loading Spinner ===== */
.spinner {
    border: 3px solid var(--bg-gray);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   Spam-Schutz: Honeypot-Feld
   Für Besucher unsichtbar, für Bots sichtbar
   =================================== */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
