/* ─────────────────────────────────────────────
   wowobot Demo – styles.css
   Schwarz-Gold-Theme (angelehnt an medialogix.eu)
   Gold #f3b123 · Schwarz #0e0e0e · warmes Off-White
   Hinweis: Die Marke „wowobot" bleibt bewusst cyan (#22b8e0).
   ───────────────────────────────────────────── */

:root {
  --bg:        #0e0e0e;   /* nahezu Schwarz */
  --surface:   #161616;
  --card:      #1a1a1a;   /* dunkle Karte */
  --card-2:    #121212;   /* Eingabefelder */
  --text:      #f5f1e8;   /* warmes Off-White */
  --muted:     #a8a294;   /* warmes Grau */
  --line:      #312f2a;   /* dezenter warmer Rahmen */
  --line-2:    #463f33;   /* Rahmen bei Hover */
  --brand:     #f3b123;   /* medialogix-Gold */
  --brand-dark:#d2950f;   /* Gold (Hover) */
  --gold-rgb:  243, 177, 35;
  --wowobot:   #22b8e0;   /* wowobot-Wortmarke – unverändert */
  --ok:        #4ade80;
  --err:       #f87171;
  --radius:    16px;
  --shadow:    0 24px 60px rgba(0, 0, 0, 0.55);
  --maxw:      640px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── Header ─────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: rgba(14, 14, 14, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
.brand span { color: var(--wowobot); }
.nav-cta {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover { background: rgba(var(--gold-rgb), 0.12); border-color: var(--brand); }

/* ── Hero ───────────────────────────────────── */
.hero {
  color: #fff;
  text-align: center;
  padding: 84px 22px 96px;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(var(--gold-rgb), 0.20), transparent 60%),
    linear-gradient(180deg, #161310 0%, #0e0e0e 100%);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.hero .sub {
  color: #cfc8b8;
  font-size: 1.08rem;
  max-width: 520px;
  margin: 0 auto 28px;
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--brand);
  color: #1a1200;
  box-shadow: 0 10px 26px rgba(var(--gold-rgb), 0.35);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; margin-top: 8px; }

/* ── Kontakt ────────────────────────────────── */
.contact {
  padding: 64px 18px 80px;
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(var(--gold-rgb), 0.07), transparent 60%),
    var(--bg);
}
.contact-card {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px 32px;
}
.contact-card h2 {
  margin: 0 0 6px;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
.contact-lead { margin: 0 0 26px; color: var(--muted); }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field input::placeholder,
.field textarea::placeholder,
.modal-search input::placeholder { color: var(--muted); opacity: 0.7; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.22);
}
.field textarea { resize: vertical; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Modus-Umschalter (suchen / bewerben) ── */
.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  margin-bottom: 22px;
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.mode-btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  padding: 11px 10px;
  min-height: 44px;
  border: none;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.mode-btn:hover { color: var(--text); }
.mode-btn.is-active {
  background: rgba(var(--gold-rgb), 0.14);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.35);
}

/* ── Topic-Trigger (öffnet den Auswahl-Dialog) ── */
.topic-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  text-align: left;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.topic-trigger:hover { border-color: var(--line-2); }
.topic-trigger:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.22);
}
.topic-trigger-img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}
.topic-trigger-label { flex: 1; font-weight: 600; }
.topic-trigger-chev { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }

/* ── Modal / Pop-up ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.18s ease;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px 24px;
  animation: popIn 0.2s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  background: #262320;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.modal-close:hover { background: #332e26; color: var(--text); }
.modal h3 { margin: 0 6px 4px 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.modal-sub { margin: 0 0 18px; color: var(--muted); font-size: 0.95rem; }

/* Suchfeld */
.modal-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.modal-search svg {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  color: var(--muted);
  pointer-events: none;
}
.modal-search input {
  width: 100%;
  padding: 13px 14px 13px 44px;
  font: inherit;
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.modal-search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.22);
}

/* Karten-Raster */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 16px 10px 14px;
  background: var(--card-2);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.18s;
}
.topic-card[hidden] { display: none; }
.topic-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(var(--gold-rgb), 0.20);
}
.topic-card.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.28);
}
.topic-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}
.topic-card-badge {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--brand);
  background: rgba(var(--gold-rgb), 0.14);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.topic-card-name { font-weight: 700; font-size: 0.98rem; }
.topic-card-role { font-size: 0.78rem; color: var(--muted); line-height: 1.3; }
.topic-empty { text-align: center; color: var(--muted); padding: 14px 0 2px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Honeypot: visuell & für Screenreader entfernt, aber im DOM vorhanden */
.hp {
  position: absolute !important;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 6px 0 22px;
  cursor: pointer;
}
.checkbox input {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 1px;
  accent-color: var(--brand);
  cursor: pointer;
}
.checkbox a { color: var(--brand); }

.form-status {
  margin: 16px 0 0;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.2em;
}
.form-status.ok  { color: var(--ok); }
.form-status.err { color: var(--err); }

/* ── Footer ─────────────────────────────────── */
.site-footer {
  background: #000;
  color: #9b958a;
  padding: 30px 22px;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-links a {
  color: #9b958a;
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-links a:hover { color: #fff; }
.footer-branding {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  font-size: 0.88rem;
  text-align: center;
}
.footer-branding .wowobot { color: var(--wowobot); text-decoration: none; font-weight: 700; }

/* ── Responsive ─────────────────────────────── */
@media (min-width: 760px) {
  .footer-branding { text-align: right; }
}
@media (max-width: 520px) {
  .grid-2 { grid-template-columns: 1fr; }
  .contact-card { padding: 28px 20px; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 22px 18px 20px; }
}

/* ── Reduced motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .modal-overlay, .modal { animation: none !important; }
}
