/* ============================================================
   TESLA TAXI 24 – Components
   Wiederverwendbare UI-Bausteine
   ============================================================ */

/* ---------- Feature List ---------- */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.feature-list li {
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 1rem; color: var(--text-main); line-height: 1.6;
}
.feature-list li::before {
    content: '✓'; color: var(--mint-dark); font-weight: 800;
    font-size: 1.2rem; line-height: 1.2; flex-shrink: 0;
}

/* ---------- Target Cards ---------- */
.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; margin-top: 40px;
}
.target-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 32px 24px;
    display: flex; flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.target-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: var(--mint);
}
.target-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.target-card p  { font-size: 0.9rem; flex: 1; margin-bottom: 16px; }
.target-card--featured { border-color: var(--mint); background: var(--bg-body); }

.target-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--mint-light);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; color: var(--brand);
}
.target-link {
    font-size: 0.85rem; font-weight: 700; color: var(--brand);
    display: flex; align-items: center; gap: 4px;
    transition: color 0.2s;
}
.target-link:hover { color: var(--mint-dark); }

/* ---------- Price Table / Price Box ---------- */
.price-table {
    width: 100%; border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-md); overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.price-table th,
.price-table td {
    padding: 16px 24px; text-align: left;
    border-bottom: 1px solid var(--border);
}
.price-table th {
    background: var(--bg-body);
    font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-muted);
}
.price-table td { font-size: 1rem; font-weight: 500; color: var(--text-main); }
.price-table tr:last-child td { border-bottom: none; }

.price-box-amount {
    font-size: 1.8rem; margin-bottom: 16px;
    color: var(--brand); font-weight: 700; letter-spacing: -0.02em;
}

/* ---------- Radio Cards ---------- */
.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-md); padding: 16px;
    cursor: pointer; transition: all 0.2s; text-align: center;
}
.radio-card:hover { border-color: var(--mint); }
.radio-card input { display: none; }
.radio-card label { font-weight: 600; display: block; }
.radio-card small {
    display: block; font-weight: 400;
    color: var(--text-muted); font-size: 0.8rem; margin-top: 4px;
}
.radio-card input:checked + label { color: var(--brand); }
.radio-card input:checked + label::before { content: '✓ '; color: var(--mint-dark); }

/* ---------- City Cards ---------- */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; margin-top: 32px;
}
.city-card {
    position: relative; border-radius: var(--radius-md);
    overflow: hidden; aspect-ratio: 4 / 3; display: block;
    transition: transform 0.2s;
}
.city-card:hover { transform: translateY(-4px); }
.city-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.city-card:hover img { transform: scale(1.05); }
.city-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(16,62,54,0.95) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px; color: var(--text-light);
}
.city-overlay h3 { color: var(--text-light); font-size: 1.3rem; margin-bottom: 4px; }
.city-overlay p  { color: rgba(255,255,255,0.85); font-size: 0.9rem; }

/* ---------- Process Steps ---------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    counter-reset: step;
}
.process-step {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px 24px 32px;
    position: relative;
    counter-increment: step;
}
.process-step::before {
    content: counter(step);
    position: absolute; top: -16px; left: 24px;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--brand); color: var(--mint);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.9rem;
}
.process-step h3 { margin-bottom: 8px; }
.process-step p  { font-size: 0.95rem; }

/* ---------- Quote Box ---------- */
.quote-box {
    background: var(--brand-deep);
    padding: 60px 40px;
    border-radius: var(--radius-md);
    text-align: center;
    margin: 48px 0;
}
.quote-box blockquote {
    font-size: 1.4rem; font-style: italic;
    color: var(--text-light);
    max-width: 800px; margin: 0 auto 20px; line-height: 1.4;
}
.quote-box cite { color: var(--mint); font-weight: 600; font-style: normal; font-size: 1rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--mint); }
.faq-item summary {
    padding: 20px 24px; font-weight: 600; font-size: 1.05rem;
    color: var(--text-main); list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; font-size: 1.4rem;
    color: var(--brand); font-weight: 400; flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-answer { padding: 20px 24px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- Alerts ---------- */
.alert {
    margin-bottom: 24px; padding: 20px;
    border-radius: var(--radius-md); text-align: center;
    animation: fadeUp 0.35s ease;
}
.alert-success { background: var(--mint-light); border: 1px solid var(--mint); }
.alert-error   { background: var(--error-light); border: 1px solid var(--error-border); }
.alert-label {
    display: block; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.alert-success .alert-label { color: var(--mint-dark); }
.alert-error   .alert-label { color: var(--error-text); }
.alert p { margin-top: 8px; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Form Groups ---------- */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 8px; color: var(--text-main);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: var(--bg-body); color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(16,62,54,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note {
    font-size: 0.8rem; color: var(--text-muted);
    margin-top: 12px; text-align: center; line-height: 1.5;
}

/* ---------- Honeypot ---------- */
.hp-field {
    position: absolute !important; left: -9999px !important;
    width: 1px; height: 1px; overflow: hidden; opacity: 0;
}

.autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 9999;
    max-height: 260px;
    overflow-y: auto;
    margin-top: 4px;
}
.autocomplete-item {
    display: block; width: 100%; padding: 12px 16px;
    background: none; border: none; border-bottom: 1px solid var(--border);
    font-size: 0.9rem; color: var(--text-main);
    text-align: left;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: var(--bg-body); }

/* ---------- Bento Grid ---------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin-top: 32px;
}
.bento-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 32px;
    min-height: 220px;
    display: flex; flex-direction: column; gap: 12px;
}
.bento-wide {
    grid-column: span 2;
    position: relative; overflow: hidden;
    padding: 0; min-height: 260px;
}
.bento-wide img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 25%;
    position: absolute; inset: 0; z-index: 0;
}
.bento-wide .bento-content {
    position: relative; z-index: 1;
    padding: 32px;
    background: linear-gradient(to right, rgba(16,62,54,0.95), transparent);
    height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.bento-wide .bento-content h3 { color: var(--text-light); }
.bento-wide .bento-content p  { color: var(--text-light-muted); max-width: 320px; }
.bento-icon-sm {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand); margin-bottom: 8px;
}

/* ---------- Google Reviews ---------- */
.google-reviews-wrapper {
    margin: 48px auto;
    max-width: 1000px;
    text-align: center;
}
.google-reviews-header { margin-bottom: 32px; }
.google-reviews-stars {
    font-size: 2rem; color: #fbbc04;
    letter-spacing: 4px; margin-bottom: 8px;
}
.google-reviews-rating {
    font-size: 1.1rem; color: var(--text-main); font-weight: 600;
}
.google-reviews-count {
    font-weight: 400; color: var(--text-muted); font-size: 0.9rem;
}
.google-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; margin-bottom: 24px; text-align: left;
}
.google-review-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 24px;
    display: flex; flex-direction: column;
}
.google-review-stars { font-size: 1rem; color: #fbbc04; margin-bottom: 12px; }
.google-review-text {
    font-size: 0.95rem; color: var(--text-main);
    font-style: italic; line-height: 1.6;
    flex: 1; margin-bottom: 16px;
}
.google-review-author {
    font-size: 0.85rem; display: flex; flex-direction: column;
}
.google-review-author strong { color: var(--brand); }
.google-review-author span {
    color: var(--text-muted); font-size: 0.75rem; margin-top: 2px;
}
.google-reviews-source {
    font-size: 0.75rem; color: var(--text-muted); margin-top: 16px;
}
.google-review-link {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--brand); text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}
.google-review-link:hover { color: var(--mint-dark); opacity: 0.8; }
.google-review-link svg { margin-bottom: 1px; color: var(--text-muted); transition: color 0.2s; }
.google-review-link:hover svg { color: var(--mint-dark); }

/* ---------- Cookie Banner ---------- */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: var(--brand); color: var(--text-light);
    padding: 24px; z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    transform: translateY(100%); transition: transform 0.4s ease;
    display: none;
}
.cookie-banner.is-visible { display: block; transform: translateY(0); }
.cookie-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    gap: 32px; flex-wrap: wrap;
}
.cookie-content { flex: 1; min-width: 300px; }
.cookie-content h3 { color: var(--mint); font-size: 1.1rem; margin-bottom: 8px; }
.cookie-content p { font-size: 0.9rem; color: var(--text-sub); margin: 0; }
.cookie-link { color: var(--mint); text-decoration: underline; margin-left: 4px; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions .btn { font-size: 0.9rem; padding: 10px 20px; white-space: nowrap; }

/* ---------- Responsive Components ---------- */
@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-wide { grid-column: span 1; min-height: 300px; }
    .radio-group { grid-template-columns: 1fr; }
    .cookie-container { flex-direction: column; align-items: flex-start; }
    .cookie-actions { width: 100%; flex-direction: column; }
    .cookie-actions .btn { width: 100%; }
}
@media (max-width: 600px) {
    .quote-box { padding: 32px 20px; }
    .quote-box blockquote { font-size: 1.1rem; }
    .price-box-amount { font-size: 1.5rem; }
    .google-reviews-stars { font-size: 1.5rem; }
    .google-reviews-grid { grid-template-columns: 1fr; }
}
/* ---------- Floating WhatsApp Button ---------- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px; /* Zwingt den Button nach rechts unten */
    background-color: #25d366; /* Das offizielle WhatsApp-Grün */
    color: #ffffff !important;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

/* Wichtig: Das SVG im Button muss kleiner sein */
.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

@media (max-width: 900px) {
    .whatsapp-float {
        bottom: 95px; 
        right: 20px; 
        width: 50px; 
        height: 50px;
    }
    .whatsapp-float svg { 
        width: 24px; 
        height: 24px; 
    }
}

.transfer-card.is-hidden {
    display: none !important;
}

/* Suchfeld für weitere Orte */
.city-search-wrapper {
    margin: 40px auto 0;
    max-width: 400px;
    text-align: center;
    position: relative;
}
.city-search-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font);
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.city-search-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(16,62,54,0.1);
}
.city-search-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    display: block;
}

/* Autocomplete Suchfeld */
.city-search-wrapper {
    margin: 40px auto 60px; /* 60px unten, damit Platz für das Dropdown ist */
    max-width: 400px;
    text-align: center;
}

/* Der Container, der Input und Dropdown zusammenhält */
.city-search-input-wrap {
    position: relative;
    width: 100%;
}

.city-search-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font);
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.city-search-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(16,62,54,0.1);
}

.city-search-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
    display: block;
}

/* Das Dropdown-Menü */
.city-suggestions {
    position: absolute;
    top: calc(100% + 4px); /* 4px Abstand zum Input */
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 9999;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 220px;
    overflow-y: auto;
    text-align: left;
}
.city-suggestions.is-hidden {
    display: none;
}
.city-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s, color 0.2s;
}
.city-suggestion-item:last-child {
    border-bottom: none;
}
.city-suggestion-item:hover, 
.city-suggestion-item.is-selected {
    background: var(--bg-body);
    color: var(--brand);
    font-weight: 500;
}

/* ============================================================
   Footer Agentur Credit
   ============================================================ */
.footer-credit {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-light-muted);
}

.footer-credit a {
    color: var(--mint);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s, text-decoration 0.2s;
}

.footer-credit a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.footer-credit-sep {
    margin: 0 6px;
    opacity: 0.5;
}