/* Ahorn Bus Buchungsformular Styles */

.ahorn-buchung-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.ahorn-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}

.ahorn-header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
}

.ahorn-header .subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin-top: 10px;
}

.info-box {
    background: #e7f3ff;
    border-left: 5px solid #007bff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.info-box h5 {
    color: #0056b3;
    margin-bottom: 15px;
}

.info-box ul {
    margin-bottom: 0;
}

.info-box li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.form-section {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-section h4 {
    color: #28a745;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.btn-ahorn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.btn-ahorn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

.kostenrechnung {
    background: #f8f9fa;
    border: 2px dashed #28a745;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.kostenrechnung h5 {
    color: #28a745;
    margin-bottom: 15px;
}

.kostenrechnung .preis {
    font-size: 1.8em;
    font-weight: bold;
    color: #28a745;
}

.fahrzeit-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.fahrzeit-box h6 {
    color: #856404;
    margin-bottom: 10px;
}

.fahrzeiten-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.fahrzeiten-grid .card {
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.fahrzeiten-grid .card:hover {
    border-color: #28a745;
}

.transport-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.transport-option:hover {
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.transport-option.selected {
    border-color: #28a745;
    background: #f8fff8;
}

.transport-option h6 {
    color: #28a745;
    margin-bottom: 10px;
}

.transport-option .preis {
    font-weight: bold;
    color: #495057;
}

.warning-box {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.warning-box h6 {
    color: #856404;
    margin-bottom: 8px;
}

.success-message {
    background: #d1edff;
    border-left: 5px solid #28a745;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    margin: 20px 0;
}

.success-message h4 {
    color: #28a745;
    margin-bottom: 15px;
}

.booking-id {
    font-family: 'Courier New', monospace;
    font-size: 1.4em;
    font-weight: bold;
    color: #007bff;
    background: #e7f3ff;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    margin: 10px 0;
}

.footer-contact {
    background: #f8f9fa;
    border-top: 3px solid #28a745;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
    border-radius: 0 0 10px 10px;
}

.footer-contact small {
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ahorn-header h1 {
        font-size: 2em;
    }
    
    .fahrzeiten-grid {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .btn-ahorn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Animationen */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    animation: slideIn 0.6s ease-out;
}

.form-section:nth-child(2) { animation-delay: 0.1s; }
.form-section:nth-child(3) { animation-delay: 0.2s; }
.form-section:nth-child(4) { animation-delay: 0.3s; }

/* Validation States */
.form-control.is-valid {
    border-color: #28a745;
}

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

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 5px;
}

.valid-feedback {
    color: #28a745;
    font-size: 0.875em;
    margin-top: 5px;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #28a745;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

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

/* Print Styles */
@media print {
    .ahorn-header {
        background: white !important;
        color: black !important;
    }
    
    .btn-ahorn,
    .footer-contact {
        display: none;
    }
    
    .form-section {
        break-inside: avoid;
    }
}

/* ============================================================
   FRONTEND-KALENDER (Verfügbarkeitsübersicht)
   ============================================================ */

:root {
    --fkal-ok-bg:     #d4edda;
    --fkal-ok-text:   #155724;
    --fkal-ok-border: #a8d5b5;
    --fkal-ok-icon:   #28a745;
    --fkal-warn-bg:   #fff3cd;
    --fkal-warn-text: #856404;
    --fkal-warn-brd:  #ffc107;
    --fkal-full-bg:   #f8d7da;
    --fkal-full-text: #721c24;
    --fkal-full-brd:  #f5c6cb;
    --fkal-free-bg:   #e8f5e9;
    --fkal-free-brd:  #a5d6a7;
    --fkal-off-bg:    #f5f5f5;
    --fkal-primary:   #28a745;
    --fkal-radius:    6px;
}

.chweb-fkal-wrap {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    overflow: hidden;
    margin-bottom: 1.75rem;
	padding-left:0;
	padding-right:0
}

.chweb-fkal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--fkal-primary) 0%, #20c997 100%);
    color: #fff;
}

.chweb-fkal-title {
    flex: 1;
    text-align: center;
}

.chweb-fkal-title h3 {
    margin: 0 0 .25rem;
    font-size: 1.2rem;
    color: #fff;
}

.chweb-fkal-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: background .15s;
    flex-shrink: 0;
}

.chweb-fkal-nav-btn:hover {
    background: rgba(255,255,255,.35);
    color: #fff;
    text-decoration: none;
}

.chweb-fkal-badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    padding: .15rem .6rem;
    border-radius: 50px;
}

.chweb-fkal-badge-on {
    background: rgba(255,255,255,.25);
    color: #fff;
}

.chweb-fkal-badge-off {
    background: rgba(0,0,0,.15);
    color: #fff;
}

.chweb-fkal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    padding: .65rem 1.25rem;
    font-size: .78rem;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.chweb-fkal-leg {
    display: flex;
    align-items: center;
    gap: .3rem;
}

.chweb-fkal-leg-free { color: var(--fkal-ok-icon); }
.chweb-fkal-leg-ok   { color: #1a73e8; }
.chweb-fkal-leg-warn { color: #856404; }
.chweb-fkal-leg-full { color: #721c24; }
.chweb-fkal-leg-off  { color: #999; }

.chweb-fkal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 1rem;
}

.chweb-fkal-head {
    text-align: center;
    font-weight: 700;
    font-size: .75rem;
    padding: .35rem .2rem;
    background: #f0f0f0;
    border-radius: var(--fkal-radius);
    color: #555;
}

.chweb-fkal-head-we {
    background: #e6f0ff;
    color: #1a56db;
}

.chweb-fkal-cell {
    min-height: 80px;
    padding: .45rem .4rem;
    border-radius: var(--fkal-radius);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    font-size: .72rem;
    background: #fff;
}

.chweb-fkal-empty {
    background: transparent;
    border-color: transparent;
    min-height: 0;
}

.chweb-fkal-we { border-color: #c7d2fe; }

.chweb-fkal-off  { background: var(--fkal-off-bg); opacity: .5; }
.chweb-fkal-free { background: var(--fkal-free-bg); border-color: var(--fkal-free-brd); }
.chweb-fkal-ok   { background: #dbeafe; border-color: #93c5fd; }
.chweb-fkal-warn { background: var(--fkal-warn-bg); border-color: var(--fkal-warn-brd); }
.chweb-fkal-full { background: var(--fkal-full-bg); border-color: var(--fkal-full-brd); }

.chweb-fkal-cell[data-datum] {
    cursor: pointer;
    transition: box-shadow .15s, transform .1s;
}

.chweb-fkal-cell[data-datum]:hover {
    box-shadow: 0 0 0 2px var(--fkal-primary);
    transform: scale(1.03);
    z-index: 1;
}

.chweb-fkal-selected {
    box-shadow: 0 0 0 3px var(--fkal-primary) !important;
    z-index: 2;
}

.chweb-fkal-nr {
    font-weight: 700;
    font-size: .9rem;
    color: #222;
    line-height: 1;
}

.chweb-fkal-feiertag {
    font-size: .64rem;
    color: #5b6ef5;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chweb-fkal-avail {
    font-size: .68rem;
    font-weight: 700;
    color: #1a56db;
    margin-top: auto;
}

.chweb-fkal-avail-ok {
    font-size: .68rem;
    color: var(--fkal-ok-icon);
    font-weight: 700;
    margin-top: auto;
}

.chweb-fkal-avail-full {
    font-size: .68rem;
    font-weight: 700;
    color: #721c24;
    margin-top: auto;
}

/* Day-Detail Panel */
.chweb-fkal-detail {
    margin: 0 1rem 1rem;
    border: 2px solid var(--fkal-primary);
    border-radius: var(--fkal-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(40,167,69,.12);
    animation: fkalIn .18s ease;
}

@keyframes fkalIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chweb-fkal-detail-inner {
    display: flex;
    flex-direction: column;
}

.chweb-fkal-detail-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .75rem 1rem;
    background: var(--fkal-primary);
    color: #fff;
}

.chweb-fkal-detail-title h4 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.chweb-fkal-detail-wd {
    font-weight: 400;
    opacity: .85;
    font-size: .9em;
}

.chweb-fkal-detail-acts {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    align-items: center;
}

.chweb-fkal-detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.chweb-fkal-detail-dir {
    padding: .85rem 1rem;
}

.chweb-fkal-detail-dir:first-child {
    border-right: 1px solid #e9ecef;
}

.chweb-fkal-detail-dir-label {
    font-size: .78rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .5rem;
    padding-bottom: .3rem;
    border-bottom: 1px solid #e9ecef;
}

.chweb-fkal-slot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .3rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.chweb-fkal-slot:last-child { border-bottom: none; }

.chweb-fkal-slot-time {
    flex: 1 1 120px;
    font-size: .8rem;
    font-weight: 600;
    color: #333;
}

.chweb-fkal-pill {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.chweb-fkal-pill-ok   { background: var(--fkal-ok-bg);   color: var(--fkal-ok-text);   border-color: var(--fkal-ok-border); }
.chweb-fkal-pill-warn { background: var(--fkal-warn-bg);  color: var(--fkal-warn-text);  border-color: var(--fkal-warn-brd); }
.chweb-fkal-pill-full { background: var(--fkal-full-bg);  color: var(--fkal-full-text);  border-color: var(--fkal-full-brd); }

.chweb-fkal-detail-none {
    font-size: .8rem;
    color: var(--fkal-ok-icon);
    font-weight: 600;
    margin: .25rem 0 0;
}

.chweb-fkal-loading,
.chweb-fkal-error {
    padding: 1rem 1.25rem;
    font-size: .88rem;
    color: #555;
}

.chweb-fkal-error { color: #721c24; }

@media (max-width: 600px) {
    .chweb-fkal-grid {
        gap: 2px;
        padding: .5rem;
    }

    .chweb-fkal-cell {
        min-height: 55px;
        padding: .3rem .25rem;
        font-size: .65rem;
    }

    .chweb-fkal-nr { font-size: .8rem; }

    .chweb-fkal-detail-body {
        grid-template-columns: 1fr;
    }

    .chweb-fkal-detail-dir:first-child {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .chweb-fkal-header {
        flex-direction: column;
        text-align: center;
    }
}