

body.app-modus :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=submit]):not([type=button]), select, textarea):not(:is(.ah-such-feld, .ki-eingabezeile, .such-zeile, .lr-dialog, .ef-blase, table, #ah-seite .ah-nav, #konto-dropdown, [class*="heft-"], .md-werkzeug, .tafel-leiste) *) {
  border: 1.5px solid #85817a !important;
  border-radius: 12px !important;
  background-color: #fff;
  color: #1c2541;
  font-family: 'Poppins', 'Poppins Ersatz', 'Poppins Ersatz D', sans-serif !important;
  font-size: 16px !important;            
  line-height: 1.4;
  padding: 11px 14px !important;
  min-height: 46px !important;
  box-sizing: border-box !important;
  box-shadow: none;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

body.app-modus select:not([multiple]):not([size]):not(#_):not(#__):not(:is(.ah-such-feld, .lr-dialog, table, [class*="heft-"]) *) { padding-right: 38px !important; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
body.app-modus textarea:not(#_):not(#__):not(:is(.ah-such-feld, .lr-dialog, table, [class*="heft-"]) *) { min-height: 96px !important; line-height: 1.5; resize: vertical; }
body.app-modus :is(input, select, textarea):not([type=checkbox]):not([type=radio]):focus:not(:is(.ah-such-feld, table, [class*="heft-"]) *) {
  border-color: #00838a !important; box-shadow: 0 0 0 3px rgba(0, 131, 138, .14) !important;
}
body.app-modus :is(input, textarea)::placeholder { color: #9aa0ad; opacity: 1; }
body.app-modus :is(input, select, textarea):disabled { background-color: #f6f4ef !important; color: #8a909c; cursor: not-allowed; }
body.app-modus input[type=date]:not(table *), body.app-modus input[type=time]:not(table *) { appearance: none; -webkit-appearance: none; display: block; text-align: left; }
body.app-modus input[type=date]::-webkit-date-and-time-value { text-align: left; }

body.app-modus input[type=file] { font-family: 'Poppins', 'Poppins Ersatz', 'Poppins Ersatz D', sans-serif; font-size: .9rem; color: #5d6576; max-width: 100%; }
body.app-modus input[type=file]::file-selector-button, body.app-modus input[type=file]::-webkit-file-upload-button {
  font: 600 .88rem 'Poppins', 'Poppins Ersatz', 'Poppins Ersatz D', sans-serif; background: #efece4; color: #1c2541; border: 0; border-radius: 999px; padding: 10px 16px; margin-right: 12px; cursor: pointer;
}

body.app-modus label:not(:has(input[type=checkbox], input[type=radio])):not(.toggle-switch):not(:is(.ah-such-feld, .lr-dialog, table, .ef-blase) *) {
  font-family: 'Poppins', 'Poppins Ersatz', 'Poppins Ersatz D', sans-serif; font-weight: 600; font-size: .88rem; color: #3d4558; letter-spacing: 0;
}

body.app-modus input[type=checkbox]:not(.toggle-switch input), body.app-modus input[type=radio] {
  accent-color: #00838a; width: 18px; height: 18px; vertical-align: -3px; cursor: pointer;
}

body.app-modus button { font-family: 'Poppins', 'Poppins Ersatz', 'Poppins Ersatz D', sans-serif; }
body.app-modus button:focus-visible { outline: 3px solid rgba(0, 131, 138, .35); outline-offset: 2px; }

body.app-modus button.klein:not(:is(table, .ah-kopf, #ah-tabs) *) {
  font-size: .86rem !important; padding: 8px 15px !important; min-height: 38px; border-radius: 999px !important; line-height: 1.2;
}
@media (pointer: coarse) {
  body.app-modus button.klein:not(:is(table, .ah-kopf, #ah-tabs) *) { min-height: 40px; }
}

body.app-modus button:is([style*="background:#7a3fa0"], [style*="background: #7a3fa0"], [style*="background:#1c2541"], [style*="background: #1c2541"], [style*="background:#333"], [style*="background: #333"], [style*="background:#906409"], [style*="background: #906409"], [style*="background:#e9c46a"], [style*="background: #e9c46a"]):not(:is(.ah-kopf, #ah-tabs, .lr-dialog) *) {
  background: #00838a !important; color: #fff !important; border-color: #00838a !important;
}
body.app-modus button:is([style*="background:#efe0fb"], [style*="background:#eef1f6"], [style*="background:#f3f3f3"], [style*="background:#eee;"], [style*="background: #eee;"]):not(:is(.ah-kopf, #ah-tabs, .lr-dialog) *) {
  background: #efece4 !important; color: #1c2541 !important; border-color: transparent !important;
}
body.app-modus button.gold:not(:is(section, #ah-heute) *) { background: #00838a; color: #fff; border-color: #00838a; }
body.app-modus button:disabled { opacity: .55; }

body.app-modus .rund-absenden { background: #00838a !important; color: #fff !important; }
body.app-modus .rund-absenden:hover { background: #00646a !important; }
body.app-modus .ah-gratis .ga-filter button { font-size: .88rem !important; min-height: 38px; }
body.app-modus .profil-badge:not([aria-current="true"]) { background: #fff; }

@media (max-width: 760px) and (min-width: 360px) {
  body.app-modus .grid2:not(#hausaufgaben-bereich *):not(:has(textarea, button)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 0 10px !important; align-items: end; }
  body.app-modus .grid2:not(#hausaufgaben-bereich *):not(:has(textarea, button)) > * { min-width: 0; }
  body.app-modus .grid2:not(#hausaufgaben-bereich *):not(:has(textarea, button)) label { line-height: 1.25; }
}

body.app-modus .wizard-weiter-btn { font-size: .95rem !important; }

body.app-modus #tab-inhalt-wrapper { margin-bottom: 0 !important; }

body.app-modus #sticky-mobile-cta { display: none !important; }

@media (max-width: 980px) {  
  body.app-modus :is(#hinweis-toast, #fertig-toast, #rueckmeldung-banner, #empfehlung-hinweis-karte, #stimme-karte, .fb-karte) {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

body.app-modus .konto-btn-primaer { font-size: .95rem !important; min-height: 42px; }

#rueckmeldung-banner { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 600; max-width: 480px; margin: 0 auto; background: #faf5ec; color: #1c2541; border: 1.5px solid #e8dcc4; border-radius: 14px; padding: 16px 18px; box-shadow: 0 -2px 20px rgba(0,0,0,0.15); }
#rueckmeldung-banner .rm-frage { margin: 0 0 12px 0; font-weight: 600; color: #1c2541; }
#rueckmeldung-banner .rm-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
#rueckmeldung-banner button.rm-ja { background: #2e7d32 !important; color: #fff !important; border: 1.5px solid #2e7d32 !important; }
#rueckmeldung-banner button.rm-nein { background: #c62828 !important; color: #fff !important; border: 1.5px solid #c62828 !important; }
#rueckmeldung-banner button.rm-spaeter { background: #fff !important; color: #1c2541 !important; border: 1.5px solid #1c2541 !important; }
body.app-modus.hat-rm-banner { padding-bottom: calc(var(--rm-banner-hoehe, 140px) + 32px + env(safe-area-inset-bottom, 0px)) !important; }
@media (max-width: 980px) {
  body.app-modus #rueckmeldung-banner { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  body.app-modus.hat-rm-banner { padding-bottom: calc(var(--rm-banner-hoehe, 140px) + 108px + env(safe-area-inset-bottom, 0px)) !important; }
  body.app-modus.hat-rm-banner .lernplan-fab { bottom: calc(var(--rm-banner-hoehe, 140px) + 108px + env(safe-area-inset-bottom, 0px)) !important; }
}

.ws-suchen-box { margin: 10px 0 0; border: 1px solid #dfe3ea; border-radius: 10px; background: #f7f8fa; }
.ws-suchen-box > summary { cursor: pointer; padding: 8px 12px; font-size: 0.84rem; font-weight: 600; color: #1c2541; }
.ws-suchen-box ul { list-style: none; margin: 0; padding: 0 8px 8px; }
.ws-suchen-box li { display: flex; align-items: center; gap: 8px; border-top: 1px solid #e6e9ef; padding: 4px 0; }
.ws-suchen-box li.aktiv .ws-suche-name { color: #00646a; }
.ws-suchen-box .ws-suche-oeffnen { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  background: transparent; border: 0; box-shadow: none; padding: 6px 4px; margin: 0; color: #1c2541; font-size: 0.85rem; cursor: pointer; min-height: 44px; }
.ws-suchen-box .ws-suche-oeffnen:hover .ws-suche-name, .ws-suchen-box .ws-suche-oeffnen:focus-visible .ws-suche-name { text-decoration: underline; }
.ws-suche-name { font-weight: 600; overflow-wrap: anywhere; }
.ws-suche-meta { font-size: 0.76rem; color: #5b6070; }
.ws-suchen-box .ws-suche-weg, .ws-projekt-loeschen .ws-loeschen-knopf { background: #fff; color: #c62828; border: 1px solid #c62828; border-radius: 999px;
  padding: 6px 12px; margin: 0; font-size: 0.8rem; font-weight: 600; min-height: 36px; box-shadow: none; cursor: pointer; flex: none; }
.ws-suchen-box .ws-suche-weg:hover, .ws-projekt-loeschen .ws-loeschen-knopf:hover { background: #c62828; color: #fff; }
.ws-projekt-loeschen { margin-top: 18px; padding-top: 12px; border-top: 1px solid #e6e9ef; }
.ws-projekt-loeschen p { font-size: 0.8rem; color: #5b6070; margin: 0 0 6px; }

.lp-aufg-liste { display: flex; flex-direction: column; gap: 10px; }
.lp-aufg { background: #fff; border: 1px solid #e3e7ee; border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(28, 37, 65, 0.05); }
.lp-aufg-kopf { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; color: #1c2541; margin-bottom: 6px; }
.lp-aufg-nr { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  background: #00646a; color: #fff; font-size: 0.8rem; font-weight: 700; flex: none; }
.lp-aufg-text { font-size: 0.92rem; line-height: 1.6; color: #2b3242; white-space: pre-wrap; overflow-wrap: anywhere; }

.corvi-eingabe-bereich textarea.abf-antwort { flex: 1 1 auto; min-width: 0; width: auto; }
.corvi-eingabe-bereich .corvi-rund-btn { flex: none; }

body.ist-kind #abf-dropzone, body.ist-kind [data-umschalten="abf-text-wrapper"],
body.ist-kind #ps-unterlagen-dropzone, body.ist-kind #ps-unterlagen-toggle,
body.ist-kind #g-wizard-dropzone, body.ist-kind #g-manuell-toggle, body.ist-kind [data-oeffnet="g-magic-scan-datei"],
body.ist-kind [data-oeffnet^="magic-scan-datei-"], body.ist-kind #hausaufgaben-dropzone, body.ist-kind #hausaufgaben-manuell-toggle { display: none !important; }
body.ist-kind #abf-text-wrapper, body.ist-kind #ps-unterlagen-wrapper, body.ist-kind #g-manuell-wrapper, body.ist-kind #hausaufgaben-manuell-wrapper { display: block !important; }
body.ist-kind #abf-text-wrapper::before, body.ist-kind #ps-unterlagen-wrapper::before, body.ist-kind #g-manuell-wrapper::before, body.ist-kind #hausaufgaben-manuell-wrapper::before {
  content: "Tippe hier ein, was du lernen möchtest. Fotos kannst du beim Lernplan, bei Karteikarten und bei Mindmaps hochladen – Mama oder Papa geben sie kurz frei.";
  display: block; font-size: 0.82rem; color: #5b6070; background: #f6f8fa; border-radius: 10px; padding: 8px 10px; margin: 0 0 8px; line-height: 1.45;
}
.mm-hinweis-freigabe { background: #e9f6f5; color: #00474b; border-radius: 10px; padding: 10px 12px; font-size: 0.9rem; line-height: 1.5; margin: 8px 0 0; }

html.lernprofil-lesefreundlich { font-size: 112.5%; }
html.lernprofil-lesefreundlich body { line-height: 1.75; letter-spacing: .02em; word-spacing: .08em; }
html.lernprofil-lesefreundlich p, html.lernprofil-lesefreundlich li { max-width: 72ch; }
html.lernprofil-lesefreundlich *, html.lernprofil-lesefreundlich *::before, html.lernprofil-lesefreundlich *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important;
}
.lernprofil-vorlesen {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 900;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 2px solid #1c2541;
  background: #1c2541; color: #fff; font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.lernprofil-vorlesen[aria-pressed="true"] { background: #fff; color: #1c2541; }
.lernprofil-vorlesen:focus-visible { outline: 3px solid #00747a; outline-offset: 3px; }
@media (max-width: 768px) { .lernprofil-vorlesen { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
.lernprofil-feld { margin-bottom: 10px; }
.lernprofil-sprache { display: flex; gap: 10px; align-items: center; margin: 6px 0 0 26px; flex-wrap: wrap; }
.lernprofil-sprache select { min-height: 40px; }

.lernprofil-eltern { background:#fff; border:1px solid #cfe9e6; border-radius:12px; padding:12px 14px; margin:16px 0 0; }
.lernprofil-eltern-titel { font-size:.85rem; font-weight:700; margin:0 0 4px; color:#00646a; }

.corvi-tipp-leiste { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:6px; }
.corvi-tipp-knopf { background:#fff; color:#00646a; border:1.5px solid #00838a; border-radius:999px; min-height:36px; padding:6px 14px; font-weight:600; cursor:pointer; }
.corvi-tipp-knopf:hover { background:#eef8f7; }
.corvi-tipp-knopf:focus-visible { outline:3px solid #00747a; outline-offset:2px; }
.corvi-tipp-knopf:disabled { opacity:.7; cursor:wait; }
.corvi-tipp-erklaerung { font-size:.78rem; color:#4a4f5c; }
.corvi-tipp-box { background:#fffaf0; border:1px solid #e0c48a; border-radius:8px; padding:8px 10px; margin-top:6px; font-size:.83rem; color:#3a3320; }
.corvi-tipp-fehler { font-size:.82rem; color:#b03a2e; margin:6px 0 0; }

.sprachfassung-leiste { margin-top:12px; padding-top:10px; border-top:1px solid #e3e6ec; }
.sprachfassung-titel { font-size:.85rem; font-weight:700; color:#00646a; margin:0 0 6px; }
.sprachfassung-leiste button { margin:0 6px 6px 0; }
.sprachfassung-hinweis { font-size:.78rem; color:#4a4f5c; margin:2px 0 0; }
.sprachfassung-erfolg { background:#e8f6ee; border:1px solid #9fd3b2; color:#1d5b34; border-radius:8px; padding:8px 12px; font-size:.85rem; margin:8px 0; }
.sprachfassung-fehler { color:#b03a2e; font-size:.83rem; margin:6px 0 0; }

.lp-anpassung { display:inline-block; font-size:.78rem; font-weight:600; color:#00646a; background:#e6f4f3; border-radius:999px; padding:2px 10px; margin:4px 0 2px; }
.lp-anpassung-info { display:inline-block; margin-top:6px; color:#00646a; font-weight:600; }
.lp-geprueft { display:inline-block; font-size:.78rem; font-weight:600; color:#1a6b3a; background:#e8f5ec; border-radius:999px; padding:2px 10px; margin:4px 6px 2px 0; }  

.lernplan-ergaenzen-knopf { display:inline-block; width:auto; margin:8px 0 0; background:transparent; color:#00646a; border:1.5px solid #00646a; }
.lernplan-ergaenzen-formular { background:#eef6fb; border-radius:12px; padding:16px 18px; margin-bottom:16px; }
.lernplan-ergaenzen-formular label { display:block; font-weight:600; font-size:.85rem; margin:10px 0 4px; }
.lernplan-ergaenzen-intro { margin:0 0 6px; font-size:.85rem; color:#4a4a4a; }
.lernplan-ergaenzen-leise { margin:4px 0 0; font-size:.75rem; color:#5f5f5f; }
.lernplan-ergaenzen-zeile { margin-top:12px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.lernplan-ergaenzen-zeile button { width:auto; }
