/* Einheitliche Schrift und einheitliche Eingabefelder in ganz Comb */

/* Auswählbare Schriften (liegen auf unserem Server, keine Verbindung zu Fremdanbietern) */
@font-face { font-family: "Lato"; src: url("/assets/fonts/lato-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/assets/fonts/lato-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("/assets/fonts/robotoslab-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("/assets/fonts/robotoslab-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
html[data-font="lato"] { --font: "Lato", "Helvetica Neue", Arial, sans-serif; }
html[data-font="slab"] { --font: "Roboto Slab", Georgia, "Times New Roman", serif; }
html[data-font="system"] { --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
html[data-font="serif"] { --font: Georgia, "Times New Roman", Times, serif; }

/* Überall dieselbe Schrift, auch in Feldern und Knöpfen */
button, input, select, textarea, optgroup { font-family: var(--font); }

/* Alle Eingabefelder gleich: Höhe, Rand, Farbe, Rundung */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="time"],
input[type="datetime-local"], input[type="month"], input[type="week"], input[type="search"], input[type="tel"], input[type="url"], select, textarea {
  box-sizing: border-box; font: inherit; font-family: var(--font); color: var(--ink); background-color: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; min-height: 46px; width: 100%; line-height: 1.3; -webkit-appearance: none; appearance: none;
}
textarea { min-height: 96px; }
select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--brass) 60%, var(--line)); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
input:disabled, select:disabled, textarea:disabled { opacity: .6; cursor: not-allowed; }

/* Zeitfelder: kein weißer Balken, passend zum Farbmodus */
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
input[type="time"], input[type="date"], input[type="datetime-local"], input[type="month"], input[type="week"] { display: block; }
input::-webkit-datetime-edit, input::-webkit-datetime-edit-fields-wrapper { padding: 0; background: transparent; color: inherit; }
input::-webkit-datetime-edit-hour-field, input::-webkit-datetime-edit-minute-field, input::-webkit-datetime-edit-day-field, input::-webkit-datetime-edit-month-field, input::-webkit-datetime-edit-year-field { background: transparent; color: inherit; }
input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .7; }
html[data-theme="dark"] input::-webkit-calendar-picker-indicator { filter: invert(1); }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { opacity: .6; }

/* Farbfelder im selben Rahmen */
input[type="color"] { box-sizing: border-box; width: 64px; height: 46px; min-height: 46px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; -webkit-appearance: none; appearance: none; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 6px; }
input[type="color"]::-moz-color-swatch { border: 0; border-radius: 6px; }

/* Schriftauswahl in der Kopfleiste */

.vx-fontprev { font-size: 1.4rem; line-height: 1; display: block; }
.vx-fontprev--lato { font-family: "Lato", Arial, sans-serif; }
.vx-fontprev--slab { font-family: "Roboto Slab", Georgia, serif; }
.vx-fontprev--system { font-family: system-ui, "Segoe UI", Arial, sans-serif; }
.vx-fontprev--serif { font-family: Georgia, "Times New Roman", serif; }
