/* MEGA Sissach – statische Infoseite */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-700.woff2") format("woff2"); }

:root {
  --red: #e11e1e;
  --red-dark: #b81414;
  --red-soft: #fdecec;
  --ink: #1b1b1b;
  --ink-2: #4a4a4a;
  --muted: #767676;
  --line: #e7e3df;
  --bg: #ffffff;
  --tint: #f7f4f1;
  --dark: #171717;
  --radius: 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.red { color: var(--red); }
.small { font-size: .95rem; color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin-bottom: .9em;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 54px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 1rem;
  padding: 8px 12px; border-radius: 999px; color: var(--ink-2);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--tint); }
.nav a.nav-cta { background: var(--red); color: #fff; margin-left: 6px; padding: 8px 18px; }
.nav a.nav-cta:hover { background: var(--red-dark); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav a.nav-cta { margin: 14px 0 0; text-align: center; border-radius: 999px; border: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1.05rem;
  background: var(--red); color: #fff; text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: .4em; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: var(--ink-2); max-width: 34em; }

.status {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--red-soft); border-radius: 14px; padding: 16px 18px; margin: 28px 0 32px; max-width: 34em;
}
.status p { margin: 0; font-size: 1.02rem; }
.status-dot { flex: none; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(225,30,30,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(225,30,30,.45); } 70% { box-shadow: 0 0 0 12px rgba(225,30,30,0); } 100% { box-shadow: 0 0 0 0 rgba(225,30,30,0); } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; }
.hero-photo { margin: 0; position: relative; z-index: 1; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.network { position: absolute; z-index: 2; width: 70%; right: -14%; top: -12%; pointer-events: none; }
.network .lines line { stroke: var(--ink); stroke-width: 1.6; opacity: .75; }
.network .nodes circle { fill: var(--red); }
.network .nodes circle { animation: float 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.network .nodes circle:nth-child(2n) { animation-delay: -2s; }
.network .nodes circle:nth-child(3n) { animation-delay: -4s; }
@keyframes float { 50% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
  .network .nodes circle, .status-dot { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-right: 10%; }
  .hero-photo { aspect-ratio: 16 / 11; border-radius: 22px; }
  .network { width: 46%; right: -14%; top: -10%; }
}

/* ---------- Facts ---------- */
.facts { background: var(--red); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 34px 20px 30px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid rgba(255,255,255,.25); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-num { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.fact-label { font-size: 1rem; line-height: 1.35; opacity: .92; }
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 24px 16px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.25); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--dark); color: #f2f2f2; }
.section-dark .prose p { color: #cfcfcf; }
.section-dark .small { color: #9a9a9a; }
.intro { max-width: 46em; color: var(--ink-2); margin-bottom: 2.2em; }
.prose p { color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Rückblick ---------- */
.recap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.recap-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.recap-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .recap { grid-template-columns: 1fr; } }

.programm { margin-top: clamp(56px, 7vw, 88px); }
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.day { background: #fff; border-radius: var(--radius); padding: 24px 24px 18px; }
.day-name { font-weight: 600; font-size: 1.1rem; margin-bottom: .6em; padding-bottom: .6em; border-bottom: 2px solid var(--red); }
.day ul { list-style: none; padding: 0; margin: 0; }
.day li { display: flex; gap: 14px; padding: 7px 0; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
.day li:last-child { border-bottom: 0; }
.day li span { flex: none; width: 3.2em; color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .days { grid-template-columns: 1fr; } }

.media-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center;
  margin-top: 28px; padding: 20px; background: #fff; border-radius: var(--radius);
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.media-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.3); }
.media-card img { border-radius: 10px; border: 1px solid var(--line); }
.media-card .eyebrow { margin-bottom: .4em; }
.media-title { font-size: 1.35rem; font-weight: 600; margin-bottom: .3em; line-height: 1.2; }
.media-card p:last-child { margin: 0; color: var(--ink-2); }
.media-card .link { color: var(--red); font-weight: 600; white-space: nowrap; }
@media (max-width: 700px) { .media-card { grid-template-columns: 1fr; } }

/* ---------- Galerie ---------- */
.gallery {
  display: grid; gap: 12px; margin-top: 28px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
}
.gallery a { display: block; overflow: hidden; border-radius: 12px; background: var(--tint); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-pano { grid-column: span 2; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }
@media (max-width: 420px) { .gallery { grid-auto-rows: 130px; gap: 8px; } }

.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  background: rgba(10,10,10,.94); color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 110px); object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 52px; height: 52px; font-size: 32px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--red); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; margin: 0; font-size: .95rem; opacity: .8; padding: 0 16px; }
@media (max-width: 700px) {
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 160px); border-radius: 0; }
  .lb-prev, .lb-next { top: auto; bottom: 56px; transform: none; }
}

/* ---------- Schule@Gewerbe ---------- */
.list-title { font-size: 1.1rem; color: #fff; margin-top: .4em; }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .98rem; }

/* ---------- Aussteller ---------- */
.exhibitors { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.exhibitors summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 1.15rem;
  display: flex; justify-content: space-between; align-items: center;
}
.exhibitors summary::-webkit-details-marker { display: none; }
.exhibitors summary::after { content: "+"; font-size: 1.8rem; font-weight: 400; color: var(--red); line-height: 1; }
.exhibitors[open] summary::after { content: "–"; }
.exhibitor-list { columns: 3 260px; column-gap: 40px; list-style: none; padding: 0 0 28px; margin: 0; }
.exhibitor-list li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.exhibitor-list li span { color: var(--muted); font-size: .9rem; margin-left: .3em; }

/* ---------- OK ---------- */
.ok-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ok-grid li { background: #fff; border-radius: 14px; padding: 18px 20px; font-weight: 600; font-size: 1.1rem; display: flex; flex-direction: column; gap: 2px; }
.ok-grid .role { font-weight: 500; font-size: .85rem; color: var(--red); letter-spacing: .02em; }

/* ---------- Sponsoren ---------- */
.tier { font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin: 40px 0 14px; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.logos a {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  height: 110px; padding: 18px 22px; transition: border-color .15s, box-shadow .15s;
}
.logos a:hover { border-color: var(--red); box-shadow: 0 10px 30px -20px rgba(0,0,0,.35); }
.logos img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.logos-lg { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.logos-lg a { height: 150px; padding: 24px 32px; }
.logos-sm a { height: 96px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #e8e8e8; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { width: 190px; background: #fff; border-radius: 16px; padding: 14px 18px; }
.site-footer h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 1em; }
.site-footer address { font-style: normal; margin-bottom: 1em; color: #c9c9c9; }
.site-footer p { color: #c9c9c9; }
.site-footer a { color: #fff; text-decoration-color: var(--red); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .92rem; }
.footer-bottom p { margin: 0; color: #9a9a9a; }
.footer-bottom a { text-decoration: none; color: #9a9a9a; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
