/* Berlin Health AI Night — v1 styles
   Look follows the event key visual: deep navy, red-to-steel-blue glow, faint grid, bold wide type.
   Fonts are self-hosted (no Google Fonts requests, GDPR-friendly). */

@font-face { font-family: "Syne"; src: url("../fonts/syne-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Syne"; src: url("../fonts/syne-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy-900: #0f1430;
  --navy-800: #141a38;
  --navy-700: #1d2550;
  --steel: #3d6a9a;
  --plum: #7a4258;
  --salmon: #ff7063;
  --salmon-soft: #ffa89e;
  --text: #ffffff;
  --text-muted: #c3c8dc;
  --text-dim: #8d93ad;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.04);
  --radius: 14px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--navy-900);
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, rgba(61, 106, 154, 0.45), transparent 60%),
    radial-gradient(50rem 40rem at 10% 30%, rgba(122, 66, 88, 0.45), transparent 60%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--salmon-soft); text-underline-offset: 3px; }
a:hover { color: var(--salmon); }
:focus-visible { outline: 2px solid var(--salmon); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: "Syne", "Inter", sans-serif; font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h2 { font-size: clamp(30px, 4.4vw, 48px); }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-muted); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--salmon-soft); margin-bottom: 14px; display: inline-block; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(15, 20, 48, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { font-family: "Syne", sans-serif; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand span { color: var(--salmon); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav .btn { padding: 9px 16px; font-size: 14px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #1a0f12; }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease; cursor: pointer; }
.btn-primary { background: var(--salmon); color: #1a0f12; }
.btn-primary:hover { background: #ff8578; color: #1a0f12; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

/* Hero */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-art { position: relative; }
.hero-art img {
  width: 100%;
  border-radius: var(--radius);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-composite: intersect;
}
.hero-tagline { font-family: "Syne", sans-serif; font-weight: 800; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.0; letter-spacing: -0.015em; max-width: 12em; margin: 0 0 16px; color: var(--text); }
.hero-lead { font-size: 17px; max-width: 32em; margin: 0; }

.next-card { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, rgba(255,112,99,0.10), rgba(61,106,154,0.10)); }
.next-card .eyebrow { margin-bottom: 8px; }
.next-date { font-family: "Syne", sans-serif; font-weight: 800; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; margin: 0 0 6px; }
.next-meta { margin: 0 0 4px; color: var(--text); font-weight: 500; }
.next-theme { margin: 0; color: var(--text-dim); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 520px; margin: 0 auto; }
}

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: rgba(255,255,255,0.025); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 40px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.pillar .num { font-family: "Syne", sans-serif; font-weight: 800; color: var(--salmon); font-size: 15px; margin-bottom: 10px; display: block; }
.pillar p { margin: 0; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* Editions */
.edition { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.edition-meta .tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--text-muted); margin-bottom: 14px; }
.edition-meta h3 { font-size: 26px; margin-bottom: 8px; }
.edition-meta p { font-size: 15px; margin: 0; }
.talks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.talks li { padding-left: 18px; border-left: 2px solid var(--salmon); }
.talks strong { color: var(--text); display: block; font-weight: 600; }
.talks span { color: var(--text-muted); font-size: 15px; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 8px; }
.stat b { display: block; font-family: "Syne", sans-serif; font-size: 30px; font-weight: 800; color: var(--text); line-height: 1.1; }
.stat span { font-size: 14px; color: var(--text-dim); }
@media (max-width: 820px) { .edition { grid-template-columns: 1fr; padding: 24px; gap: 20px; } }

/* Partners */
.partner-groups { display: grid; gap: 28px; }
.partner-group h3 { font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.partner-row { display: flex; flex-wrap: wrap; gap: 12px; }
.partner { display: flex; align-items: center; justify-content: center; min-height: 72px; min-width: 200px; padding: 16px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); text-decoration: none; font-family: "Syne", sans-serif; font-weight: 700; font-size: 18px; flex: 1 1 200px; max-width: 320px; }
a.partner:hover { border-color: rgba(255,255,255,0.4); color: var(--text); }
.partner img { height: 44px; width: auto; }
.initiative { margin-top: 28px; font-size: 15px; color: var(--text-dim); }

/* Contact + newsletter */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.panel.highlight { background: linear-gradient(135deg, rgba(255,112,99,0.14), rgba(61,106,154,0.16)); }
.panel h2 { font-size: clamp(26px, 3vw, 34px); }
.form-slot { margin-top: 18px; padding: 18px; border: 1px dashed rgba(255,255,255,0.3); border-radius: 10px; color: var(--text-dim); font-size: 15px; }
.fineprint { font-size: 13px; color: var(--text-dim); margin-top: 14px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { padding: 36px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-dim); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--text-muted); text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: clamp(40px, 6vw, 80px) 0; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); }
.legal h2 { font-size: 22px; margin-top: 2em; }
.legal p, .legal li { color: var(--text-muted); }
.legal address { font-style: normal; color: var(--text-muted); margin-bottom: 1em; }

/* =====================================================================
   VARIANT B: designer palette (proposal, 2026-10-14)
   navy #141938 · salmon #FF7063 · muted light blue #4988B6 · grid #232423 (screen)
   white text · Syne Medium/Regular for secondary info · tighter line spacing
   ===================================================================== */
@font-face { font-family: "Syne"; src: url("../fonts/syne-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Syne"; src: url("../fonts/syne-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --navy-900: #141938;
  --navy-800: #141938;
  --steel: #4988B6;
  --salmon: #FF7063;
  --text-muted: rgba(255, 255, 255, 0.86);
  --text-dim: rgba(255, 255, 255, 0.64);
  --grid: #161716; /* designer grid #232423 is a photo layer; flat CSS lines need to be darker to look as soft */
}

/* 1. Flat navy + grid as the base (designer's simplified background 1) */
body {
  background-color: #141938;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 36px 36px, 36px 36px;
  background-blend-mode: screen, screen;
}

/* 2. Hero + newsletter: navy → light blue gradient + salmon glow behind the visual */
.hero, #newsletter {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    radial-gradient(38rem 30rem at 72% 50%, rgba(255, 112, 99, 0.38), transparent 70%),
    linear-gradient(100deg, #141938 0%, #233462 45%, #4988B6 100%);
  background-size: 36px 36px, 36px 36px, auto, auto;
  background-blend-mode: screen, screen, normal, normal;
}
#newsletter {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(100deg, #141938 0%, #233462 50%, #4988B6 100%);
  background-size: 36px 36px, 36px 36px, auto;
  background-blend-mode: screen, screen, normal;
}
.section-alt { background: transparent; }
.site-header { background: rgba(20, 25, 56, 0.85); }

/* 3. Tighter line spacing on display type */
h1, h2, h3 { line-height: 0.96; }
.hero-tagline { line-height: 0.94; }
.next-date { line-height: 1.0; }

/* 4. Salmon = the most important info */
.eyebrow { color: var(--salmon); }
.next-date { color: var(--salmon); }
.pillar .num { color: var(--salmon); }
.talks li { border-left-color: var(--salmon); }

/* 5. Syne Medium/Regular for secondary info */
.eyebrow, .edition-meta .tag, .partner-group h3, .stat span, .next-meta, .btn, .nav a {
  font-family: "Syne", "Inter", sans-serif;
  font-weight: 500;
}
.next-meta { font-size: 18px; }
.edition-meta p, .next-theme { font-family: "Syne", "Inter", sans-serif; font-weight: 400; }

/* Cards a touch more solid so text stays readable on the gradient */
.next-card, .pillar, .edition, .partner, .panel { background: rgba(20, 25, 56, 0.55); border-color: rgba(255, 255, 255, 0.16); }
.panel.highlight { background: rgba(20, 25, 56, 0.45); }

/* Softer edge on the hero visual so it melts into the gradient */
.hero-art img {
  -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 100%), linear-gradient(#000, #000);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.hero-tagline { max-width: 14em; }

/* =====================================================================
   v1.3 feedback (Ingo 2026-10-14): boxes more visible, Edition 1 in salmon,
   clear separation between sections
   ===================================================================== */
/* Boxes: back to the lighter white tint so they stand out from the background */
.next-card, .pillar, .edition, .partner, .panel {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.20);
}
.next-card { background: linear-gradient(135deg, rgba(255, 112, 99, 0.16), rgba(255, 255, 255, 0.07)); }
.panel.highlight { background: linear-gradient(135deg, rgba(255, 112, 99, 0.14), rgba(255, 255, 255, 0.07)); }
.edition { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 112, 99, 0.45); }

/* Next edition title */
.next-title { font-family: "Syne", "Inter", sans-serif; font-weight: 700; font-size: 19px; line-height: 1.15; color: var(--text); margin: 10px 0 4px; }

/* Edition 1 tag in salmon */
.edition-meta .tag { background: rgba(255, 112, 99, 0.16); color: var(--salmon); border: 1px solid rgba(255, 112, 99, 0.5); }

/* Section separation: alternate sections get a lighter navy band + hairlines */
.section-alt {
  background-color: #1b2147;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 36px 36px, 36px 36px;
  background-blend-mode: screen, screen;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
#newsletter { border-top: 1px solid rgba(255, 255, 255, 0.10); }

/* v1.4 feedback (Ingo 2026-10-14) */
/* Hero + newsletter boxes back to dark on the blue gradient */
.hero .next-card,
#newsletter .panel,
#newsletter .panel.highlight {
  background: rgba(20, 25, 56, 0.62);
  border-color: rgba(255, 255, 255, 0.16);
}
/* Edition box: orange only as the frame, white-tint box, neutral tag */
.edition { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--salmon); }
.edition-meta .tag { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); border: 0; }

/* Newsletter form */
.nl-form { display: grid; gap: 12px; margin-top: 18px; }
.nl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nl-form label span { display: block; font-family: "Syne", "Inter", sans-serif; font-weight: 500; font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }
.nl-form input[type=text], .nl-form input[type=email] { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.22); background: rgba(20,25,56,0.7); color: var(--text); font: inherit; font-size: 16px; }
.nl-form input:focus { outline: 2px solid var(--salmon); outline-offset: 1px; border-color: transparent; }
.nl-consent { display: flex; gap: 10px; align-items: flex-start; }
.nl-consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--salmon); flex: 0 0 auto; }
.nl-consent span { font-family: "Inter", sans-serif !important; font-weight: 400 !important; font-size: 14px !important; color: var(--text-muted) !important; margin: 0 !important; }
.nl-form .btn { justify-self: start; }
.nl-msg { margin: 0; font-size: 14px; min-height: 1.2em; }
.nl-msg.ok { color: var(--text); }
.nl-msg.err { color: var(--salmon-soft); }
@media (max-width: 520px) { .nl-row { grid-template-columns: 1fr; } }
.nl-form .req { color: var(--salmon); font-style: normal; font-weight: 600; }
.nl-required { margin: 0; font-size: 13px; color: var(--text-dim); }

/* v1.5 (Ingo 2026-10-19): designer hero is a transparent PNG, so no mask/frame needed */
.hero-art img { -webkit-mask-image: none; mask-image: none; border-radius: 0; }
