/* Funke Lettershop – Cookie-Consent
   Optik an die Website angeglichen: Markengruen #009353, 6px Radius,
   Montserrat aus dem bestehenden Font-Stack. */

.fc-root {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
}
@media (min-width: 768px) {
    .fc-root { align-items: center; }
}

.fc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 22, 18, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
/* Nicht-blockierende Variante: Hintergrund bleibt bedienbar. */
.fc-root:not(.fc-root--blocking) .fc-backdrop { display: none; }

.fc-box {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    color: #1a1a1a;
    border-radius: 6px;
    padding: 28px 28px 24px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    animation: fc-in 0.32s cubic-bezier(0.33, 1, 0.68, 1) both;
}
@keyframes fc-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .fc-box { animation: none; }
}

.fc-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
    color: #0d3b26;
}
.fc-text {
    margin: 0 0 18px;
    font-size: 0.94rem;
    line-height: 1.6;
    color: #3a3a3a;
}
.fc-text a { color: #009353; text-decoration: underline; }

/* --- Detailauswahl ------------------------------------------------------- */
.fc-details { display: none; margin: 0 0 20px; }
.fc-details.is-open { display: block; }

.fc-group {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-top: 1px solid #e6e8e5;
    cursor: pointer;
}
.fc-group:last-child { border-bottom: 1px solid #e6e8e5; }

.fc-check {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #009353;
    cursor: pointer;
}
.fc-check:disabled { cursor: not-allowed; opacity: 0.6; }

.fc-group-text { display: block; }
.fc-group-name {
    display: block;
    font-weight: 600;
    font-size: 0.93rem;
    color: #1a1a1a;
    margin-bottom: 2px;
}
.fc-group-name em { font-style: normal; font-weight: 400; color: #6c6c6c; }
.fc-group-desc {
    display: block;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #5c5c5c;
}

/* --- Buttons ------------------------------------------------------------- */
.fc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.fc-btn {
    flex: 1 1 auto;
    min-width: 150px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid #009353;
    background: #fff;
    color: #009353;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.fc-btn:hover { background: #009353; color: #fff; transform: translateY(-1px); }
.fc-btn:focus-visible { outline: 2px solid #0d3b26; outline-offset: 2px; }
.fc-btn--primary { background: #009353; color: #fff; }
.fc-btn--primary:hover { background: #007a45; border-color: #007a45; }
.fc-btn--ghost { border-color: #c9ccc8; color: #4a4a4a; }
.fc-btn--ghost:hover { background: #4a4a4a; border-color: #4a4a4a; color: #fff; }

/* --- Spaeter erneut oeffnen ---------------------------------------------- */
.fc-reopen {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 2147482000;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #c9ccc8;
    background: rgba(255, 255, 255, 0.94);
    color: #4a4a4a;
    font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    opacity: 0.75;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.fc-reopen:hover { opacity: 1; background: #009353; border-color: #009353; color: #fff; }
@media (max-width: 560px) {
    .fc-reopen { left: 10px; bottom: 10px; font-size: 0.72rem; padding: 7px 11px; }
}

/* --- Dark Mode ----------------------------------------------------------- */
body.dark .fc-box { background: #1f2320; color: #f0f0f0; }
body.dark .fc-title { color: #7fd8a8; }
body.dark .fc-text { color: #cfd3cf; }
body.dark .fc-group { border-color: #363b37; }
body.dark .fc-group-name { color: #f0f0f0; }
body.dark .fc-group-desc { color: #a9aea9; }
body.dark .fc-btn { background: transparent; color: #7fd8a8; border-color: #7fd8a8; }
body.dark .fc-btn--primary { background: #009353; border-color: #009353; color: #fff; }
body.dark .fc-btn--ghost { border-color: #4d534e; color: #cfd3cf; }
body.dark .fc-reopen { background: rgba(31, 35, 32, 0.94); border-color: #4d534e; color: #cfd3cf; }

/* Hover im Dark Mode: `body.dark .fc-reopen` (0,2,1) schlaegt `.fc-reopen:hover`
   (0,2,0) — ohne diese Regeln passiert beim Ueberfahren im Dark Mode gar nichts.
   Der Button uebernimmt dabei das Gruen von "Alle akzeptieren" (.fc-btn--primary). */
body.dark .fc-reopen:hover {
    opacity: 1;
    background: #009353;
    border-color: #009353;
    color: #fff;
}
body.dark .fc-btn:hover { background: #009353; border-color: #009353; color: #fff; }
body.dark .fc-btn--primary:hover { background: #007a45; border-color: #007a45; }
body.dark .fc-btn--ghost:hover { background: #4d534e; border-color: #4d534e; color: #fff; }
