/* Cookie-Einwilligung & Karten-Hinweis */
.cookie-consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 10000;
    padding: 0.75rem;
    pointer-events: none;
}

.cookie-consent:not(.is-hidden) {
    pointer-events: auto;
}

.cookie-consent.is-hidden {
    display: none;
}

.cookie-consent-panel {
    max-width: 42rem;
    margin: 0 auto;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #fed7aa;
    border-radius: 1.25rem;
    box-shadow: 0 12px 40px -12px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(10px);
}

.cookie-consent-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.cookie-consent-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.35rem;
}

.cookie-consent-text {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #4b5563;
}

.cookie-consent-text a {
    color: #ea580c;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.cookie-consent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    cursor: pointer;
}

.cookie-consent-btn-primary {
    background: #f97316;
    color: #fff;
}

.cookie-consent-btn-primary:hover {
    background: #ea580c;
}

.cookie-consent-btn-secondary {
    background: #fff;
    color: #374151;
    border-color: #e5e7eb;
}

.cookie-consent-btn-secondary:hover {
    background: #f9fafb;
}

.cookie-consent-btn-ghost {
    background: transparent;
    color: #6b7280;
}

.cookie-consent-btn-ghost:hover {
    color: #ea580c;
}

.cookie-consent-options {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.cookie-consent-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    border-radius: 0.85rem;
}

.cookie-consent-option-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
}

.cookie-consent-option-desc {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.15rem;
    line-height: 1.45;
}

.cookie-consent-always {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #15803d;
    background: #dcfce7;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
}

.cookie-consent-switch {
    position: relative;
    flex-shrink: 0;
    width: 2.5rem;
    height: 1.4rem;
    cursor: pointer;
}

.cookie-consent-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent-switch-ui {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 9999px;
    transition: background 0.2s;
}

.cookie-consent-switch-ui::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.1rem;
    height: 1.1rem;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.cookie-consent-switch input:checked + .cookie-consent-switch-ui {
    background: #f97316;
}

.cookie-consent-switch input:checked + .cookie-consent-switch-ui::after {
    transform: translateX(1.05rem);
}

.map-consent-gate {
    position: absolute;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 0.96));
}

.map-consent-gate-card {
    max-width: 22rem;
    text-align: center;
    padding: 1.25rem 1rem;
    background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 1rem;
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.18);
}

.map-consent-gate-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.35rem;
}

.map-consent-gate-text {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

.map-consent-gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.85rem;
}

.map-consent-gate-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.65rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    cursor: pointer;
}

.map-consent-gate-btn-primary {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

.map-consent-gate-btn-primary:hover {
    background: #ea580c;
}

.cookie-consent-fab {
    position: fixed;
    left: 0.75rem;
    bottom: 0.75rem;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9a3412;
    background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 9999px;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.2);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.cookie-consent-fab:hover {
    background: #fff7ed;
    border-color: #fdba74;
}

.cookie-consent-fab.is-hidden {
    display: none;
}

.cookie-consent-fab-label {
    line-height: 1;
}

@media (min-width: 1024px) {
    .cookie-consent-fab {
        left: auto;
        right: 0.75rem;
        bottom: 0.75rem;
    }
}
