/* ========================================================
   Kran-Finder – Cookie-Consent-Banner
   Burgard-CI: Anthrazit-Leiste, Orange als Primäraktion
   ======================================================== */

.consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    background: var(--color-primary, #1d1d1b);
    color: rgba(255, 255, 255, 0.88);
    border-top: 3px solid var(--color-accent, #f7a600);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    font-size: 0.85rem;
    line-height: 1.55;
    animation: consent-in 0.25s ease-out;
}

@keyframes consent-in {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .consent { animation: none; }
}

.consent__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
    max-height: 70vh;
    overflow-y: auto;
}

.consent__text { flex: 1 1 auto; min-width: 0; }

.consent__text h2 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.consent__text p { margin: 0; }

.consent__text a {
    color: var(--color-accent, #f7a600);
    text-decoration: underline;
}

.consent__text a:hover { color: #fff; }

/* ── Kategorien ── */

.consent__opts {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 0.9rem;
}

.consent__opt {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

.consent__opt input {
    margin-top: 0.25rem;
    accent-color: var(--color-accent, #f7a600);
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    cursor: pointer;
}

.consent__opt input:disabled { cursor: default; opacity: 0.65; }
.consent__opt strong { color: #fff; font-weight: 600; }
.consent__opt em { font-style: normal; opacity: 0.6; }

/* ── Buttons ── */

.consent__actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 12rem;
}

.consent__btn {
    font: inherit;
    font-weight: 600;
    padding: 0.6rem 1.15rem;
    border-radius: var(--radius, 4px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.consent__btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
}

.consent__btn:focus-visible {
    outline: 2px solid var(--color-accent, #f7a600);
    outline-offset: 2px;
}

.consent__btn--primary {
    background: var(--color-accent, #f7a600);
    border-color: var(--color-accent, #f7a600);
    color: var(--color-on-accent, #1d1d1b);
}

.consent__btn--primary:hover {
    background: var(--color-accent-dark, #d98f00);
    border-color: var(--color-accent-dark, #d98f00);
    color: var(--color-on-accent, #1d1d1b);
}

.consent__btn--link {
    border-color: transparent;
    text-decoration: underline;
    font-weight: 400;
    padding: 0.3rem 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.consent__btn--link:hover {
    background: transparent;
    color: #fff;
    border-color: transparent;
}

/* ── Rechtliche Links im Footer ── */

.footer__links {
    margin-top: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.75rem;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background: none;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.footer__links a:hover {
    color: var(--color-accent, #f7a600);
    border-bottom-color: var(--color-accent, #f7a600);
}

.footer__sep { color: rgba(255, 255, 255, 0.35); }

/* ── Urhebervermerk hype.media, rechte Ecke ── */

.footer {
    position: relative;
}

.footer__by {
    position: absolute;
    right: 1.5rem;
    bottom: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.42);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    line-height: 1;
    transition: color var(--transition, 0.2s ease);
}

.footer__by:hover,
.footer__by:focus-visible {
    color: rgba(255, 255, 255, 0.95);
}

.footer__by .hm-logo {
    height: 0.85rem;
    width: auto;
    display: block;
}

/* Wortmarke bleibt einfarbig (schwarz/weiß) – der Punkt ist nur separat
   ausgezeichnet, falls später Akzentfarbe gewünscht ist. */
.hm-logo__dot { fill: currentColor; }

/* ── Responsive ── */

@media (max-width: 720px) {
    .footer__by {
        position: static;
        margin-top: 0.7rem;
        justify-content: center;
    }
    .consent__inner {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.1rem;
    }
    .consent__actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        min-width: 0;
    }
    .consent__btn { flex: 1 1 auto; }
    .consent__btn--link { flex-basis: 100%; }
}
