/*
Projekt: Piding Intercom – PWA-Gestaltung
Version: 0.3.1 | 2026-08-02 22:13:25
Datum: 2026-08-02
Zweck: Definiert die zentrale Salzburg-AG-Dark-Palette, einheitliche Formfelder,
Dialoge, Toasts und die deutlich verdichtete mobile Intercom-Oberfläche.
*/

@font-face {
  font-family: "Roboto Condensed";
  src: url("/assets/roboto-condensed.ttf") format("truetype");
  font-display: swap;
}

:root {
  --color-background: #101214;
  --color-surface: #171a1d;
  --color-surface-raised: #1d2125;
  --color-border: #343a40;
  --color-text: #f3f4f4;
  --color-muted: #aab0b5;
  --color-accent: #f0b429;
  --color-success: #55c58a;
  --color-danger: #ef6b73;
  --color-warning: #e6b64f;
  --color-information: #70aee8;
  --radius: 14px;
  --control-height: 44px;
  --shadow: 0 18px 44px rgb(0 0 0 / 24%);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--color-background); color-scheme: dark; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: "Roboto Condensed", sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--color-information); }

.skip-link { position: fixed; z-index: 30; top: -100px; left: 12px; padding: 8px 12px; border-radius: 8px; background: var(--color-accent); color: var(--color-background); font-weight: 700; }
.skip-link:focus { top: 12px; }

.app-header { min-height: 72px; display: flex; align-items: center; gap: 24px; max-width: 1160px; padding: 0 28px; margin: auto; border-bottom: 1px solid var(--color-border); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--color-text); text-decoration: none; font-weight: 700; font-size: 24px; letter-spacing: .01em; }
.brand img { border-radius: 9px; }
.desktop-nav { display: flex; gap: 18px; margin-left: auto; }
.desktop-nav a { color: var(--color-muted); text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--color-text); }
.icon-button.menu-trigger { display: none; margin-left: auto; }

.page-shell { width: min(100% - 40px, 1104px); margin: 28px auto 42px; }
.status-strip { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 14px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); color: var(--color-muted); font-size: 16px; }
.status-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--color-warning); box-shadow: 0 0 0 3px rgb(230 182 79 / 15%); }
.status-dot.is-online { background: var(--color-success); box-shadow: 0 0 0 3px rgb(85 197 138 / 15%); }
.status-dot.is-error { background: var(--color-danger); box-shadow: 0 0 0 3px rgb(239 107 115 / 15%); }

.hero-card { display: flex; justify-content: space-between; gap: 28px; margin-top: 22px; padding: 34px; border: 1px solid var(--color-border); border-radius: var(--radius); background: linear-gradient(132deg, var(--color-surface-raised), var(--color-surface)); box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 4px; color: var(--color-accent); font-weight: 700; font-size: 15px; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(34px, 5vw, 48px); line-height: 1; }
h2 { margin-bottom: 0; font-size: 26px; line-height: 1.1; }
.lead { max-width: 640px; margin-bottom: 0; color: var(--color-muted); }
.station-state { min-width: 225px; display: grid; align-content: center; justify-items: center; gap: 5px; padding: 18px; border: 1px solid var(--color-border); border-radius: 12px; background: rgb(16 18 20 / 50%); text-align: center; }
.station-icon { color: var(--color-accent); font-size: 37px; line-height: 1; }
.station-state strong { font-size: 19px; }.station-state span:last-child { color: var(--color-muted); font-size: 15px; }

.content-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; margin-top: 20px; }
.panel { padding: 28px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.panel > p { color: var(--color-muted); }
.badge { display: inline-flex; min-height: 26px; align-items: center; padding: 3px 9px; border: 1px solid rgb(85 197 138 / 42%); border-radius: 999px; color: var(--color-success); font-size: 14px; font-weight: 700; white-space: nowrap; }
.badge-muted { border-color: var(--color-border); color: var(--color-muted); }
.control-row { display: flex; flex-wrap: wrap; gap: 10px; }
.button, .icon-button { border: 1px solid transparent; border-radius: 9px; cursor: pointer; transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease; }
.button { min-height: var(--control-height); padding: 8px 15px; font-weight: 700; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .65; }
.button-primary { background: var(--color-accent); color: var(--color-background); }.button-primary:hover:not(:disabled) { background: var(--color-warning); }
.button-secondary { border-color: var(--color-border); background: var(--color-surface-raised); color: var(--color-text); }.button-secondary:hover:not(:disabled) { border-color: var(--color-information); }
.button-talk { border-color: rgb(112 174 232 / 55%); background: var(--color-information); color: var(--color-background); }.button-talk[aria-pressed="true"] { border-color: var(--color-danger); background: var(--color-danger); }
.talk-area { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--color-border); }.field-hint { margin: 0 0 11px; color: var(--color-muted); font-size: 15px; }

.app-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 20px; border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: 14px; }
.app-footer a { color: var(--color-muted); }

.app-dialog { width: min(calc(100vw - 32px), 480px); max-height: min(680px, calc(100dvh - 32px)); padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow); }
.app-dialog::backdrop { background: rgb(0 0 0 / 68%); }
.app-dialog > p, .app-dialog form, .mobile-nav { display: block; margin: 0; padding: 0 24px 24px; color: var(--color-muted); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 20px; margin-bottom: 18px; border-bottom: 1px solid var(--color-border); }.dialog-heading h2 { font-size: 23px; }
.icon-button { width: var(--control-height); height: var(--control-height); display: inline-grid; place-items: center; border-color: var(--color-border); background: var(--color-surface-raised); color: var(--color-text); font-size: 24px; line-height: 1; }.icon-button:hover { border-color: var(--color-information); }
.field-label { display: block; margin: 17px 0 6px; color: var(--color-text); font-weight: 700; font-size: 16px; }.field-label:first-child { margin-top: 0; }
.form-control { width: 100%; height: var(--control-height); padding: 8px 11px; border: 1px solid var(--color-border); border-radius: 9px; outline: none; background: var(--color-surface-raised); color: var(--color-text); }.form-control:focus { border-color: var(--color-information); box-shadow: 0 0 0 3px rgb(112 174 232 / 16%); }.form-control:user-invalid { border-color: var(--color-danger); }
.field-error { min-height: 20px; margin: 4px 0 0; color: var(--color-danger); font-size: 14px; }.dialog-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mobile-nav { padding-top: 0; }.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--color-border); text-decoration: none; }.mobile-nav a:last-child { border-bottom: 0; }
.pairing-result { display: block; margin-top: 14px; padding: 12px; border: 1px solid rgb(85 197 138 / 45%); border-radius: 9px; background: var(--color-surface-raised); color: var(--color-success); font-weight: 700; letter-spacing: .06em; }

.toast-region { position: fixed; z-index: 40; right: 20px; bottom: 20px; display: grid; justify-items: end; gap: 10px; width: min(420px, calc(100vw - 40px)); pointer-events: none; }.toast { width: 100%; padding: 12px; border: 1px solid var(--color-border); border-left: 4px solid var(--color-information); border-radius: 10px; background: var(--color-surface-raised); box-shadow: var(--shadow); pointer-events: auto; }.toast.toast-success { border-left-color: var(--color-success); }.toast.toast-error { border-left-color: var(--color-danger); }.toast.toast-info { border-left-color: var(--color-information); }.toast-header { display: flex; align-items: start; gap: 10px; }.toast-message { flex: 1; margin: 0; }.toast-actions { display: flex; align-items: center; gap: 7px; margin-top: 10px; }.toast .icon-button { width: 30px; height: 30px; flex: 0 0 auto; font-size: 20px; }.toast-copy { min-height: 30px; padding: 3px 8px; border: 1px solid var(--color-border); border-radius: 7px; background: var(--color-surface); color: var(--color-text); font: inherit; font-size: 14px; cursor: pointer; }

@media (max-width: 768px), (max-height: 600px) and (orientation: landscape) {
  :root { --radius: 10px; --control-height: 38px; }
  body { font-size: 15px; line-height: 1.35; }
  .app-header { min-height: 54px; padding: 0 14px; }.brand { gap: 7px; font-size: 18px; }.brand img { width: 25px; height: 25px; }.desktop-nav { display: none; }.icon-button.menu-trigger { display: inline-grid; }
  .page-shell { width: min(100% - 22px, 680px); margin: 12px auto 20px; }.status-strip { min-height: 32px; padding: 6px 9px; font-size: 13px; }.status-dot { width: 8px; height: 8px; }
  .hero-card { display: block; margin-top: 12px; padding: 16px; }.eyebrow { margin-bottom: 2px; font-size: 11px; }.hero-card h1 { margin-bottom: 6px; font-size: 29px; }.lead { font-size: 14px; }.station-state { min-width: 0; display: flex; justify-items: normal; align-items: center; gap: 8px; margin-top: 14px; padding: 9px; text-align: left; }.station-state strong { font-size: 15px; }.station-state span:last-child { font-size: 12px; }.station-icon { font-size: 24px; }
  .content-grid { grid-template-columns: 1fr; gap: 11px; margin-top: 11px; }.panel { padding: 15px; }.panel h2 { font-size: 20px; }.panel > p { margin: 8px 0 12px; font-size: 14px; }.badge { min-height: 22px; padding: 2px 7px; font-size: 12px; }.button { min-height: var(--control-height); padding: 6px 10px; font-size: 14px; }.control-row { gap: 7px; }.talk-area { margin-top: 14px; padding-top: 12px; }.field-hint { margin-bottom: 8px; font-size: 12px; }
  .app-footer { gap: 6px; padding: 12px; font-size: 11px; }.app-dialog { width: min(calc(100vw - 20px), 440px); }.dialog-heading { padding: 13px 14px; margin-bottom: 12px; }.dialog-heading h2 { font-size: 19px; }.app-dialog > p, .app-dialog form, .mobile-nav { padding: 0 14px 14px; font-size: 14px; }.field-label { margin: 12px 0 4px; font-size: 14px; }.form-control { padding: 6px 8px; font-size: 14px; }.dialog-actions { gap: 7px; margin-top: 15px; }.icon-button { width: var(--control-height); height: var(--control-height); font-size: 20px; }
  .toast-region { right: 50%; bottom: 12px; width: min(calc(100vw - 20px), 420px); transform: translateX(50%); }.toast { padding: 9px; font-size: 13px; }.toast-actions { margin-top: 6px; }
}

@media (max-width: 768px) and (orientation: landscape) { .page-shell { margin-top: 8px; }.hero-card { padding: 11px; }.station-state { margin-top: 8px; }.app-footer { padding: 8px; } }
