/* =========================================================================
   answer-v2.css - pagina definizione CodyCross (standalone).
   Contiene reset, tipografia, layout, subset Bootstrap (container, breadcrumb,
   btn, toast, utility), Boxicons subset, Manrope self-hosted e componenti cc-*.
   Design senior 55+: palette bianco caldo / blu profondo, body 18px, focus
   visibili, tap target >= 48px, niente carousel.
   ========================================================================= */

/* ---------- 1. Font self-hosted ---------- */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('/fonts/manrope/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('/fonts/manrope/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'boxicons';
    font-weight: 400;
    font-style: normal;
    font-display: block;
    src: url('/fonts/boxicons/boxicons.woff2') format('woff2');
}

/* ---------- 2. Design tokens ---------- */
:root {
    --cc-bg: #FAFAF7;
    --cc-bg-warm: #FFF9F0;
    --cc-surface: #FFFFFF;
    --cc-surface-soft: #F7F4ED;
    --cc-text: #1A1A1A;
    --cc-text-soft: #4A4540;
    --cc-text-muted: #333;
    --cc-border: #E5DFD3;
    --cc-border-strong: #C7BFAE;

    --cc-primary: #1E5AAB;
    --cc-primary-dark: #154382;
    --cc-primary-rgb: 30, 90, 171;
    --cc-accent: #C57B00;
    --cc-success: #2E7D32;

    --cc-answer-bg: #F5EFE0;
    --cc-answer-text: #154382;
    --cc-answer-border: #E1D6B8;

    --cc-shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.06);
    --cc-shadow-md: 0 8px 24px rgba(26, 26, 26, 0.08);
    --cc-shadow-lg: 0 24px 50px rgba(26, 26, 26, 0.08);

    --cc-radius-sm: 8px;
    --cc-radius: 12px;
    --cc-radius-lg: 20px;
    --cc-radius-pill: 999px;

    --cc-font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --cc-body-size: 1.125rem;
    --cc-body-line: 1.65;

    --cc-tap-min: 48px;
    --cc-container-x: 1.25rem;
}

/* ---------- 3. Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--cc-bg);
    color: var(--cc-text-soft);
    font-family: var(--cc-font-sans);
    font-size: var(--cc-body-size);
    line-height: var(--cc-body-line);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--cc-text);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); }
h2 { font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem); }
h3 { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.5rem; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }

a {
    color: var(--cc-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.15s ease;
}
a:hover { color: var(--cc-primary-dark); text-decoration-thickness: 2px; }

button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--cc-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection { background: rgba(var(--cc-primary-rgb), 0.18); color: var(--cc-text); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- 4. Skip link ---------- */
.cc-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 0.75rem 1.25rem;
    background: var(--cc-primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 var(--cc-radius) 0;
    z-index: 1100;
}
.cc-skip:focus { left: 0; color: #fff; }

/* ---------- 5. Layout: container ---------- */
.container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--cc-container-x);
    padding-right: var(--cc-container-x);
}

main {
    flex: 1 0 auto;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

/* ---------- 6. Header ---------- */
.cc-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cc-border);
    padding: 0.75rem 0;
}
.cc-header__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 56px;
}
.cc-header__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.cc-header__logo {
    display: block;
    width: auto;
    height: 34px;
    max-width: 240px;
}
@media (max-width: 540px) {
    .cc-header__logo { height: 34px; }
}

/* ---------- 7. Breadcrumb ---------- */
.cc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    font-size: 1rem;
    font-weight: 600;
}
.cc-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    color: var(--cc-text-soft);
    min-height: 28px;
}
/* Separator come ::after dell'item PRECEDENTE: quando l'item attivo wrappa,
   il chevron resta con la riga sopra invece di restare orfano in cima alla
   nuova riga. */
.cc-breadcrumb__item:not(:last-child)::after {
    content: "\ea50";
    font-family: 'boxicons';
    font-weight: 400;
    color: var(--cc-text-muted);
    padding: 0 0.5rem;
    font-size: 1.1em;
    line-height: 1;
}
.cc-breadcrumb__item a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--cc-text-soft);
    text-decoration: none;
    font-weight: 600;
    padding: 0.2rem 0;
}
.cc-breadcrumb__item a:hover { color: var(--cc-primary); text-decoration: underline; }
.cc-breadcrumb__item.is-active {
    color: var(--cc-primary);
    font-weight: 700;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 8. Hero card ---------- */
.cc-hero {
    background:
        radial-gradient(circle at 90% -10%, rgba(var(--cc-primary-rgb), 0.07), transparent 55%),
        var(--cc-surface);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-lg);
    box-shadow: var(--cc-shadow-md);
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .cc-hero { padding: 2.25rem 2.25rem; }
}
.cc-hero__clue {
    margin: 0 0 0.5rem;
    color: var(--cc-text);
    font-weight: 800;
}
.cc-hero__lead {
    margin: 0 0 1.75rem;
    color: var(--cc-text-muted);
    font-size: 1rem;
    max-width: 60ch;
}

.cc-answer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(180deg, var(--cc-answer-bg) 0%, #FFF8E4 100%);
    border: 1.5px solid var(--cc-answer-border);
    border-radius: var(--cc-radius);
    text-align: center;
}
@media (min-width: 768px) {
    .cc-answer { padding: 2rem 1.75rem; }
}
.cc-answer__label {
    align-self: center;
    margin: 0 0 0.25rem;
    color: var(--cc-text-muted);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.cc-answer__word {
    display: inline-block;
    margin: 0.25rem auto 0;
    padding: 0.625rem 1.25rem;
    color: var(--cc-answer-text);
    font-family: var(--cc-font-sans);
    font-weight: 800;
    font-size: clamp(1.75rem, 1.2rem + 3.4vw, 2.875rem);
    letter-spacing: 0.18em;
    line-height: 1.1;
    word-break: break-word;
}
.cc-answer__meta {
    color: var(--cc-text-soft);
    font-size: 1rem;
    font-weight: 600;
}
.cc-answer__meta .sep {
    display: inline-block;
    margin: 0 0.4rem;
    color: var(--cc-border-strong);
}
.cc-answer__actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ---------- 9. Buttons ---------- */
.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--cc-tap-min);
    padding: 0.75rem 1.5rem;
    border: 1.5px solid transparent;
    border-radius: var(--cc-radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
    -webkit-tap-highlight-color: transparent;
}
.cc-btn:active { transform: translateY(1px); }
.cc-btn .bx { font-size: 1.25em; }

.cc-btn--primary {
    background: var(--cc-primary);
    color: #fff;
    border-color: var(--cc-primary);
    box-shadow: 0 2px 8px rgba(var(--cc-primary-rgb), 0.25);
}
.cc-btn--primary:hover {
    background: var(--cc-primary-dark);
    border-color: var(--cc-primary-dark);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(var(--cc-primary-rgb), 0.35);
}

.cc-btn--ghost {
    background: var(--cc-surface);
    color: var(--cc-text);
    border-color: var(--cc-border-strong);
}
.cc-btn--ghost:hover {
    background: var(--cc-surface-soft);
    color: var(--cc-text);
    border-color: var(--cc-primary);
    text-decoration: none;
}


/* ---------- 10. Sezioni ----------
   Non sono card: solo spacing verticale + header con icona. Solo .cc-hero e
   .cc-answer hanno trattamento card vero (per non frammentare l'occhio in 7
   rettangoli sovrapposti).
*/
.cc-section {
    margin: 2rem 0 0;
    padding: 0;
}
.cc-section:first-of-type { margin-top: 1.5rem; }
.cc-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--cc-border);
    color: var(--cc-text);
    font-size: 1.25rem;
    font-weight: 800;
}
.cc-section__title .bx {
    color: var(--cc-primary);
    font-size: 1.2em;
}
.cc-section p { margin: 0 0 0.875rem; }
.cc-section p:last-child { margin-bottom: 0; }

/* ---------- 11. Chip grid ---------- */
.cc-chip-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.625rem;
}
@media (min-width: 540px) { .cc-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .cc-chip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cc-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    min-height: var(--cc-tap-min);
    padding: 0.75rem 1rem;
    background: var(--cc-surface-soft);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    color: var(--cc-text);
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.05s ease;
}
.cc-chip:hover {
    background: #FFFFFF;
    border-color: var(--cc-primary);
    color: var(--cc-primary-dark);
    text-decoration: none;
    box-shadow: var(--cc-shadow-sm);
}
/* Label su massimo 2 righe - meglio una chip un po' più alta che testo
   troncato a metà parola ("Aeusserung, Mit Der Eine Leistun..."). */
.cc-chip__label {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-width: 0;
    flex: 1 1 0;
    line-height: 1.3;
}
.cc-chip__meta {
    flex: 0 0 auto;
    padding: 0.25rem 0.7rem;
    background: var(--cc-answer-bg);
    color: var(--cc-answer-text);
    border-radius: var(--cc-radius-pill);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---------- 12. Ad slot ---------- */
/* Niente bg/border/min-height: lasciamo collassare quando AdSense non riempie,
   per evitare voragini bianche above-the-fold. */
.cc-ad {
    margin: 1.25rem 0;
    text-align: center;
}
.cc-ad:empty { display: none; }
.cc-ad ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
/* :has() richiesto su browser moderni - fallback: ins viene nascosto sopra,
   il container .cc-ad senza padding/border collassa quasi a 0. */
.cc-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* ---------- 12b. Group section (hub pages) ---------- */
.cc-group {
    margin-top: 1.5rem;
}
.cc-group:first-of-type { margin-top: 0; }
.cc-group__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.875rem;
    color: var(--cc-text);
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.005em;
}
.cc-group__title .bx {
    color: var(--cc-primary);
    font-size: 1.15em;
}
.cc-group__title .cc-group__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    background: var(--cc-answer-bg);
    color: var(--cc-answer-text);
    border-radius: var(--cc-radius-pill);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ---------- 12c. Pager (precedente/prossimo) ---------- */
.cc-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: stretch;
    margin: 1.5rem 0 0;
}
.cc-pager__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--cc-tap-min);
    padding: 0.75rem 1.125rem;
    background: var(--cc-surface);
    border: 1.5px solid var(--cc-border-strong);
    border-radius: var(--cc-radius);
    color: var(--cc-text);
    font-weight: 700;
    text-decoration: none;
    flex: 1 1 auto;
    max-width: calc(50% - 0.375rem);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.cc-pager__btn:hover {
    background: var(--cc-surface-soft);
    border-color: var(--cc-primary);
    color: var(--cc-primary-dark);
    text-decoration: none;
}
.cc-pager__btn--prev { justify-content: flex-start; }
.cc-pager__btn--next { justify-content: flex-end; margin-left: auto; }
.cc-pager__btn .bx { color: var(--cc-primary); font-size: 1.25em; }
@media (max-width: 540px) {
    .cc-pager__btn { max-width: 100%; flex: 1 1 100%; }
    .cc-pager__btn--next { margin-left: 0; }
}

/* ---------- 12d. Home - sezioni dedicate ---------- */
.cc-section__lead {
    margin: 0 0 1.25rem;
    color: var(--cc-text-soft);
    font-size: 1rem;
    max-width: 65ch;
}

.cc-store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    align-items: center;
    margin-top: 0.5rem;
}
.cc-store-links a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: var(--cc-radius);
    padding: 0.25rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cc-store-links a:hover {
    transform: translateY(-1px);
    box-shadow: var(--cc-shadow-sm);
}
.cc-store-links img {
    height: 48px;
    width: auto;
    display: block;
}

.cc-form-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 0.5rem;
}
.cc-form-search__input {
    flex: 1 1 220px;
    min-width: 0;
    min-height: var(--cc-tap-min);
    padding: 0.75rem 1.125rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--cc-text);
    background: var(--cc-surface);
    border: 1.5px solid var(--cc-border-strong);
    border-radius: var(--cc-radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cc-form-search__input::placeholder { color: var(--cc-text-muted); }
.cc-form-search__input:focus {
    outline: none;
    border-color: var(--cc-primary);
    box-shadow: 0 0 0 3px rgba(var(--cc-primary-rgb), 0.18);
}
.cc-form-search .cc-btn { flex: 0 0 auto; }

.cc-daily-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.cc-daily-list .cc-chip {
    justify-content: flex-start;
}
.cc-daily-list .cc-chip__date {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: capitalize;
}

/* ---------- 13. Updated date ---------- */
.cc-updated {
    margin: 2rem 0 0;
    padding: 0;
    color: var(--cc-text-muted);
    font-size: 1rem;
    text-align: center;
}
.cc-updated time { color: var(--cc-text-soft); font-weight: 700; }

/* ---------- 14. Footer ---------- */
.cc-footer {
    margin-top: auto;
    background: var(--cc-surface);
    border-top: 1px solid var(--cc-border);
    padding: 1.5rem 0;
}
.cc-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    color: var(--cc-text-muted);
    font-size: 1rem;
}
.cc-footer a {
    color: var(--cc-text-soft);
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}
.cc-footer a:hover { color: var(--cc-primary); text-decoration: underline; }
.cc-footer__copy { color: var(--cc-text-muted); font-size: 1rem; }
.cc-footer__stores {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin: 0.875rem 0 0;
}
.cc-footer__store {
    display: inline-flex;
    padding: 0 !important;
}
.cc-footer__store img {
    display: block;
    height: 40px;
    width: auto;
    transition: transform 0.15s ease;
}
.cc-footer__store:hover img { transform: translateY(-1px); }
.cc-footer__store:focus-visible {
    outline: 2px solid var(--cc-primary);
    outline-offset: 3px;
    border-radius: 6px;
}
.cc-footer__disclaimer {
    max-width: 64ch;
    margin: 0.75rem auto 0;
    padding: 0 1rem;
    color: var(--cc-text-muted);
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

/* ---------- 15. Toast ---------- */
.cc-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%) translateY(8px);
    padding: 0.875rem 1.5rem;
    background: var(--cc-text);
    color: #fff;
    border-radius: var(--cc-radius);
    box-shadow: var(--cc-shadow-lg);
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1200;
    max-width: calc(100% - 2rem);
}
.cc-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- 16. Boxicons (subset usato) ---------- */
.bx {
    display: inline-block;
    font-family: 'boxicons' !important;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    line-height: 1;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.bx-home-alt-2::before   { content: "\ef2d"; }
.bx-chevron-right::before{ content: "\ea50"; }
.bx-check-circle::before { content: "\ea46"; }
.bx-info-circle::before  { content: "\eb21"; }
.bx-link-alt::before     { content: "\eb3d"; }
.bx-trending-up::before  { content: "\ec53"; }
.bx-book-open::before    { content: "\e9ef"; }
.bx-grid-alt::before     { content: "\eafb"; }
.bx-category::before     { content: "\ea39"; }

/* chevron-right ruotato per usare il glyph subsettato come "prev" */
.bx-chevron-right.is-flipped { display: inline-block; transform: rotate(180deg); }

/* ---------- 16b. Search pill (FAB) ----------
   Pill flottante in basso a destra, sempre visibile. Si nasconde quando
   l'utente scrolla verso il basso (sta leggendo), riappare quando scrolla
   verso l'alto (sta cercando qualcosa o vuole tornare in cima). Pattern
   da cruciverba_neo.
*/
.cc-search-pill {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 1040;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.cc-search-pill.is-hidden {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}
.cc-search-pill__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-primary-dark) 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 10px 24px rgba(var(--cc-primary-rgb), 0.32), 0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cc-search-pill__btn:hover {
    transform: scale(1.06);
    box-shadow: 0 14px 28px rgba(var(--cc-primary-rgb), 0.4), 0 3px 8px rgba(0, 0, 0, 0.08);
}
.cc-search-pill__btn:active { transform: scale(0.98); }
.cc-search-pill__panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--cc-border);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 36px rgba(26, 26, 26, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: cc-search-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cc-search-pill__form { margin: 0; }
.cc-search-pill__input-wrap {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}
.cc-search-pill__input {
    width: 100%;
    min-height: var(--cc-tap-min);
    padding: 0.75rem 3rem 0.75rem 1.125rem;
    font-family: inherit;
    font-size: 1.125rem;
    color: var(--cc-text);
    background: var(--cc-surface);
    border: 1.5px solid var(--cc-border-strong);
    border-radius: var(--cc-radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cc-search-pill__input:focus {
    outline: none;
    border-color: var(--cc-primary);
    box-shadow: 0 0 0 3px rgba(var(--cc-primary-rgb), 0.18);
}
.cc-search-pill__close {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    border-radius: var(--cc-radius);
    color: var(--cc-text-muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.cc-search-pill__close:hover {
    background: var(--cc-surface-soft);
    color: var(--cc-text);
}
@keyframes cc-search-slide-up {
    from { transform: translateY(100%); opacity: 0.6; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ---------- 17. Visually-hidden ---------- */
.cc-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- 18. Mobile fine-tuning ---------- */
@media (max-width: 540px) {
    body { font-size: 1.0625rem; }
    .cc-hero { padding: 1.5rem 1rem; }
    .cc-header__subtitle { display: none; }
    .cc-breadcrumb { font-size: 1rem; }
    .cc-section { margin-top: 1.75rem; }
    .cc-answer { padding: 1.25rem 1rem; }
    .cc-answer__word {
        letter-spacing: 0.14em;
        padding: 0.5rem 0.75rem;
    }
}

/* ---------- 18b. Locale switcher (home only) ---------- */
.cc-locale-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
}
@media (min-width: 600px) { .cc-locale-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cc-locale-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cc-locale {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: var(--cc-tap-min);
    padding: 0.625rem 0.875rem;
    background: var(--cc-surface);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-sm);
    color: var(--cc-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.cc-locale:hover {
    background: var(--cc-bg-warm);
    border-color: var(--cc-primary);
    color: var(--cc-primary-dark);
    transform: translateY(-1px);
}
.cc-locale:focus-visible {
    outline: 2px solid var(--cc-primary);
    outline-offset: 2px;
}
.cc-locale__flag {
    display: block;
    width: 28px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
    object-fit: cover;
}
.cc-locale__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 19. Privacy content (info/datenschutz etc) ---------- */
.privacy-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--cc-text-soft);
}
.privacy-content h1 {
    margin: 0 0 0.5rem;
    color: var(--cc-text);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.privacy-content .subtitle {
    color: var(--cc-text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.privacy-content .print-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--cc-text-muted);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.privacy-content .print-link:hover { color: var(--cc-primary); }
.privacy-content h2 {
    margin: 2.25rem 0 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--cc-border);
    color: var(--cc-text);
    font-size: 1.35rem;
    font-weight: 800;
}
.privacy-content h3 {
    margin: 1.5rem 0 0.625rem;
    color: var(--cc-text);
    font-size: 1.15rem;
    font-weight: 700;
}
.privacy-content h4 {
    margin: 1.125rem 0 0.5rem;
    color: var(--cc-text);
    font-size: 1.05rem;
    font-weight: 700;
}
.privacy-content p { margin: 0 0 0.875rem; }
.privacy-content a {
    color: var(--cc-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.privacy-content a:hover { color: var(--cc-primary-dark); text-decoration-thickness: 2px; }
.privacy-content ul {
    margin: 0.5rem 0 1.25rem;
    padding-left: 0;
    list-style: none;
}
.privacy-content ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}
.privacy-content ul li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--cc-primary);
    font-weight: 800;
}
.privacy-content .service-block {
    background: var(--cc-bg-warm);
    border-left: 4px solid var(--cc-primary);
    padding: 1rem 1.25rem;
    margin: 0.75rem 0 1.5rem;
    border-radius: 0 var(--cc-radius-sm) var(--cc-radius-sm) 0;
}
.privacy-content .service-block p { font-size: 1rem; margin-bottom: 0.5rem; }
.privacy-content .service-block p:last-child { margin-bottom: 0; }
.privacy-content .notice-block {
    background: var(--cc-surface-soft);
    padding: 1rem 1.25rem;
    border-radius: var(--cc-radius-sm);
    margin: 1.25rem 0;
    font-size: 1rem;
}
.privacy-content hr {
    border: none;
    border-top: 1px solid var(--cc-border);
    margin: 2.5rem 0;
}
.privacy-content .privacy-footer {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cc-border);
    font-size: 1rem;
    color: var(--cc-text-muted);
}
.privacy-content .img-inline {
    height: 1.1em;
    vertical-align: baseline;
    display: inline;
}
@media (max-width: 600px) {
    .privacy-content h1 { font-size: 1.5rem; }
    .privacy-content h2 { font-size: 1.2rem; }
    .privacy-content .service-block { padding: 0.875rem 1rem; }
}

/* ---------- 20. Print ---------- */
@media print {
    .cc-header, .cc-footer, .cc-ad, .cc-skip, .cc-search-pill { display: none !important; }
    .cc-hero { box-shadow: none; border: 1px solid #ccc; }
    .privacy-content .print-link { display: none; }
    .privacy-content .service-block { border-left: 2px solid #ccc; background: #f9f9f9; }
    a { color: inherit; text-decoration: none; }
}
