/* Valurion-CI: Farben kommen als Variablen aus /theme.css (config/theme.yaml). */
@font-face {
  font-family: 'Roboto';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/roboto-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/roboto-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/roboto-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url('/fonts/roboto-latin-400-italic.woff2') format('woff2');
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--c-weiss);
  color: var(--c-navy);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3 {
  margin: 0 0 8px;
  line-height: 1.2;
}
h1 {
  font-size: 28px;
  font-weight: 700;
}
h2 {
  font-size: 20px;
  font-weight: 500;
}
h3 {
  font-size: 17px;
  font-weight: 500;
}
p {
  margin: 0 0 12px;
}

.overline {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
  font-size: 12px;
  color: var(--c-slate);
}

/* Akzentstreifen (Formelement 1) */
.accent {
  width: 48px;
  height: 6px;
  background: var(--c-cyan);
  margin: 8px 0 16px;
}

.muted {
  color: var(--c-slate);
}
.small {
  font-size: 14px;
}

button,
.btn {
  font: inherit;
  font-weight: 500;
  border: 2px solid var(--c-navy);
  background: var(--c-navy);
  color: var(--c-weiss);
  padding: 10px 18px;
  min-height: 44px;
  cursor: pointer;
  border-radius: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button.secondary,
.btn.secondary {
  background: var(--c-weiss);
  color: var(--c-navy);
}
button.ghost {
  background: transparent;
  color: var(--c-navy);
  border-color: transparent;
}
button.warn {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-navy);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--c-cyan);
  outline-offset: 2px;
}

input,
select,
textarea {
  font: inherit;
  color: var(--c-navy);
  border: 2px solid var(--c-mist);
  background: var(--c-weiss);
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 0;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--c-cyan);
}
label {
  display: block;
  font-weight: 500;
  margin: 12px 0 4px;
}

/* Chips: einziger Ort mit 2 px Radius */
.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  background: var(--c-mist);
  color: var(--c-navy);
}
.chip.ok {
  background: var(--c-mint);
}
.chip.info {
  background: var(--c-cyan);
}
.chip.warn {
  background: var(--c-orange);
}

/* Callout mit 45°-Schnitt oben rechts (Formelement 2) */
.callout {
  background: var(--c-mist);
  padding: 16px 20px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  margin: 12px 0;
}
.callout.warn {
  border-top: 4px solid var(--c-orange);
}

.error {
  color: var(--c-navy);
  background: var(--c-orange);
  padding: 8px 12px;
  margin: 8px 0;
  font-weight: 500;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--c-navy);
  color: var(--c-weiss);
  padding: 10px 18px;
  z-index: 100;
  max-width: calc(100% - 32px);
}

.hidden {
  display: none !important;
}

/* Verbindungsstatus */
.conn {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-mint);
}
.conn.off {
  background: var(--c-orange);
}

table.data {
  border-collapse: collapse;
  width: 100%;
}
table.data th {
  background: var(--c-navy);
  color: var(--c-weiss);
  text-align: left;
  font-weight: 500;
  padding: 8px 10px;
}
table.data td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--c-mist);
  vertical-align: middle;
}
table.data tr:nth-child(even) td {
  background: var(--c-mist);
}

/* Valurion-Logo (Wortmarke ohne Claim), Höhe je Ansicht */
.brand-logo {
  display: block;
  height: 28px;
  width: auto;
}

.footer-brand {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
  color: var(--c-slate);
}
