/* TEDxUni Mannheim. Committed dark look: black, white, TED red only. */
:root {
  --bg: #0a0a0a;
  --bg2: #121212;
  --fg: #f5f5f3;
  --mute: #a3a3a0;
  --line: #2a2a2a;
  --red: #e62b1e;
  --red-d: #b81f14;
  --font-d: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-b: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: 7rem;
  --r: 4px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.6 var(--font-b); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-stretch: 100%; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 var(--s2); max-width: 62ch; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.red { color: var(--red); }
.small { font-size: .875rem; color: var(--mute); }
.lead { font-size: 1.25rem; color: var(--fg); }
.eyebrow { font-family: var(--font-d); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: var(--s2); }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 700 .95rem var(--font-d); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; padding: .95rem 1.5rem; border: 2px solid transparent; border-radius: var(--r); cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-d); }
.btn--white { background: var(--fg); color: #0a0a0a; }
.btn--ghost { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn--ghost:hover { background: var(--fg); color: #0a0a0a; }
.btn--sm { padding: .55rem 1rem; font-size: .8rem; }
.btn[aria-disabled="true"] { background: var(--line); color: var(--mute); cursor: default; pointer-events: none; }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(10,10,10,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 60; }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 64px; }
.logo { display: inline-block; text-decoration: none; }
.logo img { display: block; height: 26px; width: auto; }
.foot .logo img { height: 56px; }
.logo__ted { color: var(--red); }
.logo__x { color: var(--red); font-weight: 700; text-transform: lowercase; }
.logo__name { color: var(--fg); margin-left: 1px; }
.nav__links { display: flex; gap: var(--s3); }
.nav__links a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--mute); transition: color .15s; }
.nav__links a:hover { color: var(--fg); }
.nav__right { display: flex; align-items: center; gap: var(--s2); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); }
.icon-btn:hover { border-color: var(--fg); }
.burger { display: none; width: 40px; height: 40px; background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--fg); transition: transform .2s; }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 22px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--line); }
/* the fingerprint: two baked layers, rotated by the GPU, squashed into a whorl shape */
.print { position: absolute; pointer-events: none; transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(.86, 1.12); transition: transform .8s cubic-bezier(.2,.7,.2,1); will-change: transform; contain: layout paint; }
.print canvas { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.print__a { animation: spin 260s linear infinite; }
.print__b { animation: spin 340s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.print.paused canvas { animation-play-state: paused; }
.print.still canvas { animation: none; }
@media (prefers-reduced-motion: reduce) { .print__a, .print__b { animation: none; } .print { transition: none; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.55) 45%, rgba(10,10,10,0) 75%); pointer-events: none; }
.hero__in { position: relative; z-index: 2; pointer-events: none; }
.hero__in a, .hero__in .count { pointer-events: auto; }
.hero__title { font-size: clamp(3.4rem, 12vw, 9rem); text-transform: uppercase; font-stretch: 112%; line-height: .9; }
.hero__title span { display: block; }
.hero__title em { display: block; font-style: normal; font-weight: 600; font-size: clamp(1.1rem, 2.6vw, 1.8rem); text-transform: none; letter-spacing: 0; margin-top: var(--s3); font-stretch: 100%; }
.hero__meta { margin: var(--s3) 0; font-size: 1.15rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.hero__hint { font-size: .8rem; color: var(--mute); margin: var(--s3) 0 0; }
.count { display: flex; gap: var(--s3); }
.count div { min-width: 64px; }
.count b { display: block; font: 800 clamp(1.8rem, 4vw, 2.8rem)/1 var(--font-d); font-variant-numeric: tabular-nums; }
.count span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.count--sm b { font-size: 1.6rem; }
.count--sm { margin-top: var(--s3); }

/* ticker */
.ticker { overflow: hidden; background: var(--fg); color: #0a0a0a; border-block: 1px solid var(--fg); }
.ticker__in { display: flex; align-items: center; gap: 1.6rem; width: max-content; padding: .7rem 0; font: 800 .95rem var(--font-d); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; animation: tick 38s linear infinite; }
.ticker i { width: 9px; height: 9px; background: var(--red); border-radius: 50%; flex: none; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__in { animation: none; } }

/* sip */
.sip { background: var(--red); color: #fff; padding-block: var(--s5); }
.sip .eyebrow { color: #fff; opacity: .85; }
.sip__grid { display: grid; grid-template-columns: 1.25fr minmax(0, .8fr); gap: var(--s4); align-items: center; }
.sip__text, .flyer { min-width: 0; }
.sip h2 { margin-bottom: var(--s3); }
.sip .lead { color: #fff; }
.sip .small { color: rgba(255,255,255,.8); }
.sip .count span { color: rgba(255,255,255,.8); }
.sip .btn--red { background: #0a0a0a; }
.sip .btn--red:hover { background: #000; }
.sip .btn--ghost { border-color: #fff; color: #fff; }
.sip .btn--ghost:hover { background: #fff; color: var(--red); }
.facts { list-style: none; padding: 0; margin: var(--s3) 0; display: grid; gap: .4rem; }
.facts li { display: flex; gap: var(--s2); border-top: 1px solid rgba(255,255,255,.35); padding-top: .4rem; }
.facts span { width: 5.6rem; flex: none; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; padding-top: .25rem; }
.sip__cta { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0 var(--s2); }
.sip__side { min-width: 0; display: grid; gap: var(--s2); }
.map { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: #0a0a0a; color: #fff; text-decoration: none; box-shadow: 0 20px 60px rgba(0,0,0,.3); transition: transform .2s; }
.map:hover { transform: translateY(-3px); }
.map__art { display: block; width: 100%; height: 150px; }
.map__body { display: grid; gap: .15rem; padding: .9rem 1.1rem 1.1rem; border-top: 1px solid #2a2a2a; }
.map__label { font: 800 1.15rem var(--font-d); }
.map__addr { font-size: .9rem; color: var(--mute); }
.map__go { font: 700 .8rem var(--font-d); letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-top: .35rem; }
.map:hover .map__go { text-decoration: underline; }
.flyer { margin: 0; background: #0a0a0a; border-radius: var(--r); overflow: hidden; display: grid; place-items: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.flyer img { width: 100%; height: auto; }
.flyer__ph { aspect-ratio: 666 / 935; width: 100%; display: grid; place-content: center; }
.flyer__ph { text-align: center; color: var(--mute); padding: var(--s3); }
.flyer__ph span { display: block; font: 800 1.6rem var(--font-d); color: var(--fg); }

/* sections */
.sec { padding-block: clamp(3rem, 6vw, 4.75rem); }
.sec--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.sec--alt { background: var(--bg2); border-block: 1px solid var(--line); }
.sec h2 { margin-bottom: var(--s3); }
.two { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s5); align-items: start; }
.two > * { min-width: 0; }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s4); }
.ev { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); background: var(--bg); }
.ev--red { background: var(--red); border-color: var(--red); }
.ev__big { display: flex; align-items: baseline; gap: .8rem; font: 900 clamp(4rem, 9vw, 6.5rem)/.85 var(--font-d); letter-spacing: -.04em; margin: 0 0 var(--s3); }
.ev__big small { font: 700 .85rem var(--font-d); letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.ev { transition: transform .2s, border-color .2s; }
.ev:hover { transform: translateY(-4px); border-color: var(--fg); }
.sec--alt { position: relative; }
.sec--alt::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: repeating-radial-gradient(ellipse at 50% 0, transparent 0 6px, rgba(245,245,243,.14) 6px 7px); }
.talk .vid { border-color: transparent; outline: 1px solid var(--line); outline-offset: 6px; transition: outline-color .2s; }
.talk:hover .vid { outline-color: var(--red); }
.ev h3 { margin-bottom: var(--s2); }
.link { font-weight: 600; }

/* video + talks */
.vid { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.vid button, .vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: pointer; }
.vid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.vid button:hover img { transform: scale(1.04); }
.play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; background: var(--red); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.play::after { content: ""; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.talks { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s4); }
.talk { min-width: 0; }
.talk h3 { font-size: 1.15rem; line-height: 1.2; margin: var(--s2) 0 .3rem; letter-spacing: -.01em; }
.talk p { margin: 0; color: var(--mute); font-size: .95rem; }
.badge { display: inline-block; margin-top: .6rem; font: 700 .75rem var(--font-d); letter-spacing: .08em; text-transform: uppercase; background: var(--red); padding: .25rem .6rem; border-radius: 2px; color: #fff; }
.talk--sm { grid-column: span 1; }

/* photos */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s2); margin-top: var(--s3); }
.photos figure { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: repeating-radial-gradient(circle at 50% 120%, #1a1a1a 0 6px, #0a0a0a 6px 12px); display: grid; place-items: center; color: var(--mute); font-size: .85rem; }
.photos img { width: 100%; height: 100%; object-fit: cover; }

/* stay */
.socials { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s3); }
.chip { text-decoration: none; border: 1px solid var(--fg); border-radius: 999px; padding: .6rem 1.1rem; font-weight: 600; transition: background .15s, color .15s; }
.chip:hover { background: var(--fg); color: #0a0a0a; }
.news label:not(.check) { font: 700 .8rem var(--font-d); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.news__row { display: flex; gap: var(--s1); margin: .5rem 0 var(--s2); }
.news input[type=email] { flex: 1; min-width: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); color: var(--fg); font: inherit; padding: .9rem 1rem; }
.news input[type=email]:focus { border-color: var(--red); outline: none; }
.check { display: flex; gap: .6rem; font-size: .85rem; color: var(--mute); }
.check input { margin-top: .25rem; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { min-height: 1.5rem; margin-top: var(--s2); font-weight: 500; }
.msg.ok { color: #fff; } .msg.err { color: var(--red); }

/* footer */
.foot { padding-block: var(--s4); border-top: 1px solid var(--line); }
.foot__in { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: flex-start; }
.foot__links a { color: var(--mute); text-decoration: none; }
.foot__links a:hover { color: var(--fg); }

/* motion */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .vid img { transition: none; } }

/* responsive */
@media (max-width: 900px) {
  .sip__grid, .two, .cards2 { grid-template-columns: 1fr; }
  .talks { grid-template-columns: 1fr; }
  .two { gap: var(--s3); }
  .sec { padding-block: var(--s5); }
  .flyer { max-width: 420px; }
  .hero::after { background: linear-gradient(180deg, rgba(10,10,10,.8) 0%, rgba(10,10,10,.5) 100%); }
  .burger { display: block; }
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s1) max(20px, env(safe-area-inset-left, 0px)); }
  .nav__links.open { display: flex; }
  .nav__links a { padding: .9rem 0; border-top: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links a:first-child { border-top: 0; }
}
@media (max-width: 480px) {
  .nav__right .icon-btn { display: none; }
  .nav__in { gap: var(--s1); }
  .logo img { height: 22px; }
  .news__row { flex-direction: column; }
  .count { gap: var(--s2); }
  .hero__cta .btn, .sip__cta .btn { width: 100%; }
}

/* ---------- inner pages ---------- */
h1 { font-size: clamp(2.4rem, 7vw, 5.2rem); }
.sip h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: var(--s3); }
.pagehead { padding-block: clamp(3rem, 8vw, 6rem) var(--s4); border-bottom: 1px solid var(--line); background: repeating-radial-gradient(ellipse at 100% 0, transparent 0 14px, rgba(245,245,243,.05) 14px 15px); }
.pagehead h1 { text-transform: uppercase; font-stretch: 110%; line-height: .95; margin-bottom: var(--s2); }
.pagehead .lead { color: var(--mute); }
.nav__links a[aria-current="page"] { color: var(--fg); box-shadow: 0 2px 0 var(--red); }
.more { margin-top: var(--s4); }
.gap { margin-top: var(--s4); }
.link--light { color: #fff; font-weight: 700; display: inline-block; margin-top: var(--s1); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: var(--s4) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.steps li { counter-increment: s; border-top: 3px solid var(--red); padding-top: var(--s2); }
.steps li::before { content: counter(s); display: block; font: 900 3.4rem/1 var(--font-d); color: var(--red); margin-bottom: var(--s1); }
.steps h3 { margin-bottom: .4rem; }
.qs, .rules { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: var(--s2); }
.qs li { font: 800 clamp(1.3rem, 3vw, 2rem)/1.15 var(--font-d); letter-spacing: -.01em; border-bottom: 1px solid var(--line); padding-bottom: var(--s2); }
.rules li { position: relative; padding-left: 1.6rem; }
.rules li::before { content: ""; position: absolute; left: 0; top: .6rem; width: 9px; height: 9px; background: var(--red); border-radius: 50%; }
.faqs { max-width: 820px; }
.faq { border-bottom: 1px solid var(--line); padding: var(--s2) 0; }
.faq summary { cursor: pointer; font: 700 1.2rem var(--font-d); list-style: none; display: flex; justify-content: space-between; gap: var(--s2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.6rem; line-height: 1; }
.faq[open] summary::after { content: "\2212"; }
.faq p { margin: var(--s1) 0 0; color: var(--mute); }
.teamgroup { margin-bottom: var(--s5); }
.teamgroup h2 { font-size: 1.6rem; margin-bottom: var(--s3); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s3); }
.person { display: grid; gap: .2rem; }
.person__ph { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: repeating-radial-gradient(circle at 50% 60%, #1a1a1a 0 5px, #0a0a0a 5px 10px); margin-bottom: .5rem; }
.person__ph img { width: 100%; height: 100%; object-fit: cover; }
.person span { color: var(--mute); font-size: .9rem; }
.foot__in { align-items: flex-start; }
.foot__brand { max-width: 320px; }
.foot__col { display: grid; gap: .5rem; align-content: start; }
.foot__col h4 { margin: 0 0 .3rem; font: 700 .75rem var(--font-d); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.foot__col a { color: var(--mute); text-decoration: none; }
.foot__col a:hover { color: var(--fg); }
@media (max-width: 1120px) {
  .burger { display: block; }
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s1) max(20px, env(safe-area-inset-left, 0px)); }
  .nav__links.open { display: flex; }
  .nav__links a { padding: .9rem 0; border-top: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links a:first-child { border-top: 0; }
  .nav__links a[aria-current="page"] { box-shadow: none; color: var(--red); }
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .foot__in { display: grid; grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* ---------- home grouping, compact talks, nav dropdown ---------- */
.h2--sm { font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.08; margin-bottom: var(--s2); }
.sec h2.h2--sm { margin-bottom: var(--s2); }
.rowhead { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.rowhead h2 { max-width: 34ch; margin: 0; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.quick__c { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); background: var(--bg2); transition: transform .2s, border-color .2s, background .2s; min-width: 0; }
.quick__c:hover { transform: translateY(-4px); border-color: var(--red); background: #161616; }
.quick__c .eyebrow { margin: 0; }
.quick__c h3 { font-size: 1.35rem; }
.quick__c p:not(.eyebrow) { margin: 0; color: var(--mute); font-size: .95rem; }
.quick__go { margin-top: auto; padding-top: var(--s1); font: 700 .8rem var(--font-d); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.talks { grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: 0; }
.talk h3 { font-size: 1rem; margin: .7rem 0 .2rem; }
.talk p { font-size: .88rem; }
.badge { margin-top: .45rem; font-size: .68rem; }
.vid--sm { max-width: 460px; justify-self: end; width: 100%; }
.two--video { grid-template-columns: 1fr minmax(0, 460px); align-items: center; }
.vid--fallback { background: repeating-radial-gradient(circle at 80% 110%, #1b1b1b 0 7px, #0a0a0a 7px 14px); }
.vid--fallback button { display: block; }
.vid__t { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: .15rem; padding: .8rem 1rem; text-align: left; background: linear-gradient(0deg, rgba(10,10,10,.92), rgba(10,10,10,0)); color: var(--fg); }
.vid__t b { font: 800 .98rem/1.15 var(--font-d); }
.vid__t i { font-style: normal; font-size: .8rem; color: var(--mute); }
.play { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.play::after { border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; margin-left: 4px; }
.photos { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: var(--s2); }
.more--sm { margin-top: var(--s2); }
.dd { position: relative; display: flex; align-items: center; }
.dd__btn { background: none; border: 0; padding: 0; font: 500 .95rem var(--font-b); color: var(--mute); cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.dd__btn::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.dd__btn:hover, .dd__btn[aria-current="true"] { color: var(--fg); }
.dd__btn[aria-current="true"] { box-shadow: 0 2px 0 var(--red); }
.dd__menu { display: none; position: absolute; top: 100%; left: -14px; min-width: 170px; padding: .5rem; margin-top: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px rgba(0,0,0,.5); gap: 0; }
.dd__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.dd:hover .dd__menu, .dd:focus-within .dd__menu, .dd.open .dd__menu { display: grid; }
.dd__menu a { padding: .55rem .7rem; border-radius: 3px; }
.dd__menu a:hover { background: var(--bg2); color: var(--fg); }
@media (max-width: 1120px) {
  .dd__btn { display: none; }
  .dd { display: block; }
  .dd__menu { display: grid; position: static; border: 0; box-shadow: none; padding: 0; margin: 0; min-width: 0; background: none; }
  .dd__menu::before { display: none; }
  .dd__menu a { padding: .9rem 0; border-top: 1px solid var(--line); font-size: 1.05rem; border-radius: 0; }
  .dd__menu a:hover { background: none; }
}
@media (max-width: 900px) {
  .quick { grid-template-columns: 1fr 1fr; }
  .two--video { grid-template-columns: 1fr; }
  .vid--sm { justify-self: stretch; max-width: 560px; }
  .sip__grid { grid-template-columns: 1fr; }
  .flyer { max-width: 440px; }
}
@media (max-width: 640px) {
  .quick { grid-template-columns: 1fr; }
  .talks { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s2); padding-bottom: .6rem; margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); padding-inline: max(20px, env(safe-area-inset-left, 0px)); scrollbar-width: thin; }
  .talks .talk { flex: 0 0 78%; scroll-snap-align: start; }
}
.talk .vid__t b { display: none; }
.btn { white-space: nowrap; }
@media (max-width: 640px) { .photos { grid-template-columns: 1fr 1fr; } .nav__right { gap: var(--s1); } }

/* ---------- header like TEDxHeilbronn ---------- */
.nav__in { min-height: 76px; }
.logo img { height: 32px; }
.nav__links { gap: clamp(1rem, 2.2vw, 2.2rem); }
.nav__links a { font: 600 1rem var(--font-b); color: var(--fg); position: relative; padding-block: .4rem; }
.nav__links a:hover { color: var(--red); }
.nav__links a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--red); }
.nav__right { gap: var(--s3); }
.lang { display: flex; gap: .45rem; font: 700 .78rem var(--font-d); letter-spacing: .12em; padding-left: var(--s3); border-left: 1px solid var(--line); }
.lang__on { color: var(--red); }
.lang__sep { color: var(--mute); }
.lang__off { color: var(--mute); cursor: not-allowed; }
.btn--nav { padding: .85rem 1.4rem; font-size: .85rem; }
@media (max-width: 1120px) {
  .nav__links a[aria-current="page"] { box-shadow: none; color: var(--red); }
  .lang { display: none; }
}
@media (max-width: 480px) { .logo img { height: 24px; } .btn--nav { padding: .6rem .9rem; font-size: .75rem; } }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: var(--s3); }
.way { display: flex; flex-direction: column; gap: .5rem; border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); background: var(--bg2); min-width: 0; }
.way h3 { font-size: 1.5rem; }
.way p { margin: 0; color: var(--mute); }
.way .btn { margin-top: auto; align-self: flex-start; }
.way .btn:first-of-type { margin-top: var(--s2); }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s2); margin-top: var(--s3); }
.logos div { aspect-ratio: 3 / 2; border: 1px dashed var(--line); border-radius: var(--r); display: grid; place-items: center; color: var(--mute); font-size: .85rem; }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }
.nav__links a { white-space: nowrap; }
.nav__links { gap: clamp(.9rem, 1.7vw, 1.9rem); }
.logo img { height: 44px; }
@media (max-width: 480px) { .logo img { height: 36px; } }

/* talks page: sort and year filter; the full list stays a grid on phones instead of a side scroller */
.talkbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.talkbar label { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; }
.talkbar select { background: #0a0a0a; color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font: inherit; font-weight: 500; }
.talkbar select:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.talkbar__n { color: var(--mute); font-size: .9rem; margin-left: auto; }
.talks--all { row-gap: var(--s4); }
@media (max-width: 900px) { .talks--all { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .talks.talks--all { display: grid; grid-template-columns: 1fr; overflow: visible; margin-inline: 0; padding-inline: 0; } }
/* Impressum and other legal text */
.legal > * { max-width: 72ch; }
.legal h2 { font-size: 1.35rem; margin: var(--s4) 0 var(--s1); }
.legal h3 { font-size: 1.05rem; margin: var(--s3) 0 .3rem; }
.legal p { margin: 0 0 var(--s2); }
.legal a { color: inherit; }
/* embedded PDF; phones that cannot show PDFs inline still have the open and download links above it */
.legal .legal__pdf { display: block; width: 100%; max-width: 900px; height: 80vh; min-height: 480px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.vidnote { margin: var(--s2) 0 0; }
.vidnote a { color: inherit; }
/* About page: expandable talk ideas (same look as the FAQ) */
.ideas { margin-top: var(--s3); }
.idea p b { color: var(--fg); }
