/* Portfolio */
.reiter.text button { padding-left: .95rem; }
.zeile-status { display: flex; flex-direction: column; gap: .4rem; margin: .8rem 0 0; }
.zeile-status .konto-pille { order: -1; margin-left: 0; align-self: stretch; border-radius: 12px; padding: .6rem .9rem; font-size: .95rem; }
.zeile-status .konto-pille span { display: block; }
.speicherstand { font-size: .85rem; color: var(--tinte-leise); }
.panel { border-top: 4px solid var(--akzent); padding: 1.2rem 1.3rem 1.5rem; }
.panel h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 0 0 .5rem; }
.panel h3 { font-size: 1.3rem; margin: 1.6rem 0 .4rem; }
.panel h4 { font-family: var(--titel-schrift); font-weight: 500; font-size: 1.12rem; margin: 1.1rem 0 .3rem; }
.panel > p { max-width: var(--lesebreite); }
.leise-klein { font-size: .88rem; color: var(--tinte-leise); }

/* Start */
.start-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spalte); margin: 1rem 0; }
@media (max-width: 860px) { .start-raster { grid-template-columns: minmax(0, 1fr); } }
.zahl { font-family: var(--titel-schrift); font-size: 2.2rem; line-height: 1; color: var(--akzent); }
.checkliste { list-style: none; margin: .6rem 0; padding: 0; display: grid; gap: var(--eng); max-width: var(--lesebreite); }
.checkliste li { display: flex; gap: .7rem; align-items: center; padding: .5rem .8rem; border-radius: 10px; background: var(--papier); }
.checkliste li.ok { background: var(--akzent-hell); }
.checkliste .haken { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--blatt); border: 1px solid var(--linie-fest); font-weight: 700; font-size: .85rem; color: var(--akzent); line-height: 1; }
.checkliste li.ok .haken { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.checkliste a { color: var(--tinte); text-decoration: none; font-weight: 600; }
.checkliste a:hover { text-decoration: underline; }

/* Formularelemente */
.feld { display: grid; gap: .3rem; margin: .7rem 0; font-weight: 600; font-size: .92rem; }
.feld small { font-weight: 400; color: var(--tinte-leise); }
.feld input, .feld textarea, .feld select, .notiz textarea, .suche {
  font: inherit; font-weight: 400; padding: .55rem .7rem; border: 1px solid var(--linie-fest); border-radius: 10px; background: var(--papier); color: var(--tinte); width: 100%;
}
.feld textarea, .notiz textarea { min-height: 6rem; resize: vertical; }
.feld input:focus-visible, .feld textarea:focus-visible, .feld select:focus-visible, .notiz textarea:focus-visible, .suche:focus-visible { outline: 3px solid var(--akzent); }
.reihe { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .8rem 0; }
.reihe .suche { flex: 1 1 14rem; width: auto; border-radius: var(--rund-pille); }
.chips { display: flex; flex-wrap: wrap; gap: var(--eng); }
.chip { font: inherit; font-size: .85rem; font-weight: 700; min-height: 2.125rem; padding: .15rem .8rem; border-radius: var(--rund-pille); border: 1px solid var(--linie-fest); background: var(--blatt); color: var(--tinte-leise); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.chip.anregung { font-weight: 500; }

/* Kompetenzspiegel */
.balken-liste { display: grid; gap: .5rem; max-width: var(--lesebreite); margin: .8rem 0 1.2rem; }
.balken { display: grid; grid-template-columns: 10rem minmax(0, 1fr) auto; gap: .7rem; align-items: center; font-size: .92rem; }
@media (max-width: 560px) { .balken { grid-template-columns: minmax(0, 1fr); gap: .2rem; } }
.balken .spur { position: relative; height: 0.75rem; border-radius: var(--rund-pille); background: var(--linie); overflow: hidden; }
.balken .fuell { position: absolute; left: 0; top: 0; bottom: 0; background: var(--akzent); border-radius: var(--rund-pille); }
.balken .fuell.alt { background: color-mix(in srgb, var(--akzent) 35%, var(--linie)); height: 6px; top: 0; bottom: auto; }
.balken .fuell.neu { height: 6px; top: 6px; bottom: auto; }
.balken small { color: var(--tinte-leise); white-space: nowrap; }
details.hf { border-left: 4px solid var(--akzent); margin: var(--eng) 0; }
details.hf > summary { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .75rem 1rem; cursor: pointer; list-style: none; font-weight: 700; }
details.hf > summary::-webkit-details-marker { display: none; }
details.hf > summary::after { content: '›'; margin-left: auto; color: var(--akzent); font-size: 1.2rem; transition: transform .15s ease; }
details.hf[open] > summary::after { transform: rotate(90deg); }
details.hf[open] > summary { background: var(--akzent-hell); border-radius: 0 var(--rund) 0 0; }
details.hf .buchstabe { --b: 1.875rem; --b-rund: 50%; }
details.hf .zaehler { font-weight: 400; font-size: .85rem; color: var(--tinte-leise); }
.kon { padding: .8rem 1rem; border-top: 1px solid var(--linie); }
.kon:first-of-type { border-top: 0; }
.kon .kopf-zeile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: start; }
.kon .nr { min-width: 2.4rem; text-align: center; padding: .02rem .45rem; border-radius: var(--rund-pille); background: var(--akzent-hell); color: var(--akzent); font-weight: 700; font-size: .82rem; text-decoration: none; }
.kon .wortlaut { font-weight: 600; font-size: .96rem; }
.stufen { display: flex; flex-wrap: wrap; gap: var(--eng); margin: .6rem 0 .3rem 3.1rem; }
@media (max-width: 640px) { .stufen { margin-left: 0; } }
.stufen button { font: inherit; font-size: .82rem; font-weight: 600; min-height: 2.125rem; padding: .15rem .75rem; border-radius: var(--rund-pille); border: 1px solid var(--linie-fest); background: var(--blatt); color: var(--tinte); cursor: pointer; }
.stufen button:hover { border-color: var(--akzent); }
.stufen button[aria-pressed="true"] { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.notiz { margin: .3rem 0 0 3.1rem; }
@media (max-width: 640px) { .notiz { margin-left: 0; } }
.notiz summary { cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--akzent); }
.notiz .frage { font-size: .88rem; color: var(--tinte-leise); margin: .4rem 0 .3rem; }
.notiz textarea { min-height: 4.5rem; }
.vergleich-box { padding: .8rem 1rem; border: 1px solid var(--linie); border-radius: 12px; background: var(--blatt); margin: 1rem 0; }
.veraenderung { display: grid; gap: .3rem; margin: .6rem 0 0; padding: 0; list-style: none; font-size: .92rem; }
.veraenderung li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: .6rem; }
.pfeil-auf { color: var(--gruen); font-weight: 700; }
.pfeil-ab { color: var(--rot); font-weight: 700; }

/* Einträge */
.eintrag { padding: .9rem 1.1rem 1rem; margin: .7rem 0; }
.eintrag header { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: baseline; }
.eintrag h3 { margin: 0; font-size: 1.25rem; }
.eintrag .datum { font-size: .85rem; color: var(--tinte-leise); }
.eintrag dl { margin: .6rem 0 0; display: grid; gap: .5rem; }
.eintrag dt { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--akzent); }
.eintrag dd { margin: 0; white-space: pre-wrap; }
.tag { display: inline-block; padding: .05rem .55rem; border-radius: var(--rund-pille); font-size: .75rem; font-weight: 700; background: var(--akzent-hell); color: var(--akzent); }
.eintrag .knoepfe { margin-top: .7rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.knopf.klein { min-height: 2.125rem; padding: .2rem .8rem; font-size: .85rem; }
.knopf.rot { color: var(--rot); }
.formular { padding: 1rem 1.1rem 1.1rem; border: 2px solid var(--akzent); border-radius: 14px; background: var(--blatt); margin: 1rem 0; }

/* Perspektivgespräche */
.pgkopf { display: flex; align-items: center; gap: .7rem; margin: 1.6rem 0 .3rem; }
.pgkopf h3 { margin: 0; }
.pgmarke { flex: none; display: grid; place-items: center; width: 2.125rem; height: 2.125rem; border-radius: 50%; background: var(--akzent); color: var(--akzent-text); font-family: var(--titel-schrift); font-size: 1.15rem; line-height: 1; }
.ziel { padding: .9rem 1rem; margin: .6rem 0; border-left: 4px solid var(--akzent); }
.ziel h4 { margin: 0 0 .3rem; }
.ziel p { margin: .2rem 0; white-space: pre-wrap; }
.ziel .stand { margin-top: .6rem; display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: .6rem; }
@media (max-width: 640px) { .ziel .stand { grid-template-columns: minmax(0, 1fr); } }
.ziel .stand select, .ziel .stand input { font: inherit; padding: .4rem .6rem; border: 1px solid var(--linie-fest); border-radius: 10px; background: var(--papier); color: var(--tinte); width: 100%; }

/* Brief */

/* Brief */
.brief-karte { padding: 1rem 1.2rem; border: 1px dashed var(--akzent); border-radius: 14px; background: var(--blatt); max-width: var(--lesebreite); }
.brief-karte.verschlossen { text-align: center; padding: 1.6rem 1.2rem; border-style: solid; border-width: 2px; background: color-mix(in srgb, var(--akzent-hell) 55%, var(--blatt)); }
.brief-karte.verschlossen h3 { margin: .3rem 0; }
.brief-karte.verschlossen p { margin: .3rem 0; max-width: none; }
.umschlag svg { width: 4rem; height: 4rem; color: var(--akzent); }
.brief-zaehler { font-family: var(--titel-schrift); font-size: 1.8rem; line-height: 1.1; color: var(--akzent); }
.brief-leiste { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem 1rem; margin: 1rem 0 .3rem; }
.briefblatt { margin: .6rem 0; padding: 1rem 1.2rem; border-radius: 10px; background: var(--papier); font-family: var(--titel-schrift); font-size: 1.2rem; line-height: 1.5; }
.fehler { margin: .5rem 0 0; color: var(--rot); font-weight: 600; }

/* Export, Druck */
.knoepfe { display: flex; flex-wrap: wrap; gap: var(--eng); margin: .8rem 0; }
#druck { display: none; }
@media print {
  body.druckt > *:not(main):not(#druck) { display: none; }
  body.druckt main > * { display: none !important; }
  body.druckt #druck { display: block !important; padding: 1rem; color: #000; font-size: 11pt; }
  body.druckt #druck h1 { font-size: 1.6rem; margin: 0 0 1rem; }
  body.druckt #druck h2 { font-size: 1.15rem; margin: 1.2rem 0 .3rem; }
  body.druckt #druck h3 { font-size: 1rem; margin: .8rem 0 .2rem; }
  body.druckt #druck p { white-space: pre-wrap; margin: 0 0 .5rem; }
  body.druckt #druck table { border-collapse: collapse; width: 100%; font-size: 10pt; }
  body.druckt #druck td, body.druckt #druck th { border: 1px solid #999; padding: .2rem .4rem; text-align: left; vertical-align: top; }
}

/* Ruhe: eine gemeinsame Spaltenbreite für alles im Portfolio (Texte, Hinweise, Felder, Listen, Raster) */
:root { --pf-spalte: var(--lesebreite); }
.panel > *, .zeile-status { max-width: var(--pf-spalte); }
.panel > p, .hinweis, .checkliste, .balken-liste, .brief-karte { max-width: var(--pf-spalte); }
.panel .feld, .panel .ziel { max-width: var(--pf-spalte); }
.angebot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: start; max-width: var(--lesebreite); margin: 1rem 0 .2rem; padding: .9rem 1.1rem; border-radius: 12px; background: var(--akzent-hell); border: 1px solid color-mix(in srgb, var(--akzent) 30%, transparent); }
.angebot .ic { width: 1.75rem; height: 1.75rem; color: var(--akzent); margin-top: .1rem; }
.angebot p { margin: 0; }

/* Breite nutzen: Übersicht, erste Schritte und Kompetenzspiegel über die ganze Breite, Listen zweispaltig */
.panel > .start-raster { max-width: none; }
.panel > .checkliste { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--spalte); }
.panel > .balken-liste { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--spalte) * 2); }
@media (max-width: 720px) { .panel > .checkliste, .panel > .balken-liste { grid-template-columns: minmax(0, 1fr); } }
