/* Bit für Bit – ergänzt ../styles/style.css */

/* Binär-Signatur über dem Titel: 01000010 01101001 01110100 = „Bit" */
.binaer {
    margin: 0 0 0.75rem;
    font-family: 'UniNeueRegular', sans-serif;
    font-size: 0.9375rem;
    letter-spacing: 0.22em;
    opacity: 0.85;
}

.binaer b { font-weight: 400; color: #ffd84a; }

/* Themenfeld (Farbe = Themenfeld) */
.th-tabelle  { --accent: #2f9e5b; --tint: #e1f3e8; }
.th-programm { --accent: #8a63d2; --tint: #eee8fa; }
.th-binaer   { --accent: #e3a600; --tint: #fcf1cf; }
.th-hardware { --accent: #1f6b4a; --tint: #e0f0e8; }
.th-text     { --accent: #2b5fb4; --tint: #e1e9f8; }
.th-umfrage  { --accent: #b03a6a; --tint: #f8e3ec; }

/* Zelle für Zelle: Mini-Tabellenblatt */
.ill-tabelle {
    width: 100%;
    max-width: 13.5rem;
    font-family: 'UniNeueRegular', sans-serif;
    font-size: 0.75rem;
    line-height: 1;
    background-color: var(--card);
    border-radius: 10px;
    overflow: hidden;
}

.formelleiste {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.formelleiste span { padding: 0.45rem 0.5rem; }
.formelleiste span + span { border-left: 1px solid rgba(0, 0, 0, 0.14); }
.formelleiste .fx { font-style: italic; opacity: 0.6; }

.raster {
    display: grid;
    grid-template-columns: 1.2rem repeat(4, 1fr);
}

.raster span {
    height: 1.45rem;
    display: grid;
    place-items: center end;
    padding: 0 0.35rem;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.raster .kopf {
    place-items: center;
    background-color: rgba(0, 0, 0, 0.05);
    opacity: 0.75;
}

.raster .aktiv {
    position: relative;
    background-color: var(--tint);
    box-shadow: inset 0 0 0 2px var(--accent);
}

/* Datenprofis: Auswertung mit drei Spalten */
.raster-3 { grid-template-columns: 1.2rem 1.15fr 1fr 1fr; }
.raster .links { place-items: center start; }
.raster .titel { font-weight: 400; color: var(--ink); background-color: rgba(0, 0, 0, 0.03); }

/* Befehl für Befehl: Programmierblöcke wie in Blockly */
.ill-bloecke {
    font-family: 'UniNeueRegular', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.2;
}

.blk {
    display: block;
    width: max-content;
    padding: 0.45rem 0.8rem;
    background-color: var(--card);
    border-radius: 8px;
}

.blk-c {
    padding: 0;
    color: #fff;
    background-color: transparent;
}

.blk-kopf,
.blk-fuss {
    display: block;
    background-color: var(--accent);
}

.blk-kopf {
    padding: 0.45rem 0.8rem;
    border-radius: 8px 8px 8px 0;
}

.blk-innen {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.3rem 0 0.3rem 0.35rem;
    border-left: 0.9rem solid var(--accent);
}

.blk-innen .blk { color: var(--ink); }

.blk-fuss {
    width: 4.5rem;
    height: 0.8rem;
    border-radius: 0 0 8px 8px;
}

/* Wenn … dann … sonst: zweiter Arm des Blocks */
.blk-sonst {
    display: block;
    width: max-content;
    padding: 0.3rem 0.8rem;
    color: #fff;
    background-color: var(--accent);
    border-radius: 0 8px 8px 0;
}

.blk-feld {
    padding: 0.05rem 0.45rem;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 6px;
}

/* Befehl für Befehl: Lochstreifen mit „Code“ in Nullen und Einsen (Loch = 1) */
.ill-nullen {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem 1rem;
    font-family: 'UniNeueRegular', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.18em;
    line-height: 1.1;
    color: var(--ink);
    background-color: var(--card);
    border-radius: 10px;
}

.ill-nullen .loch {
    display: flex;
    gap: calc(0.6em - 0.55rem + 0.18em);
    margin-bottom: 0.2rem;
}

.ill-nullen .loch i {
    width: 0.55rem;
    height: 0.55rem;
    margin: 0 calc((0.6em - 0.55rem) / 2);
    border: 1.5px solid var(--accent);
    border-radius: 50%;
}

.ill-nullen .loch i.l { background-color: var(--accent); }
.ill-nullen .bits b { font-weight: 400; color: var(--accent); }

/* Binär-Uhr: 14:35:07 als drei Binärzahlen untereinander */
.ill-uhr {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.95rem 1.05rem;
    background-color: var(--bit);
    border-radius: 14px;
}

.ill-uhr .gr { display: flex; gap: 0.4rem; }

.ill-uhr i {
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.ill-uhr i.x { background-color: transparent; }
.gr-std { --c: #fb7878; }
.gr-min { --c: #ffd84a; }
.gr-sek { --c: #3fd0dd; }
.ill-uhr i.a { background-color: var(--c); box-shadow: 0 0 0.6rem var(--c); }

/* Was steckt im Computer?: Chip auf einer Platine */
.ill-chip {
    position: relative;
    width: 12rem;
    height: 8.5rem;
    background-color: #1f6b4a;
    border-radius: 14px;
    overflow: hidden;
}

.ill-chip .bahn { position: absolute; height: 3px; background-color: #c98a3a; opacity: 0.8; }
.ill-chip .b1 { left: 0; top: 2rem; width: 5rem; }
.ill-chip .b2 { left: 0; top: 5.8rem; width: 5rem; }
.ill-chip .b3 { right: 0; top: 4rem; width: 4rem; }

.ill-chip .chip-k {
    position: absolute;
    left: 4.2rem;
    top: 1.5rem;
    width: 5rem;
    height: 5rem;
    display: grid;
    place-items: center;
    font-family: 'UniNeueRegular', sans-serif;
    font-size: 1.1rem;
    color: #e9edf3;
    background-color: #1d2128;
    border-radius: 6px;
    box-shadow: 0 0 0 4px #2a2f38, 0 0 0 7px #c9b37a;
}

.ill-chip .ram-k {
    position: absolute;
    right: 0.9rem;
    top: 0.9rem;
    width: 1.1rem;
    height: 6.6rem;
    background: repeating-linear-gradient(#1d2128 0 1.1rem, #1a5a3d 1.1rem 1.5rem);
    border-radius: 3px;
    border-bottom: 5px solid #d9b450;
}

/* Platzhalter */
.bald {
    height: 100%;
    min-height: 14rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.45);
    border-radius: 28px;
    text-align: center;
}

.bald strong {
    font-family: 'UniNeueRegular', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.2;
}

.bald span { font-size: 1rem; opacity: 0.9; }

/* Wort für Wort: Dokument mit Menüband */
.ill-dokument {
    width: 100%;
    max-width: 13.5rem;
    font-family: 'UniNeueRegular', sans-serif;
    font-size: 0.75rem;
    line-height: 1;
    background-color: var(--card);
    border-radius: 10px;
    overflow: hidden;
}
.dok-band { display: flex; gap: 0.3rem; align-items: center; padding: 0.35rem 0.5rem; border-bottom: 1px solid rgba(0, 0, 0, 0.14); background-color: rgba(0, 0, 0, 0.05); }
.dok-band b, .dok-band i, .dok-band u { display: grid; place-items: center; width: 1.1rem; height: 1.1rem; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 3px; font-family: Georgia, serif; font-size: 0.75rem; }
.dok-band b { background-color: var(--tint); box-shadow: inset 0 0 0 1px var(--accent); }
.dok-vorl { margin-left: auto; padding: 0.2rem 0.35rem; border-radius: 3px; color: var(--accent); background-color: var(--tint); font-size: 0.625rem; }
.dok-seite { display: flex; flex-direction: column; gap: 0.32rem; padding: 0.55rem 0.7rem 0.7rem; }
.dok-h { font-family: Georgia, serif; font-weight: 700; font-size: 0.85rem; color: var(--accent); }
.dok-h em { font-style: normal; font-weight: 400; opacity: 0.5; margin-left: 0.2rem; }
.dok-z { display: block; height: 0.25rem; border-radius: 2px; background-color: rgba(0, 0, 0, 0.18); }
.dok-z.kurz { width: 60%; }
.dok-z.li { margin-left: 0.6rem; position: relative; }
.dok-z.li::before { content: ""; position: absolute; left: -0.5rem; top: 0; width: 0.25rem; height: 0.25rem; border-radius: 50%; background-color: var(--accent); }

/* Seite für Seite: Inhaltsverzeichnis mit Fußnote */
.verz-z { display: flex; align-items: baseline; gap: 0.25rem; font-size: 0.66rem; font-weight: 700; }
.verz-z.sub { padding-left: 0.6rem; font-weight: 400; }
.verz-z i { flex: 1; border-bottom: 2px dotted rgba(0, 0, 0, 0.3); }
.verz-z b { color: var(--accent); }
.dok-fn { margin-top: 0.15rem; padding-top: 0.25rem; border-top: 1px solid rgba(0, 0, 0, 0.35); width: 70%; font-size: 0.56rem; opacity: 0.75; white-space: nowrap; }
.dok-fn sup { color: var(--accent); font-weight: 700; }

/* Gute Frage?: Fragebogen-Karte mit Auswahlkreisen */
.ill-umfrage {
    width: 100%;
    max-width: 13.5rem;
    font-family: 'UniNeueRegular', sans-serif;
    font-size: 0.75rem;
    line-height: 1.2;
    background-color: var(--card);
    border-radius: 10px;
    border-left: 5px solid var(--accent);
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.umf-frage { font-weight: 400; color: var(--accent); font-size: 0.8rem; }
.umf-a { display: flex; align-items: center; gap: 0.4rem; }
.umf-a::before { content: ""; width: 0.6rem; height: 0.6rem; border: 1.5px solid rgba(0, 0, 0, 0.4); border-radius: 50%; flex: 0 0 0.6rem; }
.umf-a.an::before { background-color: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--card); }
