.db-gruppenarbeit { margin: 1rem 0; padding: 1rem; border: 1px solid #cbd5dd; border-radius: 10px; background: #f8fafc; }
.db-gruppenarbeit h3, .db-gruppenarbeit h4 { margin: 0 0 .45rem; }
.db-gruppenarbeit-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: .7rem 0; }
.db-gruppenarbeit-meldung { margin: 0; color: #34474f; }
.db-gruppenarbeit-meldung.ist-fehler { color: #a12b2b; font-weight: 600; }
.db-gruppenarbeit .table-scroll { max-height: 20rem; overflow: auto; }
.db-gruppenarbeit-form { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid #cbd5dd; }
.db-gruppenarbeit-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .65rem; margin-bottom: .8rem; }
.db-gruppenarbeit-felder label { display: grid; gap: .2rem; font-size: .9rem; }
.db-gruppenarbeit-felder input { width: 100%; min-width: 0; box-sizing: border-box; }
.db-begriff { text-decoration: underline dotted; text-underline-offset: .15em; cursor: help; }
.db-begriff-aktiv { color: #8a4c00; font-weight: 700; }
.db-schema { border: 1px solid #cbd5dd; border-radius: 7px; padding: .6rem; }
.db-schema ul { list-style: none; margin: .35rem 0 0; padding: 0; }
.db-schema li { padding: .18rem .3rem; border-radius: 4px; cursor: pointer; }
.db-tabellen-demo .db-hervor { background: #fff0bd !important; box-shadow: inset 0 0 0 1px #c28a00; }
.db-schema li:focus-visible, .db-begriff:focus-visible { outline: 2px solid #4a90d9; outline-offset: 2px; }
.db-gruppen-karte { margin: 1rem 0; padding: 1rem; }
.db-shop { margin: 1rem 0; overflow: hidden; border: 1px solid #dce5e7; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(27, 55, 60, .09); color: #18343a; }
.db-shop-versand { padding: .48rem 1rem; background: #173c3b; color: #f3f8ed; text-align: center; font-size: .78rem; letter-spacing: .025em; }
.db-shop-versand span { margin: 0 .45rem; color: #c9da9b; }
.db-shop-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.35rem; border-bottom: 1px solid #edf0ec; }
.db-shop-marke { display: flex; align-items: center; gap: .55rem; color: #173c3b; font-size: 1.25rem; font-weight: 800; letter-spacing: -.045em; }
.db-shop-logo { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 9px 9px 9px 3px; background: #dcedcf; color: #244e3e; font-size: 1rem; }
.db-shop-marke-zusatz { color: #71866c; font-weight: 600; }
.db-shop-kopf > p { margin: 0; color: #62736e; font-size: .9rem; }
.db-shop-inhalt { padding: 1.2rem 1.35rem 1.35rem; }
.db-shop-bedienung { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(10rem, .45fr) auto; align-items: end; gap: .7rem; padding: .9rem; border: 1px solid #e6ebe4; border-radius: 11px; background: #f8faf6; }
.db-shop-bedienung label { display: grid; gap: .35rem; color: #445a52; font-size: .76rem; font-weight: 700; }
.db-shop-suche { display: flex; align-items: center; gap: .5rem; min-height: 2.65rem; padding: 0 .75rem; border: 1px solid #d8e0d8; border-radius: 7px; background: #fff; color: #738378; }
.db-shop-suche:focus-within { border-color: #668d6c; box-shadow: 0 0 0 3px rgba(102, 141, 108, .14); }
.db-shop-suche > span { font-size: 1.25rem; line-height: 1; }
.db-shop-suche input { width: 100%; min-width: 0; padding: .45rem 0; border: 0; outline: 0; background: transparent; color: #203b35; font: inherit; font-size: .88rem; }
.db-shop-bedienung select { min-height: 2.65rem; padding: 0 .65rem; border: 1px solid #d8e0d8; border-radius: 7px; background: #fff; color: #203b35; font: inherit; font-size: .85rem; }
.db-shop-suchen { min-height: 2.65rem; padding: 0 1rem; border: 0; border-radius: 7px; background: #315f4c; color: #fff; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; transition: background .15s, transform .15s; }
.db-shop-suchen:hover { transform: translateY(-1px); background: #244d3b; }
.db-shop-suchen:focus-visible { outline: 3px solid #a9cb88; outline-offset: 2px; }
.db-shop-suchen span { margin-left: .35rem; }
.db-shop-ergebnis-kopf { display: flex; align-items: end; justify-content: space-between; gap: .6rem; margin: 1.15rem 0 .7rem; color: #819087; font-size: .72rem; }
.db-shop-ergebnis-kopf > div { display: grid; gap: .16rem; }
.db-shop-anzahl { margin: 0; color: #34554a; font-size: .78rem; font-weight: 700; }
.db-shop-rubrik { color: #7a8980; font-size: .72rem; }
.db-shop-produkte { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .8rem; }
.db-shop-produkt { min-width: 0; overflow: hidden; border: 1px solid #e6ebe5; border-radius: 10px; background: #fff; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.db-shop-produkt:hover { transform: translateY(-3px); border-color: #cfdbcc; box-shadow: 0 8px 18px rgba(39, 67, 52, .1); }
.db-shop-produkt-bild { display: grid; min-height: 8rem; place-items: center; background: #edf3eb; }
.db-shop-produkt-bild span { display: grid; width: 5.2rem; height: 5.2rem; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(255,255,255,.7); box-shadow: 0 5px 14px rgba(33, 54, 41, .08); font-size: 2.5rem; }
.db-shop-farbe-blau .db-shop-produkt-bild { background: #e8f0f3; }
.db-shop-farbe-sand .db-shop-produkt-bild { background: #f4eee2; }
.db-shop-farbe-mint .db-shop-produkt-bild { background: #e6f1e9; }
.db-shop-farbe-lavendel .db-shop-produkt-bild { background: #efebf5; }
.db-shop-farbe-koralle .db-shop-produkt-bild { background: #f7ece6; }
.db-shop-produkt-details { display: grid; min-height: 6rem; grid-template-rows: auto 1fr auto; gap: .35rem; padding: .7rem .75rem .75rem; }
.db-shop-produkt-kategorie { color: #78877b; font-size: .66rem; }
.db-shop-produkt h4 { margin: 0; color: #263d34; font-size: .87rem; line-height: 1.35; }
.db-shop-produkt-fuss { display: flex; align-items: baseline; justify-content: space-between; gap: .35rem; margin-top: .35rem; }
.db-shop-produkt-fuss strong { color: #214f3a; font-size: .97rem; }
.db-shop-produkt-fuss span { color: #8a968e; font-size: .63rem; }
.db-shop-leer { margin: 0; padding: 1.3rem; border: 1px dashed #d5ded5; border-radius: 9px; color: #63756a; text-align: center; font-size: .88rem; }
.db-shop-hintergrund { margin-top: 1.25rem; overflow: hidden; border: 1px solid #dce6df; border-radius: 11px; background: #f8faf7; }
.db-shop-hintergrund summary { display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; color: #24483a; cursor: pointer; list-style: none; }
.db-shop-hintergrund summary::-webkit-details-marker { display: none; }
.db-shop-hintergrund summary::after { content: "+"; margin-left: auto; color: #54745c; font-size: 1.2rem; }
.db-shop-hintergrund[open] summary::after { content: "−"; }
.db-shop-hintergrund-icon { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border-radius: 8px; background: #e5eee0; color: #416347; font-size: 1.1rem; }
.db-shop-hintergrund summary > span:nth-child(2) { display: grid; gap: .08rem; }
.db-shop-hintergrund summary strong { font-size: .88rem; }
.db-shop-hintergrund summary small { color: #7a8980; font-size: .72rem; }
.db-shop-hintergrund summary:focus-visible { outline: 3px solid #92b78f; outline-offset: -3px; }
.db-shop-hintergrund-inhalt { padding: .25rem .9rem 1rem; }
.db-shop-datenschutz { margin: .55rem 0 0; padding-top: .55rem; border-top: 1px solid #e7ece7; color: #879188; font-size: .67rem; }
@media (max-width: 760px) {
  .db-shop-produkte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .db-shop-kopf, .db-shop-inhalt { padding-right: .85rem; padding-left: .85rem; }
  .db-shop-kopf { align-items: start; flex-direction: column; gap: .35rem; }
  .db-shop-bedienung { grid-template-columns: 1fr 1fr; }
  .db-shop-bedienung label:first-child { grid-column: 1 / -1; }
  .db-shop-suchen { align-self: end; }
  .db-shop-produkt-bild { min-height: 6rem; }
  .db-shop-produkt-bild span { width: 4rem; height: 4rem; font-size: 2rem; }
  .db-shop-produkt-details { min-height: 5.7rem; padding: .6rem; }
}
.tabelle-eingabe td { padding: .15rem; }
.tabelle-eingabe input { width: 100%; min-width: 5.5rem; box-sizing: border-box; padding: .3rem .4rem; border: 1px solid #cbd5dd; border-radius: 4px; font: inherit; }
.tabelle-eingabe .tabelle-vorgabe td { padding: .35rem .5rem; color: #34474f; }

/* Hefte 1/2 nach den Arbeitsblaettern (inf-schule.de) */
.db-folien { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; align-items: start; }
.db-folien figure { margin: 0; }
.db-folien figcaption { font-style: italic; margin-bottom: .3rem; }
.db-folie { max-width: 100%; height: auto; border: 1px solid #e3e7ea; border-radius: 6px; background: #fff; }
.db-merke { margin: 1rem 0; padding: .8rem 1rem; border: 2px solid #333; background: #fff; }
.db-merke > h3 { margin: 0 0 .4rem; font-size: 1rem; }
.db-rot { color: #c0392b; font-weight: 700; }
.db-blau { color: #1f4e79; }
.db-ort-abbildung { display: block; width: 100%; max-width: 560px; height: auto; margin: .6rem 0 1rem; }
.db-ort-abbildung text { font-family: Consolas, "Courier New", monospace; font-size: 14px; fill: #222; }
.db-ort-abbildung .db-abb-name { font-family: inherit; font-size: 17px; }
.db-ort-abbildung .db-abb-kopf { fill: #f3e08a; stroke: #999; }
.db-ort-abbildung .db-abb-kopftext { font-family: Arial, sans-serif; font-style: italic; font-size: 13px; }
.db-ort-abbildung .db-abb-zelle { fill: #fff; stroke: none; }
.db-ort-abbildung .db-abb-label { font-family: Arial, sans-serif; font-weight: 700; font-size: 13px; fill: #c0392b; }
.db-ort-abbildung .db-hervor rect { fill: #fff0bd; stroke: #c28a00; }
.db-ort-abbildung .db-hervor text { fill: #8a4c00; font-weight: 700; }
.db-schema-zeile { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.db-schema-text { flex: 1 1 18rem; }
.db-pma { display: inline-block; min-width: 13rem; border: 1px solid #a9c3d8; font-family: Arial, sans-serif; font-size: .95rem; background: #fff; vertical-align: top; }
.db-pma-kopf { display: flex; align-items: center; gap: .3rem; padding: .15rem .35rem; background: linear-gradient(#cfe6fb, #9fcdf3); }
.db-pma-kopf strong { flex: 1; text-align: center; }
.db-pma-v { padding: 0 .2rem; background: #1565c0; color: #fff; font-weight: 700; font-size: .8rem; }
.db-pma-zahnrad { color: #1e88e5; }
.db-pma ul { list-style: none; margin: 0; padding: 0; }
.db-pma li { padding: .12rem .45rem; white-space: nowrap; }
.db-pma li:nth-child(even) { background: #e6e6e6; }
.db-pma li[data-db-ziel] { cursor: pointer; }
.db-pma-text, .db-pma-zahl { display: inline-block; width: 1.1rem; margin-right: .2rem; text-align: center; }
.db-pma-text { color: #888; font-size: .8rem; }
.db-pma-zahl { color: #2350c8; font-weight: 700; }
.db-pma-reihe { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.db-inf { margin: .6rem 0; }
.db-inf-name { font-family: Arial, sans-serif; font-size: 1.1rem; }
.db-inf-tabelle { border-collapse: collapse; border: 1px solid #777; }
.db-inf-tabelle th { padding: .25rem .6rem; background: #f3e08a; text-align: left; font-weight: 400; }
.db-inf-kursiv th { font-style: italic; }
.db-inf-tabelle td { padding: .2rem .6rem; font-family: Consolas, "Courier New", monospace; }
.db-pma li.db-hervor, .db-pma .db-hervor { background: #fff0bd !important; box-shadow: inset 0 0 0 1px #c28a00; }

/* Heft 3: Werbung und Buehne "Hinter den Kulissen" */
.db-shop-werbung { margin-bottom: 1rem; padding: .8rem; border-radius: 11px; background: linear-gradient(120deg, #fff4dc, #fde7e1); }
.db-shop-werbung-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .6rem; color: #7a3b16; }
.db-shop-werbung-kopf span { font-size: .72rem; color: #a05a2c; }
.db-shop-werbung-liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.db-shop-werbung .db-shop-produkt-bild { position: relative; min-height: 5.5rem; }
.db-shop-werbung .db-shop-produkt-bild span { width: 3.6rem; height: 3.6rem; font-size: 1.8rem; }
.db-shop-werbung .db-shop-produkt-details { min-height: 4.5rem; }
.db-shop-rabatt { position: absolute; top: .4rem; right: .4rem; padding: .1rem .35rem; border-radius: 5px; background: #d9432f; color: #fff; font-size: .7rem; }
.db-shop-mehr { display: block; margin: .6rem auto 0; }
.db-shop-hintergrund { margin: 0 1.35rem 1.35rem; }
.db-buehne { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem 1.2rem; margin: .8rem 0 .4rem; padding: 2rem .6rem 8.5rem; row-gap: 2.2rem; border-radius: 10px; background: #f0f4f1; }
.db-station { display: grid; justify-items: center; gap: .1rem; padding: .6rem .3rem; border: 2px solid #d5dfd7; border-radius: 10px; background: #fff; text-align: center; transition: border-color .3s, box-shadow .3s; }
.db-station-bild { font-size: 1.9rem; }
.db-station strong { font-size: .82rem; color: #24483a; }
.db-station small { font-size: .68rem; color: #7a8980; }
.db-station.aktiv { border-color: #2f7d4f; box-shadow: 0 0 0 4px rgba(47, 125, 79, .18); }
.db-paket { position: absolute; top: 0; left: 0; z-index: 2; max-width: 14rem; padding: .3rem .6rem; border-radius: 99px; color: #fff; font-size: .75rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 10px rgba(0,0,0,.18); pointer-events: none; }
.db-paket-anfrage { background: #315f8c; }
.db-paket-befehl { background: #8c3b9e; }
.db-paket-antwort { background: #2f7d4f; }
.db-buehne-text { min-height: 2.6em; margin: .3rem 0 .6rem; color: #34554a; font-size: .88rem; }
.db-kulissen-teile { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; }
.db-kulissen-teile h4 { margin: .2rem 0 .4rem; font-size: .85rem; color: #24483a; }
.db-kulissen-teile h4 small { color: #7a8980; font-weight: 400; }
.db-befehle-liste { margin: 0; padding-left: 1.3rem; }
.db-befehl { margin-bottom: .45rem; animation: db-einblenden .4s ease-out; }
.db-befehl pre { margin: 0; padding: .45rem .55rem; border-left: 4px solid #8c3b9e; border-radius: 5px; background: #faf6fc; font-size: .74rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.db-befehle-leer { color: #7a8980; font-size: .8rem; }
.db-artikel-raster { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-bottom: .8rem; }
.db-artikel-raster span { aspect-ratio: 1; border-radius: 2px; background: #d7e0da; transition: background .4s; }
.db-artikel-raster span.treffer { background: #2f7d4f; }
.db-verlauf-raster { display: flex; flex-wrap: wrap; gap: .3rem; min-height: 1.6rem; }
.db-verlauf-raster span { padding: .1rem .45rem; border-radius: 4px; background: #fdf3f1; border: 1px solid #f0c4bb; font-family: Consolas, monospace; font-size: .72rem; animation: db-einblenden .4s ease-out; }
@keyframes db-einblenden { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .db-befehl, .db-verlauf-raster span { animation: none; } }
@media (max-width: 760px) {
  .db-shop-werbung-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-kulissen-teile { grid-template-columns: 1fr; }
  .db-buehne { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.db-abb { display: block; width: 100%; max-width: 720px; height: auto; margin: .8rem 0; }
.db-paket-daten { max-width: 15rem; padding: .4rem .55rem; border-radius: 9px; white-space: normal; font-weight: 400; }
.db-paket-daten strong { display: block; margin-bottom: .2rem; font-size: .74rem; }
.db-paket-daten table { border-collapse: collapse; width: 100%; background: rgba(255, 255, 255, .14); }
.db-paket-daten td { padding: .05rem .25rem; border-top: 1px solid rgba(255, 255, 255, .25); font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 8.5rem; }
.db-paket-daten small { display: block; margin-top: .15rem; font-size: .65rem; opacity: .9; }
@media (max-width: 760px) { .db-paket-daten { max-width: 11rem; } }
