/*
 * Brandakte WebApp Styles
 *
 * Ergänzt Tailwind CDN / Tailwind Build.
 * Keine Seitenlogik.
 */

:root {
  --brand-red: #e30613;
  --brand-red-2: #f21d29;
  --brand-ink: #212e36;
  --brand-text: #212e36;
  --brand-muted: #637083;
  --brand-line: #e6ebf2;
  --brand-soft: #f8fafc;
  --brand-green: #25a65b;
  --brand-blue: #5c83d8;

  --brand-shadow-soft: 0 18px 54px rgba(16, 24, 32, 0.08);
  --brand-shadow-card: 0 24px 74px rgba(16, 24, 32, 0.13);
  --brand-shadow-red: 0 16px 36px rgba(227, 6, 19, 0.27);
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.brand-page-bg {
  background:
    radial-gradient(circle at 7% 10%, rgba(227, 6, 19, 0.045), transparent 365px),
    radial-gradient(circle at 88% 3%, rgba(16, 24, 32, 0.055), transparent 430px),
    linear-gradient(180deg, #fff 0%, #f8fafc 70%, #fff 100%);
}

.brand-card {
  border: 1px solid var(--brand-line);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: var(--brand-shadow-soft);
}

.brand-card-lg {
  border: 1px solid var(--brand-line);
  border-radius: 1.875rem;
  background: #fff;
  box-shadow: var(--brand-shadow-card);
}

.brand-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-2));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--brand-shadow-red);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease;
}

.brand-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(227, 6, 19, 0.32);
}

.brand-btn-primary:active {
  transform: translateY(0);
}

.brand-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  background: #fff;
  color: #334256;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 7px 20px rgba(16, 24, 32, 0.055);
}

.brand-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  background: #fff;
  padding: 0 15px;
  color: var(--brand-text);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  box-shadow: 0 7px 20px rgba(16, 24, 32, 0.035);
}

.brand-input:focus {
  border-color: rgba(227, 6, 19, 0.35);
  box-shadow:
    0 0 0 4px rgba(227, 6, 19, 0.075),
    0 7px 20px rgba(16, 24, 32, 0.04);
}

.brand-label {
  display: block;
  margin-bottom: 8px;
  color: #334256;
  font-size: 13px;
  font-weight: 900;
}

.brand-help {
  margin-top: 7px;
  color: var(--brand-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.brand-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.brand-table th {
  border-bottom: 1px solid var(--brand-line);
  padding: 13px 16px;
  color: #8a95a6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.brand-table td {
  border-bottom: 1px solid var(--brand-line);
  padding: 14px 16px;
  color: var(--brand-text);
  font-size: 13px;
  font-weight: 650;
  vertical-align: middle;
}

.brand-table tr:last-child td {
  border-bottom: 0;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-badge-red {
  background: #fff0f1;
  color: var(--brand-red);
}

.brand-badge-green {
  background: #ecf9f1;
  color: var(--brand-green);
}

.brand-badge-blue {
  background: #edf4ff;
  color: var(--brand-blue);
}

.brand-badge-gray {
  background: #f4f6f9;
  color: #687487;
}

.brand-dropdown {
  position: absolute;
  z-index: 50;
  border: 1px solid var(--brand-line);
  border-radius: 22px;
  background: #fff;
  padding: 8px;
  box-shadow: var(--brand-shadow-card);
}

.brand-dropdown-title {
  padding: 9px 12px;
  color: #9aa5b5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 12px;
  color: #334256;
  font-size: 13px;
  font-weight: 800;
}

.brand-dropdown-item:hover {
  background: #f8fafc;
}

.brand-scrollbar {
  scrollbar-color: #cfd7e3 transparent;
  scrollbar-width: thin;
}

.brand-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.brand-scrollbar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cfd7e3;
}

.brand-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

[data-dropdown-menu],
[data-collapse-menu] {
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
}

.rotate-180 {
  transform: rotate(180deg);
}

.is-loading {
  position: relative;
  pointer-events: none;
}

.is-loading::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  animation: brand-spin 0.7s linear infinite;
}

@keyframes brand-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}