/* Fachtagung Maschinenbau 2026 — design tokens from the FBTM one-pager. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --c-graphit: #141413; --c-mid: #88867B; --c-light: #ECEAE3; --c-offwhite: #FAF9F5;
  --c-rust: #B5502E; --c-blue: #003DA4; --c-green: #097482; --c-orange: #F15A24;
  /* The grey of secondary text (lead, teasers, dates, hints, footer): 5.5:1 on the page, 4.8:1 on cards (the brand grey --c-mid has 3.5:1). */
  --bg: var(--c-offwhite); --text: var(--c-graphit); --text-secondary: #68665C;
  --surface: var(--c-light); --border: var(--c-light); --nav-bg: rgba(250, 249, 245, 0.94);
  --cta-bg: var(--c-graphit); --cta-text: var(--c-offwhite);
  --field-bg: #fff; --field-border: #D9D6CC;
  --font-sans: 'Inter', system-ui, sans-serif; --font-serif: 'Source Serif 4', Georgia, serif;
  --radius: 10px;
}
/* Dark colours: by the system setting, unless the visitor chose light by hand, or by hand when dark was chosen (footer switch). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141413; --text: #FAF9F5; --text-secondary: #A8A59A; --surface: #201F1D; --border: #33322E;
    --nav-bg: rgba(20, 20, 19, 0.9); --cta-bg: #FAF9F5; --cta-text: #141413;
    --field-bg: #1A1917; --field-border: #3D3B36;
  }
}
:root[data-theme="dark"] {
  --bg: #141413; --text: #FAF9F5; --text-secondary: #A8A59A; --surface: #201F1D; --border: #33322E;
    --nav-bg: rgba(20, 20, 19, 0.9); --cta-bg: #FAF9F5; --cta-text: #141413;
    --field-bg: #1A1917; --field-border: #3D3B36;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-sans); font-size: 16px; line-height: 1.5;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.narrow { max-width: 780px; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.5px; line-height: 1.2; }
h1 { font-size: clamp(32px, 4.6vw, 48px); }
h2 { font-size: clamp(26px, 3.2vw, 34px); }
h3 { font-size: 20px; letter-spacing: -0.2px; }
p { margin-bottom: 1em; }
/* Lighter running text, not the navigation. Bold inside it is set explicitly, "bolder" would only reach 400. :where keeps both rules below every other weight. */
:where(p, main li, .slot, .speaker-org) { font-weight: 350; }
:where(p, main li, .slot) :where(strong, b) { font-weight: 600; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-rust); margin-bottom: 0.7rem;
}
.lead { font-size: 16px; color: var(--text-secondary); line-height: 1.65; max-width: 820px; }
.lead-link a { color: var(--c-rust); }
.muted { color: var(--text-secondary); }
.section { padding: 4.5rem 0; border-top: 1px solid var(--border); }
.section > .container > .section-head { margin-bottom: 2rem; }
.figure { border-radius: 16px; overflow: hidden; margin-top: 2.5rem; position: relative; background: var(--surface); }
.figure img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.credit {
  position: absolute; left: 0; bottom: 0; padding: 1.5rem 1rem 0.7rem; padding-right: 2rem;
  background: linear-gradient(transparent, rgba(20, 20, 19, 0.7)); color: #FAF9F5;
  font-size: 10px; letter-spacing: 0.02em;
}
:is(.figure, .slideshow) .credit { margin: 0; }

/* Navigation */
nav {
  position: sticky; top: 0; z-index: 100; background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 2rem; height: 68px;
  display: flex; align-items: center; gap: 2rem;
}
.nav-brand { display: flex; align-items: center; text-decoration: none; }
/* Capitals are 160.1 of 750 logo units high: at 40.9 px they measure 8.73 px, the capitals of Inter at 12 px (.eyebrow). Changing the overline size means changing this. */
/* overflow: the signet touches the edges of the viewBox, and browsers round the clip to whole pixels, which cut a flat line into its lower curve. */
.nav-brand svg { display: block; width: 175.9px; height: 40.9px; flex-shrink: 0; fill: currentColor; overflow: visible; }
.nav-brand .signet { fill: var(--c-rust); }
.nav-links { display: flex; gap: 1.8rem; margin-left: auto; align-items: center; list-style: none; }
.nav-links a { font-size: 14px; text-decoration: none; opacity: 0.75; }
.nav-links a:hover { opacity: 1; }
.btn {
  display: inline-block; background: var(--c-rust); color: var(--c-offwhite); border: 1.5px solid var(--c-rust);
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; padding: 11px 22px;
  border-radius: var(--radius); text-decoration: none; cursor: pointer;
}
.btn:hover { background: #9d4527; border-color: #9d4527; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--field-border); }
.btn-ghost:hover { background: transparent; border-color: var(--text-secondary); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
@media (max-width: 900px) { .nav-links { gap: 1.5rem; } }
@media (max-width: 860px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-links { gap: 0; } /* the hidden links keep their list items, gaps would still take room */
  .nav-inner { padding: 0 1.1rem; gap: 1rem; }
  .container { padding: 0 1.1rem; }
  .nav-links .btn { padding: 9px 14px; font-size: 13.5px; white-space: nowrap; }
}
/* Logo and button no longer fit side by side; the page head has its own "Jetzt anmelden" right below. */
@media (max-width: 350px) { .nav-links { display: none; } }

/* Hero */
.hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 19, 0.15) 0%, rgba(20, 20, 19, 0.55) 45%, rgba(20, 20, 19, 0.85) 100%);
}
.hero-inner { position: relative; color: #FAF9F5; padding: 5rem 0 3.5rem; width: 100%; }
.hero-inner .eyebrow { color: #fff; opacity: 0.85; }
.hero h1 { max-width: 16ch; }
.hero-meta { margin-top: 1.1rem; font-size: 19px; color: rgba(250, 249, 245, 0.85); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2rem; }
.hero-actions .btn-ghost { color: #FAF9F5; border-color: rgba(250, 249, 245, 0.5); }
.hero .credit { padding-top: 0; background: none; opacity: 0.75; }

/* Speakers */
.speakers { display: grid; align-items: start; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.5rem; }
@media (max-width: 680px) { .speakers { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }
.speaker {
  text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: start;
}
.speaker img { grid-column: 1 / -1; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; background: var(--surface); margin-bottom: 0.8rem; }
.speaker-text { display: block; }
.speaker-tba { cursor: default; }
.speaker-name { display: block; font-weight: 600; font-size: 15px; }
.speaker-org { display: block; font-size: 14px; color: var(--text-secondary); }
.speaker > .icon-swap { width: 24px; height: 24px; margin-top: -1px; }
.icon-swap { display: inline-grid; flex: none; color: var(--c-rust); }
.icon-swap svg { grid-area: 1 / 1; width: 100%; height: 100%; fill: currentColor; }
.icon-swap .i-fill { visibility: hidden; }
:is(.speaker, .modal-close):is(:hover, :focus-visible) .i-fill { visibility: visible; }
:is(.speaker, .modal-close):is(:hover, :focus-visible) .i-out { visibility: hidden; }
dialog.modal {
  width: min(640px, calc(100vw - 2rem)); max-height: min(80vh, 700px); margin: auto;
  border: 0; border-radius: 16px; padding: 0; background: var(--bg); color: var(--text);
}
dialog.modal .modal-inner { max-height: min(80vh, 700px); overflow-y: auto; }
dialog.modal::backdrop { background: rgba(20, 20, 19, 0.55); }
.modal-inner { padding: 2rem; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px; border-radius: 50%;
  border: 0; padding: 3px; background: var(--bg); cursor: pointer; display: grid;
}
.modal-close .icon-swap { width: 28px; height: 28px; }
.modal h3 { font-size: 24px; margin-bottom: 0.2rem; }
.modal .speaker-org { margin-bottom: 1.2rem; }
.modal p { font-size: 15.5px; line-height: 1.6; color: var(--text-secondary); }
.modal p strong { color: var(--text); font-weight: 600; }
.modal a { color: var(--c-rust); }
/* Phones: modals take the full width and the height below the sticky nav. */
@media (max-width: 680px) {
  dialog.modal {
    width: 100%; max-width: 100%; height: calc(100dvh - 68px); max-height: none;
    margin: 68px 0 0; border-radius: 0;
  }
  dialog.modal .modal-inner { height: 100%; max-height: none; padding: 1.5rem 1.1rem 2rem; }
}

/* Slideshow */
.slideshow { position: relative; border-radius: 16px; overflow: hidden; margin-top: 2.5rem; aspect-ratio: 16 / 9; background: var(--surface); }
.slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.slideshow img.on { opacity: 1; }
.slide-dots { position: absolute; right: 14px; bottom: 12px; display: flex; gap: 7px; }
.slide-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(250, 249, 245, 0.8);
  background: transparent; padding: 0; cursor: pointer;
}
.slide-dots button[aria-current="true"] { background: var(--c-offwhite); }

/* Cards, hotels, travel */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem; }
.card h3 { font-family: var(--font-sans); font-size: 16px; font-weight: 600; margin-bottom: 0.4rem; }
.card p { font-size: 15px; color: var(--text-secondary); margin: 0; }
.card p + p { margin-top: 0.6rem; }
.card a { color: var(--c-rust); }
.plan { margin-top: 2.5rem; border: 1px solid var(--border); border-radius: 16px; padding: 1rem; background: #fff; }
.plan img { display: block; width: 100%; }

/* Programme */
.day + .day { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.day-head { margin-bottom: 1.2rem; }
.day-head .muted { font-size: 15px; }
.slot { display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.slot:last-child { border-bottom: 0; }
.slot time { color: var(--text-secondary); font-size: 15px; font-variant-numeric: tabular-nums; }
.slot .what { font-size: 16.5px; }
.slot .who { color: var(--text-secondary); font-size: 15px; margin-top: 0.2rem; }
.slot ol { margin: 0.6rem 0 0 1.1rem; font-size: 15.5px; }
.slot ol li { margin-bottom: 0.5rem; }
@media (max-width: 620px) { .slot { grid-template-columns: 1fr; gap: 0.2rem; } }

/* Registration form */
#anmeldung { background: var(--surface); }
.steps { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; margin: 2rem 0 1.5rem; list-style: none; }
.steps li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-secondary); }
.steps b {
  width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--bg); border: 1px solid var(--field-border); font-size: 12.5px; font-weight: 600;
}
.steps li.active { color: var(--text); font-weight: 500; }
.steps li.active b { background: var(--cta-bg); color: var(--cta-text); border-color: var(--cta-bg); }
.steps li.done b { background: var(--c-green); color: #fff; border-color: var(--c-green); }

.reg-errors { background: var(--bg); border-left: 3px solid var(--c-rust); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.reg-errors ul { margin: 0.4rem 0 0 1.1rem; font-size: 15px; }
.panel { border: 0; padding: 0; margin: 0; min-width: 0; }
.panel legend { font-family: var(--font-serif); font-size: 22px; font-weight: 300; margin-bottom: 1rem; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.grid p { margin: 0; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 680px) { .grid { grid-template-columns: 1fr; } }
label.fl { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.req { color: var(--c-rust); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=password], select, textarea {
  width: 100%; font-family: var(--font-sans); font-size: 16px; color: var(--text);
  background: var(--field-bg); border: 1px solid var(--field-border); border-radius: 8px; padding: 11px 13px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--text-secondary); }
.is-invalid { border-color: var(--c-rust) !important; }
textarea { resize: vertical; min-height: 92px; }
.hint { font-size: 13.5px; color: var(--text-secondary); margin-top: 6px; }
.opt-group { margin-top: 2rem; }
.opt-group h3 { font-size: 19px; margin-bottom: 0.2rem; }
.opt {
  display: flex; gap: 15px; align-items: flex-start; background: var(--bg); border: 1px solid var(--field-border);
  border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 0.7rem; cursor: pointer;
}
.opt:hover { border-color: var(--text-secondary); }
.opt.sel { border-color: var(--text); background: color-mix(in srgb, var(--text) 4%, var(--bg)); }
.opt.is-disabled { opacity: 0.55; cursor: not-allowed; }
.opt input { margin: 4px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--c-rust); }
.opt .t { display: block; font-size: 16px; font-weight: 500; line-height: 1.4; }
.opt .d { display: block; font-size: 14.5px; color: var(--text-secondary); line-height: 1.5; margin-top: 3px; }
.opt .price { font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt .price.free { color: var(--text-secondary); font-size: 14px; }
.birth-date { margin-top: 0.7rem; padding: 0 0 0 3.4rem; }
.birth-date input { max-width: 220px; }

.summary, .review { background: var(--bg); border: 1px solid var(--field-border); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-top: 1.8rem; }
.summary h3, .review h4 {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-secondary); margin-bottom: 0.8rem;
}
.review h4 { margin-top: 1.5rem; }
.review h4:first-child { margin-top: 0; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 15.5px; padding: 4px 0; }
.sum-row.total { border-top: 1px solid var(--border); margin-top: 0.7rem; padding-top: 0.8rem; font-size: 17px; font-weight: 600; }
.review dl { display: grid; grid-template-columns: 180px 1fr; gap: 6px 1.2rem; font-size: 15.5px; }
.review dt { color: var(--text-secondary); }
@media (max-width: 600px) { .review dl { grid-template-columns: 1fr; } .review dd { margin-bottom: 0.6rem; } }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; margin-top: 1rem; cursor: pointer; }
.chk input { margin: 4px 0 0; width: 17px; height: 17px; flex: none; accent-color: var(--c-rust); }
.consent-intro { margin-top: 2rem; font-size: 15px; }
.consent-group { margin-top: 1.5rem; }
.consent-group > span { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); }
.nav-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2rem; }
.err { display: none; color: var(--c-rust); font-size: 14.5px; margin-top: 1rem; font-weight: 500; }
.err.on { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; padding: 3rem 0; }
.done .ok { width: 52px; height: 52px; border-radius: 50%; background: var(--c-green); color: #fff; display: grid; place-items: center; margin: 0 auto 1.4rem; font-size: 26px; }
.closed { background: var(--bg); border: 1px solid var(--field-border); border-radius: var(--radius); padding: 1.4rem 1.6rem; }

/* Step mode is switched on by JavaScript; without it the form is one long page. */
.js-steps .panel { display: none; }
.js-steps .panel.on { display: block; }
.js-steps .panel legend { position: absolute; left: -10000px; }
form:not(.js-steps) .nav-btns button[type=button], form:not(.js-steps) .summary, form:not(.js-steps) .review { display: none; }
.panel + .panel { margin-top: 2.5rem; }

/* Preview gate */
.gate { max-width: 460px; margin: 3rem auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 2.5rem; }
.gate h1 { font-size: 28px; margin-bottom: 1rem; }
.gate .lead { font-size: 16px; margin-bottom: 1.5rem; }
.gate-form { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.gate-form input { width: 100%; }
.gate-form button { margin-top: 0.8rem; }
.gate-error { color: var(--c-rust); font-weight: 500; margin-bottom: 1rem; }
.gate .hint { margin-top: 1.5rem; }

/* Footer */
footer { padding: 3rem 0; font-size: 15px; color: var(--text-secondary); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem; font-size: 13.5px; }
footer strong { color: var(--text); font-weight: 500; display: block; margin-bottom: 0.5rem; font-size: 14px; }
footer a { color: inherit; }
/* The switch between light and dark in the footer. */
.theme-toggle { appearance: none; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; color: inherit; width: 17px; height: 17px; vertical-align: -3px; opacity: 0.8; }
.theme-toggle:hover, .theme-toggle:focus-visible { opacity: 1; color: var(--c-rust); outline: none; }
.theme-toggle svg { width: 100%; height: 100%; display: block; }
.theme-toggle .ring { fill: none; stroke: currentColor; stroke-width: 20; }
.theme-toggle .half { fill: currentColor; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.foot-note { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--border); font-size: 13.5px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Only people who can edit see this, on the event page while it is a draft. */
.draft-note { margin: 0; padding: 0.7rem 1.5rem; text-align: center; font-size: 14px; color: #fff; background: var(--c-rust); }
