/* ========================================================
   BILLDOC UNIFIED STYLESHEET 
   COPYRIGHT BY CHRISTIAN WEBER
   KONTAKT@BILLDOC.DE
   
   BENUTZEN UNTERLIEGT DEM COPYRIGHT!!!!
   ======================================================== */

/* --- 1. GLOBALE BASIS-STILE --- */
@font-face {
    font-family: "Comfortaa";
    src: url("../fonts/Comfortaa-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #fafafa;
    --text-main: #111111;
    --accent-cyan: #00e5ff;
    --accent-red: #e63946;
    --accent-green: #dcfce7;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-modern: 0 20px 40px -15px rgba(0, 0, 0, 0.15),
        0 1px 4px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: "Comfortaa", sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(#d1d5db 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    padding-top: 90px;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            circle at 10% 20%,
            rgba(220, 252, 231, 0.6) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(0, 229, 255, 0.1) 0%,
            transparent 40%
        );
    z-index: -1;
    pointer-events: none;
}


.content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* --- 2. TYPOGRAFIE & DEKO-ELEMENTE --- */
h1 {
    line-height: 1.3;
}
.hero-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
}
.highlight {
    position: relative;
    background: linear-gradient(
        160deg,
        transparent 5%,
        var(--accent-cyan) 15%,
        var(--accent-cyan) 85%,
        transparent 95%
    );
    padding: 2px 10px;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}
.badge {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.heart {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 5px;
    animation: heartbeat 1.5s infinite ease-in-out;
    transform-origin: center;
    flex-shrink: 0;
}
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.3);
    }
    30% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.2);
    }
    60% {
        transform: scale(1);
    }
}

/* --- 3. NAVBAR & HEADER --- */
.nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 9999;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 10px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}
.logo-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    z-index: 1;
}
.logo-marker {
    position: absolute;
    top: 55%;
    left: 50%;
    width: 130%;
    height: 90%;
    background: rgba(167, 243, 208, 0.85);
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    transform: translate(-50%, -50%) rotate(-3deg);
    z-index: -1;
    mix-blend-mode: multiply;
}
.nav-logo img {
    height: 35px;
    width: auto;
    display: block;
}
.logo-text {
    font-weight: 800;
    font-size: 1.8rem;
    color: #111;
    font-family: "Comfortaa", sans-serif;
}
.logo-slogan {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-family: "Comfortaa", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
    padding: 5px 0;
}
.nav-links a:hover {
    color: #000000;
    opacity: 1;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
.nav-cta {
    text-decoration: none;
    background: var(--accent-green);
    color: #064e3b;
    padding: 8px 20px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
}
.nav-links .nav-cta:hover {
    background: #cbf5d9;
    text-shadow: none;
}
.nav-register {
    text-decoration: none;
    background: #e0f7fa;
    border: 1px solid #0077b6;
    color: #000000 !important;
    padding: 7px 35px !important;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block !important;
}
.nav-register:hover {
    background: #b3e5fc;
    text-shadow: none !important;
    border-color: #0077b6;
}
.nav-user-icons {
    display: flex;
    gap: 25px;
    font-size: 2.6rem !important;
    align-items: center;
}
.nav-user-icons a {
    font-size: 2.6rem !important;
    text-decoration: none;
    line-height: 1;
}
.nav-user-cta {
    margin-right: 15px;
}

.mobile-actions-wrapper {
    display: none;
}
.mobile-only-menu {
    display: none;
}
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
}
.burger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: #111;
    margin: 5px 0;
    transition: 0.3s;
}
.close-icon {
    display: none;
    font-size: 3rem;
    color: #e63946;
    line-height: 1;
    margin-right: 5px;
}

/* --- 4. LAYOUT, KARTEN & GRID --- */
.container,
.dashboard-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    margin-top: 60px;
}
.hero {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 80px;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}
.card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 30px;
    flex: 1;
    min-width: 300px;
    box-shadow: var(--shadow-modern);
}

/* --- 5. STATISTIK-KARTEN --- */
.stats-card {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}
.stats-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    margin-bottom: 15px;
}
.stats-card:not(.card-next-service) h3 {
    opacity: 0.7;
}

.card-next-service {
    background: #065f46 !important;
}
.card-next-service:hover {
    background: #047857 !important;
}
.card-next-service h3,
.card-next-service p,
.card-next-service a {
    color: #ffffff !important;
}
.card-invoices {
    background: #7f1d1d !important;
}
.card-invoices:hover {
    background: #991b1b !important;
}
.card-kilometers {
    background: #164e63 !important;
}
.card-kilometers:hover {
    background: #155e75 !important;
}

.decor-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}
.card-next-service .decor-circle {
    top: -30px;
    right: -30px;
}
.card-invoices .decor-circle {
    top: -60px;
    right: -20px;
    width: 140px;
    height: 140px;
    opacity: 0.5;
}
.card-kilometers .decor-circle {
    bottom: -40px;
    left: 260px;
}

/* --- 6. ACTION BAR & DROPDOWNS --- */
.action-bar-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}
.action-card {
    background: rgba(6, 78, 59, 0.07) !important;
    border: 1px solid rgba(6, 78, 59, 0.15) !important;
    box-shadow: 0 10px 25px -5px rgba(6, 78, 59, 0.08) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}
.action-bar {
    display: flex;
    justify-content: space-around;
    width: 100%;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.dropbtn {
    background: #ffffff;
    border: 1px solid transparent;
    font-family: "Comfortaa", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease-in-out;
    display: inline-flex;
    align-items: center;
}
.dropbtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}
.dropbtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.dropbtn.mandant {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.dropbtn.mandant:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}
.dropbtn.dienst {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    color: #115e59;
}
.dropbtn.dienst:hover {
    background: #ccfbf1;
    border-color: #99f6e4;
}
.dropbtn.plan {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #075985;
}
.dropbtn.plan:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
}
.dropbtn.rechnung {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.dropbtn.rechnung:hover {
    background: #fde68a;
    border-color: #fcd34d;
}

.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}
.dropdown-content {
    display: none;
    position: absolute;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 10px 0;
    z-index: 1000;
    top: 100%;
    left: 0;
    margin-top: 5px;
}
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content a {
    color: #111;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-family: "Comfortaa", sans-serif;
    font-size: 0.85rem;
}
.dropdown-content a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
.dropdown-mandant .dropdown-content {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
}
.dropdown-dienst .dropdown-content {
    background-color: #f0fdfa;
    border: 1px solid #ccfbf1;
}
.dropdown-plan .dropdown-content {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
}
.dropdown-rechnung .dropdown-content {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
}

/* --- 7. UTILITY BAR --- */
.utility-bar-wrapper {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}
.utility-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}
.action-item {
    color: #111;
    text-decoration: none;
    font-family: "Comfortaa", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 15px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    border: 2px solid rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}
.action-item:hover {
    border-color: rgba(0, 0, 0, 0.3);
}

.action-item.mandant {
    background: #fef2f2;
}
.action-item.mandant:hover {
    background: #fee2e2;
    color: #991b1b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.action-item.dienst {
    background: #f0fdfa;
}
.action-item.dienst:hover {
    background: #ccfbf1;
    color: #115e59;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.action-item.plan {
    background: #f0f9ff;
}
.action-item.plan:hover {
    background: #e0f2fe;
    color: #075985;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.action-item.rechnung {
    background: #fffbeb;
}
.action-item.rechnung:hover {
    background: #fde68a;
    color: #92400e;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.action-item.utility {
    flex-direction: column;
    gap: 8px;
    padding: 15px 25px;
    font-weight: 600;
    font-size: 0.85rem;
}
.action-item.utility:hover {
    background: #f3f4f6;
    color: #111827;
    transform: translateY(-2px);
}
.icon-circle {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}
.action-item.utility:hover .icon-circle {
    transform: scale(1.1);
    background: #ffffff;
}
.divider {
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.05);
}
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 10px;
}

/* --- 8. FEATURES & LANDING LAYOUT --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}
.feature-item {
    padding: 40px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #e5e7eb;
    border-top: 4px solid #6ee7b7;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.feature-item:hover {
    border-top-color: #34d399;
    transform: translateY(-5px);
}
.emoji-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--accent-green);
    border-radius: 50%;
}

/* --- 9. FOOTER --- */
.footer {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding: 40px 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}
.footer-link {
    color: #808080;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: "Comfortaa", sans-serif;
}
.footer-link:hover {
    color: #000000;
    cursor: pointer;
}

/* --- 10. REAKTIVE MEDIENABFRAGEN (RESPONSIVENESS) --- */
@media (max-width: 768px) {
    body {
        padding-top: 170px;
    }
    .nav-right-area {
        display: none !important;
    }
    .mobile-actions-wrapper {
        display: block !important;
        align-items: center;
    }
    .mobile-actions-wrapper a[href="profile.php"] {
        margin-right: 20px;
    }
    .mobile-menu-toggle {
        display: block !important;
        font-size: 1.8rem;
        cursor: pointer;
        padding: 5px 10px;
        color: var(--text-main);
        user-select: none;
    }
    .mobile-only-menu {
        display: none;
        list-style: none;
        position: absolute;
        top: 100%;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        background: white;
        gap: 20px;
        flex-direction: column;
        padding: 20px;
        margin-top: 10px;
        border-radius: 20px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-sizing: border-box;
        z-index: 999;
    }
    .mobile-only-menu.is-open {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .nav.active .mobile-only-menu {
        display: block !important;
    }
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box;
    }
    .card,
    .stats-card {
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }
    .card table {
        min-width: 100%;
        font-size: 0.85rem;
    }
    .action-bar,
    .utility-bar {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .nav.active {
        height: auto;
    }
    .card-next-service {
        grid-column: span 1;
    }
    .card td,
    .card th {
        padding: 18px 12px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    .divider {
        display: none;
    }
    .mobile-actions {
        display: flex;
        gap: 15px;
        align-items: center;
        padding-top: 10px;
    }
    .nav.active .mobile-actions {
        display: flex;
        justify-content: center;
    }
    .hero {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
        width: 100%;
    }
    h1 {
        font-size: 1.2rem !important;
        word-break: keep-all;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    .hero-title {
        font-size: 1.2rem !important;
        margin-bottom: 30px;
    }
    .action-bar-wrapper {
        margin-top: 40px !important;
    }
}

@media (min-width: 769px) {
    .nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap !important;
    }
    .nav-right-area {
        display: flex;
        align-items: center;
        gap: 30px;
        margin-left: 30px;
        flex-shrink: 0;
    }
    .nav-links {
        display: flex;
        align-items: center;
        gap: 30px;
        flex-shrink: 0;
    }
    .nav-desktop-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    .nav-icon {
        font-size: 2rem;
        text-decoration: none;
        line-height: 1;
        display: inline-block;
        transition: text-shadow 0.3s ease;
        cursor: pointer;
    }
    .nav-icon:hover {
        text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    }
}

/* --- 11. SPEZIELL LOGIN (Eigenständig und isoliert) --- */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}
.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow-modern);
    text-align: center;
}
.login-card a {
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}
.login-card a:hover {
    color: #000000;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
.input-group {
    margin-bottom: 20px;
    text-align: left;
}
.input-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: "Comfortaa", sans-serif;
    margin-top: 5px;
}
#username {
    max-width: 300px;
    width: 100%;
}
.btn-login {
    width: 100%;
    padding: 12px;
    background: #064e3b;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: "Comfortaa", sans-serif;
    transition: 0.3s;
}
.btn-login:hover {
    background: #047857;
}
.login-link {
    color: #737373;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease-in-out;
}
.login-link:hover {
    color: #000000;
    opacity: 1;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
.btn-login:disabled {
    background: #cccccc !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* --- 12. SEPARATES REGISTRIERUNGS-LAYOUT --- */
.register-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}
.register-card {
    width: 90%;
    max-width: 1100px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px;
    box-shadow: var(--shadow-modern);
    box-sizing: border-box;
}
.register-card h2 {
    text-align: center;
    margin-bottom: 35px;
    font-family: "Comfortaa", sans-serif;
}
.register-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    text-align: left;
}
.register-form .full-width {
    grid-column: span 2;
}
.register-form .input-group {
    display: flex;
    flex-direction: column;
}
.register-form .status-text {
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}
.register-form .checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.register-form .checkbox-group input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #064e3b;
    margin: 0;
    flex-shrink: 0;
}
.register-form .checkbox-group label {
    font-size: 0.85rem;
    cursor: pointer;
    margin: 0;
    line-height: 1.4;
}
.register-form .button-group {
    text-align: center;
    margin-top: 20px;
}
.register-form .btn-login {
    max-width: 320px;
    margin: 0 auto;
}
.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"] {
    background-color: #f0fdf4;
    border: 1px solid #d1fae5;
    border-radius: 12px;
    padding: 14px 18px;
    font-family: "Comfortaa", sans-serif;
    font-size: 1rem;
    color: #064e3b;
    transition: all 0.3s ease;
}
.register-form input:focus {
    background-color: #ffffff;
    border-color: #059669;
    outline: none;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}
.register-form input::placeholder {
    color: #000000;
    font-size: 0.9rem;
}
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.toggle-password {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    padding: 0;
}
.toggle-password svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

@media (max-width: 768px) {
    .register-card {
        width: 100%;
        padding: 30px 20px;
    }
    .register-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .register-form .full-width {
        grid-column: span 1;
    }
}

/* --- BADGES & WEITERES --- */
.status-badge-wrapper {
    width: 100%;
    padding: 8px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
}
.status-badge-content {
    font-family: "Comfortaa", sans-serif;
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    gap: 10px;
    align-items: center;
}
.sep {
    opacity: 0.3;
}

.status-badge-card {
    position: fixed;
    top: 130px;
    left: 0;
    right: 0;
    z-index: 998;
    background: rgba(242, 242, 242, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px 16px;
    margin: 0 auto;
    max-width: 1100px;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }
    .status-badge-wrapper {
        justify-content: center;
    }
    .status-badge-card {
        position: static;
        width: 90%;
        margin: 40px auto 0px auto;
        padding: 10px 12px;
    }
    .container {
        margin-top: 00px;
    }
    .status-badge-link {
        display: none !important;
    }
    .mobile-dashboard-item {
        margin-bottom: 20px;
    }
}

.dropdown-wrapper {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    padding: 10px 0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    list-style: none;
    min-width: 180px;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.dropdown-wrapper:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-family: "Comfortaa", sans-serif;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.dropdown-menu li a:hover {
    background: rgba(0, 0, 0, 0.03);
}

.mobile-submenu {
    display: none;
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    flex-direction: column;
    gap: 10px;
}
.mobile-dropdown.is-active .mobile-submenu {
    display: flex;
}
.mobile-dropdown.is-active > a {
    font-weight: bold;
    color: #059669 !important;
}

/* --- LOADER & SPINNER --- */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fafafa;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #059669;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.status-badge-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-family: "Comfortaa", sans-serif;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.status-badge-link:hover {
    color: #059669;
}

/* --- AGB & PREISE --- */
.terms-link {
    color: #4b5563;
    text-decoration: underline;
    transition: all 0.3s ease;
    cursor: pointer;
}
.terms-link:hover {
    color: #000000;
}
.terms-box {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.4s ease;
}
.terms-box.invalid {
    background-color: #fef2f2;
    border-color: #fecaca;
}
.terms-box.valid {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

.pricing-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.modern-terms-wrapper {
    max-width: 600px;
    margin: 40px auto;
    text-align: left;
}
.terms-card {
    background: #ffc1c1;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
}
.terms-card:hover {
    border-color: #d1d5db;
}
.terms-accepted .terms-card {
    border-color: #059669;
    background-color: #f0fdf4;
}
.terms-checkbox {
    margin-top: 5px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #059669;
}
.terms-main {
    display: block;
    font-family: "Comfortaa", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}
.terms-sub {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 5px;
    line-height: 1.4;
}
.terms-card a {
    color: #059669;
    text-decoration: underline;
    cursor: pointer;
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 16px;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    font-family: sans-serif;
}
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}
.close-btn:hover {
    color: #000;
}
.paypal-btn-wrapper {
    display: none;
    margin-top: 15px;
}
.price-card.featured {
    border: 1px solid rgba(5, 150, 105, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}
.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.badge-save {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(5, 150, 105, 0.2);
}
.price-title {
    font-family: "Comfortaa", sans-serif;
    font-size: 1.1rem;
    color: #111827;
    font-weight: 600;
    margin-bottom: 6px;
}
.price-card {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 28px;
    padding: 35px 25px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}
.price-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
    margin-bottom: 20px;
    display: block;
    min-height: 45px;
}
.price-amount {
    font-size: 2rem;
    font-weight: 800;
    margin: 10px 0;
    color: #059669;
    margin-top: auto;
}
.price-note {
    color: #9ca3af;
    font-size: 0.75rem;
    margin-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
}
#modalBody {
    line-height: 1.6 !important;
    color: #374151 !important;
    font-family: "Comfortaa", sans-serif !important;
}
#modalBody * {
    font-family: "Comfortaa", sans-serif !important;
}

/* --- 13. KALENDER LAYOUT FIX --- */
.weekend {
    background-color: #f0f7ff !important;
}
.calendar-wrapper {
    width: 90%;
    max-width: 1100px;
    margin: 80px auto 0px auto;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-modern);
    box-sizing: border-box;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Desktop Standard: Tabelle sichtbar, Mobile-Liste weg */
.calendar-table {
    display: table !important;
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
}
.mobile-calendar {
    display: none !important;
}

.calendar-table th {
    padding: 15px;
    text-align: center;
    color: #888;
    font-weight: 300;
    font-family: "Comfortaa";
}
.calendar-table td {
    position: relative;
    height: 80px;
    padding: 8px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    vertical-align: top;
}
.calendar-table td:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
}
.day-number {
    font-weight: bold;
    color: #111;
    margin-bottom: 5px;
}
.today {
    background-color: #dcfce7 !important;
    border-color: #bbf7d0 !important;
}

/* Das Plus-Icon */
.add-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e0f2fe;
    color: #0284c7;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.add-btn:hover {
    background: #0284c7;
    color: white;
}


/* --- 14. MOBIL-ANSICHT KALENDER --- */
@media screen and (max-width: 600px) {
    .calendar-table {
        display: none !important;
    }
    /* Wir zielen auf den Wrapper, um den gesamten Block hochzuziehen */
    .calendar-wrapper {
        margin-top: 0px !important;
    }
    .mobile-calendar {
        display: block !important;
        padding: 10px 0;
    }

    /* Schicke, vereinzelte Kästchen untereinander */
    .day-card {
        min-height: 85px !important; /* Das sorgt für die Grundgröße */
        background: rgba(255, 255, 255, 0.8) !important;
        backdrop-filter: blur(10px) !important;
        margin-bottom: 16px !important;
        padding: 20px !important;
        border-radius: 20px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
        box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.05) !important;
        position: relative !important;
        transition: all 0.3s ease !important;
    }

    .day-card:hover {
        transform: translateY(-2px);
        background: #ffffff !important;
        box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.08) !important;
    }

    /* Datumstext im Kästchen */
    .day-info {
        font-family: "Comfortaa", sans-serif !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: #111 !important;
    }

    /* Das BLAUE Plus-Symbol (exakt wie Desktop-Stil angepasst) */
    .mobile-calendar .add-btn {
        background: #0284c7 !important; /* Dein BillDoc-Blau */
        color: #ffffff !important; /* Weißes Pluszeichen */
        border: none !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        font-size: 1.3rem !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: static !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2) !important;
    }

    .mobile-calendar .add-btn:hover {
        background: #0369a1 !important; /* Dunkleres Blau beim Drücken/Hovern */
        transform: scale(1.05);
    }


    
}

/* TRICK FÜR DEN VORDERGRUND (Gilt für Desktop & Mobile):
   Sobald eine Zelle oder Karte das Menü aktiv beinhaltet, heben wir das 
   gesamte Elternelement in der Sortierungsebene nach ganz oben!
*/
.day-cell:has(#dayMenu),
.day-card:has(#dayMenu) {
    z-index: 99999 !important;
}


/* Mobil-Anpassung */
@media screen and (max-width: 600px) {
 

    .mobile-calendar .day-info {
        font-size: 0.85rem !important; /* Hier kannst du den Wert anpassen */
        line-height: 1.2 !important;
    }


    /* Die Monats-Leiste mobil kompakt halten */
    .calendar-header {
        gap: 12px !important;
        padding: 8px 12px !important;
        background: #ecf8f6 !important; /* Gleiches edles Soft-Teal mobil */
        border: 1px solid #cfece7 !important;
    }

    /* Monatsname einzeilig schützen */
    .calendar-header h2 {
        font-size: 1.05rem !important;
        white-space: nowrap !important;
        color: #1e3a38 !important; /* Passt die Schriftfarbe harmonisch an */
    }

    /* Mobil-Pfeile: Kein Höhen-Padding, das die Leiste aufblähen könnte */
    .calendar-header a {
        font-size: 20px !important;
        padding: 0 6px !important;
        background: transparent !important;
        color: #1e3a38 !important;
    }

    /* Auch mobil absolut kein Hintergrund bei Interaktion */
    .calendar-header a:hover,
    .calendar-header a:active {
        background: transparent !important;
        color: #10b981 !important;
    }
}

/* Optional: Damit das auch in der Mobilansicht gut aussieht */
.mobile-calendar .day-card.weekend {
    border: 1px solid #e5e7eb !important; /* Dezenter Rahmen, um das Blau hervorzuheben */
    background-color: #f0f7ff !important;
}

/* --- SCHLICHTES, DEZENTES X --- */
.close-x {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #f87171 !important; /* Dein Rot */
    font-size: 24px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    line-height: 1 !important;
    z-index: 10;
    transition: color 0.2s ease !important;
    /* Hier entfernen wir explizit alle Button-Eigenschaften */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: block !important;
}

.close-x:hover {
    color: #b91c1c !important; /* Ein etwas tieferes Rot beim Drüberfahren */
}

.calendar-header a:hover {
    color: #0077b6 !important; /* Blau-Ton beim Drüberfahren */
    transition: color 0.2s;
}

/* --- EDLE, PASTELLE CALENDAR-HEADER-LEISTE --- */
.calendar-header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 25px !important;
    margin-bottom: 20px !important;

    /* Der neue bläulich-grüne Premium-Look */
    background: #ecf8f6 !important; /* Ein ultra-dezent getöntes Soft-Teal/Mint */
    padding: 10px 20px !important;
    border-radius: 12px !important;
    border: 1px solid #cfece7 !important; /* Passende, hauchdünne teal-grüne Konturlinie */
}

/* Styling für die Pfeile in der Leiste (Normalzustand) */
.calendar-header a {
    text-decoration: none !important;
    color: #1e3a38 !important; /* Ein sehr dunkles, edles Tannengrün statt purem Schwarz */
    font-size: 24px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    background: transparent !important;
    transition: color 0.2s ease !important;
}

/* --- MODAL BUTTONS (SHARED) --- */
.as-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.as-btn-save,
.as-btn-cancel {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Comfortaa", sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.2s, opacity 0.2s;
    border: 1px solid transparent;
}

.as-btn-save {
    background-color: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}
.as-btn-save:hover {
    background-color: #bbf7d0;
}

.as-btn-cancel {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}
.as-btn-cancel:hover {
    background-color: #fecaca;
}

/* =========================================
           ARBEITSSTÄTTEN SPEZIFISCHES CSS (ISOLIERT)
           Klassen-Präfix: as- (ArbeitsStätten)
           ========================================= */

/* 1. Haupt-Wrapper (Übernimmt die Optik vom alten calendar-wrapper) */
.as-wrapper {
    position: relative;
    width: 90%;
    max-width: 1100px;
    margin: 80px auto 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-modern);
    box-sizing: border-box;
}

/* 2. Header Bereich */
.as-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    gap: 15px;
    margin-bottom: 35px;
}
.as-header h2 {
    font-family: "Comfortaa", sans-serif;
    margin: 0;
    font-size: 1.25rem;
}
.as-header-btn {
    font-family: "Comfortaa", sans-serif;
    background: #059669;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 3. Desktop Tabelle */
.as-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.as-table th {
    text-align: left;
    padding: 12px;
    color: #888;
    font-weight: bold;
    font-family: "Comfortaa", sans-serif;
    border-bottom: 2px solid #e5e7eb;
}
.as-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}
.as-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}
.as-table-name {
    font-weight: bold;
    font-family: "Comfortaa", sans-serif;
}
.as-table-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 4. Mobile Karten-Ansicht */
.as-mobile-list {
    display: none;
    margin-top: 10px;
}
.as-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.as-card-title {
    font-family: "Comfortaa", sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    color: #111111;
}
.as-card-body {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.as-card-body p {
    margin: 0;
}
.as-card-alt-address {
    margin: 4px 0;
    padding-left: 10px;
    border-left: 3px solid #059669;
    color: #6b7280;
    font-size: 0.82rem;
    background: #f9fafb;
    padding-top: 6px;
    padding-bottom: 6px;
    border-radius: 0 6px 6px 0;
}

/* 5. Floating Action Button (Mobile) */
.as-floating-btn {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #059669;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    font-family: "Comfortaa", sans-serif;
    font-weight: 300;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
    z-index: 999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.as-floating-btn:active {
    transform: scale(0.9);
    background: #047857;
}

/* 6. Formular & Modal Styling */
.as-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 550px;
    background: #f3f4f6;
    box-shadow: var(--shadow-modern);
    border-radius: 16px;
    padding: 25px;
    box-sizing: border-box;
    display: none;
    z-index: 9999;
    overflow-y: auto;
    max-height: 90vh;
}
.as-modal h3 {
    font-family: "Comfortaa", sans-serif;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.as-close-x {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #f87171;
    font-weight: bold;
}
.as-close-x:hover {
    color: #b91c1c;
}

.as-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}
.as-label {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 4px;
    font-family: "Comfortaa", sans-serif;
    color: #4b5563;
}
.as-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: "Comfortaa", sans-serif;
    font-size: 0.9rem;
}
.as-input:focus {
    border-color: #10b981;
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.as-checkbox-wrapper {
    margin-bottom: 20px;
    background: #e5e7eb;
    padding: 10px 12px;
    border-radius: 8px;
}
.as-checkbox-label {
    font-family: "Comfortaa", sans-serif;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #111111;
    user-select: none;
}
.as-billing-block {
    display: none;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}
.as-btn-submit {
    width: 100%;
    background: #059669;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-family: "Comfortaa", sans-serif;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
.as-btn-submit:hover {
    background: #047857;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 10px !important;
    }
    .as-wrapper {
        margin-top: 0px !important;
        padding: 15px !important;
        width: 100% !important;
    }
    .as-header {
        flex-direction: row;
        justify-content: flex-start;
        margin-bottom: 25px;
    }
    .as-header h2 {
        font-size: 1.2rem;
    }
    .as-header-btn {
        display: none;
    }
    .as-floating-btn {
        display: flex;
    }

    .as-table {
        display: none;
    }
    .as-mobile-list {
        display: block;
    }

    .as-modal {
        width: 95%;
        padding: 15px;
        border-radius: 12px;
    }
    .as-form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
    .as-form-row > div {
        width: 100%;
        margin-bottom: 12px;
    }
    .as-card-header {
        display: flex;
        justify-content: space-between; /* Titel links, Buttons rechts */
        align-items: center; /* Vertikal perfekt mittig */
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid #f3f4f6; /* Ganz dezente Trennlinie */
    }

    .as-card-title {
        font-family: "Comfortaa", sans-serif;
        font-weight: bold;
        font-size: 1.05rem;
        color: #111;
        /* ÄNDERUNGEN HIER */
        white-space: normal; /* Erlaubt Zeilenumbruch */
        overflow: visible; /* Schneidet nicht mehr ab */
        line-height: 1.2; /* Etwas Platz zwischen den Zeilen */
        margin-right: 10px;
    }

    .as-card-actions {
        display: flex;
        gap: 4px; /* Minimaler Abstand zwischen Stift und Mülleimer */
        flex-shrink: 0; /* Buttons bleiben immer gleich groß */
    }

    .as-action-btn {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        padding: 6px 10px;
        border-radius: 6px;
        cursor: pointer;
    }
}

/* Styling für das Datums-Input */
input[type="datetime-local"] {
    font-family: 'Comfortaa', sans-serif;
    padding: 10px;
    border: 1px solid #D1D5DB; /* Schönes helles Grau */
    border-radius: 8px;
    background-color: #ffffff;
    color: #374151;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
    cursor: pointer;
}

input[type="datetime-local"]:focus {
    outline: none;
    border-color: #059669; /* Dein Firmen-Grün */
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.1);
}

/* Optional: Damit das Icon in verschiedenen Browsern besser aussieht */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.5); /* Macht das Kalender-Icon etwas dezenter */
}

        /* Globales Comfortaa-Schriftbild erzwingen */
        body, input, select, textarea, button {
            font-family: 'Comfortaa', sans-serif !important;
        }

        /* Tom Select Styling */
        .ts-control {
            width: 100% !important;
            border: 1px solid #D1D5DB !important;
            border-radius: 8px !important;
            padding: 10px !important;
            box-sizing: border-box !important;
            font-size: 1rem !important;
            background-color: #ffffff !important;
        }
        .ts-wrapper { margin-bottom: 22px !important; }
        .ts-dropdown {
            border-radius: 8px !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
            border: 1px solid #BEE3F8 !important;
            background-color: #EDF2F7 !important;
            z-index: 10000 !important;
        }
        .ts-dropdown .option { color: #2D3748 !important; padding: 10px 12px !important; }
        .ts-dropdown .active { background-color: #BEE3F8 !important; color: #1A365D !important; }
        
        /* Absolute Stabilität für Spaltenbreite und Zeilenhöhe */
        .calendar-table {
            table-layout: fixed !important;
            width: 100% !important;
        }
        .calendar-table tbody tr td {
            height: 125px !important;
            max-height: 125px !important;
            vertical-align: top;
            padding: 6px !important;
            box-sizing: border-box;
            overflow: hidden;
        }
        .day-cell {
            height: 100% !important;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .day-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            margin-bottom: 6px;
        }
        
        /* Interner Scrollbereich */
        .day-content-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
            width: 100%;
            overflow-y: auto;
            padding-right: 2px;
        }
        .day-content-area::-webkit-scrollbar { width: 3px; }
        .day-content-area::-webkit-scrollbar-thumb { background: #CBD5E0; border-radius: 3px; }

        /* Basis-Styling für Badges (Desktop) */
        .shift-badge {
            padding: 4px 6px !important;
            border-radius: 4px !important;
            font-size: 0.72rem !important;
            text-align: left !important;
            line-height: 1.2 !important;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
            cursor: pointer;
            display: block !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            width: 100% !important;
            box-sizing: border-box !important;
            transition: transform 0.1s ease, filter 0.1s ease;
        }
        .shift-badge:hover {
            transform: translateY(-1px);
            filter: brightness(0.96);
        }

        /* Basis-Styling für Badges (Mobile) */
        .shift-badge-mobile {
            padding: 10px 12px !important;
            margin-top: 6px !important;
            border-radius: 6px !important;
            font-size: 0.85rem !important;
            text-align: left !important;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
            cursor: pointer;
        }

        /* DYNAMISCHE STATUS-FARBEN */
        /* 1. Planned (Geplant) -> Soft Blau */
        .status-planned {
 background-color: #FEF9C3 !important; /* Sehr helles Soft-Gelb */
    border-left: 3px solid #D69E2E !important;  /* Dunklerer Gelb/Gold-Rand */
    color: #744210 !important;        /* Dunkelbraun für perfekte Lesbarkeit */
        }
        /* 2. Completed (Stattgefunden) -> Soft Grün */
        .status-completed {
            background-color: #E6FFFA !important;
            border-left: 3px solid #319795 !important;
            color: #234E52 !important;
        }
        /* 3. Invoiced (Abgerechnet) -> Soft Grau/Dunkel */
        .status-invoiced {
            background-color: #F7FAFC !important;
            border-left: 3px solid #718096 !important;
            color: #4A5568 !important;
        }

        .shift-notes-mini {
            font-size: 0.75rem !important;
            color: #4A5568 !important;
            margin-top: 5px !important;
            border-top: 1px dashed #CBD5E0 !important;
            padding-top: 4px !important;
        }
		
/* Die Eingabefelder, die Flatpickr automatisch generiert (altInput) styling-technisch angleichen */
.flatpickr-input.form-control {
    background-color: #ffffff !important;
}


/* ========================================================
   MOBILE OPTIMIERUNG FÜR DEN DIENSTPLAN (Bildschirme <= 768px)
   ======================================================== */
@media screen and (max-width: 768px) {
    /* Layout-Anpassung des Hauptcontainers */
    .content-wrapper {
        display: block !important; /* Verhindert Flexbox-Zentrierungskonflikte bei langen Listen */
        padding: 15px 10px !important;
    }

    .calendar-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px auto 0 auto !important;
        padding: 15px !important;
        background: transparent !important; /* Nutzt den edlen Hintergrund der App */
        box-shadow: none !important;
    }

    /* 1. Desktop-Tabelle sauber ausblenden */
    .calendar-table {
        display: none !important;
    }

    /* 2. Mobile Listenansicht aktivieren & stylen */
    .mobile-calendar {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        margin-top: 10px;
    }

    /* Einzelne Tages-Karte */
    .day-card {
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.7) !important;
        border-radius: 16px !important;
        padding: 14px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    /* Spezielle Kennzeichnung für Wochenenden */
    .day-card.weekend {
        background: #f8fafc !important;
        border-left: 4px solid #3182ce !important; /* Dezenter blauer Akzent am linken Rand */
    }

    /* Datumsanzeige (z.B. "Mo, 6. Juli 2026") */
    .day-info {
        font-family: "Comfortaa", sans-serif !important;
        font-weight: 700 !important;
        font-size: 0.95rem !important;
        color: #1a202c !important;
    }

    /* Blaues Plus-Symbol rechts ausrichten und verfeinern */
    .mobile-calendar .add-btn {
        background: #0284c7 !important;
        color: #ffffff !important;
        border: none !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        font-size: 1.15rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2) !important;
        transition: all 0.2s ease !important;
    }

    .mobile-calendar .add-btn:active {
        transform: scale(0.92);
        background: #0369a1 !important;
    }

    /* 3. Mobile Dienst-Einträge (Badges) stylen */
    .shift-badge-mobile {
        width: 100%;
        padding: 10px 14px !important;
        border-radius: 12px !important;
        margin-top: 4px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
        text-align: left;
        box-sizing: border-box;
    }

    .shift-badge-mobile:active {
        transform: scale(0.98);
        box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
    }

    .shift-badge-mobile strong {
        font-family: "Comfortaa", sans-serif !important;
        font-size: 0.95rem;
        display: inline-block;
        margin-bottom: 2px;
    }

    /* Dynamische Statusfarben analog zum Desktop-Design */
    /* Geplant (Planned) -> Soft Blau */
    .shift-badge-mobile.status-planned {
background-color: #FEF9C3 !important; /* Sehr helles Soft-Gelb */
    border-left: 4px solid #D69E2E !important;  /* Dunklerer Gelb/Gold-Rand */
    color: #744210 !important;        /* Dunkelbraun für perfekte Lesbarkeit */
    }
    
    /* Stattgefunden (Completed) -> Soft Grün */
    .shift-badge-mobile.status-completed {
        background-color: #E6FFFA !important;
        border-left: 4px solid #319795 !important;
        color: #234E52 !important;
    }
    
    /* Abgerechnet (Invoiced) -> Soft Grau */
    .shift-badge-mobile.status-invoiced {
        background-color: #F7FAFC !important;
        border-left: 4px solid #718096 !important;
        color: #4A5568 !important;
    }

    /* Mini-Notizvorschau innerhalb des mobilen Badges */
    .shift-notes-mini {
        font-size: 0.78rem !important;
        margin-top: 6px;
        padding-top: 4px;
        border-top: 1px dashed rgba(0, 0, 0, 0.06);
        color: #4a5568 !important;
        font-family: sans-serif !important; /* Erhöht die Lesbarkeit bei Fließtext */
        opacity: 0.85;
    }
}

/* --- 8. FEATURES & LANDING LAYOUT (MODERN & BILLDOC BRANDING) --- */
.features-grid {
    display: grid;
    /* Ergibt ein wunderschönes 3x3 Grid auf dem Desktop */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px 40px; 
    margin-top: 40px;
}

.feature-item {
    padding: 0; 
    background: transparent; 
    border: none; 
    box-shadow: none; 
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alles linksbündig */
    text-align: left;
    transition: transform 0.25s ease-in-out;
}

.feature-item:hover {
    transform: translateY(-4px); /* Dezenter Hover */
}

/* Das schicke, modernisierte Icon-Kästchen in BillDoc-Farben */
.modern-icon {
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--accent-green); /* Dein helles Mint aus :root (#dcfce7) */
    color: #059669; /* Dein kräftiges BillDoc Smaragdgrün */
    border-radius: 12px; /* Sanft abgerundete Ecken */
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.1); /* Leichter grüner Schatten */
    flex-shrink: 0;
}

.modern-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2; 
}

/* Die Überschriften (Dunkel und Edel) */
.feature-item h4 {
    font-family: "Comfortaa", sans-serif !important;
    color: #111827 !important; /* Fast schwarz für höchste Lesbarkeit */
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
}

/* Der Fließtext */
.feature-item p {
    font-family: "Comfortaa", sans-serif !important;
    font-size: 0.95rem !important;
    color: #4b5563 !important; /* Elegantes Dunkelgrau */
    line-height: 1.6 !important;
}

/* Die grünen Schlagwörter im Text (ohne Link-Funktion) */
.feature-item p .highlight-word {
    color: #059669; /* BillDoc Grün */
    font-weight: 700;
}

/* Responsives Verhalten auf Mobilgeräten */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr !important; /* Auf Handys alle untereinander */
        gap: 35px !important;
    }
}

/* --- MODERN HERO SECTION (BillDoc Branding) --- */
.modern-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

/* Linke Seite */
.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Pulsierender Beta Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dcfce7;
    color: #059669;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    border: 1px solid rgba(5, 150, 105, 0.15);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #059669;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* Typografie Hero */
.hero-title {
    font-size: 2.6rem;
    line-height: 1.25;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
}

.hero-highlight {
    color: #059669;
    /* Subtiler Textmarker-Effekt unten am Text */
    background: linear-gradient(120deg, rgba(220, 252, 231, 0.6) 0%, rgba(220, 252, 231, 0.6) 100%);
    background-repeat: no-repeat;
    background-size: 100% 30%;
    background-position: 0 90%;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 35px;
    max-width: 90%;
}

/* Buttons */
.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    background: #059669;
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.hero-btn-primary:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(5, 150, 105, 0.35);
}

.hero-btn-secondary {
    background: transparent;
    color: #111827 !important;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.hero-btn-secondary:hover {
    border-color: #d1d5db;
    background: rgba(0, 0, 0, 0.03);
}

/* Trust Row (unter den Buttons) */
.hero-trust-row {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-item svg {
    width: 16px;
    height: 16px;
    color: #059669;
}

/* Rechte Seite: Edle Glassmorphism Card */
.hero-trust-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.hero-trust-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: #ecf8f6;
    color: #059669;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 26px;
    height: 26px;
}

.hero-trust-card h3 {
    font-size: 1.4rem;
    color: #111827;
    margin-bottom: 12px;
}

.hero-trust-card p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 25px;
}

.hero-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #111827;
    font-weight: 600;
}

.hero-check-list li svg {
    width: 18px;
    height: 18px;
    color: #059669;
    flex-shrink: 0;
}

/* Responsives Verhalten */
@media (max-width: 900px) {
    .modern-hero {
        grid-template-columns: 1fr; /* Auf kleineren Screens untereinander */
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        width: 100%;
    }
    
    .hero-btn-primary, .hero-btn-secondary {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}