/* =========================================================
   STRINGING APP
   Datei: static/css/app.css

   Zweck:
   - Zentrales Styling der Stringing App
   - Keine Inline-Styles in Templates
   - Einheitlicher Look für Dashboard, Kunden, Login, Registrierung

   MOSES-STYLE / DAU-UX:
   - Ruhiges, klares Layout
   - Gute Lesbarkeit
   - Mobil nutzbar
   - Erst stabil, dann weiter veredeln
   ========================================================= */


/* =========================================================
   DESIGN TOKENS
   ========================================================= */

:root {
  --app-bg: #f4f7fb;
  --app-surface: #ffffff;
  --app-surface-soft: #f8fafc;

  --app-text: #172033;
  --app-text-soft: #64748b;
  --app-text-muted: #94a3b8;

  --app-border: rgba(15, 23, 42, 0.08);
  --app-border-strong: rgba(15, 23, 42, 0.16);

  --app-primary: #2563eb;
  --app-primary-dark: #1e40af;

  /* Helle Navigation */
  --app-nav-bg: #f8fafc;
  --app-nav-text: #172033;
  --app-nav-muted: #64748b;

  --app-radius: 18px;
  --app-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);

  --sans: "Exo 2", sans-serif;
  --mono: "Share Tech Mono", monospace;
}


/* =========================================================
   BASE
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--app-bg);
  color: var(--app-text);
}

a {
  text-decoration: none;
}

.app-shell {
  padding-top: 24px;
  padding-bottom: 48px;
}

/* Breitere Inhaltsfläche auf großen Bildschirmen */
.app-shell > .container,
.app-shell > .container-sm,
.app-shell > .container-md,
.app-shell > .container-lg,
.app-shell > .container-xl,
.app-shell > .container-xxl {
  max-width: 1320px;
}

.app-page-title {
  font-weight: 700;
  letter-spacing: -0.03em;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.app-navbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.app-navbar .navbar-brand,
.app-navbar .nav-link {
  color: var(--app-nav-text);
}

.app-navbar .nav-link {
  color: var(--app-nav-text);
  opacity: 1;
  font-weight: 600;
  border-radius: 0.5rem;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus,
.app-navbar .nav-link.active,
.app-navbar .nav-link.show {
  color: var(--app-primary);
  background: rgba(37, 99, 235, 0.07);
}

.app-navbar-brand {
  display: inline-flex;
  align-items: center;
  margin-right: 1.25rem;
  padding: 0.25rem 0;
  line-height: 1;
}
.app-navbar-logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: min(221px, 55vw);
  object-fit: contain;
  border-radius: 0.45rem;
}

.app-navbar-user {
  color: #475569;
  font-size: 0.875rem;
}

.app-navbar .navbar-toggler {
  color: var(--app-text);
  border-color: var(--app-border-strong);
}

.app-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.16);
}

.app-navbar .navbar-toggler-icon {
  filter: none;
}


/* =========================================================
   NAVIGATION – DROPDOWNS
   ========================================================= */

.app-navbar .dropdown-menu {
  padding: 0.5rem;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 0.75rem;
  box-shadow: var(--app-shadow);
}

.app-navbar .dropdown-item {
  color: var(--app-text);
  border-radius: 0.5rem;
  font-weight: 500;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.app-navbar .dropdown-item:hover,
.app-navbar .dropdown-item:focus {
  color: var(--app-primary);
  background: rgba(37, 99, 235, 0.08);
}

.app-navbar .dropdown-item.active,
.app-navbar .dropdown-item:active {
  color: #ffffff;
  background: var(--app-primary);
}

.app-navbar .dropdown-divider {
  border-color: var(--app-border);
}


/* =========================================================
   NAVIGATION – LOGOUT-BUTTON
   Unterstützt bestehende Bootstrap-Klasse btn-outline-light
   ========================================================= */

.app-navbar .btn-outline-light {
  color: var(--app-text);
  background: #ffffff;
  border-color: var(--app-border-strong);
}

.app-navbar .btn-outline-light:hover,
.app-navbar .btn-outline-light:focus {
  color: #ffffff;
  background: var(--app-primary-dark);
  border-color: var(--app-primary-dark);
}

.app-navbar .btn-outline-light:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.16);
}


/* =========================================================
   NAVIGATION – RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
  .app-navbar .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 0.75rem;
    box-shadow: var(--app-shadow);
  }

  .app-navbar .nav-link {
    padding: 0.65rem 0.75rem;
  }

  .app-navbar .dropdown-menu {
    margin-top: 0.25rem;
    box-shadow: none;
  }

  .app-navbar-user {
    display: block;
    padding: 0.65rem 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .app-navbar-logo {
    height: 36px;
    max-width: 190px;
  }
}


/* =========================================================
   CARDS
   ========================================================= */

.app-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
}

.app-card-soft {
  background: var(--app-surface-soft);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
}

.app-card-header {
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-border);
  border-radius: var(--app-radius) var(--app-radius) 0 0;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.app-stat-card .card-body {
  padding: 1.25rem;
}

.app-stat-label {
  color: var(--app-text-soft);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.app-stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}


/* =========================================================
   TABLES
   ========================================================= */

.app-table {
  margin-bottom: 0;
}

.app-table th {
  color: var(--app-text-soft);
  font-size: 0.825rem;
  font-weight: 600;
  white-space: nowrap;
}

.app-table td {
  vertical-align: middle;
}


/* =========================================================
   FORMS
   ========================================================= */

.app-form-card {
  max-width: 460px;
  margin: 48px auto;
}

.app-form-hint {
  color: var(--app-text-soft);
  font-size: 0.925rem;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {
  .app-shell {
    padding-top: 16px;
  }

  .app-page-title {
    font-size: 1.75rem;
  }

  .app-stat-value {
    font-size: 1.9rem;
  }
}


/* =========================================================
   LOKALE SCHRIFTARTEN

   Zweck:
   - Google Fonts lokal ausliefern
   - Keine externe Verbindung zu Google beim Seitenaufruf
   - Datenschutzfreundlicher Betrieb der Website
   ========================================================= */

@font-face {
  font-family: "Exo 2";
  src: url("./fonts/exo-2/exo-2-v26-latin-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Exo 2";
  src: url("./fonts/exo-2/exo-2-v26-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Exo 2";
  src: url("./fonts/exo-2/exo-2-v26-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Exo 2";
  src: url("./fonts/exo-2/exo-2-v26-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Exo 2";
  src: url("./fonts/exo-2/exo-2-v26-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Share Tech Mono";
  src: url("./fonts/share-tech-mono/share-tech-mono-v16-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* =========================================================
   HILFSKLASSEN
   ========================================================= */

.app-white-space-pre-wrap {
  white-space: pre-wrap;
}


/* =========================================================
   STRINGING APP – ANKLICKBARE DASHBOARD-KARTEN

   Zweck:
   - Kennzahlen mit Detailansicht als klickbar erkennbar machen
   - Dezente Rückmeldung ohne unruhige Dashboard-Optik
   ========================================================= */

.dashboard-link-card {
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.dashboard-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.dashboard-link-card:focus-within {
  outline: 3px solid rgba(var(--bs-primary-rgb), 0.25);
  outline-offset: 2px;
}

.review-comment-cell {
  min-width: 16rem;
  max-width: 34rem;
  white-space: normal;
}


/* =========================================================
   DEMO-ZUGÄNGE / LOGIN-PROTOKOLL
   ========================================================= */

.demo-access-actions {
  min-width: 430px;
}

.login-user-agent {
  max-width: 380px;
}