/* Wortkarten: Bildschirm-Vorschau + A4-Druckbogen (3 x 4 Karten), Stand 25.11.2026 */
@font-face { font-family: "Raleway"; src: url("schrift/Raleway-Variable-Latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2212, U+FEFF, U+FFFD; }
:root {
  --text: #1d2b3f; --leise: #5a6575; --akzent: #0042a0; --linie: #9aa3af;
  --schrift: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "DejaVu Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f7f5f1; color: var(--text); font-family: var(--schrift); line-height: 1.5; }
a { color: var(--akzent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
.skip { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; background: #fff; padding: 0; z-index: 50; border-radius: 8px; }
.skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; padding: .6rem 1rem; }
.steuerung { max-width: 210mm; margin: 0 auto; padding: 1rem 16px; }
.steuerung h1 { font-size: 1.75rem; margin: .25rem 0 .5rem; }
button { font: inherit; font-weight: 700; min-height: 48px; padding: .6rem 1.6rem; border: 0; background: var(--akzent); color: #fff; border-radius: 999px; cursor: pointer; }
button:hover { background: #003177; }
.zurueck { font-weight: 600; text-decoration: none; }
.steuerung h1 { color: #1d2b3f; }
.klein { font-size: .85rem; color: var(--leise); }

.a4 { background: #fff; width: 100%; max-width: 210mm; margin: 0 auto 2rem; padding: 8mm; border-radius: 6px; box-shadow: 0 10px 30px -18px rgba(29,43,63,.4); }
.karten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.karte { border: 1px dashed var(--linie); margin: -0.5px; padding: 4mm; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 62mm; break-inside: avoid; }
.bild { width: 100%; aspect-ratio: 4 / 3; background: #fff; border: 1px solid #c9c5bb; border-radius: 3mm; display: flex; align-items: center; justify-content: center; padding: 2mm; }
.bild.mit { border: 0; padding: 0; }
.bild.mit picture, .bild.mit img { display: block; height: 100%; width: auto; max-width: 100%; margin: 0 auto; }
.bild span { font-size: .68rem; color: #8b929c; line-height: 1.25; }
.karte-de { font-size: 1.3rem; font-weight: 700; margin: 2.5mm 0 0; line-height: 1.2; }
.druckfuss { font-size: .7rem; color: var(--leise); margin: 3mm 0 0; text-align: center; }

@media (max-width: 560px) {
  .karten { grid-template-columns: repeat(2, 1fr); }
  .a4 { padding: 4mm; }
}

@page { size: A4 portrait; margin: 8mm; }
@media print {
  body { background: #fff; }
  .steuerung, .skip { display: none; }
  .a4 { max-width: none; width: auto; margin: 0; padding: 0; box-shadow: none; border-radius: 0; }
  .karten { grid-template-columns: repeat(3, 1fr); }
  /* feste Kartenhöhe; das Bild nimmt nur den Platz, der neben den Wörtern frei bleibt, nichts ragt über die Karte */
  .karte { height: 65mm; min-height: 0; overflow: hidden; padding: 3mm; }
  .bild { flex: 1 1 0; min-height: 0; aspect-ratio: auto; background: #fff; }
  .bild.mit picture, .bild.mit img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
  .karte-de { font-size: 1.15rem; margin-top: 2mm; flex: none; }
  .karte-zusatz { flex: none; }
  .karte.viele .karte-de { font-size: 1rem; }
  .druckfuss { margin-top: 2mm; }
  .bild span { display: none; }
}
.karte-zweit { margin: 1mm 0 0; font-size: .85rem; color: var(--leise); }

/* Sprachauswahl */
.sprachauswahl { margin: 1rem 0; padding: 14px 16px; border: 0; border-radius: 16px; background: #fff; }
.sprachauswahl legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font-weight: 700; color: #1d2b3f; }
.gross-wahl { display: block; font-size: .95rem; margin-bottom: 8px; }
.gross-wahl select { font: inherit; padding: 6px 10px; border: 1px solid #d8d3c9; border-radius: 10px; background: #fff; }
.klein-titel { margin: 6px 0; font-size: .95rem; }
.wahlen { display: flex; flex-wrap: wrap; gap: 6px; }
.wahl { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border: 1px solid #d8d3c9; border-radius: 999px; font-size: .9rem; cursor: pointer; }
.wahl:has(input:checked) { background: #dbe5f2; border-color: #0042a0; }
.wahl.aus { opacity: .45; cursor: default; }
.flagge, .flagge-klein { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(29,43,63,.15); }
.flagge-text { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #1d2b3f; color: #fff; font-size: .5rem; font-weight: 700; }
.karte-zusatz { width: 100%; }
.karte-zusatz .karte-zweit { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 1mm 0 0; font-size: .85rem; line-height: 1.2; color: #3a4552; }
.karte-zweit .flagge-klein { width: 3.2mm; height: 3.2mm; flex: 0 0 auto; }
.karte-zweit .kuerzel { display: inline-grid; place-items: center; min-width: 5mm; height: 3.4mm; padding: 0 1mm; margin-inline-end: 1mm; border-radius: 1mm; background: #e8ecf3; color: #33415e; font-size: .55rem; font-weight: 700; }
.karte.viele .karte-de { font-size: 1.1rem; }
.karte.viele .karte-zweit { font-size: .75rem; }
@media print { .sprachauswahl { display: none !important; } }
@media print {
  .karte.mit-zusatz .bild { aspect-ratio: 2 / 1; }
  .karte.viele .bild { aspect-ratio: 5 / 2; }
}

/* ---------- Elternbrief ---------- */
.brief-blatt { padding: 12mm 14mm; }
.brief { font-size: .98rem; line-height: 1.5; color: #1d2b3f; }
.brief h2 { font-size: 1.05rem; margin: 5mm 0 2mm; color: #0042a0; }
.eb-kopf { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 3mm; margin-bottom: 4mm; border-bottom: 2px solid #dbe5f2; }
.eb-marke { font-weight: 700; color: #0042a0; }
.eb-set { font-weight: 700; font-size: 1.2rem; }
.eb-anrede { font-weight: 700; margin-bottom: 1mm; }
.eb-woerter { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5mm 4mm; }
.eb-woerter.zweisprachig { grid-template-columns: repeat(2, 1fr); }
.eb-woerter li { display: flex; justify-content: space-between; gap: 3mm; padding: 1.2mm 3mm; border-radius: 2mm; background: #f7f5f1; }
.eb-wort { font-weight: 700; }
.eb-de { color: #5a6575; }
.eb-verse { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
.eb-vers { margin: 0; padding-inline-start: 5mm; }
.eb-vers li { margin: .6mm 0; }
.eb-klein { font-size: .8rem; color: #5a6575; margin: 0; }
.eb-verstitel { font-weight: 700; margin: 0 0 1mm; }
.eb-ideen { margin: 0; padding-inline-start: 5mm; }
.eb-ideen li { margin: 1mm 0; }
.eb-gruss { margin-top: 4mm; font-weight: 700; }
.eb-fuss { display: flex; gap: 5mm; align-items: center; margin-top: 5mm; padding-top: 3mm; border-top: 1px solid #e6e2da; font-size: .85rem; }
.eb-fuss p { margin: 0; }
.qr { width: 24mm; height: 24mm; flex: 0 0 auto; }
.eb-url { font-weight: 700; word-break: break-all; }
.eb-lizenz { font-size: .72rem; color: #5a6575; }
.brief[dir="rtl"] .eb-vers, .brief[dir="rtl"] .eb-ideen { padding-inline-start: 5mm; }
.sprechen { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-inline-start: 4px; padding: 0; border: 0; border-radius: 50%; background: #dbe5f2; color: #0042a0; cursor: pointer; vertical-align: middle; min-height: 0; }
.sprechen.ohne-stimme { background: transparent; color: #8a94a6; box-shadow: inset 0 0 0 1px #c9d1dd; }
.sprechen.ohne-stimme:hover { background: transparent; color: #5a6575; }
[data-sprechen] { position: relative; }
.sprechen-hinweis { position: absolute; z-index: 5; inset-block-start: calc(100% + 4px); inset-inline-start: 0; width: max-content; max-width: 240px; padding: 6px 10px; border-radius: 8px; background: #1d2b3f; color: #fff; font-size: .8rem; font-weight: 500; line-height: 1.35; white-space: normal; text-align: start; }
@media (max-width: 560px) { .eb-woerter, .eb-woerter.zweisprachig, .eb-verse { grid-template-columns: 1fr; } }
@media print {
  /* Rand im Brief selbst, damit er auch bleibt, wenn im Druckdialog „Ränder: keine“ eingestellt ist */
  .brief-blatt { padding: 12mm 14mm 8mm; }
  .brief { font-size: 10.5pt; }
  .sprechen { display: none !important; }
  .eb-woerter.zweisprachig { grid-template-columns: repeat(2, 1fr); }
  .eb-verse { grid-template-columns: 1fr 1fr; }
}

/* ---------- Elternbrief, Gestaltung 26.11.: Farbe des Sets, Titelbild, Wortbilder, Kästen ---------- */
.brief { --eb-bg: #dbe5f2; --eb-ink: #0042a0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.eb-c-sky { --eb-bg: #dbe5f2; --eb-ink: #0042a0; } .eb-c-mint { --eb-bg: #D5EFC8; --eb-ink: #2F5E24; }
.eb-c-vanilla { --eb-bg: #FBEFB8; --eb-ink: #6E5208; } .eb-c-rose { --eb-bg: #FADBD0; --eb-ink: #8F2A1A; }
.eb-c-lilac { --eb-bg: #ECDFF5; --eb-ink: #4A3A5C; } .eb-c-apricot { --eb-bg: #FDE3C8; --eb-ink: #874610; }
.brief .ic { width: 1.1em; height: 1.1em; flex: none; }
.brief h2 { display: flex; align-items: center; gap: 2mm; color: var(--eb-ink); font-size: 1.02rem; margin: 4mm 0 2mm; }
.eb-kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6mm; align-items: center; padding: 5mm 6mm; margin: 0 0 2mm;
  border: 0; border-radius: 5mm; background: var(--eb-bg); }
.eb-kopf-text { display: flex; flex-direction: column; }
.eb-marke { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--eb-ink); }
.eb-set { font-size: 1.6rem; font-weight: 700; line-height: 1.1; margin: 1mm 0 3mm; color: #1d2b3f; }
.eb-anrede { margin: 0 0 1mm; }
.eb-intro { margin: 0; }
.eb-titelbild { width: 42mm; height: 32mm; object-fit: cover; border-radius: 4mm; background: #fff; }
.eb-woerter.mit-bild { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2mm; }
.eb-woerter.mit-bild li { flex-direction: column; justify-content: flex-start; align-items: center; gap: .6mm; padding: 2mm 1.5mm; text-align: center;
  background: #fff; border: 1px solid #e6e2da; border-radius: 3mm; line-height: 1.2; font-size: .82rem; }
.eb-woerter.mit-bild .eb-bild { width: 15mm; height: 15mm; object-fit: contain; }
.eb-woerter.mit-bild.zweisprachig .eb-bild { width: 12mm; height: 12mm; }
.eb-woerter.mit-bild .eb-de { font-size: .74rem; }
.eb-unten { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4mm; margin-top: 3mm; }
.eb-box { padding: 3mm 4.5mm 3.5mm; border-radius: 4mm; background: #f7f5f1; }
.eb-box-vers { background: var(--eb-bg); }
.eb-box h2 { margin-top: 0; }
.eb-box .eb-verse { grid-template-columns: 1fr; gap: 2mm; }
.eb-box .eb-vers { font-size: .88rem; }
.eb-ideen { list-style: none; padding: 0; font-size: .88rem; }
.eb-ideen li { position: relative; padding-inline-start: 5mm; }
.eb-ideen li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 2.2mm; height: 2.2mm; border-radius: 50%; background: var(--eb-ink); }
.eb-gruss { margin: 3mm 0 0; }
.eb-fuss { border-top: 0; margin-top: 3mm; padding: 3mm 4mm; border-radius: 4mm; background: #f7f5f1; }
.eb-fuss .qr { width: 22mm; height: 22mm; background: #fff; padding: 1mm; border-radius: 2mm; }
@media (max-width: 700px) { .eb-woerter.mit-bild { grid-template-columns: repeat(3, minmax(0, 1fr)); } .eb-unten, .eb-kopf { grid-template-columns: 1fr; } .eb-titelbild { width: 100%; height: auto; } }
@media print {
  .eb-woerter.mit-bild { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  .eb-unten { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .eb-kopf { grid-template-columns: minmax(0, 1fr) auto; }
}
.eb-unten.zweisprachig { grid-template-columns: minmax(0, 1fr) !important; }
.eb-unten.zweisprachig .eb-verse { grid-template-columns: 1fr 1fr; gap: 6mm; }
.eb-unten.zweisprachig .eb-ideen { columns: 2; column-gap: 6mm; }
.eb-unten.zweisprachig .eb-ideen li { break-inside: avoid; }
@media (max-width: 700px) { .eb-unten.zweisprachig .eb-verse { grid-template-columns: 1fr; } .eb-unten.zweisprachig .eb-ideen { columns: 1; } }
@media print {
  .brief-blatt { padding: 9mm 11mm 5mm !important; }
  .brief { font-size: 9.6pt; }
  .brief h2 { margin: 2.5mm 0 1.5mm; font-size: 10.5pt; }
  .eb-kopf { padding: 3.5mm 5mm; gap: 5mm; }
  .eb-set { font-size: 17pt; margin: .5mm 0 1.5mm; }
  .eb-titelbild { width: 36mm; height: 27mm; }
  .eb-woerter.mit-bild li { padding: 1.4mm 1mm; font-size: 8.6pt; }
  .eb-woerter.mit-bild .eb-bild { width: 12mm; height: 12mm; }
  .eb-woerter.mit-bild.zweisprachig .eb-bild { width: 10mm; height: 10mm; }
  .eb-woerter.mit-bild .eb-de { font-size: 7.8pt; }
  .eb-unten { margin-top: 2mm; gap: 3mm; }
  .eb-box { padding: 2.5mm 4mm 3mm; }
  .eb-box .eb-vers, .eb-ideen { font-size: 8.8pt; }
  .eb-vers li { margin: .2mm 0; }
  .eb-gruss { margin-top: 2mm; }
  .eb-fuss { margin-top: 2mm; padding: 2mm 3mm; }
  .eb-fuss .qr { width: 19mm; height: 19mm; }
}
.eb-titel-rahmen { position: relative; display: block; }
.eb-ki { position: absolute; inset-block-end: 1.5mm; inset-inline-end: 1.5mm; padding: .3mm 1.6mm; border-radius: 99px; background: rgba(255,255,255,.9); color: #33415e; font-size: 6.5pt; font-weight: 600; }

/* ---------- Wortkarten, Gestaltung 26.11.: Kopfband in Setfarbe, runde Karten, Schneiderand-Fassung ---------- */
.a4 { --wk-bg: #dbe5f2; --wk-ink: #0042a0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.wk-c-sky { --wk-bg: #dbe5f2; --wk-ink: #0042a0; } .wk-c-mint { --wk-bg: #D5EFC8; --wk-ink: #2F5E24; }
.wk-c-vanilla { --wk-bg: #FBEFB8; --wk-ink: #6E5208; } .wk-c-rose { --wk-bg: #FADBD0; --wk-ink: #8F2A1A; }
.wk-c-lilac { --wk-bg: #ECDFF5; --wk-ink: #4A3A5C; } .wk-c-apricot { --wk-bg: #FDE3C8; --wk-ink: #874610; }
.wk-kopf { display: flex; align-items: baseline; gap: 3mm; padding: 2.5mm 5mm; margin-bottom: 3mm; border-radius: 3mm; background: var(--wk-bg); }
.wk-marke { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--wk-ink); }
.wk-set { font-size: 1.05rem; font-weight: 700; color: #1d2b3f; }
.wk-figur { margin-inline-start: auto; font-size: .8rem; color: #33415e; }
.karten { gap: 0; }
.karte { border: 1px dashed #b9bfc8; }
.karte .bild.mit { background: #fff; }
.karte-de { color: var(--wk-ink); }
.schnitt-wahl label { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: #fff; font-weight: 600; cursor: pointer; }
/* Schneiderand: Abstand, abgerundete Karten mit dünnem Farbrand, Schnittlinie mit Schere um jede Karte */
#bogen.schnitt .karten { gap: 5mm; }
#bogen.schnitt .karte { margin: 0; border: 1.5px solid var(--wk-bg); border-radius: 4mm; outline: 1px dashed #9aa3af; outline-offset: 2.2mm; position: relative; }
#bogen.schnitt .karte:first-child::before { content: "✂"; position: absolute; top: -4.8mm; left: 2mm; font-size: 9pt; color: #6b7480; line-height: 1; }
@media print {
  .schnitt-wahl { display: none; }
  .wk-kopf { padding: 2mm 4mm; margin-bottom: 2.5mm; }
  .karte { height: 63mm; }
  #bogen.schnitt .karten { gap: 5mm 6mm; padding: 2.5mm; }
  #bogen.schnitt .karte { height: 59mm; }
}
@media (hover: none) { .tastatur-hinweis { display: none; } }

/* vom Bauskript ergänzt: Schrift für weitere Sprachen */
@font-face { font-family: "Raleway"; src: url("schrift/Raleway-Variable-LatinExt.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Raleway"; src: url("schrift/Raleway-Variable-Cyrillic.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
