style.css
⎇
Raw
1/* Ergänzungen zu Pico CSS – kein Inline-CSS (CSP style-src 'self') */
2:root { --pico-font-size: 106.25%; }
3@media (max-width: 576px) { :root { --pico-font-size: 100%; } }
4.brand { text-decoration: none; }
5.muted { color: var(--pico-muted-color); }
6.error { color: var(--pico-del-color); font-weight: 600; }
7.ok { color: var(--pico-ins-color); font-weight: 600; }
8.narrow { max-width: 26rem; margin: 3rem auto; }
9.mono { font-family: var(--pico-font-family-monospace); font-size: .9em; }
10form.inline { display: inline; margin: 0; }
11form.inline button { margin: 0; }
12button.small { padding: .25rem .6rem; font-size: .85em; margin: 0; }
13button.link { background: none; border: none; padding: 0 .3rem; margin: 0; width: auto; color: var(--pico-muted-color); cursor: pointer; }
14button.link:hover { color: var(--pico-del-color); }
15
16/* Formularzeilen: auf breiten Bildschirmen nebeneinander */
17.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-start; }
18.row > * { margin-bottom: .5rem; }
19.row > input, .row > select { flex: 1 1 12rem; }
20.row > button { flex: 0 0 auto; width: auto; }
21.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
22.actions > * { margin-bottom: 0; }
23.spaced { margin-top: 2rem; }
24
25.search { display: flex; gap: .5rem; }
26.search input { flex: 1; margin: 0; }
27.search button { width: auto; margin: 0; }
28
29/* Filter-Chips */
30.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 .5rem; }
31.chips a { padding: .25rem .75rem; border-radius: 999px; border: 1px solid var(--pico-muted-border-color); text-decoration: none; font-size: .9em; }
32.chips a[aria-current] { background: var(--pico-primary-background); color: var(--pico-primary-inverse); border-color: var(--pico-primary-background); }
33.chips small { opacity: .7; }
34.chips.regions a { font-size: .8em; }
35
36/* Karten */
37.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .9rem; margin-top: 1rem; }
38.card { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; border-radius: var(--pico-border-radius);
39 background: var(--pico-card-background-color); box-shadow: var(--pico-card-box-shadow); text-decoration: none; color: inherit; }
40.card:hover { outline: 2px solid var(--pico-primary-border); }
41.card strong { color: var(--pico-primary); }
42.card .summary { font-size: .88em; color: var(--pico-muted-color); }
43
44/* Art-Kennzeichnung */
45.kind { display: inline-block; font-size: .72em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
46 padding: .1rem .5rem; border-radius: .3rem; color: #fff; background: #607d8b; }
47.kind-krankheitsbild { background: #c0392b; }
48.kind-test { background: #8e44ad; }
49.kind-uebung { background: #16a085; }
50.kind-protokoll { background: #2c6fbb; }
51.kind-notiz { background: #7f8c8d; }
52.region { font-size: .8em; color: var(--pico-muted-color); }
53.lead { font-size: 1.1em; }
54.tags a { font-size: .85em; margin-right: .3rem; }
55.dosage { padding: .6rem 1rem; border-left: 4px solid #16a085; background: var(--pico-code-background-color); }
56.patient { border-top: 1px dashed var(--pico-muted-border-color); margin-top: 1.5rem; padding-top: 1rem; }
57.prose table { font-size: .92em; }
58.links li { list-style: none; }
59.links { padding-left: 0; }
60.new-linked a { margin-right: .6rem; font-size: .9em; }
61fieldset.exercise { border: 1px dashed var(--pico-muted-border-color); padding: 1rem; border-radius: var(--pico-border-radius); }
62
63/* Medien */
64.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .8rem; margin-bottom: 1rem; }
65.media figure { margin: 0; }
66.media img, .media video { width: 100%; max-height: 14rem; object-fit: cover; border-radius: var(--pico-border-radius); }
67.media .file { display: block; padding: 2rem 1rem; text-align: center; border: 1px dashed var(--pico-muted-border-color); border-radius: var(--pico-border-radius); }
68.media figcaption { font-size: .85em; }
69
70/* Handout-Editor */
71.item { padding: .8rem 1rem; margin-bottom: .6rem; }
72.item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
73
74/* Löschen */
75details.danger summary { color: var(--pico-del-color); font-size: .9em; }
76button.danger { background: var(--pico-del-color); border-color: var(--pico-del-color); width: auto; }
77
78/* ---------- JS-abhängige Elemente ---------- */
79.js-only { display: none !important; }
80.js .js-only { display: inline-flex !important; }
81.js .nojs-only { display: none; }
82
83/* ---------- Patienten ---------- */
84table.list td, table.list th { vertical-align: top; }
85.nowrap { white-space: nowrap; }
86.tablewrap { overflow-x: auto; }
87.patient-head h1 { margin-bottom: .2rem; }
88.session-form { display: grid; grid-template-columns: 10rem 1fr; gap: .5rem; }
89.session-form textarea { grid-column: 1 / -1; margin: 0; }
90.session-form input { margin: 0; }
91.session-form button { grid-column: 1 / -1; width: auto; justify-self: start; }
92@media (max-width: 576px) { .session-form { grid-template-columns: 1fr; } }
93.session { border-left: 3px solid var(--pico-primary-border); padding: .3rem .8rem; margin: .6rem 0; }
94.session-note { white-space: pre-wrap; color: var(--pico-muted-color); font-size: .92em; }
95td.pre { white-space: pre-wrap; }
96td.delta { font-weight: 700; white-space: nowrap; }
97
98/* ---------- Befund ---------- */
99.befund-head { display: grid; grid-template-columns: 1fr 14rem 11rem; gap: .8rem; align-items: end; }
100@media (max-width: 768px) { .befund-head { grid-template-columns: 1fr 1fr; } .befund-head > div { grid-column: 1 / -1; } }
101.toc { display: flex; flex-wrap: wrap; gap: .3rem; margin: .5rem 0 1rem; font-size: .8em; }
102.toc a { padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--pico-muted-border-color); text-decoration: none; }
103.toc a.filled { border-color: var(--pico-primary-border); background: var(--pico-primary-focus); }
104.sec { margin: 1.4rem 0; padding: 1rem 1.2rem; border-radius: var(--pico-border-radius);
105 background: var(--pico-card-background-color); box-shadow: var(--pico-card-box-shadow); scroll-margin-top: 1rem; }
106.sec > h2, .sec > summary { font-size: 1.25rem; margin-bottom: .6rem; }
107details.specialty > summary { font-weight: 700; }
108.part { margin: .6rem 0 1rem; }
109.part h4, details.part > summary { font-size: 1rem; color: var(--pico-primary); margin: .6rem 0 .4rem; }
110.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0 1rem; }
111.fld.wide { grid-column: 1 / -1; }
112.fld label { font-size: .88em; margin-bottom: .15rem; }
113.fld textarea, .fld input, .fld select { margin-bottom: .7rem; }
114.fld.chk label { font-size: .95em; }
115.fld.chk { padding: .2rem 0; }
116.fgrid:has(.chk) { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
117table.etable { margin-bottom: .3rem; }
118table.etable td { padding: .15rem; }
119table.etable input, table.etable select { margin: 0; padding: .35rem .5rem; height: auto; font-size: .92em; }
120table.etable th { font-size: .82em; padding: .3rem; }
121.savebar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: .7rem; align-items: center; flex-wrap: wrap;
122 padding: .6rem 1rem; margin-top: 1rem; background: var(--pico-background-color);
123 border-top: 1px solid var(--pico-muted-border-color); }
124.savebar button { width: auto; margin: 0; }
125
126/* Körperschema */
127.body-tools { flex-wrap: wrap; gap: .35rem; align-items: center; margin-bottom: .6rem; }
128.body-tools .sym { width: auto; min-width: 2.6rem; padding: .25rem .5rem; margin: 0; background: transparent;
129 color: var(--pico-h2-color); border: 1px solid var(--pico-muted-border-color); font-size: 1.05rem; }
130.body-tools .sym.active { color: var(--pico-h1-color); }
131.body-tools .sym.active { border-color: var(--pico-primary); background: var(--pico-primary-focus); }
132.body-tools input[type=color] { width: 2.6rem; height: 2.3rem; padding: 0; margin: 0; }
133.body-tools select { width: auto; margin: 0; padding: .3rem 2rem .3rem .6rem; }
134.body-tools button { margin: 0; width: auto; }
135.bodies { display: flex; gap: 1.2rem; flex-wrap: wrap; }
136.body { margin: 0; width: 9.5rem; text-align: center; }
137.body-canvas { position: relative; background: #fff; border-radius: .4rem; }
138.body-canvas img { display: block; width: 100%; height: auto; }
139.body-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; cursor: crosshair; touch-action: manipulation; }
140.legend { font-size: .82em; color: var(--pico-muted-color); display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .4rem; }
141
142/* ---------- Smartphone ---------- */
143.site-footer { padding-top: 0; padding-bottom: 5rem; text-align: right; font-size: .85em; }
144@media (max-width: 576px) {
145 :root { --pico-spacing: .75rem; }
146 body > header.container { padding-top: .25rem; padding-bottom: 0; }
147 body > header nav { flex-wrap: wrap; }
148 body > header nav > ul:first-child { width: 100%; }
149 body > header nav > ul:last-child { width: 100%; justify-content: space-between; margin: 0; }
150 body > header nav > ul:last-child > li { padding: .35rem .2rem; font-size: .95em; }
151 body > header nav details.dropdown summary { padding: .3rem .6rem; height: auto; }
152}
153
154/* Checkbox-Text neben der Box, Folgezeilen eingerückt */
155.fld.chk label { display: flex; gap: .5rem; align-items: flex-start; }
156.fld.chk input[type=checkbox] { flex: 0 0 auto; margin-top: .15rem; }
157
158@media (max-width: 576px) {
159 .hide-sm { display: none !important; }
160 h1 { font-size: 1.6rem; }
161 nav[aria-label=breadcrumb] li:last-child { display: none; }
162 nav[aria-label=breadcrumb] { font-size: .9em; margin-bottom: .3rem; }
163 article, .sec { padding: .8rem .75rem; margin-bottom: 1rem; }
164 table.list { font-size: .88em; }
165 table.list th, table.list td { padding: .35rem .3rem; }
166
167 /* Formularzeilen: Eingaben volle Breite, Knöpfe darunter */
168 .row > input, .row > select { flex-basis: 100%; }
169 .row > button { flex: 1 1 auto; }
170 .actions > * { flex: 1 1 auto; }
171 .actions > form.inline button, .actions > a[role=button] { width: 100%; }
172 .compare-pick .arrow { display: none; }
173
174 /* Befund kompakter */
175 .befund-head { gap: 0 .6rem; }
176 .befund input:not([type=checkbox]):not([type=color]), .befund select, .befund textarea {
177 padding: .45rem .6rem; font-size: .95rem; margin-bottom: .5rem; }
178 .befund select { padding-right: 2rem; }
179 .befund textarea { min-height: 3.2rem; }
180 .fld label { margin-bottom: .1rem; }
181 /* Abschnitts-Sprungmarken als eine wischbare Zeile */
182 .toc { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; margin: .2rem 0 .6rem; scrollbar-width: thin; }
183 .toc a { white-space: nowrap; flex: 0 0 auto; }
184 /* Kleine Zahlenfelder (NRS) zu dritt nebeneinander */
185 .fgrid { grid-template-columns: repeat(6, 1fr); }
186 .fgrid > .fld { grid-column: span 6; }
187 .fgrid > .fld.small { grid-column: span 2; }
188 .fgrid:has(.chk) { grid-template-columns: 1fr; }
189 .fgrid:has(.chk) > .fld { grid-column: auto; }
190 .fld.small label { font-size: .78em; min-height: 2.1em; }
191 /* Körperschema: drei Ansichten nebeneinander */
192 .bodies { flex-wrap: nowrap; gap: .5rem; justify-content: space-between; }
193 .body { width: auto; flex: 1 1 0; }
194 .body-tools .sym { min-width: 2.3rem; padding: .2rem .35rem; }
195 /* Speicherleiste schmal */
196 .savebar { padding: .4rem .5rem; gap: .4rem; margin: 1rem -.75rem 0; }
197 .savebar button { flex: 1 1 auto; padding: .5rem .6rem; font-size: .95rem; }
198 .etable input, .etable select { min-width: 6.5rem; }
199}
200