/* ============================================================
   TESLA TAXI 24 – Pages
   Seitenspezifische Styles (Calculator, Booking, Airport, Fleet, Scrolly)
   ============================================================ */

/* ---------- Calculator ---------- */
.calc-box {
    background: var(--bg-card); color: var(--text-main);
    padding: 32px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}
.hero-calc .calc-box { border-radius: var(--radius-lg); }

/* Heading-Fix: h2 statt h3 für Lighthouse Heading Order */
.calc-box h2 { 
    font-size: 1.3rem; 
    margin-bottom: 8px; 
    color: var(--brand); 
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.calc-box > p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; }

.calc-field {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-body); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 12px;
    transition: border-color 0.2s; position: relative;
}
.calc-field:focus-within { border-color: var(--brand); }
.calc-field label { display: none; }
.calc-field input {
    border: none; background: transparent; flex: 1; width: 100%;
    font-size: 0.95rem; color: var(--text-main);
    outline: none; padding: 4px 0;
}
.calc-field input::placeholder { color: var(--text-muted); }

.calc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.calc-dot-start { background: var(--mint); }
.calc-dot-end   { background: var(--brand); }

.calc-locate {
    background: none; border: none;
    color: var(--text-muted); padding: 4px; display: flex; align-items: center;
    border-radius: var(--radius-sm); transition: color 0.2s;
}
.calc-locate:hover { color: var(--brand); }
.calc-locate:disabled { opacity: 0.5; cursor: not-allowed; }

.calc-loading {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.9rem; color: var(--text-muted); margin: 16px 0;
}
.calc-spinner {
    width: 16px; height: 16px;
    border: 2px solid var(--border); border-top-color: var(--brand);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.calc-result {
    background: var(--mint-light); border: 1px solid var(--mint);
    border-radius: var(--radius-md); padding: 20px;
    text-align: center; margin-top: 16px;
    animation: fadeUp 0.35s ease;
}
.calc-result.error { background: var(--error-light); border-color: var(--error-border); }
.calc-result-label {
    display: block; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--mint-dark); margin-bottom: 4px;
}
.calc-result-price {
    display: block; font-size: 2.5rem; font-weight: 800;
    color: var(--text-main); line-height: 1; margin-bottom: 4px;
    letter-spacing: -0.03em;
}
.calc-result-detail { font-size: 0.85rem; color: var(--text-muted); }

.calc-book-btn {
    display: block; width: 100%; margin-top: 12px;
    background: var(--brand); color: var(--text-light);
    padding: 14px; border-radius: var(--radius-md);
    font-weight: 600; font-size: 0.95rem;
    border: none; transition: background 0.2s;
}
.calc-book-btn:hover { background: var(--brand-hover); }

.calc-note {
    font-size: 0.75rem; color: var(--text-muted);
    text-align: center; margin-top: 16px; line-height: 1.5;
}
.calc-note a { color: var(--brand); text-decoration: underline; }

/* ---------- Scrollytelling ---------- */
.scrolly-section { height: 400vh; position: relative; background: var(--bg-dark); }
.scrolly-sticky {
    position: sticky; top: 0;
    height: 100vh; width: 100%; overflow: hidden;
}
#scrolly-canvas { width: 100%; height: 100%; object-fit: cover; display: block; }

.scrolly-feature-box {
    position: absolute; bottom: 15%; left: 5%;
    background: var(--brand); color: var(--text-light);
    padding: 32px; max-width: 400px;
    border-radius: var(--radius-md);
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none; z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.scrolly-feature-box.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scrolly-feature-box h3 {
    color: var(--mint); font-size: 1.4rem;
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 8px;
    border-bottom: 2px solid rgba(44,236,154,0.3);
    padding-bottom: 8px;
}
.scrolly-feature-box p { color: rgba(255,255,255,0.95); font-size: 1rem; line-height: 1.5; }

/* ---------- Booking (buchen.php) ---------- */
.booking-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}
.booking-main { min-width: 0; }
.booking-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.booking-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.booking-summary-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.3s ease;
}
.booking-summary-body { padding: 24px; }
.booking-summary-body h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--brand);
}
.booking-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    gap: 12px;
}
.booking-summary-row:last-of-type { border-bottom: none; }
.booking-summary-row strong {
    color: var(--text-main);
    font-weight: 600;
    text-align: right;
}
.booking-summary-row .label {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.booking-summary-price {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--brand);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.booking-summary-price .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
}
.booking-summary-price .amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.02em;
}
.booking-trust-list {
    list-style: none;
    padding: 20px 24px;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.booking-trust-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.booking-trust-list li::before {
    content: '✓';
    color: var(--mint-dark);
    font-weight: 800;
    font-size: 1rem;
}
.booking-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--mint);
    font-weight: 800;
    font-size: 0.85rem;
    margin-right: 12px;
    flex-shrink: 0;
}
.booking-step-heading {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 700;
}
.vehicle-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.vehicle-option {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
}
.vehicle-option:hover { border-color: var(--mint); }
.vehicle-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.vehicle-option img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.vehicle-option-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    display: block;
    margin-bottom: 4px;
}
.vehicle-option-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.vehicle-option input:checked ~ .vehicle-option-inner { outline: none; }
.vehicle-option:has(input:checked) {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(16,62,54,0.1);
}
.vehicle-option:has(input:checked)::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--brand);
    color: var(--mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

/* ---------- Return Option (buchen.php) ---------- */
.return-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: var(--mint-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.return-option:hover { border-color: var(--brand); }
.return-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--brand);
    flex-shrink: 0;
    cursor: pointer;
}
.return-option-label { flex: 1; cursor: pointer; }
.return-option-label strong {
    display: block;
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 4px;
}
.return-option-label small {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}
.return-fields {
    padding: 20px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}
.return-fields h4 {
    font-size: 0.95rem;
    color: var(--brand);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- Transfer List (flughafentransfer.php) ---------- */
.transfer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.transfer-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.transfer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: var(--mint);
}
.transfer-airport {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.transfer-airport-code {
    background: var(--brand);
    color: var(--mint);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.transfer-airport-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.3;
}
.transfer-route {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.transfer-route::before {
    content: '→';
    color: var(--brand);
    font-weight: 800;
}
.transfer-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.02em;
}
.transfer-price small {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
}
.transfer-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.transfer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}
.transfer-return-link {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    display: block;
}
.transfer-return-link:hover {
    background: var(--mint-light);
    color: var(--mint-dark);
}
.transfer-return-link::before { content: '+ '; font-weight: 800; }

/* ---------- Transfer Toggle ---------- */
.transfer-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
.transfer-toggle {
    display: inline-flex;
    background: var(--bg-body);
    border-radius: 50px;
    padding: 4px;
    gap: 4px;
    border: 1px solid var(--border);
}
.transfer-toggle button {
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    background: transparent;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.transfer-toggle button:hover:not(.active) { color: var(--text-main); }
.transfer-toggle button.active {
    background: var(--brand);
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(16,62,54,0.2);
}

/* ---------- Fleet Cards (flotte.php) ---------- */
.fleet-card {
    display: flex; flex-direction: column; height: 100%;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
}
.fleet-card:hover {
    transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12); border-color: var(--brand);
}
.fleet-card img {
    width: 100%; height: 240px; object-fit: cover; display: block; transition: transform 0.5s ease;
}
.fleet-card:hover img { transform: scale(1.03); }
.fleet-card-body {
    padding: 28px; display: flex; flex-direction: column; flex: 1; gap: 16px;
}
.fleet-card-body h3 { font-size: 1.35rem; color: var(--text-main); margin: 0; }
.fleet-card-body > p { font-size: 0.95rem; color: var(--text-muted); margin: 0; line-height: 1.6; }
.fleet-card-body .feature-list { flex: 1; margin: 0; }
.fleet-card-body .btn { margin-top: auto; position: relative; }
.fleet-card-body .btn::after { content: '→'; margin-left: 8px; transition: transform 0.2s; display: inline-block; }
.fleet-card-body .btn:hover::after { transform: translateX(4px); }

.fleet-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.fleet-gallery img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); display: block; transition: transform 0.3s ease;
}
.fleet-gallery img:hover { transform: scale(1.02); }

.grid-2--equal { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }

/* ============================================================
   Responsive – Pages
   ============================================================ */
@media (max-width: 1024px) {
    .scrolly-section { height: 300vh; position: relative; }
    .scrolly-sticky  { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; }
    .scrolly-feature-box {
        position: absolute; bottom: 10%; left: 5%; right: 5%; max-width: none; margin: 0; padding: 24px; opacity: 0; transform: translateY(20px);
    }
    .scrolly-feature-box.active { opacity: 1; transform: translateY(0); }
    .scrolly-feature-box:not(.active) { pointer-events: none; }

    .booking-layout { grid-template-columns: 1fr; }
    .booking-sidebar { position: static; }
    .vehicle-picker { grid-template-columns: 1fr; }
    .grid-2--equal { grid-template-columns: 1fr; }
    .fleet-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .calc-box { padding: 24px; }
    .calc-result-price { font-size: 2.2rem; }
    .transfer-toggle button { padding: 8px 16px; font-size: 0.85rem; }
}

.transfer-card.is-highlighted {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(44, 236, 154, 0.4), 0 12px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    animation: pulseHighlight 2s ease-in-out;
}

@keyframes pulseHighlight {
    0% { box-shadow: 0 0 0 0 rgba(44, 236, 154, 0.8); }
    50% { box-shadow: 0 0 0 8px rgba(44, 236, 154, 0); }
    100% { box-shadow: 0 0 0 0 rgba(44, 236, 154, 0); }
}