/* Immo Lunchrunde Hamburg — eigener Token-Satz, bewusst NICHT AIMI.
 * Look: hanseatisch, dezent, hochwertig. Navy wie die Elbe bei Nacht,
 * Papierton wie ein guter Briefbogen, ein Hauch Backstein. */

:root {
  --il-navy: #0b2438;
  --il-navy-soft: #16374f;
  --il-ink: #22313c;
  --il-muted: #5f6f7a;
  --il-paper: #faf7f1;
  --il-sand: #f0eadd;
  --il-line: #e2dbcc;
  --il-brick: #a8452e;
  --il-brick-soft: #f3e2db;
  --il-gold: #b98d2f;
  --il-sea: #2e6f8e;
  --il-sea-soft: #e3edf2;
  --il-green: #3d7a4f;
  --il-green-soft: #e2efe5;
  --il-white: #ffffff;
  --il-radius: 14px;
  --il-shadow: 0 2px 10px rgba(11, 36, 56, 0.07), 0 12px 32px rgba(11, 36, 56, 0.06);
  --il-serif: Georgia, "Times New Roman", serif;
  --il-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--il-sans);
  color: var(--il-ink);
  background: var(--il-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .il-serif { font-family: var(--il-serif); font-weight: 600; color: var(--il-navy); }

button { font-family: inherit; cursor: pointer; }

/* ---------- Gate (Losungswort) ---------- */

/* ---------- Kopf & Navigation ---------- */

.il-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 32px;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--il-line);
}

.il-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--il-navy); }

.il-brand-mark { width: 34px; height: 34px; color: var(--il-navy); }

.il-brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.il-brand-name { font-family: var(--il-serif); font-size: 17px; font-weight: 700; }

.il-brand-city { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--il-brick); }

.il-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }

.il-nav a {
  padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--il-ink); font-size: 14px; font-weight: 500;
  transition: background 0.15s;
}

.il-nav a:hover { background: var(--il-sand); }

.il-nav a.active { background: var(--il-navy); color: #fff; }

.il-loading { padding: 60px 0; text-align: center; color: var(--il-muted); font-size: 14px; }

/* ---------- Layout ---------- */

.il-main { max-width: 1120px; margin: 0 auto; padding: 36px 32px 72px; }

.il-section { margin-bottom: 56px; }

.il-section-head { margin-bottom: 22px; }

.il-section-head h2 { font-size: 27px; margin-bottom: 6px; }

.il-section-head p { color: var(--il-muted); max-width: 640px; }

.il-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--il-brick);
  margin-bottom: 8px;
}

/* ---------- Hero ---------- */

.il-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--il-paper) 78%);
  border: 1px solid var(--il-line);
  border-radius: 24px;
  padding: 72px 56px 0;
  margin-bottom: 56px;
  text-align: center;
}

.il-hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.12; margin-bottom: 18px; }

.il-hero h1 em { font-style: normal; color: var(--il-brick); }

.il-hero-sub { max-width: 620px; margin: 0 auto 28px; font-size: 17px; color: var(--il-muted); }

.il-hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }

.il-hero-skyline { display: block; width: min(980px, 100%); margin: 0 auto -4px; opacity: 0.9; }

/* ---------- Buttons ---------- */

.il-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: none;
  font-size: 15px; font-weight: 600; text-decoration: none;
  background: var(--il-navy); color: #fff;
  transition: background 0.15s, transform 0.1s;
}

.il-btn:hover { background: var(--il-navy-soft); }

.il-btn:active { transform: scale(0.98); }

.il-btn.il-btn-ghost { background: transparent; color: var(--il-navy); border: 1.5px solid var(--il-navy); }

.il-btn.il-btn-ghost:hover { background: var(--il-sand); }

.il-btn.il-btn-small { padding: 7px 14px; font-size: 13px; }

.il-btn.il-btn-wa { background: #1fa855; }

.il-btn.il-btn-wa:hover { background: #179248; }

/* ---------- Zahlen-Leiste ---------- */

.il-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }

.il-stat {
  background: var(--il-white); border: 1px solid var(--il-line); border-radius: var(--il-radius);
  padding: 22px 20px; box-shadow: var(--il-shadow);
}

.il-stat-value { font-family: var(--il-serif); font-size: 34px; font-weight: 700; color: var(--il-navy); }

.il-stat-label { font-size: 13px; color: var(--il-muted); margin-top: 2px; }

/* ---------- Karten & Grids ---------- */

.il-grid { display: grid; gap: 18px; }

.il-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.il-grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.il-card {
  background: var(--il-white); border: 1px solid var(--il-line);
  border-radius: var(--il-radius); padding: 24px; box-shadow: var(--il-shadow);
}

.il-card h3 { font-size: 18px; margin-bottom: 8px; }

.il-card p { font-size: 14.5px; color: var(--il-muted); }

.il-card-step {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--il-brick-soft); color: var(--il-brick);
  font-family: var(--il-serif); font-weight: 700; font-size: 16px;
  margin-bottom: 14px;
}

/* ---------- Kategorien-Balken ---------- */

.il-cat-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }

.il-cat-label { width: 190px; font-size: 13.5px; color: var(--il-ink); flex-shrink: 0; }

.il-cat-track { flex: 1; height: 10px; background: var(--il-sand); border-radius: 999px; overflow: hidden; }

.il-cat-fill { height: 100%; background: var(--il-sea); border-radius: 999px; }

.il-cat-count { width: 36px; text-align: right; font-size: 12.5px; color: var(--il-muted); }

/* ---------- Zitat ---------- */

.il-quote {
  background: var(--il-navy); color: #fff; border-radius: 24px;
  padding: 48px 56px; text-align: center;
}

.il-quote blockquote { font-family: var(--il-serif); font-size: clamp(20px, 3vw, 28px); line-height: 1.4; }

.il-quote figcaption { margin-top: 14px; font-size: 13.5px; opacity: 0.75; }

/* ---------- Event-Posts (Feed im Post-Stil) ---------- */

.il-post {
  background: var(--il-white); border: 1px solid var(--il-line);
  border-radius: var(--il-radius); box-shadow: var(--il-shadow);
  padding: 24px 26px; margin-bottom: 20px;
}

.il-post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.il-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--il-navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--il-serif); font-weight: 700; font-size: 16px;
}

.il-avatar.il-avatar-sand { background: var(--il-sea); }

.il-post-meta { flex: 1; }

.il-post-author { font-weight: 600; font-size: 14.5px; color: var(--il-navy); }

.il-post-sub { font-size: 12.5px; color: var(--il-muted); }

.il-post h3 { font-size: 20px; margin-bottom: 6px; }

.il-post-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 10px 0 12px; font-size: 14px; color: var(--il-ink); }

.il-post-facts strong { color: var(--il-navy); }

.il-post-note { font-size: 14px; color: var(--il-muted); margin-bottom: 14px; }

.il-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

.il-badge-upcoming { background: var(--il-green-soft); color: var(--il-green); }

.il-badge-past { background: var(--il-sand); color: var(--il-muted); }

.il-badge-full { background: var(--il-brick-soft); color: var(--il-brick); }

/* Kapazität */

.il-capacity { margin: 12px 0 16px; }

.il-capacity-track { height: 8px; background: var(--il-sand); border-radius: 999px; overflow: hidden; }

.il-capacity-fill { height: 100%; background: var(--il-sea); border-radius: 999px; }

.il-capacity-fill.over { background: var(--il-brick); }

.il-capacity-text { font-size: 12.5px; color: var(--il-muted); margin-top: 5px; }

/* Buffet-Liste */

.il-buffet { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }

.il-buffet-item {
  border: 1.5px solid var(--il-line); background: var(--il-paper);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--il-ink);
  transition: all 0.15s;
}

.il-buffet-item.claimed { border-color: var(--il-green); background: var(--il-green-soft); color: var(--il-green); }

/* Anmelde-Formular */

.il-signup { border-top: 1px dashed var(--il-line); margin-top: 16px; padding-top: 16px; }

.il-signup-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }

.il-signup input, .il-signup select {
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  border: 1.5px solid var(--il-line); border-radius: 10px;
  background: var(--il-white); color: var(--il-ink); width: 100%;
}

.il-signup input:focus, .il-signup select:focus { outline: none; border-color: var(--il-sea); }

.il-signup-confirm {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--il-green-soft); border-radius: 10px;
  padding: 14px 16px; font-size: 14px; color: var(--il-green);
}

/* ---------- Cockpit ---------- */

.il-cockpit-intro {
  display: flex; gap: 14px; align-items: center;
  background: linear-gradient(135deg, var(--il-navy) 0%, var(--il-navy-soft) 100%);
  color: #fff; border-radius: var(--il-radius);
  padding: 20px 24px; margin-bottom: 24px;
}

.il-cockpit-intro p { font-size: 14px; opacity: 0.92; }

.il-cockpit-intro strong { color: #fff; }

.il-agent-dot {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, #4d94b8, var(--il-sea));
  box-shadow: 0 0 0 4px rgba(46, 111, 142, 0.25);
}

.il-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

.il-tab {
  border: 1.5px solid var(--il-line); background: var(--il-white);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: var(--il-ink);
}

.il-tab.active { background: var(--il-navy); border-color: var(--il-navy); color: #fff; }

.il-person-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--il-white); border: 1px solid var(--il-line);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 10px;
}

.il-person-row.waitlisted { background: var(--il-paper); border-style: dashed; }

.il-person-main { flex: 1; min-width: 0; }

.il-person-name { font-weight: 600; font-size: 14.5px; color: var(--il-navy); }

.il-person-sub { font-size: 12.5px; color: var(--il-muted); }

.il-reason {
  display: inline-block;
  font-size: 12.5px; line-height: 1.45; color: var(--il-sea);
  background: var(--il-sea-soft); border-radius: 10px; padding: 5px 12px;
  margin-top: 5px; max-width: 100%; text-align: left;
}

.il-reason.il-reason-wait { color: var(--il-gold); background: #f5edd8; }

.il-person-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.il-status-pill { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: none; font-family: inherit; }

.il-status-invited { background: var(--il-sea-soft); color: var(--il-sea); }

.il-status-yes { background: var(--il-green-soft); color: var(--il-green); }

.il-status-no { background: var(--il-brick-soft); color: var(--il-brick); }

.il-status-open { background: var(--il-sand); color: var(--il-muted); }

.il-icon-btn {
  border: 1px solid var(--il-line); background: var(--il-white);
  border-radius: 8px; padding: 6px 10px; font-size: 12.5px; color: var(--il-ink);
}

.il-icon-btn:hover { border-color: var(--il-navy); }

.il-icon-btn.danger:hover { border-color: var(--il-brick); color: var(--il-brick); }

/* Copy-Block */

.il-copyblock {
  background: var(--il-navy); color: #dcE6ec; border-radius: var(--il-radius);
  padding: 20px 22px; font-size: 13.5px; line-height: 1.6;
  white-space: pre-wrap; font-family: var(--il-sans);
  position: relative;
}

.il-copyblock button { position: absolute; top: 14px; right: 14px; }

/* Mitglieder-Tabelle */

.il-table-tools { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }

.il-table-tools input, .il-table-tools select {
  padding: 9px 12px; font-size: 13.5px; font-family: inherit;
  border: 1.5px solid var(--il-line); border-radius: 10px; background: var(--il-white);
}

.il-table-wrap { overflow-x: auto; background: var(--il-white); border: 1px solid var(--il-line); border-radius: var(--il-radius); }

.il-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.il-table th {
  text-align: left; padding: 12px 16px; font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--il-muted); border-bottom: 1px solid var(--il-line);
  white-space: nowrap;
}

.il-table td { padding: 11px 16px; border-bottom: 1px solid #f0ece2; }

.il-table tr:last-child td { border-bottom: none; }

.il-attendance-dots { display: inline-flex; gap: 3px; }

.il-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--il-sand); }

.il-dot.on { background: var(--il-sea); }

/* ---------- Roulette ---------- */

.il-match {
  display: flex; align-items: center; gap: 16px;
  background: var(--il-white); border: 1px solid var(--il-line);
  border-radius: var(--il-radius); padding: 18px 22px; margin-bottom: 14px;
  box-shadow: var(--il-shadow);
}

.il-match-pair { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.il-match-amp { font-family: var(--il-serif); font-size: 20px; color: var(--il-brick); }

.il-match-body { flex: 1; min-width: 0; }

.il-match-names { font-weight: 600; font-size: 14.5px; color: var(--il-navy); }

.il-match-intro { font-size: 13.5px; color: var(--il-muted); margin-top: 3px; }

/* ---------- Fußzeile ---------- */

.il-footer {
  border-top: 1px solid var(--il-line);
  padding: 22px 32px 28px; text-align: center;
  font-size: 12.5px; color: var(--il-muted);
  display: flex; flex-direction: column; gap: 6px;
}

.il-footer-credit strong { color: var(--il-navy); letter-spacing: 0.04em; }

/* ---------- Kleinkram ---------- */

.il-empty {
  text-align: center; padding: 36px 20px; color: var(--il-muted);
  border: 1.5px dashed var(--il-line); border-radius: var(--il-radius); font-size: 14px;
}

.il-note { font-size: 12.5px; color: var(--il-muted); }

.il-field-wide {
  width: 100%; margin-bottom: 10px; padding: 9px 12px; font-size: 14px;
  border: 1.5px solid var(--il-line); border-radius: 9px;
  background: var(--il-white); color: var(--il-ink); font-family: inherit;
}
.il-field-wide:focus { outline: none; border-color: var(--il-sea); }

.il-person-interests { font-size: 12.5px; color: var(--il-sea); margin-top: 2px; }

.il-consent {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12.5px; color: var(--il-muted); line-height: 1.5; margin-bottom: 12px;
}
.il-consent input { margin-top: 2px; flex-shrink: 0; }
.il-consent a { color: var(--il-sea); }

.il-signup-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.il-linkbtn {
  border: none; background: none; padding: 0; margin-top: 6px;
  color: var(--il-sea); font-size: 13px; text-decoration: underline; cursor: pointer;
  font-family: inherit;
}
.il-linkbtn:hover { color: var(--il-brick); }

.il-footer-links a { color: var(--il-muted); text-decoration: none; }
.il-footer-links a:hover { color: var(--il-navy); text-decoration: underline; }

/* AIMI-Signatur im Footer — dezent: Wortmarke als Text (die gelieferten Wortmarken-SVGs brauchen
   die Inter-Font und brechen sonst), Orange ausschließlich als Bildmarke/Punkt, nie als Fließtext. */
.il-footer-credit {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--il-muted); text-decoration: none; font-size: 12.5px;
  opacity: 0.85; transition: opacity 0.15s, color 0.15s;
}
.il-footer-credit:hover { opacity: 1; color: var(--il-navy); }
.il-aimi-mark { width: 16px; height: 16px; display: block; flex-shrink: 0; }
.il-aimi-word { font-weight: 700; letter-spacing: 0.02em; color: var(--il-navy); }
.il-aimi-dot { color: #ff6101; }

/* ---------- Cockpit: Login, Topbar, Event-Formular ---------- */

.il-login { display: flex; justify-content: center; padding: 60px 0; }
.il-login-card {
  width: min(400px, 100%);
  background: var(--il-white); border: 1px solid var(--il-line);
  border-radius: var(--il-radius); box-shadow: var(--il-shadow);
  padding: 32px; text-align: center;
}
.il-login-card h2 { margin-bottom: 6px; }
.il-login-card p { color: var(--il-muted); font-size: 14px; margin-bottom: 20px; }
.il-login-card form { display: flex; gap: 10px; }
.il-login-card input {
  flex: 1; padding: 11px 14px; font-size: 15px;
  border: 1.5px solid var(--il-line); border-radius: 10px;
  background: var(--il-white); color: var(--il-ink); font-family: inherit;
}
.il-login-card input:focus { outline: none; border-color: var(--il-sea); }
.il-login-error { margin-top: 14px; color: var(--il-brick); font-size: 13px; }

.il-cockpit-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.il-cockpit-session { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }

.il-eventform {
  background: var(--il-white); border: 1px solid var(--il-line);
  border-radius: var(--il-radius); box-shadow: var(--il-shadow); padding: 20px;
}
.il-eventform-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 10px; }
.il-eventform input, .il-eventform select {
  padding: 9px 12px; font-size: 14px;
  border: 1.5px solid var(--il-line); border-radius: 9px;
  background: var(--il-white); color: var(--il-ink); font-family: inherit;
}
.il-eventform input:focus, .il-eventform select:focus { outline: none; border-color: var(--il-sea); }

/* ---------- Rechtstexte (Datenschutz / Impressum) ---------- */

.il-legal { max-width: 760px; }
.il-legal h1 { font-size: 30px; margin-bottom: 18px; }
.il-legal h2 { font-size: 18px; margin: 28px 0 8px; }
.il-legal p { color: var(--il-ink); font-size: 15px; line-height: 1.65; margin-bottom: 6px; }
.il-legal .il-note { color: var(--il-muted); }
.il-legal-back { margin-top: 36px; }
.il-legal-back a { color: var(--il-sea); text-decoration: none; }
.il-legal-back a:hover { text-decoration: underline; }

/* ---------- Mobile: nicht kaputt ---------- */

@media (max-width: 760px) {
  .il-header { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .il-main { padding: 20px 16px 56px; }
  .il-hero { padding: 44px 22px 0; }
  .il-quote { padding: 32px 24px; }
  .il-signup-fields { grid-template-columns: 1fr; }
  .il-eventform-fields { grid-template-columns: 1fr; }
  .il-cat-label { width: 130px; }
  .il-person-row { flex-wrap: wrap; }
}
