/* AMCleaning-Service - Professionelle Mülltonnenreinigung */
:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --accent: #43a047;
    --accent-dark: #2e7d32;
    --light-bg: #f1f8e9;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
}

/* Scrollbar komplett ausgeblendet */
::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;
}

/* Navbar */
.bg-primary {
    background-color: var(--primary) !important;
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.navbar-logo {
    height: 120px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
}

.footer-logo {
    height: 80px;
    width: auto;
    border-radius: 3px;
    object-fit: contain;
    vertical-align: middle;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1b5e20 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

.hero-section .lead {
    font-size: 1.4rem;
    opacity: 0.9;
}

/* Buttons */
.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(67, 160, 71, 0.3);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Feature Cards */
.feature-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
}

.feature-icon.blue {
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--primary);
}

.feature-icon.green {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--accent);
}

/* Pricing Cards */
.pricing-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(46,125,50,0.15);
}

.pricing-card.popular {
    border-color: var(--accent);
}

.pricing-card.popular .badge-popular {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    transform: rotate(45deg);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-period {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Section Styles */
.section-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
}

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

/* Dashboard Cards */
.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card.green {
    border-left-color: var(--accent);
}

.stat-card.green .stat-number {
    color: var(--accent);
}

.stat-card.warning {
    border-left-color: #ffc107;
}

.stat-card.warning .stat-number {
    color: #ffc107;
}

.stat-card.danger {
    border-left-color: #dc3545;
}

.stat-card.danger .stat-number {
    color: #dc3545;
}

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

/* Tables */
.table thead th {
    background-color: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
}

/* Status Badges */
.badge-geplant { background-color: var(--primary); }
.badge-erledigt { background-color: var(--accent); }
.badge-verschoben { background-color: #ffc107; color: #333; }
.badge-storniert { background-color: #dc3545; }
.badge-offen { background-color: #ffc107; color: #333; }
.badge-bezahlt { background-color: var(--accent); }

/* Auth Pages */
.auth-container {
    max-width: 450px;
    margin: 3rem auto;
}

.auth-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer a:hover {
    color: white !important;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 1.6rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-logo {
        height: 50px;
    }

    .footer-logo {
        height: 38px;
    }

    .price-amount {
        font-size: 1.8rem;
    }

    .feature-card {
        margin-bottom: 1rem;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

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

    .stat-card {
        margin-bottom: 1rem;
    }

    .stat-card .stat-number {
        font-size: 1.5rem;
    }

    .auth-container {
        margin: 1.5rem auto;
        padding: 0 0.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    /* Tabellen mobil scrollbar */
    .table-responsive {
        border-radius: 8px;
    }

    .table thead th {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .table td {
        font-size: 0.85rem;
    }

    /* Footer mobil */
    footer {
        text-align: center;
    }

    footer .col-md-4 {
        margin-bottom: 1.5rem;
    }

    /* Formulare mobil */
    .form-control, .form-select {
        font-size: 16px; /* verhindert iOS zoom */
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }

    /* Cards mobil */
    .card-body {
        padding: 1rem;
    }

    /* Container Padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Kleine Handys */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.3rem;
    }

    .hero-section .lead {
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 0.95rem;
    }

    .navbar-logo {
        height: 40px;
    }

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

    .pricing-card.popular .badge-popular {
        font-size: 0.65rem;
        padding: 4px 30px;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .navbar-logo {
        height: 60px;
    }

    .pricing-card {
        margin-bottom: 1rem;
    }
}

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

/* Admin sidebar on larger screens */
.admin-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-sidebar .nav-link {
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 2px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--light-bg);
    color: var(--primary);
}

.admin-sidebar .nav-link i {
    width: 24px;
}

/* === Ladeanimation === */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

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

/* === WhatsApp Button === */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-float::after {
    content: 'WhatsApp';
    position: absolute;
    right: 70px;
    background: #333;
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.whatsapp-float:hover::after {
    opacity: 1;
}

/* === Cookie Banner === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.97);
    color: white;
    padding: 1rem;
    z-index: 2000;
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--accent);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-link {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-link:hover {
    color: #81c784;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* === Testimonials === */
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
}

.testimonial-card .quote-icon {
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    top: 15px;
    right: 20px;
}

.testimonial-stars {
    color: #ffc107;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
}

.testimonial-location {
    font-size: 0.85rem;
    color: #888;
}

/* === Vorher/Nachher === */
.ba-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ba-card:hover {
    transform: translateY(-3px);
}

.ba-images {
    display: flex;
    height: 200px;
    background: #e9ecef;
}

.ba-before, .ba-after {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}

.ba-before {
    background: #ffebee;
    color: #c62828;
}

.ba-after {
    background: #e8f5e9;
    color: var(--primary);
}

.ba-label {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
}

.ba-card-body {
    padding: 1rem;
    text-align: center;
    background: white;
}

/* === Zähler Animation === */
.counter-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1b5e20 100%);
    color: white;
    padding: 3rem 0;
}

.counter-item {
    text-align: center;
    padding: 1rem;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
}

.counter-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.3rem;
}

/* === Scroll to Top === */
.scroll-top {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

/* === Tonnen Auswahl Cards === */
.tonnen-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tonnen-card.border-primary {
    border-color: var(--primary) !important;
    background: var(--light-bg);
}

.tonnen-card:hover {
    border-color: var(--accent);
}

.tonnen-input {
    font-weight: 700;
    width: 40px;
    padding: 2px 4px;
    font-size: 0.9rem;
}

.tonnen-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Mobile: kleinere Tonnen-Buttons */
@media (max-width: 576px) {
    .tonnen-card {
        padding: 8px 4px !important;
    }
    .tonnen-card i {
        font-size: 1rem !important;
    }
    .tonnen-card .fw-bold {
        font-size: 0.75rem !important;
    }
    .tonnen-btn {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
    .tonnen-input {
        width: 32px;
        font-size: 0.8rem;
        padding: 1px 2px;
    }
}

/* === Fade-in Animation === */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Mobile Anpassungen neue Features === */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float::after {
        display: none;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-text {
        font-size: 0.8rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .counter-number {
        font-size: 1.8rem;
    }

    .scroll-top {
        bottom: 75px;
        right: 15px;
        width: 38px;
        height: 38px;
    }

    .ba-images {
        height: 150px;
    }
}

/* === Entwicklungs-Banner (Continuous Scroll) === */
.dev-banner {
    background: linear-gradient(90deg, #ff6f00, #ff8f00, #ff6f00);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1060;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.dev-banner-track {
    display: inline-block;
    animation: dev-scroll 20s linear infinite;
    padding: 8px 0;
}

.dev-banner-text {
    display: inline;
}

@keyframes dev-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .dev-banner { font-size: 0.75rem; }
    .dev-banner-track { animation-duration: 15s; }
}