.spottext-app {
  --brand-blau: #025297;
  --brand-gelb: #ffed00;
  --ink: #21252e;
  --paper: #ffffff;
  --paper-dim: #f8f8fa;
  --body-text: #4a4f5c;
  --primary: var(--brand-blau);
  --primary-hover: #013f73;
  --focus: var(--brand-gelb);
  --focus-hover: #e6d500;
  --muted: #9a9fae;
  --icon-idle: #a7adba;
  --border: #ecedf1;
  --red: #d64545;
  --red-dim: #fce8e8;
  --font-ui: "Open Sans", "Segoe UI", sans-serif;
  min-height: 100vh;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-ui);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spottext-app *:not(svg):not(svg *) {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.spot-header {
  width: 100%;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.spot-header-inner {
  width: 100%;
  max-width: 960px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.spot-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.spot-logo {
  height: 72px;
  width: 118px;
  flex-shrink: 0;
  display: block;
  overflow: visible;
}

.spot-product {
  font-size: 13px;
  color: var(--muted);
}

.spot-stage {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.spot-in {
  animation: spot-in 0.28s ease-out both;
}

@keyframes spot-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes spot-spin {
  to {
    transform: rotate(360deg);
  }
}

.spot-start {
  width: 100%;
  max-width: 560px;
  padding: 12vh 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.spot-hero {
  margin: 0;
  font-weight: 700;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--brand-blau);
}

.spot-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 420px;
  text-wrap: pretty;
}

.spot-start-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.spot-duration {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.spot-form {
  width: 100%;
  max-width: 640px;
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.spot-progress {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spot-progress-bars {
  display: flex;
  gap: 6px;
}

.spot-progress-bars span {
  height: 2px;
  flex: 1;
  background: var(--border);
}

.spot-progress-bars span.is-on {
  background: var(--primary);
}

.spot-progress-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.spot-progress-title h2 {
  margin: 0;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  color: var(--brand-blau);
}

.spot-step-count {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.spot-fields {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.spot-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.spot-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}

.spot-usp-meter {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spot-usp-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.spot-usp-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  border-radius: 999px;
  background: #d64545;
  transition: width 0.12s ease, background-color 0.12s ease;
}

.spot-limits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 720px) {
  .spot-limits {
    grid-template-columns: 1fr;
  }
}

.spot-usp-label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.spot-usp-meter[data-state="short"] .spot-usp-label,
.spot-usp-meter[data-state="good"] .spot-usp-label,
.spot-usp-meter[data-state="long"] .spot-usp-label {
  font-weight: 600;
}

.spot-line {
  border: none;
  border-bottom: 1.5px solid var(--border);
  background: transparent;
  border-radius: 0;
  padding: 10px 2px;
  font-size: 17px;
  font-family: var(--font-ui);
  color: var(--ink);
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}

.spot-line:focus {
  border-bottom-color: var(--primary);
}

.spot-line::placeholder {
  color: var(--icon-idle);
}

textarea.spot-line {
  resize: vertical;
  line-height: 1.5;
}

select.spot-line {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239a9fae' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 22px;
}

.spot-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.spot-error {
  font-size: 13px;
  color: var(--red);
  margin: 0;
}

.spot-banner {
  font-size: 13px;
  color: var(--red);
  background: var(--red-dim);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0;
}

.spot-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.spot-footer-note {
  font-size: 12px;
  color: var(--muted);
}

.spot-loading {
  width: 100%;
  max-width: 560px;
  padding: 20vh 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.spot-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  animation: spot-spin 0.8s linear infinite;
}

.spot-loading p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.spot-result {
  width: 100%;
  max-width: 1040px;
  padding: 40px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.spot-result-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.spot-firma {
  margin: 0;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  color: var(--brand-blau);
}

.spot-meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.spot-actions {
  display: flex;
  gap: 10px;
}

.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.spot-variant {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}

.spot-variant-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.spot-variant-head strong {
  font-size: 13px;
}

.spot-variant-head span {
  font-size: 12px;
  color: var(--muted);
}

.spot-variant textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  font-size: 16pt;
  line-height: 1.55;
  font-family: var(--font-ui);
  color: var(--ink);
  padding: 0;
  border: none;
  background: #fff;
  outline: none;
}

.spot-variant.is-favorite {
  border-top-color: var(--brand-blau);
}

.spot-fav-print {
  display: none;
  margin-left: 8px;
  font-style: normal;
  font-weight: 700;
  color: var(--brand-blau);
}

.spot-variant.is-favorite .spot-fav-print {
  display: inline;
}

.spot-variant > [data-favorite] {
  align-self: flex-start;
}

.spot-result .spot-hint {
  margin: 0 0 20px;
}

.spot-setup {
  width: 100%;
  max-width: 560px;
  padding: 16vh 24px;
}

.spot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.spot-btn:active {
  transform: translateY(1px);
}

.spot-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spot-btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.spot-btn-md {
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

.spot-btn-lg {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

.spot-btn-primary {
  background: var(--primary);
  color: #fff;
}

.spot-btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.spot-btn-danger {
  background: var(--red-dim);
  color: var(--red);
}

.spot-btn-danger:hover:not(:disabled) {
  background: #f6d4d4;
}

.spot-btn-secondary {
  background: var(--paper-dim);
  color: var(--ink);
}

.spot-btn-secondary:hover:not(:disabled) {
  background: var(--border);
}

.spot-btn-focus {
  background: var(--focus);
  color: var(--ink);
}

.spot-btn-focus:hover:not(:disabled) {
  background: var(--focus-hover);
}

.spot-print-text {
  display: none;
  font-size: 16pt;
  line-height: 1.55;
  white-space: pre-wrap;
}

.spot-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.spot-nav a {
  font-size: 13px;
  color: var(--muted);
}

.spot-nav a:hover,
.spot-nav a.is-active {
  color: var(--primary);
}

.spot-nav a.is-active {
  font-weight: 600;
}

.spot-auth .spot-line + .spot-label {
  margin-top: 20px;
}
  width: 100%;
  max-width: 720px;
  padding: 8vh 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.spot-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.spot-choice input {
  accent-color: var(--primary);
}

.spot-prompt {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.55;
  font-family: var(--font-ui);
  color: var(--ink);
  padding: 12px 0;
  border: none;
  border-bottom: 1.5px solid var(--border);
  background: #fff;
  outline: none;
}

.spot-prompt:focus {
  border-bottom-color: var(--primary);
}

.spot-ok {
  font-size: 13px;
  color: #1aa971;
  background: #e7f6ef;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0;
}

.spot-archive {
  width: 100%;
  max-width: 960px;
  padding: 8vh 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.spot-search-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.spot-search-row .spot-line {
  flex: 1;
}

.spot-archive-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 28px;
  align-items: start;
}

.spot-hit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spot-hit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper-dim);
  color: inherit;
  text-decoration: none;
}

.spot-hit strong {
  font-size: 14px;
}

.spot-hit span {
  font-size: 12px;
  color: var(--muted);
}

.spot-hit:hover,
.spot-hit.is-active {
  background: #e8f1fa;
}

.spot-hit.is-active {
  box-shadow: inset 3px 0 0 var(--primary);
}

.spot-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spot-detail h2 {
  margin: 0;
  font-size: 24px;
  color: var(--brand-blau);
}

.spot-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.spot-detail-head form {
  flex-shrink: 0;
}

.spot-detail-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.spot-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin: 0;
}

.spot-facts dt {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.spot-facts dd {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.spot-detail-spots {
  display: grid;
  gap: 16px;
}

.spot-detail-spots section {
  background: var(--paper-dim);
  border-radius: 16px;
  padding: 16px 18px;
}

.spot-detail-spots h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--primary);
}

.spot-detail-spots section.is-favorite {
  background: #e8f1f8;
  box-shadow: inset 0 0 0 1px var(--brand-blau);
}

.spot-detail-spots section.is-favorite h3 {
  color: var(--brand-blau);
}

.spot-detail-spots p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (max-width: 720px) {
  .spot-archive-grid,
  .spot-facts {
    grid-template-columns: 1fr;
  }

  .spot-search-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media print {
  .spot-no-print {
    display: none !important;
  }

  .spot-print-text {
    display: block;
  }

  .spottext-app {
    min-height: auto;
    display: block;
  }

  .spot-result {
    max-width: none;
    padding: 0;
  }

  .spot-grid {
    display: block;
  }

  .spot-variant:not(.is-favorite) {
    display: none !important;
  }

  .spot-variant textarea {
    display: none;
    min-height: auto;
    overflow: visible;
  }
}
