/*
 * Lexware Design (brand-basics): Urbanist, Lexware Rot #FF4554 als Bühne,
 * CTA-Grün #1AA38A als einzige Button-Farbe, flache Flächen ohne Verläufe,
 * Neutral-Skala für Text/Hintergründe. Regeln: brand.md im Skill design:brand-basics.
 */

@font-face {
  font-family: 'Urbanist';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/Urbanist-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Urbanist';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/Urbanist-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Urbanist';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/Urbanist-ExtraBold.woff2') format('woff2');
}

:root {
  --lex-red: #ff4554;          /* Markenfarbe — nie für Buttons */
  --cta: #1aa38a;              /* CTA-Grün — einzige Button-/CTA-Farbe */
  --cta-hover: #178e79;        /* Mint 650 */
  --text: #131010;             /* Neutral 12 */
  --text-muted: #7a6666;       /* Neutral 8 */
  --surface: #ffffff;          /* Neutral 0 */
  --surface-soft: #f3f1f1;     /* Neutral 2 */
  --bg: #fcfafa;               /* Neutral 1 — Softes Weiß */
  --line: #eae6e6;             /* Neutral 3 */
  --error-bg: #fbebec;         /* Error 50 */
  --error-text: #822229;       /* Error 700 */
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Urbanist', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.03em; /* Fließtext Medium mit 3 % Laufweite */
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

header.site-header {
  background: var(--lex-red);
  color: #fff;
  padding: 2.5rem 1rem 2.75rem;
}

.header-inner {
  max-width: 640px;
  margin: 0 auto;
}

.brand-logo {
  display: block;
  height: 24px;
  width: auto;
  margin-bottom: 1.75rem;
}

header.site-header h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

header.site-header .hashtag {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 600;
}

main {
  max-width: 640px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.intro {
  color: var(--text);
  margin: 0 0 1.25rem;
}

#canvas-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

#canvas-wrap.dragging {
  outline: 3px dashed var(--cta);
  outline-offset: -3px;
}

#card-canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  cursor: grab;
}

#example-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(19, 16, 16, 0.75);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px; /* Pill — erlaubte Vollrundung */
  pointer-events: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

button,
.btn {
  appearance: none;
  border: none;
  border-radius: var(--radius);
  padding: 0.7rem 1.4rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: var(--surface-soft);
  color: var(--text);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

button:hover,
.btn:hover {
  background: var(--line);
}

button:active,
.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  background: var(--cta-hover);
}

.zoom-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.zoom-row label {
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.zoom-row input[type='range'] {
  flex: 1;
  accent-color: var(--cta);
}

.hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
}

#error {
  background: var(--error-bg);
  color: var(--error-text);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

/* Landing page */
.event-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.event-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.event-list a:hover {
  /* Schatten als Interaktions-Signal für Teaser */
  box-shadow: 0 6px 20px rgba(19, 16, 16, 0.1);
  transform: translateY(-2px);
}

.event-list .go {
  color: var(--cta);
}
