/* =========================
   Baumvolk – Support Media
   File: assets/bv-support-media-page.css
   Uses: bv-global.css variables
   ========================= */

/* ==== Hero / Intro ==== */
.bv-media-hero {
  background:
    linear-gradient(180deg, var(--bv-accent-soft), rgba(17, 228, 79, 0)) no-repeat,
    var(--bv-wrapper-bg);
  padding: clamp(32px, 6vw, 72px) var(--bv-page-spacing) clamp(12px, 2vw, 20px);
  text-align: center;
}

.bv-media-hero h1 {
  color: var(--bv-heading-color);
  margin: 0 0 6px;
  line-height: var(--bv-line-height-tight);
  letter-spacing: var(--bv-letter-spacing-wide);
  font-size: var(--bv-font-size-3xl);
  font-weight: var(--bv-font-weight-bold);
  text-shadow: 0 0 24px var(--bv-accent-soft);
}

.bv-media-hero .bv-muted {
  color: var(--bv-text-soft);
  font-size: var(--bv-font-size-base);
  line-height: var(--bv-line-height-base);
}

/* ==== Alerts ==== */
.bv-alert {
  border: 1px solid var(--bv-border-soft);
  border-left: 4px solid var(--bv-accent);
  background: var(--bv-card-bg);
  color: var(--bv-text-primary);
  border-radius: var(--bv-radius-md);
  padding: 14px 16px;
  margin: 12px auto 18px;
  max-width: 860px;
  box-shadow: var(--bv-shadow-elevated);
}

.bv-alert strong {
  display: block;
  margin-bottom: 6px;
  color: var(--bv-heading-color);
  font-weight: var(--bv-font-weight-semibold);
}

.bv-alert-sub {
  color: var(--bv-text-soft);
  font-size: var(--bv-font-size-sm);
}

.bv-alert.success {
  border-left-color: var(--bv-accent);
}

.bv-alert.error {
  border-left-color: var(--bv-danger);
}

.bv-alert.warning {
  border-left-color: var(--bv-warning);
}

.bv-alert-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.bv-alert-list li {
  position: relative;
  padding-left: 18px;
  margin: 6px 0;
  color: var(--bv-text-primary);
  font-size: var(--bv-font-size-base);
  line-height: var(--bv-line-height-base);
}

.bv-alert-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--bv-accent);
}

/* ==== Formular-Card ==== */
.bv-media-form {
  max-width: 860px;
  margin: clamp(18px, 3vw, 36px) auto 64px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--bv-card-bg);
  color: var(--bv-text-primary);
  border: 1px solid var(--bv-border-soft);
  border-radius: var(--bv-radius-lg);
  box-shadow: var(--bv-shadow-elevated);
  font-family: var(--bv-font-family);
}

.bv-form {
  display: block;
}

.bv-fieldset {
  border: 1px solid var(--bv-border-soft);
  border-radius: var(--bv-radius-md);
  padding: 16px;
  margin: 0 0 14px;
  background: var(--bv-surface-soft);
}

.bv-fieldset > legend {
  display: inline-block;
  width: auto;
  margin-left: 12px;
  padding: 2px 10px;
  font-size: var(--bv-font-size-sm);
  color: var(--bv-legend-color);
  background: var(--bv-card-bg);
  border-radius: var(--bv-radius-pill);
  border: 1px solid var(--bv-border-subtle);
}

.bv-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}

.bv-field > span {
  font-size: var(--bv-font-size-base);
  color: var(--bv-heading-color);
  font-weight: var(--bv-font-weight-medium);
}

/* ==== Inputs ==== */
.bv-field input[type="text"],
.bv-field input[type="email"],
.bv-field textarea,
.bv-field select {
  width: 100%;
  box-sizing: border-box;
  background: var(--bv-input-bg);
  color: var(--bv-input-text);
  border: 1px solid var(--bv-input-border);
  border-radius: var(--bv-input-radius);
  padding: 10px 12px;
  font-size: var(--bv-font-size-base);
  line-height: var(--bv-line-height-base);
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    background-color .15s ease;
}

.bv-field textarea {
  resize: vertical;
  min-height: 96px;
}

.bv-field input::placeholder,
.bv-field textarea::placeholder {
  color: var(--bv-placeholder-color);
}

.bv-field input:focus,
.bv-field textarea:focus,
.bv-field select:focus {
  outline: none;
  background: var(--bv-input-bg-focus);
  border-color: var(--bv-accent);
  box-shadow: 0 0 0 3px var(--bv-accent-soft);
}

/* ==== Datei-Input ==== */
.bv-field input[type="file"] {
  background: var(--bv-card-soft);
  border: 1px dashed var(--bv-upload-border);
  padding: 10px;
  border-radius: var(--bv-radius-sm);
  color: var(--bv-upload-text);
}

.bv-field input[type="file"]:hover {
  border-color: var(--bv-upload-border-hover);
}

.bv-hint {
  color: var(--bv-text-soft);
  font-size: var(--bv-font-size-sm);
  line-height: var(--bv-line-height-base);
}

/* ==== Checks ==== */
.bv-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
}

.bv-check input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--bv-input-border);
  border-radius: 6px;
  background: var(--bv-card-soft);
  position: relative;
  margin-top: 2px;
  flex: 0 0 auto;
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    background-color .15s ease;
}

.bv-check input[type="checkbox"]:checked {
  background: var(--bv-accent);
  border-color: var(--bv-accent);
}

.bv-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: 2px solid var(--bv-selection-text);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.bv-check span {
  color: var(--bv-text-primary);
  font-size: var(--bv-font-size-base);
  line-height: var(--bv-line-height-base);
}

/* ==== Aktionen ==== */
.bv-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.bv-small.muted {
  color: var(--bv-text-soft);
  font-size: var(--bv-font-size-sm);
  line-height: var(--bv-line-height-base);
}

/* ==== Button ==== */
.bv-btn {
  display: inline-flex !important;
  align-items: center!important;
  justify-content: center!important;
  min-height: 40px!important;
  padding: 10px 16px!important;
  background: var(--bv-accent)!important;
  color: var(--bv-selection-text)!important;
  border: 0!important;
  border-radius: var(--bv-radius-pill)!important;
  font-size: var(--bv-font-size-base)!important;
  font-weight: var(--bv-font-weight-semibold)!important;
  text-decoration: none!important;
  cursor: pointer!important;
  width: fit-content;
}

.bv-btn:hover,
.bv-btn:focus {
  transform: translateY(-1px);
  background: var(--bv-accent-bright);
  color: var(--bv-selection-text) !important;
  outline: none;
}

.bv-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 12px rgba(17, 228, 79, .25);
}

/* ==== A11y ==== */
.bv-media-form :where(a, button, [tabindex], input, select, textarea):focus-visible {
  outline: 2px solid var(--bv-accent);
  outline-offset: 2px;
  border-radius: var(--bv-radius-xs);
}

::selection {
  background: var(--bv-accent);
  color: var(--bv-selection-text);
}

/* ==== Responsive ==== */
@media (max-width: 680px) {
  .bv-media-form {
    margin-left: var(--bv-page-spacing);
    margin-right: var(--bv-page-spacing);
  }
}

/* ==== Reduced Motion ==== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==== Print ==== */
@media print {
  body {
    background: var(--bv-print-bg) !important;
    color: var(--bv-print-text) !important;
  }

  .bv-media-hero {
    background: var(--bv-print-bg) !important;
    padding: 0 0 8px;
    text-align: left;
    border-bottom: 1px solid var(--bv-print-border);
  }

  .bv-media-hero h1 {
    color: var(--bv-print-text) !important;
    text-shadow: none !important;
  }

  .bv-media-form {
    box-shadow: none !important;
    border: 0 !important;
    padding: 0;
    margin: 12px 0 0 0;
    max-width: 100%;
    background: var(--bv-print-bg) !important;
  }

  .bv-alert {
    box-shadow: none !important;
  }
}

/*upload loading */
.bv-upload-loading {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bv-overlay-dark-strong);
  align-items: center;
  justify-content: center;
  padding: var(--bv-page-spacing);
}

.bv-upload-loading.is-active {
  display: flex;
}

.bv-upload-loading-box {
  width: min(320px, 100%);
  padding: 24px;
  border-radius: var(--bv-radius-lg);
  background: var(--bv-card-bg);
  border: 1px solid var(--bv-border-soft);
  box-shadow: var(--bv-shadow-elevated);
  text-align: center;
  color: var(--bv-text-primary);
}

.bv-upload-loading-box p {
  margin: 14px 0 0;
  font-size: var(--bv-font-size-base);
}

.bv-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 50%;
  border: 4px solid var(--bv-border-soft);
  border-top-color: var(--bv-accent);
  animation: bv-spin .8s linear infinite;
}

@keyframes bv-spin {
  to {
    transform: rotate(360deg);
  }
}