/* Marken-Komponenten, abgeleitet aus dem Website-Repo (global.css).
   Bewusst als reines CSS, damit es in Dev (Tailwind CDN) und Produktion
   (gebaute app.css) identisch wirkt. Farben siehe specs/design-und-ux.md. */

:root {
  --petrol: #0E3F3D;
  --petrol-700: #155653;
  --petrol-900: #082624;
  --teal: #2BBFB6;
  --signal: #7C3AED;
  --signal-700: #6D28D9;
  --ink: #0B1F1E;
  --paper: #F7FAF9;
  --line: #E5EEEC;
}

[x-cloak] { display: none !important; }

.tabular { font-variant-numeric: tabular-nums; }
.metric { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: .75rem; background: var(--signal); color: #fff;
  padding: .75rem 1.5rem; font-weight: 600; font-size: 1rem;
  box-shadow: 0 10px 30px -10px rgba(124,58,237,.45);
  transition: transform .15s, background .15s; cursor: pointer; border: 0;
}
.btn-primary:hover { background: var(--signal-700); transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: .75rem; background: #fff; color: var(--petrol);
  padding: .75rem 1.5rem; font-weight: 600; font-size: 1rem;
  border: 1px solid rgba(14,63,61,.2); transition: border-color .15s; cursor: pointer;
}
.btn-secondary:hover { border-color: rgba(14,63,61,.5); }

.card {
  border-radius: 1rem; border: 1px solid var(--line); background: #fff;
  padding: 1rem; box-shadow: 0 8px 30px -12px rgba(14,63,61,.25);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 9999px; border: 1px solid rgba(43,191,182,.3); background: rgba(43,191,182,.1);
  padding: .25rem .75rem; font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .15em; color: var(--teal);
}

.blueprint-card { position: relative; }
.blueprint-card::before, .blueprint-card::after {
  content: ""; position: absolute; width: 10px; height: 10px;
  border-color: currentColor; opacity: .35; pointer-events: none;
}
.blueprint-card::before { top: -1px; left: -1px; border-top: 1.5px solid; border-left: 1.5px solid; }
.blueprint-card::after { bottom: -1px; right: -1px; border-bottom: 1.5px solid; border-right: 1.5px solid; }

.bg-grid {
  background-image:
    linear-gradient(rgba(127,217,211,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,217,211,.07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.bg-grid-light {
  background-image:
    linear-gradient(rgba(14,63,61,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,63,61,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* App-eigene Bausteine */
.input {
  width: 100%; border-radius: .75rem; border: 1px solid var(--line);
  padding: .65rem .85rem; font-size: 1rem; background: #fff; color: var(--ink);
}
.input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

.status-chip {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 32px;
  border-radius: 9999px; padding: .2rem .6rem; font-size: .72rem; font-weight: 600;
  background: rgba(14,63,61,.06); color: var(--petrol); cursor: pointer; border: 0;
}
.status-chip .dot { width: 8px; height: 8px; border-radius: 9999px; }

.chan-dot { width: 9px; height: 9px; border-radius: 9999px; display: inline-block; }

.fab {
  position: fixed; right: 1rem; bottom: 5rem; z-index: 50;
  width: 56px; height: 56px; border-radius: 9999px; border: 0; cursor: pointer;
  background: var(--signal); color: #fff; font-size: 1.6rem; line-height: 1;
  box-shadow: 0 10px 30px -10px rgba(124,58,237,.45);
}

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: 56px; font-size: .7rem; font-weight: 600; color: rgba(14,63,61,.55);
}
.nav-item.is-active { color: var(--teal); }

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(8,38,36,.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 36rem; max-height: 88vh; overflow-y: auto;
  background: var(--paper); border-radius: 1.25rem 1.25rem 0 0; padding: 1.25rem;
}
.sheet-row {
  display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left;
  min-height: 52px; padding: .6rem .8rem; border-radius: .75rem; border: 1px solid var(--line);
  background: #fff; font-weight: 600; color: var(--ink); cursor: pointer; margin-bottom: .5rem;
}
.sheet-row:hover { border-color: var(--teal); }

.copy-box {
  white-space: pre-wrap; background: #fff; border: 1px solid var(--line);
  border-radius: .75rem; padding: .85rem; font-size: .95rem; line-height: 1.5;
}

.seg {
  display: inline-flex; border-radius: .75rem; border: 1px solid var(--line);
  background: #fff; padding: .25rem;
}
.seg button {
  border: 0; background: transparent; cursor: pointer; border-radius: .5rem;
  padding: .5rem 1rem; font-size: .9rem; font-weight: 600; color: rgba(14,63,61,.55);
}
.seg button.is-active { background: var(--petrol); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
