/* Gemeinsames Design der Übersichtsseiten: /grammatik, /vokabeln, /spiele */
/* Farben (--ue-*) kommen aus css/site.css */

.ue-hero { text-align: center; padding: .5rem 0 1.75rem; }
.ue-hero h1 { font-weight: 800; letter-spacing: -.01em; max-width: 900px; margin: 0 auto .6rem; }
.ue-hero .ue-lead { color: var(--ue-grau); max-width: 720px; margin: 0 auto; font-size: 1.05rem; }

.ue-section-title { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; font-weight: 700; color: #212529;
                    margin: 2.2rem 0 1rem; }
.ue-section-title::after { content: ""; flex: 1; height: 1px; background: var(--ue-rand); }

.ue-card { border: 1px solid var(--ue-rand); border-radius: 16px; background: #fff; height: 100%;
           transition: box-shadow .15s, transform .15s, border-color .15s; }
.ue-card:hover { box-shadow: 0 .6rem 1.4rem rgba(25,135,84,.12); transform: translateY(-2px); border-color: #cfe7da; }
.ue-card .card-body { display: flex; flex-direction: column; padding: 1.3rem 1.3rem 1.2rem; }
.ue-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.ue-icon { width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--ue-gruen-hell); color: var(--ue-gruen);
           display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.ue-title { font-size: 1.15rem; font-weight: 700; color: var(--ue-gruen); margin: 0; line-height: 1.25; }
.ue-kicker { font-size: .78rem; color: var(--ue-grau); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.ue-text { color: #495057; font-size: .95rem; margin-bottom: .9rem; }
.ue-features { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .88rem; color: var(--ue-grau); }
.ue-features li { margin-bottom: .2rem; }
.ue-features i { color: var(--ue-gruen); width: 1.2rem; }
.ue-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.ue-chips a { border: 1px solid var(--ue-gruen); color: var(--ue-gruen); border-radius: 999px; padding: .28rem .8rem;
              font-size: .88rem; text-decoration: none; transition: background .15s, color .15s; }
.ue-chips a:hover, .ue-chips a:focus { background: var(--ue-gruen); color: #fff; }
.ue-cta { margin-top: auto; }

.ue-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ue-grau); font-weight: 600; }
.ue-table td { vertical-align: middle; }
.ue-table .ue-tense { font-weight: 700; }
.ue-table .ue-hint { font-size: .88rem; color: var(--ue-grau); }
.ue-table a { color: var(--ue-gruen); font-size: .9rem; white-space: nowrap; text-decoration: none; font-weight: 600; }
.ue-table a:hover { text-decoration: underline; }

/* Schritt-Hinweis oben rechts in der Karte */
.ue-card { position: relative; }
.ue-badge { position: absolute; top: 1rem; right: 1rem; font-size: .72rem; font-weight: 700; color: var(--ue-gruen);
            background: var(--ue-gruen-hell); border-radius: 999px; padding: .15rem .6rem; white-space: nowrap; }
.ue-card.ue-has-badge .ue-head { padding-right: 4.6rem; }
.ue-tagline { font-size: .85rem; color: var(--ue-grau); font-weight: 600; margin: -.2rem 0 .5rem; }

.ue-step { font-size: .75rem; font-weight: 700; color: var(--ue-gruen); background: var(--ue-gruen-hell); border-radius: 999px; padding: .15rem .6rem; white-space: nowrap; }

/* ==========================================================================
   Spiele-Cover: kleine animierte Vorschau pro Spiel (nur HTML/CSS)
   ========================================================================== */
.ue-card { overflow: hidden; }
.ue-cover { height: 140px; background: linear-gradient(135deg, #f1faf5 0%, #e3f3ea 100%); border-bottom: 1px solid var(--ue-rand);
            display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: .75rem; }
.cv-chip { display: inline-block; background: #fff; border: 1px solid #cfe7da; border-radius: 8px; padding: .2rem .55rem;
           font-size: .8rem; font-weight: 600; color: #2b3a33; white-space: nowrap; }
.cv-ok { animation: cv-ok 6s infinite; }
@keyframes cv-ok { 0%, 40% { background: #fff; border-color: #cfe7da; color: #2b3a33; } 50%, 90% { background: var(--ue-gruen); border-color: var(--ue-gruen); color: #fff; } 100% { background: #fff; } }

/* Memory */
.cv-memory { display: grid; grid-template-columns: repeat(2, 100px); gap: 8px; }
.cv-mcard { position: relative; width: 100px; height: 52px; border-radius: 8px; background: #fff; border: 1px solid #cfe7da; gap: 6px;
            display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; overflow: hidden; }
.cv-mcard img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }
.cv-mcard .cv-back { position: absolute; inset: 0; background: var(--ue-gruen); color: #fff; display: flex; align-items: center; justify-content: center;
                     font-size: 1.3rem; border-radius: 7px; }
.cv-m1 .cv-back { animation: cv-m1 6s infinite; }
.cv-m3 .cv-back { animation: cv-m3 6s infinite; }
.cv-m1, .cv-m3 { animation: cv-paar 6s infinite; }
@keyframes cv-m1 { 0%, 12% { opacity: 1; } 18%, 85% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes cv-m3 { 0%, 32% { opacity: 1; } 38%, 85% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes cv-paar { 0%, 44% { box-shadow: none; } 50%, 82% { box-shadow: 0 0 0 3px #7fd3a6; } 90%, 100% { box-shadow: none; } }

/* Wortpaare */
.cv-pairs { position: relative; width: 240px; height: 110px; display: flex; justify-content: space-between; }
.cv-pairs .cv-col { display: flex; flex-direction: column; justify-content: space-between; z-index: 1; width: 46%; }
.cv-pairs .cv-col:last-child { width: 34%; }
.cv-pairs .cv-chip { text-align: center; }
.cv-pairs svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv-pairs line { stroke: var(--ue-gruen); stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: 100; animation: cv-line 6s infinite; }
@keyframes cv-line { 0%, 25% { stroke-dashoffset: 100; } 45%, 88% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 100; } }

/* Wortpaare mit Bildern */
.cv-pics { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.cv-pics .cv-imgs { display: flex; gap: 10px; }
.cv-pics img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.cv-pics .cv-pick { animation: cv-pick 6s infinite; }
@keyframes cv-pick { 0%, 40% { border-color: #fff; transform: none; } 50%, 90% { border-color: var(--ue-gruen); transform: scale(1.08); } 100% { border-color: #fff; } }

/* Quiz */
.cv-quiz { width: 230px; text-align: center; }
.cv-quiz .cv-q { font-size: .82rem; font-weight: 700; margin-bottom: .45rem; color: #2b3a33; }
.cv-quiz .cv-a { display: grid; grid-template-columns: 1fr; gap: 5px; }
.cv-quiz .cv-chip { text-align: left; }

/* Verbzeitformen */
.cv-verb { text-align: center; }
.cv-verb .cv-satz { font-size: .95rem; font-weight: 700; color: #2b3a33; margin-bottom: .5rem; }
.cv-verb .cv-luecke { display: inline-block; min-width: 46px; border-bottom: 2px solid var(--ue-gruen); color: var(--ue-gruen); }
.cv-verb .cv-luecke span { opacity: 0; animation: cv-fill 6s infinite; }
@keyframes cv-fill { 0%, 45% { opacity: 0; } 52%, 90% { opacity: 1; } 100% { opacity: 0; } }
.cv-verb .cv-opts { display: flex; gap: 6px; justify-content: center; }

/* Wortlogik */
.cv-logik { text-align: center; }
.cv-logik .cv-wort { font-size: 1.15rem; font-weight: 800; color: #2b3a33; margin-bottom: .45rem; }
.cv-logik .cv-teile { display: flex; gap: 6px; justify-content: center; margin-bottom: .4rem; }
.cv-logik .cv-teil { opacity: 0; animation: cv-teil 6s infinite; }
.cv-logik .cv-teil + .cv-teil { animation-delay: .6s; }
.cv-logik .cv-bed { font-size: .78rem; color: var(--ue-gruen); font-weight: 600; opacity: 0; animation: cv-fill 6s infinite; }
@keyframes cv-teil { 0%, 15% { opacity: 0; transform: translateY(6px); } 25%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ue-cover * { animation: none !important; }
  .cv-m1 .cv-back, .cv-m3 .cv-back { opacity: 0; }
  .cv-pairs line { stroke-dashoffset: 0; }
  .cv-verb .cv-luecke span, .cv-logik .cv-teil, .cv-logik .cv-bed { opacity: 1; }
}

/* Deutlichere Trennung der Karten */
.ue-card { border: 1px solid #c5d9cd; box-shadow: 0 1px 3px rgba(16, 60, 36, .08); }
.ue-card:hover { border-color: var(--ue-gruen); }
.ue-cover { border-bottom-color: #c5d9cd; }
