/* ==========================================================================
   4-friendz - Premium Design System (CSS)
   Design: Clean, Tech-Focused, Light & Friendly
   Colors: Mint Green & Technical Greys
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- 1. DESIGN TOKENS & SYSTEM VARIABLES --- */
:root {
    /* Harmonious Color Palette */
    --primary: #10b981;             /* Modern Emerald/Mint Green */
    --primary-light: #d1fae5;       /* Soft Light Green background */
    --primary-dark: #065f46;        /* Deep Green for contrast text */
    --primary-hover: #059669;       /* Darker Emerald on Hover */
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #3b82f6 100%); /* Tech Blue-Green Gradient */
    
    --grey-50: #f8fafc;             /* Very Light Technical Grey (Main Background) */
    --grey-100: #f1f5f9;            /* Section Background / Border */
    --grey-200: #e2e8f0;            /* Element Border */
    --grey-300: #cbd5e1;            /* Disabled state / Muted text */
    --grey-600: #475569;            /* Body text */
    --grey-800: #1e293b;            /* Dark Grey for Titles */
    --grey-900: #0f172a;            /* Navigation text / Primary Headings */

    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Layout & Spacing */
    --container-width: 1280px;
    --header-height: 80px;

    /* Borders & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    --shadow-neon: 0 0 20px rgba(16, 185, 129, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. GLOBAL RESET & BASE STYLES --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--grey-600);
    background-color: var(--grey-50);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--grey-900);
    line-height: 1.25;
}

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

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

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
}

button, .btn {
    cursor: pointer;
}

/* --- 3. UTILITY CLASSES --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-light-grey {
    background-color: var(--grey-100);
}

.section-padding {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }
}

/* --- 4. BUTTONS & INTERACTIVE ELEMENTS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(16, 185, 129, 0.4);
    background: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--grey-900);
    border: 1px solid var(--grey-200);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--grey-100);
    border-color: var(--grey-300);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary-dark);
    font-weight: 600;
}

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

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

/* --- 5. HEADER & NAVIGATION --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    height: 70px;
    background-color: rgba(248, 250, 252, 0.95);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--grey-900);
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: inline-block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--grey-800);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--grey-900);
    transition: all var(--transition-fast);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        flex-direction: column;
        padding: 3rem 1.5rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }
    
    .nav.open {
        transform: translateX(0);
    }
}

/* --- 6. HERO SECTION --- */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 7rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: var(--grey-600);
    max-width: 580px;
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 992px) {
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 992px) {
    .hero-ctas {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    .hero-ctas .btn {
        width: 100%;
    }
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeIn 1.2s ease;
}

.hero-blob-bg {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(248, 250, 252, 0) 70%);
    z-index: -1;
    top: -10%;
    left: -10%;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 60%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.03);
}

/* Float Tech Card Mockup */
.tech-card-floating {
    position: absolute;
    bottom: 2rem;
    left: -1.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 4s ease-in-out infinite;
}

@media (max-width: 992px) {
    .tech-card-floating {
        display: none;
    }
}

.tech-card-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.tech-card-text h4 {
    font-size: 0.9375rem;
    color: var(--grey-900);
}

.tech-card-text p {
    font-size: 0.75rem;
    color: var(--grey-600);
}

/* --- 7. SECTION HEADER --- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4.5rem;
}

.section-badge {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--grey-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--grey-600);
}

/* --- 8. SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.service-card {
    background-color: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(16, 185, 129, 0.3);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--grey-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-800);
    margin-bottom: 2rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon-box {
    background-color: var(--primary-light);
    color: var(--primary);
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--grey-600);
    font-size: 0.9375rem;
}

/* --- 9. ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

.about-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.about-p {
    font-size: 1.0625rem;
    margin-bottom: 1.5rem;
}

.about-p:last-of-type {
    margin-bottom: 2.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border-top: 1px solid var(--grey-200);
    padding-top: 2rem;
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--grey-600);
}

.about-visual {
    position: relative;
}

.about-img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.7);
    z-index: 2;
    position: relative;
}

.about-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.about-accent-box {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    bottom: -20px;
    right: -20px;
    z-index: 1;
    animation: float 5s ease-in-out infinite;
}

/* --- 10. CONTACT / CRM FORM SECTION --- */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-blob-bg {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
    top: -200px;
    right: -200px;
    z-index: 0;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.90fr 1.10fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-info h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.contact-info-list {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    width: 44px;
    height: 44px;
    background-color: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--grey-200);
}

.info-text p {
    font-size: 0.8125rem;
    color: var(--grey-600);
}

.info-text h4 {
    font-size: 0.9375rem;
    color: var(--grey-900);
}

/* Beautiful Form styling */
.form-card {
    background-color: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

@media (max-width: 480px) {
    .form-card {
        padding: 1.75rem;
    }
}

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

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--grey-800);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    background-color: var(--grey-50);
    border: 1px solid var(--grey-200);
    color: var(--grey-900);
    transition: all var(--transition-normal);
    font-size: 0.9375rem;
}

.form-control:focus {
    background-color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

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

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

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

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--grey-200);
    margin-top: 3px;
    accent-color: var(--primary);
}

.form-checkbox-label {
    font-size: 0.8125rem;
    color: var(--grey-600);
    user-select: none;
}

.form-checkbox-label a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
}

.form-submit-btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* --- 11. COOKIE CONSENT BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 580px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    display: none;
    transform: translateY(120%);
    opacity: 0;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.cookie-banner.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        padding: 1.5rem;
    }
}

.cookie-banner-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-banner-text {
    font-size: 0.875rem;
    color: var(--grey-600);
    margin-bottom: 1.5rem;
}

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

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .cookie-banner-buttons .btn {
        width: 100%;
    }
}

.cookie-settings {
    display: none;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--grey-100);
    padding-top: 1.25rem;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cookie-option-info h4 {
    font-size: 0.875rem;
    color: var(--grey-900);
}

.cookie-option-info p {
    font-size: 0.75rem;
    color: var(--grey-600);
}

/* Switch Toggle Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--grey-300);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- 12. FOOTER SECTION --- */
.footer {
    background-color: var(--grey-900);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 5rem;
    padding-bottom: 2rem;
    font-size: 0.9375rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-about-text {
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

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

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

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

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

/* --- 13. CONTENT PAGES (Impressum, Datenschutz, Sitemap) --- */
.content-page {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 6rem;
}

.content-page-wrapper {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .content-page-wrapper {
        padding: 2rem 1.5rem;
    }
}

.content-page-wrapper h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--grey-100);
    padding-bottom: 1rem;
}

.content-page-wrapper h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-page-wrapper p {
    margin-bottom: 1.25rem;
    color: var(--grey-600);
}

.content-page-wrapper ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-page-wrapper li {
    margin-bottom: 0.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 2rem;
}

.back-link:hover {
    color: var(--primary);
}

/* Human-friendly Sitemap styles */
.sitemap-list {
    list-style: none;
    padding-left: 0 !important;
}

.sitemap-list > li {
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--primary-light);
    padding-left: 1rem;
}

.sitemap-list a {
    font-weight: 600;
    color: var(--grey-900);
    font-size: 1.125rem;
}

.sitemap-list a:hover {
    color: var(--primary);
}

.sitemap-sublist {
    list-style: none;
    margin-top: 0.5rem;
    padding-left: 1.5rem !important;
}

.sitemap-sublist li {
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.sitemap-sublist a {
    font-weight: normal;
    color: var(--grey-600);
}

/* --- 14. ADMIN PANEL BASICS (Dashboard Layout) --- */
.admin-body {
    background-color: var(--grey-100);
}

.admin-header {
    background-color: var(--grey-900);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--white);
}

.admin-header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-header-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

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

.admin-container {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.admin-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-title-row h1 {
    font-size: 1.75rem;
}

.admin-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--grey-200);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Admin Dashboard Stats */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .admin-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .admin-stats-row {
        grid-template-columns: 1fr;
    }
}

.admin-stat-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--grey-200);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-stat-card h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--grey-600);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.admin-stat-val {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--grey-900);
    font-family: var(--font-heading);
}

/* Admin Table */
.admin-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--grey-200);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

.admin-table th {
    background-color: var(--grey-50);
    color: var(--grey-900);
    font-weight: 600;
    padding: 1rem;
    border-bottom: 1px solid var(--grey-200);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--grey-200);
    background-color: var(--white);
    color: var(--grey-600);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background-color: var(--grey-50);
}

/* Badges */
.badge {
    display: inline-flex;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-neu { background-color: #dbeafe; color: #1e40af; }
.badge-kontaktiert { background-color: #fef3c7; color: #92400e; }
.badge-in_verhandlung { background-color: #f3e8ff; color: #6b21a8; }
.badge-gewonnen { background-color: #d1fae5; color: #065f46; }
.badge-verloren { background-color: #fee2e2; color: #991b1b; }

/* Admin Forms */
.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--grey-100);
    padding: 1.5rem;
}

.admin-login-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--grey-200);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 440px;
}

.admin-login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Alert Notification box */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.2);
}

/* Lead modal & editor grids */
.admin-editor-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

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

.admin-editor-sidebar {
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--grey-200);
    padding: 1.25rem;
    height: fit-content;
}

.admin-editor-menu {
    list-style: none;
}

.admin-editor-menu li {
    margin-bottom: 0.5rem;
}

.admin-editor-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--grey-600);
}

.admin-editor-menu a:hover, .admin-editor-menu a.active {
    background-color: var(--grey-100);
    color: var(--primary-dark);
}

.editor-field-group {
    background-color: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.editor-field-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--grey-900);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editor-image-preview {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--grey-200);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* CRM Lead Detail Edit form styling */
.lead-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .lead-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.grid-span-2 {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .grid-span-2 {
        grid-column: span 1;
    }
}

/* --- 15. CSS KEYFRAME ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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