/* CityConflict - Einwilligungsbanner (Consent Mode v2) */

.cc-consent {
    position: fixed;
    inset: 0;
    z-index: 100000; /* ueber allen Spiel-Overlays */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cc-consent--visible {
    opacity: 1;
    visibility: visible;
}

.cc-consent__panel {
    width: 100%;
    max-width: 30rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(28, 38, 48, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transform: translateY(1.5rem);
    transition: transform 0.25s ease;
}

.cc-consent--visible .cc-consent__panel {
    transform: translateY(0);
}

.cc-consent__title {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff;
    /* Mobile-Game Textstil: 8-Richtungen-Kontur + harter Block-Schatten */
    text-shadow:
        -1px -1px 0 #000, 1px -1px 0 #000,
        -1px  1px 0 #000, 1px  1px 0 #000,
         0   -1px 0 #000, 0    1px 0 #000,
        -1px  0   0 #000, 1px  0   0 #000,
         0 1px 0 #000, 0 2px 0 rgba(0, 0, 0, 0.6);
}

.cc-consent__text {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #cfd8dc;
}

.cc-consent__link {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #64b5f6;
    text-decoration: underline;
}

.cc-consent__link:hover,
.cc-consent__link:focus {
    color: #90caf9;
}

.cc-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cc-consent__btn {
    flex: 1 1 8rem;
    min-height: 48px; /* Touch-Target */
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 900;
    color: #ffffff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.5), 1px -1px 0 rgba(0, 0, 0, 0.5),
        -1px  1px 0 rgba(0, 0, 0, 0.5), 1px  1px 0 rgba(0, 0, 0, 0.5),
         0 1px 0 rgba(0, 0, 0, 0.6);
    transition: filter 0.15s ease, transform 0.1s ease;
}

.cc-consent__btn:active {
    transform: translateY(1px);
}

.cc-consent__btn:hover {
    filter: brightness(1.12);
}

/* Blau = Standard-Aktion */
.cc-consent__btn--accept {
    background: #3f51b5;
    box-shadow: 0 3px 0 #2c3a8c;
}

/* Neutral/sekundaer - bewusst gleichwertig sichtbar (DSGVO: Ablehnen
   muss genauso leicht erreichbar sein wie Zustimmen) */
.cc-consent__btn--reject {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
    .cc-consent {
        align-items: center;
    }
}

@media (max-width: 380px) {
    .cc-consent__panel {
        padding: 1rem;
    }

    .cc-consent__btn {
        flex-basis: 100%;
    }
}
