@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/montserrat-v31-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/montserrat-v31-latin-700.woff2') format('woff2');
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #1D1D1B;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.main-header {
    background-color: #ffffff;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #BD2949;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header-grid {
    display: grid;
    grid-template-columns: 250px 1fr auto;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    gap: 20px;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    justify-content: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #0E1425;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #BD2949;
}

.dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 20px; 
    margin-bottom: -20px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 260px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    border-radius: 15px;
    top: 45px; 
    left: 0;
    padding: 15px 0;
    border: 1px solid #FAF4F5;
    z-index: 2000;
    list-style: none;
}

.dropdown:hover .dropdown-content {
    display: grid;
}

.dropdown-content li {
    list-style: none;
}

.dropdown-content a {
    color: #0E1425;
    padding: 10px 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    display: block;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background-color: #FAF4F5;
    color: #BD2949;
}

.divider hr {
    border: 0;
    border-top: 1px solid #FAF4F5;
    margin: 8px 25px;
}

.phone-button {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0E1425;
    font-weight: 700;
    border: 2px solid rgba(189, 41, 73, 0.5);
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.phone-button:hover {
    background-color: rgba(189, 41, 73, 0.5);
    border-color: rgba(189, 41, 73, 1);
    color: #ffffff;
}

.phone-button:hover i {
    color: #ffffff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-light {
    background-color: #FAF4F5;
    border-radius: 30px;
    padding: 40px;
    margin: 20px 0;
}

.section-dark {
    background-color: #0E1425;
    color: #ffffff;
    border-radius: 30px;
    padding: 40px;
    margin: 20px 0;
}

.main-footer {
    background-color: #ffffff;
    padding: 60px 0 40px 0;
    border-top: 1px solid #FAF4F5;
    color: #1D1D1B;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.footer-logo {
    height: 40px;
    margin-top: 10px;
}

.footer-col h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0E1425;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #BD2949;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #0E1425;
}

.footer-socials {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: #BD2949;
    font-size: 1.2rem;
    text-decoration: none;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: #FAF4F5;
    border-radius: 15px;
    padding: 30px;
    border-left: 5px solid #BD2949;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.custom-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 5px;
    color: #BD2949;
}
.custom-tooltip .tooltip-box {
    visibility: hidden;
    width: 260px;
    background-color: #0E1425;
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 100;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 400;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    pointer-events: none;
}
.custom-tooltip .tooltip-box::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #0E1425 transparent transparent transparent;
}
.custom-tooltip:hover .tooltip-box {
    visibility: visible;
    opacity: 1;
}

.calendar-table { width: 100%; border-collapse: collapse; background: white; table-layout: fixed; }
.calendar-table th, .calendar-table td { border: 1px solid #e2e8f0; text-align: center; padding: 4px 2px; height: 35px;}

.sticky-col { 
    position: sticky; 
    left: 0; 
    background: #ffffff; 
    z-index: 10; 
    width: 180px; 
    text-align: left !important; 
    padding-left: 15px !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    border-right: 2px solid #cbd5e1 !important;
}

.calendar-table thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 5;
}
.calendar-table thead th.sticky-col {
    z-index: 15;
}

.day-num { font-size: 0.8rem; font-weight: bold; color: #0E1425; }
.day-name { font-size: 0.65rem; color: #718096; text-transform: uppercase; line-height: 1; display: block; margin-top: 2px;}

.sat-bg { background-color: #fff7ed !important; } 
.sun-bg { background-color: #fef2f2 !important; } 
.other-month { opacity: 0.6; background-color: #f1f5f9; }

.status-genehmigt { background-color: #2D401F !important; height: 20px; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.status-beantragt { background-color: #f39c12 !important; height: 20px; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }

.calendar-wrapper { 
    overflow-x: auto; 
    border-radius: 10px; 
    border: 1px solid #e2e8f0; 
    background: #fff;
    max-height: 600px;
    overflow-y: auto;
}

.filter-bar { 
    padding: 15px; 
    margin-bottom: 1.5rem; 
    display: flex; 
    gap: 20px; 
    align-items: center; 
}

.filter-select {
    padding: 10px 15px;
    border-radius: 50px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fff;
    cursor: pointer;
}

.kalender-container { 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
}

.kundenliste-container {
    width: 300px;
    border: 1px solid #FAF4F5;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    align-self: flex-start;
    max-height: 80vh; 
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

#kunden-liste {
    overflow-y: auto;
    flex: 1; 
    list-style: none; 
    padding: 0;
    margin: 0;
}

.kundenliste-item {
    padding: 10px 12px;
    margin-bottom: 8px;
    background-color: #f8fafc;
    cursor: grab;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0E1425;
    transition: background-color 0.2s;
}

.kundenliste-item:hover { 
    background-color: #e2e6ea; 
}

.fc-event { cursor: pointer; }
.fc-event-main-frame { font-size: 11px; padding: 2px; }

.fc-bg-event .fc-event-title {
    color: #0E1425;
    font-weight: bold;
    font-size: 0.85rem;
    margin: 5px;
    opacity: 0.8;
}

.fc-daygrid-day-frame {
    min-height: 100px !important; 
}

.fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    min-height: 1em !important;
}

.fc .fc-view-harness {
    height: auto !important; 
}

.fc-event-title {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
}

.fc-daygrid-event {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    border-radius: 4px !important;
}

.fc-feiertag {
    background-color: rgba(255, 204, 204, 0.4) !important;
    border: none !important;
}

.customer-grid-header {
    display: grid;
    grid-template-columns: 100px 1fr 1fr 1fr 1fr 1fr 110px;
    background-color: #0E1425;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
    font-weight: 700;
    font-size: 0.9rem;
}

.customer-list {
    background-color: #ffffff;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    border: 1px solid #FAF4F5;
    border-top: none;
}

.customer-row {
    display: grid;
    grid-template-columns: 100px 1fr 1fr 1fr 1fr 1fr 110px;
    padding: 15px 20px;
    border-bottom: 1px solid #FAF4F5;
    align-items: center;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.customer-row:hover {
    background-color: #f8fafc;
}

.clickable-date {
    cursor: pointer;
    color: #BD2949;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.clickable-date:hover {
    color: #0E1425;
    text-decoration: underline;
}
.table-dienstplan {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: #fff;
}
.table-dienstplan th {
    background-color: #0E1425;
    color: #fff;
    padding: 12px 15px;
    text-align: left;
}
.table-dienstplan td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}
.table-dienstplan tr:hover td {
    background-color: #f8fafc;
}
.invoice-row {
    border-bottom: 1px solid #c5c8cd;
    transition: background-color 0.2s ease;
}
.invoice-row:hover {
    background-color: #d7dde1;
}
.invoice-row:last-child {
    border-bottom: none;
}
.action-icon {
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.action-icon:hover {
    transform: scale(1.2);
}
.icon-view { color: #ce7b4e; }
    .icon-edit { color: #4dd660; }
    .icon-bezahlt { color: #28a745; }
    .icon-erinnerung { color: #f39c12; }
    .icon-storno { color: #dc3545; }
    .action-icons { display: grid; grid-template-columns: repeat(2, max-content); gap: 15px; justify-content: end; align-items: center; }
    .action-icons a { text-decoration: none; font-size: 1.1rem; transition: transform 0.2s; }
    .action-icons a:hover { transform: scale(1.2); }

/* ========================================================= */
/* LOGIN PAGELAYOUT (GRID)                                  */
/* ========================================================= */
body.login-page {
    display: grid;
    grid-template-rows: max-content 1fr;
    min-height: 100vh;
    background-color: #f8fafc;
    margin: 0;
}

.login-header {
    display: grid;
    padding: 40px 30px; /* Mehr Platz oben/unten */
    justify-content: start;
}

.login-header img {
    width: 350px; /* User-Anforderung: Exakt 250px width */
    height: auto;
}

.login-main {
    display: grid;
    justify-content: center;
    align-items: start;
    padding: 20px;
}

.login-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 400px;
    border: 1px solid #FAF4F5;
    border-left: 5px solid #BD2949; /* Roter Rand links, wie in image_1.png */
    box-sizing: border-box;
    margin-top: 8vh;
}

.login-title {
    text-align: center;
    color: #0E1425;
    margin-top: 0;
    margin-bottom: 30px;
}

.login-error-message {
    background-color: #f8d7da;
    border-left: 5px solid #dc3545;
    color: #721c24;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 10px;
}

.login-success-message {
    background-color: #d4edda;
    border-left: 5px solid #28a745;
    color: #155724;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 10px;
}
/* In deiner assets/css/styles.css */
.icon-view { color: #ce7b4e !important; }
.icon-edit { color: #4dd660 !important; }
.icon-bezahlt { color: #28a745 !important; }
.icon-erinnerung { color: #f39c12 !important; }
.icon-storno { color: #dc3545 !important; }

.nav-link.active-link {
    color: #BD2949 !important;
    font-weight: 700 !important;
}