/* Quelle: 00-recon/originale/fahrtauglich/fahrtauglich-uhrentest.html (unverändert übernommen, ausser wo vermerkt: Audio-Basis, Anzeigetexte laut TEXTE) */
    #ftuhr {
        --ftuhr-gelb: #FFBF00;
        --ftuhr-gelb-dunkel: #E6AB00;
        --ftuhr-gelb-hell: #FFF4CC;
        --ftuhr-schwarz: #000000;
        --ftuhr-text: #1F2937;
        --ftuhr-text-2: #4B5563;
        --ftuhr-flaeche: #F3F5F8;
        --ftuhr-linie: #C8D5DC;
        --ftuhr-gruen: #047857;
        --ftuhr-fehler: #B91C1C;

        font-family: 'Poppins', sans-serif;
        color: var(--ftuhr-text);
        line-height: 1.5;
        width: 100%;
        max-width: 850px;
        margin: 20px auto 60px;
        box-sizing: border-box;
    }
    #ftuhr *, #ftuhr *::before, #ftuhr *::after { box-sizing: border-box; }
    #ftuhr [hidden] { display: none !important; }

    /* ===== Seitenkopf — Masse wie die bisherigen Elementor-Widgets ===== */
    #ftuhr .ftuhr-titel {
        margin: 0;
        font-family: inherit;
        font-size: 48px;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: 0;
        text-align: center;
        color: var(--ftuhr-schwarz);
    }
    #ftuhr .ftuhr-intro {
        max-width: 760px;
        margin: 50px auto 0;
        font-size: 20px;
        font-weight: 300;
        line-height: 1.5;
        text-align: center;
        color: var(--ftuhr-schwarz);
    }
    /* Links: schwarz mit gelber Unterstreichung — Gelb als Schrift auf Weiss
       hielte nur 1.65:1. */
    #ftuhr .ftuhr-intro a,
    #ftuhr .ftuhr-box a {
        color: var(--ftuhr-schwarz);
        font-weight: 400;
        text-decoration: underline;
        text-decoration-color: var(--ftuhr-gelb);
        text-decoration-thickness: 3px;
        text-underline-offset: 3px;
        overflow-wrap: anywhere;
    }
    #ftuhr .ftuhr-intro a:hover, #ftuhr .ftuhr-box a:hover,
    #ftuhr .ftuhr-intro a:focus, #ftuhr .ftuhr-box a:focus { color: var(--ftuhr-schwarz); background: rgba(255, 191, 0, 0.18); }
    #ftuhr a:focus-visible { outline: 3px solid var(--ftuhr-schwarz); outline-offset: 2px; }

    /* Spielkarte (Optik wie Wordle auf fahrtauglich.ch). overflow: clip statt
       hidden — sonst verschiebt ein Fokus/scrollIntoView den Karteninhalt. */
    #ftuhr .ftuhr-karte {
        position: relative;
        overflow: clip;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border: 2px solid #dee2e6;
        border-radius: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        padding: 36px 30px;
    }
    #ftuhr .ftuhr-karte::before {
        content: '';
        position: absolute;
        top: -50%; left: -50%;
        width: 200%; height: 200%;
        background: radial-gradient(circle, rgba(52, 58, 64, 0.05) 1px, transparent 1px);
        background-size: 30px 30px;
        animation: ftuhr-hintergrund 25s linear infinite;
        z-index: 0;
        pointer-events: none;
    }
    @keyframes ftuhr-hintergrund {
        0%   { transform: translate(0, 0) rotate(0deg); }
        100% { transform: translate(-30px, -30px) rotate(360deg); }
    }

    /* ===== Buttons (Pill-Stil der fahrtauglich.ch-Buttons) ===== */
    #ftuhr .ftuhr-knopf {
        -webkit-appearance: none;
        appearance: none;
        margin: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 10px 28px;
        background: var(--ftuhr-gelb);
        border: 2px solid var(--ftuhr-gelb);
        border-radius: 100px;
        box-shadow: none;
        font-family: inherit;
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.2;
        text-transform: none;
        text-decoration: none;
        color: var(--ftuhr-schwarz);
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }
    #ftuhr .ftuhr-knopf:hover,
    #ftuhr .ftuhr-knopf:focus {
        background: var(--ftuhr-gelb-dunkel);
        border-color: var(--ftuhr-gelb-dunkel);
        color: var(--ftuhr-schwarz);
    }
    #ftuhr .ftuhr-knopf:hover { transform: translateY(-1px); }
    #ftuhr .ftuhr-knopf-hell { background: #ffffff; border-color: var(--ftuhr-schwarz); }
    #ftuhr .ftuhr-knopf-hell:hover,
    #ftuhr .ftuhr-knopf-hell:focus { background: var(--ftuhr-flaeche); border-color: var(--ftuhr-schwarz); }
    #ftuhr .ftuhr-knopf-klein { min-height: 44px; padding: 8px 20px; font-size: 0.9rem; }

    #ftuhr .ftuhr-knopf:focus-visible,
    #ftuhr summary:focus-visible {
        outline: 3px solid var(--ftuhr-schwarz);
        outline-offset: 2px;
    }

    /* ===== Spielanleitung ===== */
    #ftuhr .ftuhr-anleitung {
        margin-top: 24px;
        text-align: left;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
        padding: 15px 18px;
    }
    #ftuhr .ftuhr-anleitung summary {
        cursor: pointer;
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 4px 0;
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--ftuhr-schwarz);
        user-select: none;
    }
    #ftuhr .ftuhr-anleitung summary::-webkit-details-marker { display: none; }
    #ftuhr .ftuhr-chev { width: 20px; height: 20px; flex: 0 0 auto; transition: transform 0.2s ease; }
    #ftuhr .ftuhr-anleitung[open] .ftuhr-chev { transform: rotate(180deg); }
    #ftuhr .ftuhr-anleitung-liste {
        list-style: none;
        margin: 12px 0 4px;
        padding: 0;
        display: grid;
        gap: 8px;
    }
    #ftuhr .ftuhr-anleitung-liste li {
        margin: 0;
        padding: 10px 14px;
        background: var(--ftuhr-flaeche);
        border: 1px solid #DEDAD2;
        border-radius: 6px;
        font-size: 0.95rem;
        font-weight: 300;
        line-height: 1.55;
        color: var(--ftuhr-schwarz);
    }
    #ftuhr .ftuhr-anleitung-liste li strong { font-weight: 600; }

    /* ===== Textabschnitte (Kartenstil der bisherigen Textboxen) ===== */
    #ftuhr .ftuhr-abschnitt { margin-top: 70px; }
    #ftuhr .ftuhr-abschnitt h2 {
        margin: 0 0 20px;
        font-family: inherit;
        font-size: 36px;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: 0;
        text-transform: none;
        text-align: center;
        color: var(--ftuhr-schwarz);
    }
    #ftuhr .ftuhr-box {
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        padding: 15px 20px;
        font-size: 22px;
        font-weight: 300;
        line-height: 1.5;
        color: var(--ftuhr-schwarz);
        text-align: left;
    }
    #ftuhr .ftuhr-box p { margin: 0 0 14px; }
    #ftuhr .ftuhr-box p:last-child { margin-bottom: 0; }
    #ftuhr .ftuhr-box strong { font-weight: 500; }

    #ftuhr .ftuhr-tipps { margin: 0; padding-left: 1.2em; }
    #ftuhr .ftuhr-tipps li { margin: 0 0 14px; padding-left: 0.2em; }
    #ftuhr .ftuhr-tipps li:last-child { margin-bottom: 0; }
    #ftuhr .ftuhr-tipps li::marker { color: var(--ftuhr-gelb-dunkel); }
    #ftuhr .ftuhr-tipps strong { display: block; }

    #ftuhr .ftuhr-nutzen { list-style: none; margin: 6px 0 14px; padding: 0; }
    #ftuhr .ftuhr-nutzen li {
        display: grid;
        grid-template-columns: 2.4em 1fr;
        gap: 0 0.6em;
        padding: 14px 0;
        border-top: 1px solid var(--ftuhr-linie);
    }
    #ftuhr .ftuhr-nutzen li:last-child { border-bottom: 1px solid var(--ftuhr-linie); }
    #ftuhr .ftuhr-nutzen-nr { font-weight: 600; line-height: 1.5; color: var(--ftuhr-gelb-dunkel); }
    #ftuhr .ftuhr-nutzen strong { display: block; }
    #ftuhr .ftuhr-vermerk {
        padding: 10px 14px;
        background: var(--ftuhr-flaeche);
        border: 1px solid #DEDAD2;
        border-radius: 6px;
        font-size: 0.85em;
    }
    #ftuhr .ftuhr-quellen-titel { margin-top: 20px !important; font-weight: 500; }
    #ftuhr .ftuhr-quellen { list-style: none; margin: 0; padding: 0; font-size: 0.8em; }
    #ftuhr .ftuhr-quellen li { margin: 0 0 10px; }
    #ftuhr .ftuhr-quellen li:last-child { margin-bottom: 0; }

    #ftuhr .ftuhr-sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
    /* ===== Testbereich ===== */
    #ftuhr .ftuhr-spiel {
        max-width: 680px;
        margin: 34px auto 0;
        text-align: center;
    }
    #ftuhr .ftuhr-inhalt {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }
    #ftuhr .ftuhr-instruktion {
        max-width: 520px;
        margin: 0;
        font-size: 1.1rem;
        line-height: 1.5;
        color: var(--ftuhr-schwarz);
    }
    #ftuhr .ftuhr-instruktion strong { font-weight: 600; white-space: nowrap; }
    #ftuhr .ftuhr-zeichnung-huelle { width: 100%; display: flex; justify-content: center; }
    #ftuhr .ftuhr-zeichnung {
        display: block;
        width: 300px;            /* JS setzt die genaue Groesse */
        height: 300px;
        background: #ffffff;
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
        touch-action: none;      /* Zeichnen scrollt nicht die Seite */
        cursor: crosshair;
        -webkit-user-select: none;
        user-select: none;
    }
    #ftuhr .ftuhr-steuerung {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    #ftuhr .ftuhr-knopf:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
    #ftuhr .ftuhr-steuerung .ftuhr-knopf { padding: 10px 18px; }

    /* Vergleich */
    #ftuhr .ftuhr-vergleich {
        width: 100%;
        margin-top: 6px;
        padding-top: 22px;
        border-top: 1px solid var(--ftuhr-linie);
    }
    #ftuhr .ftuhr-vergleich-titel {
        margin: 0 0 14px;
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--ftuhr-schwarz);
    }
    #ftuhr .ftuhr-vergleich-reihe {
        display: flex;
        justify-content: center;
        column-gap: 16px;
        width: 100%;
    }
    #ftuhr .ftuhr-figur { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
    #ftuhr .ftuhr-figur figcaption {
        font-style: normal;
        font-size: 0.8rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--ftuhr-text-2);
    }
    #ftuhr .ftuhr-figur canvas {
        display: block;
        background: #ffffff;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    #ftuhr .ftuhr-bewertung {
        margin-top: 22px;
        padding: 18px 20px;
        background: #ffffff;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        text-align: left;
    }
    #ftuhr .ftuhr-bewertung-titel { margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; color: var(--ftuhr-schwarz); }
    #ftuhr .ftuhr-bewertung-liste { list-style: none; margin: 8px 0 0; padding: 0; }
    #ftuhr .ftuhr-bewertung-liste li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 10px 0;
        border-top: 1px solid var(--ftuhr-flaeche);
    }
    #ftuhr .ftuhr-bewertung-liste input {
        flex: 0 0 auto;
        width: 22px;
        height: 22px;
        margin: 1px 0 0;
        accent-color: var(--ftuhr-gelb-dunkel);
        cursor: pointer;
    }
    #ftuhr .ftuhr-bewertung-liste label { font-size: 0.95rem; line-height: 1.45; color: var(--ftuhr-text); cursor: pointer; }
    #ftuhr .ftuhr-summe {
        margin: 12px 0 0;
        padding: 10px 14px;
        background: var(--ftuhr-flaeche);
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--ftuhr-text-2);
    }
    #ftuhr .ftuhr-summe.voll { background: #D1FAE5; color: #065F46; }
    #ftuhr .ftuhr-hinweis { margin: 12px 0 0; font-size: 0.8rem; line-height: 1.5; color: var(--ftuhr-text-2); }

    #ftuhr .ftuhr-sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

    /* ===== Responsive (Elementor: Tablet <= 1024px, Handy <= 767px) ===== */
    @media (max-width: 1024px) {
        #ftuhr .ftuhr-titel { font-size: 45px; }
        #ftuhr .ftuhr-intro { font-size: 16px; margin-top: 30px; }
        #ftuhr .ftuhr-box   { font-size: 16px; }
    }
    @media (max-width: 768px) {
        #ftuhr { max-width: 95%; }
        #ftuhr .ftuhr-karte { padding: 24px 20px; }
    }
    @media (max-width: 767px) {
        #ftuhr .ftuhr-titel { font-size: 28px; }
        #ftuhr .ftuhr-intro { margin-top: 20px; }
        #ftuhr .ftuhr-spiel { margin-top: 24px; }
        #ftuhr .ftuhr-abschnitt { margin-top: 50px; }
        #ftuhr .ftuhr-abschnitt h2 { font-size: 28px; }
        #ftuhr .ftuhr-box   { padding: 15px; }
    }
    @media (max-width: 520px) {
        #ftuhr .ftuhr-karte { padding: 18px 12px; border-radius: 16px; }
        #ftuhr .ftuhr-instruktion { font-size: 1rem; }
        #ftuhr .ftuhr-steuerung { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
        #ftuhr .ftuhr-steuerung .ftuhr-knopf { padding: 10px 12px; font-size: 0.95rem; }
        #ftuhr .ftuhr-vergleich-reihe { column-gap: 10px; }
        #ftuhr .ftuhr-bewertung { padding: 14px 14px; }
    }

    @media (prefers-reduced-motion: reduce) {
        #ftuhr *, #ftuhr *::before, #ftuhr *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

/* ===== Anpassung an das Designsystem fahrtauglich.ch (3a, Entscheid Lukas) =====
   Schrift und Grautöne aus tokens.css; kein bewegter Hintergrund (ruhig, Performance). Spiellogik unverändert. */
#ftuhr {
    --ftuhr-schwarz: var(--ft-tinte);
    --ftuhr-text: var(--ft-tinte);
    --ftuhr-text-2: var(--ft-tinte-2);
    --ftuhr-flaeche: var(--ft-flaeche);
    --ftuhr-linie: var(--ft-linie);
    font-family: var(--ft-schrift);
    margin-top: 0;
    margin-bottom: 0;
}
#ftuhr .ftuhr-karte::before { animation: none; }
#ftuhr .ftuhr-text, #ftuhr .ftuhr-meldung, #ftuhr .ftuhr-knopf, #ftuhr .ftuhr-anleitung-liste li { font-size: var(--ft-fs-text); }
#ftuhr .ftuhr-bestzeiten, #ftuhr .ftuhr-ergebnis span { font-size: var(--ft-fs-klein); }
#ftuhr .ftuhr-stat-label { font-size: 0.95rem; letter-spacing: 0; }
#ftuhr .ftuhr-anleitung summary { font-size: var(--ft-fs-h4); }
#ftuhr .ftuhr-knopf { min-height: var(--ft-button-hoehe); font-weight: var(--ft-gewicht-fett); }
@media (max-width: 600px) {
    #ftuhr .ftuhr-knopf { font-size: var(--ft-fs-text); padding: 10px 16px; }
    #ftuhr .ftuhr-stat-label { font-size: 0.85rem; }
}
