/*---------------------------------------------------------------------*/
/*
  Gemeinsamer Stil fuer Seiten, E-Book, Tools und Impressum (Entwurf D,
  02.12.2026). Die Startseite hat ihren eigenen (portfolio.css), diese Datei
  uebernimmt deren Sprache: grosser Titel, klebende Leiste mit gleitender
  Linse, Bloecke mit Riesenziffer im Hintergrund, Einflug beim Scrollen.

  Harte Regel wie in portfolio.css: Farben NUR aus --linkc, --backg, --them,
  --hovg (bzw. den Admin-Varianten und --stern-color). Eine fest eingetragene
  Farbe, und der individuelle Modus faerbt die Seite nicht mehr mit.

  Reihenfolge im <head>: index.css, Bootstrap, dann diese Datei - sie laedt
  nach Bootstrap und braucht keine doppelten Selektoren.
*/

html {
    scroll-behavior: smooth;
}

.bloecke {
    --gedaempft: color-mix(in srgb, var(--linkc) 64%, transparent);
    --leise: color-mix(in srgb, var(--linkc) 42%, transparent);
    --linie: color-mix(in srgb, var(--linkc) 10%, transparent);
    --flaeche: color-mix(in srgb, var(--linkc) 5%, transparent);
    --tempo: 0.45s;
    color: var(--linkc);
}

.bloecke .huelle {
    width: min(1140px, 92vw);
    margin-inline: auto;
}

/* Eigene display-Regeln schlagen das [hidden] des Browsers - deshalb hier
   ausdruecklich. */
.bloecke [hidden] {
    display: none !important;
}

/*---------------------------------------------------------------------*/
/* Kopfbereich */

.bloecke .kopf {
    text-align: center;
    padding: clamp(2.5rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

/* Begruessung (#headline) und Titel auf einer Grundlinie, wie auf der
   Startseite. Ohne Namen bleibt #headline leer und verschwindet. */
.bloecke .kopf h1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.2em 0.5em;
    margin: 0;
    font-size: clamp(2.6rem, 9vw, 5.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: var(--linkc);
}

.bloecke .kopf h1 #headline {
    font-size: clamp(1rem, 2.6vw, 1.5rem);
    font-weight: 500;
    letter-spacing: 0;
    opacity: 0.65;
}

.bloecke .kopf h1 #headline:empty {
    display: none;
}

.bloecke .kopf p {
    margin: 1.2rem auto 0;
    max-width: 46ch;
    color: var(--gedaempft);
    font-size: 1.05rem;
    line-height: 1.6;
}

.bloecke .strich {
    width: 64px;
    height: 2px;
    margin: 2rem auto 0;
    border-radius: 2px;
    background: color-mix(in srgb, var(--linkc) 35%, transparent);
}

/*---------------------------------------------------------------------*/
/* Klebende Leiste mit Sprungmarken */

.bloecke .leiste {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px 0;
    /* Bewusst ohne backdrop-filter: der Weichzeichner wird bei jedem
       Scroll-Bild neu gerechnet, bei laufendem Netz in jedem Frame - das hat
       geruckelt. Fast deckend sieht fast genauso aus. */
    background: color-mix(in srgb, var(--backg) 94%, transparent);
    border-bottom: 1px solid var(--linie);
}

.bloecke .leiste .huelle {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Segment mit gleitender Linse. Die Linse ist ein eigenes Element, bloecke.js
   setzt left/width auf den aktiven Knopf. */
.bloecke .segment {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    padding: 4px;
    border-radius: 999px;
    background: var(--them);
    overflow-x: auto;
    scrollbar-width: none;
}

.bloecke .segment::-webkit-scrollbar {
    display: none;
}

.bloecke .segment button,
.bloecke .wahlfeld button {
    position: relative;
    z-index: 1;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    color: var(--gedaempft);
    white-space: nowrap;
    transition: color 0.3s;
}

.bloecke .segment button {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
}

.bloecke .segment button.an,
.bloecke .wahlfeld button.an {
    color: var(--linkc);
}

.bloecke .linse {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: 0;
    border-radius: 999px;
    background: var(--hovg);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--linkc) 18%, transparent);
    transition: left 0.4s cubic-bezier(0.3, 1.3, 0.5, 1), width 0.4s cubic-bezier(0.3, 1.3, 0.5, 1);
    pointer-events: none;
}

/* Auswahl in Formularen (Geschlecht, Ziel, Schwierigkeit ...) - dieselbe
   Linse, nur eckiger. */
.bloecke .wahlfeld {
    position: relative;
    display: flex;
    padding: 4px;
    border-radius: 16px;
    background: var(--flaeche);
}

.bloecke .wahlfeld button {
    flex: 1;
    padding: 10px 8px;
    border-radius: 12px;
}

.bloecke .wahlfeld .linse {
    border-radius: 12px;
}

/*---------------------------------------------------------------------*/
/* Bloecke */

.bloecke .block {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    scroll-margin-top: 64px;
}

/* Riesenziffer. Kein z-index: liegt im HTML vor dem Inhalt und wird so von
   allein darunter gemalt - ein negatives z-index wuerde mit dem Netz-Canvas
   (#backgroundCanvas, z-index -1) kollidieren. */
.bloecke .ziffer {
    position: absolute;
    right: 0;
    top: 1rem;
    padding-right: 0.06em;
    font-size: clamp(7rem, 20vw, 15rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--linkc);
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
}

.bloecke .block > *:not(.ziffer) {
    position: relative;
}

.bloecke .kicker {
    margin: 0 0 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--leise);
}

.bloecke .block-titel {
    margin: 0 0 0.6rem;
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--linkc);
}

.bloecke .satz {
    margin: 0;
    max-width: 55ch;
    color: var(--gedaempft);
    line-height: 1.6;
}

.bloecke .unter {
    margin: 2.2rem 0 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gedaempft);
}

/*---------------------------------------------------------------------*/
/* Karten, Knoepfe, Felder */

.bloecke .karte {
    position: relative;
    padding: clamp(20px, 3vw, 32px);
    border-radius: 32px;
    background: var(--them);
}

.bloecke .knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 13px 22px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    background: var(--them);
    color: var(--linkc);
    transition: background-color var(--tempo) ease, transform var(--tempo) ease, opacity 0.3s;
}

.bloecke .knopf:hover {
    background: var(--hovg);
    color: var(--linkc);
    transform: scale(1.04);
}

.bloecke .knopf:active {
    --tempo: 0.2s;
    transform: scale(0.95);
}

.bloecke .knopf.voll {
    background: var(--linkc);
    color: var(--backg);
}

.bloecke .knopf.voll:hover {
    background: color-mix(in srgb, var(--linkc) 88%, var(--backg));
    color: var(--backg);
}

.bloecke .knopf:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
}

.bloecke .feld {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border: 0;
    border-radius: 14px;
    background: var(--flaeche);
    color: var(--linkc);
    font: inherit;
    outline: none;
    box-shadow: 0 0 0 1px transparent;
    transition: box-shadow 0.2s;
}

.bloecke .feld:focus {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--linkc) 35%, transparent);
}

.bloecke .feld::placeholder {
    color: var(--leise);
}

.bloecke .feld-titel {
    display: block;
    margin: 0 0 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gedaempft);
}

.bloecke .fein {
    font-size: 0.85rem;
    color: var(--leise);
}

/* Suchfeld als Kapsel */
.bloecke .suche {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0 auto;
    max-width: 300px;
    flex: 1 1 200px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--them);
    box-shadow: 0 0 0 1px transparent;
    transition: box-shadow 0.25s;
}

.bloecke .suche:focus-within {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--linkc) 30%, transparent);
}

.bloecke .suche svg {
    flex: 0 0 auto;
    opacity: 0.5;
}

.bloecke .suche input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    outline: none;
    color: var(--linkc);
    font: inherit;
}

.bloecke .suche input::placeholder {
    color: var(--leise);
}

.bloecke .suche kbd {
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--them);
    color: var(--leise);
    font-family: inherit;
    font-size: 0.72rem;
}

/* Kurze Beschriftungen fuer schmale Schirme: <span class="lang"> und
   <span class="kurz"> im selben Knopf. */
.bloecke .segment .kurz {
    display: none;
}

/* Am Handy: Leiste in EINER Zeile und ganz zu sehen (Hendrik 02.12.2026:
   vorher lief sie seitlich raus, und die Suche darunter kostete eine
   zweite Zeile). Die Knoepfe teilen sich die Breite, die Suche ist nur
   eine Lupe und klappt beim Antippen ueber die ganze Leiste auf. */
@media (max-width: 600px) {
    .bloecke .leiste .huelle {
        position: relative;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .bloecke .leiste .segment {
        flex: 1 1 auto;
        min-width: 0;
        overflow: visible;
    }

    .bloecke .leiste .segment button {
        flex: 1 1 auto;
        min-width: 0;
        padding: 8px 6px;
        font-size: 0.82rem;
    }

    .bloecke .segment .lang {
        display: none;
    }

    .bloecke .segment .kurz {
        display: inline;
    }

    .bloecke .suche {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        margin: 0;
        padding: 0;
        justify-content: center;
        cursor: pointer;
    }

    .bloecke .suche input {
        position: absolute;
        width: 1px;
        opacity: 0;
    }

    .bloecke .suche kbd {
        display: none;
    }

    /* Aufgeklappt: legt sich ueber die ganze Leiste. Bleibt offen, solange
       etwas drinsteht (seiten.js setzt .hat-text). */
    .bloecke .suche:focus-within,
    .bloecke .suche.hat-text {
        position: absolute;
        inset: 0;
        z-index: 2;
        width: auto;
        max-width: none;
        height: auto;
        padding: 0 14px;
        justify-content: flex-start;
        background: var(--backg);
        box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--linkc) 30%, transparent);
    }

    .bloecke .suche:focus-within input,
    .bloecke .suche.hat-text input {
        position: static;
        width: auto;
        opacity: 1;
    }
}

/*---------------------------------------------------------------------*/
/* Einflug beim Scrollen.
   Unsichtbar ist nur, was bloecke.js angemeldet hat (Klasse .js-bloecke am
   <html>). Ohne JavaScript steht alles sofort da. */

.js-bloecke .bloecke .ein {
    opacity: 0;
    translate: 0 24px;
    transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js-bloecke .bloecke .ein.da {
    opacity: 1;
    translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js-bloecke .bloecke .ein {
        opacity: 1;
        translate: 0 0;
        transition: none;
    }

    .bloecke .linse {
        transition: none;
    }
}

/* Am Touchscreen frisst ein :hover den ersten Tipp - die Vergroesserung gibt
   es deshalb nur fuer echte Zeiger. */
@media (hover: none) {
    .bloecke .knopf:hover {
        transform: none;
    }
}

/*=====================================================================*/
/* Nuetzliche Seiten (seiten.html, seiten.js) */

.bloecke .zeilen {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
    gap: 12px;
    margin-top: 1.2rem;
}

.bloecke .zeile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: 100%;
    padding: 10px 8px 10px 10px;
    border-radius: 22px;
    background: var(--them);
    transition: background-color 0.25s;
}

.bloecke .zeile:hover {
    background: var(--hovg);
}

.bloecke .zeile-link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--linkc);
    text-decoration: none;
}

.bloecke .zeile-link:hover {
    color: var(--linkc);
}

/* Die Bilder in Bilder/ sind 16:9-Vorschauen der Seiten, keine Logos. */
.bloecke .vorschau {
    flex: 0 0 auto;
    display: block;
    width: 112px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: var(--them);
    box-shadow: 0 0 0 1px var(--linie);
}

.bloecke .vorschau img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bloecke .zeile-link:hover .vorschau img {
    transform: scale(1.06);
}

.bloecke .zeile-text {
    flex: 1;
    min-width: 0;
}

.bloecke .zeile-text b {
    display: block;
    font-weight: 650;
}

.bloecke .zeile-text span {
    display: block;
    margin-top: 2px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--gedaempft);
}

.bloecke .zeile-pfeil {
    flex: 0 0 auto;
    color: var(--leise);
    transition: translate 0.25s, color 0.25s;
}

.bloecke .zeile-link:hover .zeile-pfeil {
    translate: 3px 0;
    color: var(--linkc);
}

/* Admin-Seiten: gelber Ton wie bisher */
.bloecke .eintrag.admin .zeile {
    background: var(--themadmin);
}

.bloecke .eintrag.admin .zeile:hover {
    background: var(--hovgadmin);
}

/* Favoriten-Stern */
.bloecke .favstern {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: none;
    cursor: pointer;
    color: var(--leise);
    transition: color 0.2s, background-color 0.2s, transform 0.2s;
}

.bloecke .favstern svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.bloecke .favstern:hover {
    background: var(--hovg);
    color: var(--linkc);
}

.bloecke .favstern:active {
    transform: scale(0.85);
}

.bloecke .favstern[aria-pressed="true"] {
    color: var(--stern-color);
}

.bloecke .favstern[aria-pressed="true"] svg {
    fill: currentColor;
}

/* Am Handy: wie am PC als Zeile, nur mit kleinerem Bild (Hendrik
   02.12.2026: grosse Bilder oben waren zu viel). Der Pfeil faellt weg,
   damit der Text Platz hat. */
@media (max-width: 699px) {
    .bloecke .zeile {
        padding: 8px 4px 8px 8px;
        gap: 0;
    }

    .bloecke .zeile-link {
        gap: 0.8rem;
    }

    .bloecke .vorschau {
        width: 84px;
        border-radius: 10px;
    }

    .bloecke .zeile-pfeil {
        display: none;
    }

    .bloecke .zeile-text span {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Favoriten-Reihe oben */
.bloecke .favoriten {
    margin-top: 2.5rem;
    padding: 18px;
    border-radius: 28px;
    box-shadow: inset 0 0 0 1px var(--linie);
}

.bloecke .favoriten-titel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.8rem;
    font-weight: 700;
}

.bloecke .favoriten-titel svg {
    fill: var(--stern-color);
}

.bloecke .favoriten-titel small {
    font-weight: 500;
    color: var(--leise);
}

.bloecke .favoriten-reihe {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 10px;
}

.bloecke .favpille {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 6px 6px 6px 8px;
    border-radius: 18px;
    background: var(--them);
    transition: background-color 0.25s;
}

.bloecke .favpille:hover {
    background: var(--hovg);
}

.bloecke .favpille a {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--linkc);
    text-decoration: none;
    font-weight: 650;
}

.bloecke .favpille a span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bloecke .favpille .vorschau {
    width: 56px;
    border-radius: 8px;
}

/* Suche */
.bloecke .weg {
    display: none !important;
}

.bloecke .nichts {
    margin: 3rem 0;
    text-align: center;
    color: var(--leise);
}

/* Symbole in Knoepfen (auch die Sende-/Warte-Symbole aus index.js, die mit
   width="30" kommen) auf Schriftgroesse bringen. */
.bloecke .knopf svg {
    flex: 0 0 auto;
    width: 1.2em;
    height: 1.2em;
}

/*=====================================================================*/
/* E-Book (ebook.html, ebook.js) */

/* Buehne: Text links, Buch rechts */
.bloecke .buehne {
    min-height: calc(100svh - 90px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 3rem;
    padding: 2rem 0 3rem;
}

.bloecke .buehne-text {
    text-align: left;
}

.bloecke .buehne-titel {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    text-align: inherit;
    margin: 0;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.035em;
    color: var(--linkc);
}

.bloecke .buehne-titel #headline {
    font-size: clamp(1rem, 2.4vw, 1.4rem);
    font-weight: 500;
    letter-spacing: 0;
    opacity: 0.65;
}

.bloecke .buehne-titel #headline:empty {
    display: none;
}

.bloecke .buehne-unter {
    margin: 1.4rem 0 0;
    max-width: 42ch;
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    line-height: 1.6;
    color: var(--gedaempft);
}

.bloecke .buehne-knoepfe {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2.2rem;
}

.bloecke .fakten {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.8rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--leise);
}

.bloecke .fakten b {
    display: block;
    font-size: 1.3rem;
    color: var(--linkc);
}

.bloecke .schnitt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--leise);
    text-decoration: none;
}

.bloecke .schnitt:hover {
    color: var(--linkc);
}

.bloecke .buch-buehne {
    display: grid;
    place-items: center;
    padding: 2rem;
}

/* Das Buch - reines CSS. --dreh-x/--dreh-y setzt ebook.js mit der Maus. */
.bloecke .buch {
    --b: clamp(200px, 24vw, 290px);
    position: relative;
    width: var(--b);
    aspect-ratio: 3 / 4.2;
    transform-style: preserve-3d;
    transform: perspective(1400px) rotateY(var(--dreh-y, -22deg)) rotateX(var(--dreh-x, 6deg));
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bloecke .buch-vorne {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 12% 11%;
    border-radius: 6px 16px 16px 6px;
    overflow: hidden;
    background: linear-gradient(160deg, color-mix(in srgb, var(--linkc) 14%, var(--backg)), var(--backg) 75%);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--linkc) 16%, transparent),
        inset 7px 0 0 color-mix(in srgb, var(--linkc) 7%, transparent),
        24px 30px 60px color-mix(in srgb, #000 45%, transparent);
    color: var(--linkc);
}

.bloecke .buch-ruecken {
    position: absolute;
    top: 2%;
    bottom: 2%;
    right: -14px;
    width: 16px;
    border-radius: 0 6px 6px 0;
    transform: translateZ(-8px);
    background: repeating-linear-gradient(to bottom,
        color-mix(in srgb, var(--linkc) 70%, var(--backg)) 0 2px,
        color-mix(in srgb, var(--linkc) 55%, var(--backg)) 2px 3px);
}

.bloecke .buch small {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--leise);
}

.bloecke .buch strong {
    margin-top: auto;
    font-size: calc(var(--b) * 0.15);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.bloecke .buch em {
    margin-top: 0.8rem;
    font-style: normal;
    font-size: calc(var(--b) * 0.045);
    line-height: 1.4;
    color: var(--gedaempft);
}

.bloecke .buch-strich {
    display: block;
    width: 28%;
    height: 2px;
    margin-top: 1rem;
    border-radius: 2px;
    background: color-mix(in srgb, var(--linkc) 35%, transparent);
}

.bloecke .buch-wolf {
    margin-top: 1.2rem;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 0.95;
}

@media (max-width: 860px) {
    .bloecke .buehne {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        gap: 1rem;
    }

    .bloecke .buehne-text {
        text-align: center;
    }

    .bloecke .buehne-titel {
        align-items: center;
    }

    .bloecke .buehne-unter {
        margin-inline: auto;
    }

    .bloecke .buehne-knoepfe,
    .bloecke .fakten {
        justify-content: center;
    }

    .bloecke .buch-buehne {
        order: -1;
        padding: 1rem;
    }

    .bloecke .buch {
        --b: 190px;
    }
}

/* Bausteine */
.bloecke .bausteine {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 16px;
    margin-top: 2.5rem;
}

.bloecke .baustein {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 28px 24px 26px;
    border-radius: 28px;
    background: var(--them);
    color: var(--gedaempft);
    transition: background-color var(--tempo), transform var(--tempo);
}

.bloecke .baustein:hover {
    background: var(--hovg);
    transform: translateY(-4px);
}

.bloecke .baustein-ziffer {
    position: absolute;
    right: 18px;
    top: 14px;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--linkc);
    opacity: 0.06;
}

.bloecke .baustein h3 {
    margin: auto 0 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--linkc);
}

.bloecke .baustein p {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
}

.bloecke .bekommst {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 0 2.5rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.bloecke .bekommst li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--linie);
    color: var(--gedaempft);
}

.bloecke .bekommst svg {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--linkc);
}

.bloecke .achtung {
    margin: 2rem 0 0;
    padding-left: 1.2rem;
    border-left: 2px solid color-mix(in srgb, var(--linkc) 35%, transparent);
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Schritt-Fuehrung */
.bloecke .stepper {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    margin-top: 2.5rem;
    border-radius: 36px;
    background: var(--them);
    overflow: hidden;
}

.bloecke .stepper-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border-right: 1px solid var(--linie);
}

.bloecke .stufe-knopf {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 14px;
    border: 0;
    border-radius: 18px;
    background: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: var(--gedaempft);
    transition: background-color 0.25s, color 0.25s;
}

.bloecke .stufe-knopf:hover,
.bloecke .stufe-knopf.an {
    background: var(--hovg);
    color: var(--linkc);
}

.bloecke .stufe-knopf b {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px currentColor;
    font-size: 0.85rem;
}

.bloecke .stufe-knopf.fertig b {
    background: var(--linkc);
    color: var(--backg);
    box-shadow: none;
}

.bloecke .stufe-knopf span {
    font-weight: 650;
}

.bloecke .stufe-knopf small {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--leise);
}

.bloecke .schritt-inhalt {
    padding: clamp(24px, 4vw, 44px);
    min-height: 340px;
}

.bloecke .stufe h3 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 750;
    letter-spacing: -0.02em;
}

.bloecke .stufe > p {
    max-width: 46ch;
    margin: 0 0 1.4rem;
    color: var(--gedaempft);
}

/* Ohne JavaScript stehen alle drei Schritte untereinander. */
.js-bloecke .bloecke .stufe:not(.an) {
    display: none;
}

.js-bloecke .bloecke .stufe.an {
    animation: stufeRein 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes stufeRein {
    from {
        opacity: 0;
        translate: 16px 0;
    }
}

@media (max-width: 760px) {
    .bloecke .stepper {
        grid-template-columns: minmax(0, 1fr);
    }

    .bloecke .stepper-nav {
        flex-direction: row;
        padding: 8px;
        border-right: 0;
        border-bottom: 1px solid var(--linie);
    }

    .bloecke .stufe-knopf {
        flex: 1 1 0;
        min-width: 0;
        flex-direction: column;
        gap: 0.35rem;
        padding: 10px 4px;
        text-align: center;
        font-size: 0.8rem;
    }

    .bloecke .stufe-knopf small {
        display: none;
    }

    .bloecke .schritt-inhalt {
        min-height: 0;
    }
}

/* Formulare */
.bloecke .formular {
    display: grid;
    gap: 14px;
    max-width: 560px;
}

.bloecke .karte .formular {
    max-width: none;
}

.bloecke .zwei-felder {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 560px) {
    .bloecke .zwei-felder {
        grid-template-columns: minmax(0, 1fr);
    }
}

.bloecke textarea.feld {
    resize: vertical;
    min-height: 110px;
}

.bloecke .feld-titel small {
    font-weight: 400;
    color: var(--leise);
}

.bloecke .formular-fuss {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.bloecke .ausgabe {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--hovg);
    color: var(--linkc);
}

.bloecke .ausgabe strong {
    font-size: 1.3em;
    letter-spacing: 1px;
}

/* Fehler darf rot sein: das ist eine Meldung, kein Seitendesign. */
.bloecke .ausgabe.fehler {
    background: color-mix(in srgb, #dc3545 22%, transparent);
}

/* .rating laeuft in index.css rueckwaerts (row-reverse) - flex-end ist
   deshalb links. */
.bloecke .rating {
    justify-content: flex-end;
}

/* Rezensionen: die Karten baut rezensionen.js (Bootstrap-Klassen .col/.card),
   hier bekommen sie den neuen Look. */
.bloecke .rezensionen-raster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 16px;
    margin-top: 2.2rem;
}

.bloecke .rezensionen-raster .col > a {
    display: block;
    height: 100%;
}

.bloecke .rezensionen-raster .card {
    height: 100%;
    border: 0;
    border-radius: 28px;
    background: var(--them);
    box-shadow: none;
}

.bloecke .rezensionen-raster .card:hover {
    background: var(--hovg);
    transform: none;
}

.bloecke .rezensionen-raster .card-body {
    padding: 24px;
}

.bloecke .rezensionen-raster .card-title {
    font-weight: 700;
}

.bloecke .rezensionen-raster .card-text {
    line-height: 1.6;
}

.bloecke .leer-hinweis {
    margin: 2rem 0 0;
    color: var(--leise);
}

.bloecke .leer-hinweis a {
    color: var(--linkc);
}

.bloecke .mehr-zeile {
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Admin-Bereich unter den Rezensionen (nur mit Rezensionsrechten) */
.bloecke #rezensionen-admin {
    margin-top: 2.5rem;
}

.bloecke #rezensionen-admin .card {
    border: 0;
    border-radius: 28px;
}

/* Feedback + Spenden */
.bloecke .unten {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 2.2rem;
    align-items: start;
}

.bloecke .spenden h3 {
    margin: 0 0 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.bloecke .spenden p {
    color: var(--gedaempft);
    line-height: 1.6;
}

@media (max-width: 860px) {
    .bloecke .unten {
        grid-template-columns: minmax(0, 1fr);
    }
}

/*=====================================================================*/
/* Tools (tools.html, rechner.js) */

.bloecke.tools {
    /* Richtig/falsch darf gruen/rot sein - das ist eine Rueckmeldung, kein
       Seitendesign. Mit der Schriftfarbe gemischt, damit es im hellen und
       im dunklen Modus lesbar bleibt. */
    --gut: color-mix(in srgb, #22c55e 78%, var(--linkc));
    --schlecht: color-mix(in srgb, #ef4444 80%, var(--linkc));
}

.bloecke .zweier {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.bloecke .erklaer {
    position: sticky;
    top: 90px;
}

.bloecke .erklaer ul {
    display: grid;
    gap: 0.7rem;
    margin: 1.6rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
    color: var(--gedaempft);
}

.bloecke .erklaer li {
    display: flex;
    gap: 0.7rem;
}

.bloecke .erklaer li::before {
    content: "";
    flex: 0 0 6px;
    height: 6px;
    margin-top: 0.55em;
    border-radius: 50%;
    background: var(--leise);
}

@media (max-width: 860px) {
    .bloecke .zweier {
        grid-template-columns: minmax(0, 1fr);
    }

    .bloecke .erklaer {
        position: static;
    }
}

.bloecke .feldgruppe {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.bloecke .feldgruppe .feld-titel {
    margin: 0;
}

.bloecke .drei {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bloecke .drei label {
    display: grid;
    gap: 8px;
}

@media (max-width: 480px) {
    .bloecke .drei {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Zahlenfeld mit Einheit */
.bloecke .zahl {
    display: flex;
    align-items: center;
    border-radius: 14px;
    background: var(--flaeche);
    box-shadow: 0 0 0 1px transparent;
    transition: box-shadow 0.2s;
}

.bloecke .zahl:focus-within {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--linkc) 35%, transparent);
}

.bloecke .zahl.falsch {
    box-shadow: 0 0 0 1px var(--schlecht, currentColor);
}

.bloecke .zahl input {
    width: 100%;
    min-width: 0;
    padding: 13px 0 13px 16px;
    border: 0;
    background: none;
    outline: none;
    color: var(--linkc);
    font: inherit;
    font-size: 1.1rem;
    font-weight: 650;
    -moz-appearance: textfield;
}

.bloecke .zahl input::-webkit-outer-spin-button,
.bloecke .zahl input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bloecke .zahl em {
    padding-right: 14px;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--leise);
}

.bloecke .aktiv-text {
    min-height: 2.6em;
    margin: 2px 0 0;
    font-size: 0.88rem;
    color: var(--gedaempft);
}

.bloecke .aktiv-text b {
    color: var(--linkc);
}

/* Ergebnis-Kacheln */
.bloecke .ergebnis {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}

.bloecke .ergebnis > div {
    padding: 16px;
    border-radius: 20px;
    background: var(--flaeche);
}

.bloecke .ergebnis > div:first-child {
    background: var(--hovg);
}

.bloecke .ergebnis b {
    display: block;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.bloecke .ergebnis span {
    font-size: 0.8rem;
    color: var(--gedaempft);
}

@media (max-width: 560px) {
    .bloecke .ergebnis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bloecke .ergebnis > div:first-child {
        grid-column: 1 / -1;
    }
}

.bloecke .balken {
    display: flex;
    gap: 3px;
    height: 8px;
    margin-top: 14px;
    border-radius: 999px;
    overflow: hidden;
}

.bloecke .balken i {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: flex-grow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bloecke #b-eiweiss {
    background: color-mix(in srgb, var(--linkc) 85%, transparent);
}

.bloecke #b-kh {
    background: color-mix(in srgb, var(--linkc) 45%, transparent);
}

.bloecke #b-fett {
    background: color-mix(in srgb, var(--linkc) 22%, transparent);
}

.bloecke .karte > .fein {
    margin: 14px 0 0;
}

/* Progress: Vorher -> Nachher */
.bloecke .vergleich {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
}

.bloecke .vergleich-seite {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 22px;
    background: var(--flaeche);
}

.bloecke .vergleich-seite p {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--leise);
}

.bloecke .vergleich-pfeil {
    color: var(--leise);
}

@media (max-width: 560px) {
    .bloecke .vergleich {
        grid-template-columns: minmax(0, 1fr);
    }

    .bloecke .vergleich-pfeil {
        justify-self: center;
        rotate: 90deg;
    }
}

.bloecke .prozent {
    margin-top: 22px;
    padding: 26px 16px;
    border-radius: 24px;
    background: var(--hovg);
    text-align: center;
}

.bloecke .prozent > b {
    display: block;
    font-size: clamp(2.8rem, 8vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.bloecke .prozent > b.plus {
    color: var(--gut);
}

.bloecke .prozent > b.minus {
    color: var(--schlecht);
}

.bloecke .prozent > span {
    display: block;
    margin-top: 6px;
    font-size: 0.92rem;
    color: var(--gedaempft);
}

.bloecke .rm {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.6rem;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--gedaempft);
}

.bloecke .rm b {
    color: var(--linkc);
}

/* Quiz */
.bloecke .quiz-kopf {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--gedaempft);
}

.bloecke .quiz-fortschritt {
    height: 6px;
    margin-bottom: 26px;
    border-radius: 999px;
    background: var(--flaeche);
    overflow: hidden;
}

.bloecke .quiz-fortschritt i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--linkc);
    opacity: 0.6;
    transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bloecke .quiz-frage {
    margin: 0 0 20px;
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.bloecke .quiz-antworten {
    display: grid;
    gap: 10px;
}

.bloecke .quiz-antwort {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-radius: 18px;
    background: var(--flaeche);
    color: var(--linkc);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.25s, transform 0.25s, box-shadow 0.25s, opacity 0.25s;
}

.bloecke .quiz-antwort > i {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px var(--leise);
    font-style: normal;
    font-weight: 700;
    font-size: 0.85rem;
}

@media (hover: hover) {
    .bloecke .quiz-antwort:hover:not(:disabled) {
        background: var(--hovg);
        transform: translateX(4px);
    }
}

.bloecke .quiz-antwort:active:not(:disabled) {
    transform: scale(0.98);
}

.bloecke .quiz-antwort:disabled {
    cursor: default;
}

.bloecke .quiz-antwort.richtig {
    box-shadow: inset 0 0 0 1.5px var(--gut);
}

.bloecke .quiz-antwort.richtig > i {
    background: var(--gut);
    color: var(--backg);
    box-shadow: none;
}

.bloecke .quiz-antwort.falsch {
    box-shadow: inset 0 0 0 1.5px var(--schlecht);
}

.bloecke .quiz-antwort.falsch > i {
    background: var(--schlecht);
    color: var(--backg);
    box-shadow: none;
}

.bloecke .quiz-antwort.blass {
    opacity: 0.45;
}

.bloecke .quiz-fuss {
    display: flex;
    justify-content: flex-end;
    min-height: 50px;
    margin-top: 20px;
}

.bloecke .quiz-ende {
    padding: 10px 0;
    text-align: center;
}

.bloecke .quiz-ende > b {
    display: block;
    font-size: clamp(3rem, 9vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.bloecke .quiz-ende > p:not(.kicker) {
    margin: 0.8rem 0 1.4rem;
    color: var(--gedaempft);
}

.bloecke .quiz-wechsel {
    animation: quizRein 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes quizRein {
    from {
        opacity: 0;
        translate: 14px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bloecke .quiz-wechsel,
    .js-bloecke .bloecke .stufe.an {
        animation: none;
    }
}

/*=====================================================================*/
/* Impressum (impressum.html, impressum.js) */

.bloecke .ich {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    margin-top: 1.6rem;
}

.bloecke .ich-gross {
    margin: 0;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.bloecke .ich-gross span {
    font-weight: 500;
    color: var(--gedaempft);
}

.bloecke .fakten-liste {
    display: grid;
    gap: 12px;
}

.bloecke .fakt {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 18px;
    border-radius: 22px;
    background: var(--them);
}

.bloecke .fakt svg {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--gedaempft);
}

.bloecke .fakt b {
    display: block;
    margin-bottom: 2px;
}

.bloecke .fakt span {
    font-size: 0.95rem;
    color: var(--gedaempft);
}

@media (max-width: 820px) {
    .bloecke .ich {
        grid-template-columns: minmax(0, 1fr);
    }
}

.bloecke .projekte {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 12px;
    margin-top: 1rem;
}

.bloecke .projekt-karte {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 20px;
    border-radius: 24px;
    background: var(--them);
    color: var(--gedaempft);
    font-size: 0.92rem;
    text-decoration: none;
    transition: background-color var(--tempo), transform var(--tempo);
}

.bloecke .projekt-karte:hover {
    background: var(--hovg);
    color: var(--gedaempft);
    transform: translateY(-3px);
}

.bloecke .projekt-kopf {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    color: var(--linkc);
}

.bloecke .projekt-sym {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--flaeche);
}

.bloecke.impressum .neu-marke {
    margin-left: auto;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--hovg);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Kontakt */
.bloecke .mail {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0.8rem;
    margin-top: 1.6rem;
    padding: 14px 18px;
    border-radius: 22px;
    background: var(--them);
}

.bloecke .mail a {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--linkc);
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.bloecke .kopieren {
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: var(--flaeche);
    color: var(--gedaempft);
    cursor: pointer;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
}

.bloecke .kopieren:hover {
    background: var(--hovg);
    color: var(--linkc);
}

.bloecke .anlaesse {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.4rem;
}

.bloecke .anlass {
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: none;
    box-shadow: inset 0 0 0 1px var(--linie);
    color: var(--gedaempft);
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
}

.bloecke .anlass:hover,
.bloecke .anlass.an {
    background: var(--hovg);
    box-shadow: none;
    color: var(--linkc);
}

.bloecke .karte-titel {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 700;
}

/* Funktionen */
.bloecke .funktionen {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 2.2rem;
}

.bloecke .funktionen > .karte {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bloecke .funktionen > .karte.breit {
    grid-column: 1 / -1;
}

@media (max-width: 820px) {
    .bloecke .funktionen {
        grid-template-columns: minmax(0, 1fr);
    }
}

.bloecke .fkopf {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.bloecke .fkopf > div {
    flex: 1;
}

.bloecke .fkopf h3,
.bloecke .ttt-seite h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.bloecke .fkopf p {
    margin: 0.3rem 0 0;
    font-size: 0.92rem;
    color: var(--gedaempft);
}

/* Schalter im iOS-Stil. An = Schriftfarbe, damit er im individuellen Modus
   mitfaerbt. */
.bloecke .schalter {
    position: relative;
    flex: 0 0 auto;
    width: 52px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--linkc) 16%, transparent);
    cursor: pointer;
    transition: background-color 0.3s;
}

.bloecke .schalter::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--backg);
    box-shadow: 0 2px 6px color-mix(in srgb, #000 30%, transparent);
    transition: translate 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.bloecke .schalter[aria-checked="true"] {
    background: var(--linkc);
}

.bloecke .schalter[aria-checked="true"]::after {
    translate: 20px 0;
}

.bloecke .farben {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bloecke .farbe {
    flex: 1 1 150px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 10px 12px;
    border-radius: 16px;
    background: var(--flaeche);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.3s;
}

.bloecke .farbe:has(input:disabled) {
    opacity: 0.4;
    cursor: default;
}

.bloecke .farbe input {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: none;
    cursor: pointer;
}

.bloecke .farbe input:disabled {
    cursor: default;
}

.bloecke .farbe input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.bloecke .farbe input::-webkit-color-swatch {
    border: 0;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px var(--linie);
}

.bloecke .namefeld {
    display: flex;
    gap: 8px;
}

.bloecke .namefeld .feld {
    flex: 1;
    min-width: 0;
}

.bloecke .netzvorschau {
    height: 90px;
    border-radius: 18px;
    background: var(--flaeche);
    overflow: hidden;
}

.bloecke .netzvorschau canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Tic Tac Toe - Logik und Grundstil aus tictactoe.js/.css, hier nur der
   neue Rahmen. */
.bloecke .ttt {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.bloecke #board {
    gap: 8px;
    width: min(300px, 72vw);
    margin: 0;
}

.bloecke #board .cell {
    border: 0;
    border-radius: 18px;
    background: var(--flaeche);
}

.bloecke #board .cell:not(.placed):hover {
    background: var(--hovg);
}

.bloecke #board.locked .cell:not(.placed):hover {
    background: var(--flaeche);
}

.bloecke #board .cell.cell--win {
    background: var(--hovg);
}

.bloecke .ttt-satz {
    margin: 0.3rem 0 1.2rem;
    font-size: 0.92rem;
    color: var(--gedaempft);
}

.bloecke .tic-difficulty {
    display: inline-flex;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 4px;
    border-radius: 16px;
    background: var(--flaeche);
}

.bloecke .tic-diff-btn {
    padding: 9px 16px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--gedaempft);
    font-weight: 600;
    font-size: 0.95rem;
}

.bloecke .tic-diff-btn.tic-diff-active {
    background: var(--hovg);
    color: var(--linkc);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--linkc) 18%, transparent);
}

.bloecke .tic-scoreboard {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 1.4rem 0 0;
}

.bloecke .tic-score {
    min-width: 0;
    padding: 14px 8px;
    border: 0;
    border-radius: 18px;
    background: var(--flaeche);
}

.bloecke .tic-score-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.bloecke #ticinfo {
    min-height: 1.5em;
    margin: 1rem 0;
}

.bloecke .ttt-knoepfe {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 700px) {
    .bloecke .ttt {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .bloecke .ttt-seite {
        width: 100%;
    }
}

/* Features erklaert - Aufklapp-Liste statt Popups */
.bloecke .fragen {
    margin-top: 2.2rem;
    border-radius: 28px;
    background: var(--them);
    overflow: hidden;
}

.bloecke .fragen details + details {
    border-top: 1px solid var(--linie);
}

.bloecke .fragen summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 20px 24px;
    list-style: none;
    cursor: pointer;
    font-weight: 650;
    transition: background-color 0.2s;
}

.bloecke .fragen summary::-webkit-details-marker {
    display: none;
}

.bloecke .fragen summary:hover {
    background: var(--hovg);
}

.bloecke .fragen summary .sym {
    flex: 0 0 auto;
    color: var(--gedaempft);
}

.bloecke .fragen summary .plus {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--leise);
    transition: rotate 0.3s;
}

.bloecke .fragen details[open] .plus {
    rotate: 45deg;
}

.bloecke .fragen .antwort {
    display: grid;
    gap: 0.6rem;
    padding: 0 24px 22px 62px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gedaempft);
}

.bloecke .fragen .antwort p {
    margin: 0;
}

@media (max-width: 560px) {
    .bloecke .fragen .antwort {
        padding-left: 24px;
    }
}

/*=====================================================================*/
/* Ruhiger Modus (Impressum -> Funktionen). bloecke.js setzt .ruhig am
   <html>, bevor etwas gemalt wird. Gilt auch auf der Startseite. */

html.ruhig {
    scroll-behavior: auto;
}

html.ruhig *,
html.ruhig *::before,
html.ruhig *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
}

.js-bloecke.ruhig .bloecke .ein {
    opacity: 1;
    translate: 0 0;
}

/* Kompakter: weniger Luft zwischen den Bloecken */
html.ruhig .bloecke .kopf {
    padding: 2rem 0 1.5rem;
}

html.ruhig .bloecke .block {
    padding: 2.5rem 0;
}

html.ruhig .bloecke .buehne {
    min-height: 0;
    padding: 1.5rem 0 1rem;
}

html.ruhig .bloecke .buch {
    transform: perspective(1400px) rotateY(-22deg) rotateX(6deg);
}

/*=====================================================================*/
/* Farbfelder: Vorlagen und Akzentfarbe im Impressum */

.bloecke .farbfelder {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bloecke .farbfeld {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    /* Farbe kommt per style="--f1/--f2" aus dem HTML - das sind die Werte,
       die man waehlt, also bewusst feste Farben. */
    background: linear-gradient(135deg, var(--f1) 50%, var(--f2, var(--f1)) 50%);
    box-shadow: inset 0 0 0 1px var(--linie);
    transition: transform 0.2s;
}

.bloecke .farbfeld:hover {
    transform: scale(1.08);
}

.bloecke .farbfeld[aria-pressed="true"] {
    box-shadow: inset 0 0 0 1px var(--linie), 0 0 0 2px var(--backg), 0 0 0 4px var(--linkc);
}

.bloecke .farbfeld-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.bloecke .unterzeile {
    margin: 0 0 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gedaempft);
}

/*=====================================================================*/
/* Eigene Seiten (Nuetzliche Seiten -> Meine Seiten) */

/* Platzhalter-Vorschau: fremde Bilder laedt die Seite nicht (CSP), deshalb
   der Anfangsbuchstabe. */
.bloecke .vorschau.buchstabe {
    display: grid;
    place-items: center;
    background: var(--hovg);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--linkc);
}

.bloecke .zeile .entfernen {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--leise);
    cursor: pointer;
}

.bloecke .zeile .entfernen:hover {
    background: var(--hovg);
    color: var(--linkc);
}

.bloecke .neu-kachel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 82px;
    padding: 12px;
    border: 0;
    border-radius: 22px;
    background: none;
    box-shadow: inset 0 0 0 1.5px var(--linie);
    color: var(--gedaempft);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    transition: background-color 0.25s, color 0.25s;
}

.bloecke .neu-kachel:hover {
    background: var(--them);
    color: var(--linkc);
}

.bloecke .eigene-form {
    margin-top: 12px;
}

.bloecke .eigene-form .formular {
    max-width: none;
}

.bloecke .eigene-fehler {
    margin: 0;
    font-size: 0.88rem;
    color: var(--linkc);
}

/*=====================================================================*/
/* Fehlerseite (404.html) */

.bloecke.fehlerseite .block {
    min-height: calc(100svh - 160px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bloecke .fehler-titel {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2em 0.5em;
    margin: 0 0 1rem;
    font-size: clamp(2.6rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: var(--linkc);
}

.bloecke .fehler-titel #headline {
    font-size: clamp(1rem, 2.4vw, 1.4rem);
    font-weight: 500;
    letter-spacing: 0;
    opacity: 0.65;
}

.bloecke .fehler-titel #headline:empty {
    display: none;
}

.bloecke .fehler-vorschlag {
    margin: 2.2rem 0 0.8rem;
    font-weight: 600;
    color: var(--gedaempft);
}

.bloecke .fehler-ziele {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.bloecke.fehlerseite .ziffer {
    top: 50%;
    translate: 0 -50%;
}

/* E-Book: Hinweis auf die Tools-Seite */
.bloecke .hinweis-karte {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 560px;
    margin-top: 2rem;
    padding: 16px 18px;
    border-radius: 22px;
    background: var(--them);
    color: var(--linkc);
    text-decoration: none;
    transition: background-color 0.25s;
}

.bloecke .hinweis-karte:hover {
    background: var(--hovg);
    color: var(--linkc);
}

.bloecke .hinweis-karte > span:nth-child(2) {
    flex: 1;
}

.bloecke .hinweis-karte b {
    display: block;
}

.bloecke .hinweis-karte span span {
    display: block;
    font-size: 0.9rem;
    color: var(--gedaempft);
}

.bloecke .hinweis-karte .projekt-sym {
    flex: 0 0 auto;
}
