/* DigiSuisseathon 2027, Webseite v0.4 */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #15181d;
  --ink-2: #4a5160;
  --red: #c8102e;
  --red-dark: #a00d25;
  --tint: #dfe6ef;
  --tint-2: #f3f6f9;
  --line: #cfd6df;
  --white: #fff;
  --radius: 10px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: .8em;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.wordmark { font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark span { color: var(--red); }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; align-items: center; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-header nav a:hover { color: var(--red); }
.nav-cta { background: var(--ink); color: var(--white) !important; padding: 8px 16px; border-radius: 999px; }
.nav-cta:hover { background: var(--red); }

/* Hero */
.hero { padding: 88px 0 80px; border-bottom: 2px solid var(--ink); }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); font-weight: 700; letter-spacing: -0.025em; margin-bottom: .15em; }
.hero h1 span { color: var(--red); }
.slogan { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 600; margin-bottom: .8em; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 40em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 36px 0 40px; padding: 0; }
.hero-facts div { border-left: 3px solid var(--red); padding-left: 14px; }
.hero-facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); font-weight: 600; }
.hero-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 13px 24px; border-radius: 999px; border: 2px solid var(--ink); line-height: 1.2;
}
.btn-primary { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--tint-2); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .eyebrow { color: #aab3c2; }
.grid-2 { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.prose { color: var(--ink-2); }
.prose.wide { max-width: 52em; }
.note { font-size: .9rem; color: var(--ink-2); margin-top: 28px; }
.note-dark { color: #aab3c2; }

.facts { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.facts li { padding: 24px 20px 0 0; }
.facts strong { display: block; font-size: 3rem; line-height: 1; color: var(--red); font-weight: 700; }
.facts span { display: block; margin-top: 8px; color: var(--ink-2); font-size: .98rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 28px 26px; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.card li { margin-bottom: .4em; }

.list-check { list-style: none; margin: 0; padding: 0; }
.list-check li { padding: 16px 0 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.list-check li:first-child { border-top: 2px solid var(--ink); }
.list-check strong { color: var(--ink); }

/* Woche */
.week { list-style: none; margin: 24px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.week li { background: var(--tint); color: var(--ink); border-radius: var(--radius); padding: 20px 18px 26px; }
.week .day { display: block; font-weight: 600; font-size: .95rem; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 18px; }
.week .day em { font-style: normal; color: var(--red); margin-left: 4px; }
.week .focus { display: block; font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 700; }
.base-track { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid #3a404b; border-radius: var(--radius); padding: 22px 26px; }
.base-track span { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: #aab3c2; }
.base-track strong { font-size: 1.25rem; }
.week-notes { margin-top: 48px; }
.week-notes p { color: #cdd3dc; }

/* Fahrplan */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); }
.timeline li.is-event::before { background: var(--red); border-color: var(--red); }
.timeline time { display: block; font-weight: 700; }
.timeline span { color: var(--ink-2); }
.timeline li.is-event time { color: var(--red); }

/* Träger */
.partners { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.partners li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-weight: 600; }

/* Formular */
.form { background: var(--tint-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label, .form legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.form input[type=text], .form input[type=email], .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #aeb7c4; border-radius: 6px; padding: 10px 12px;
}
.form textarea { resize: vertical; min-height: 140px; }
.form [aria-invalid=true] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 8px; }
.form .check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.req { color: var(--red); }
.field-error { color: var(--red); font-size: .9rem; margin: 6px 0 0; font-weight: 600; }
.form-hint { font-size: .85rem; color: var(--ink-2); margin: 12px 0 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px; }
.alert p { margin: 6px 0 0; }
.alert-ok { background: #e6f4ea; border: 1px solid #8cc79b; }
.alert-error { background: #fbe9ec; border: 1px solid #e59aa6; color: var(--red-dark); font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: #cdd3dc; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--white); }
.wordmark-footer { color: var(--white); font-size: 1.3rem; margin-bottom: .4em; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 40px; align-items: start; }
.site-footer details { border-top: 1px solid #3a404b; padding-top: 12px; }
.site-footer summary { cursor: pointer; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #3a404b; font-size: .85rem; color: #8f98a6; }

/* Responsive */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .cards, .grid-3 { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .site-header nav ul li:not(:last-child) { display: none; }
  .hero { padding: 56px 0; }
  .section { padding: 64px 0; }
  .week { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .hero-actions, #kontakt form { display: none; }
  .section-dark { background: none; color: var(--ink); }
}

/* v0.3 */
.patronat { font-weight: 600; color: var(--ink); margin-top: -.4em; }
.card-owner { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--red); margin-bottom: .5em; }
.partners strong { display: block; }
.partners span { display: block; font-weight: 400; color: var(--ink-2); font-size: .95rem; margin-top: 2px; }

/* Diagnoseseite */
.diag { border-collapse: collapse; width: 100%; margin: 12px 0 32px; font-size: .95rem; }
.diag th, .diag td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); word-break: break-word; }
.diag th { width: 30%; font-weight: 600; }
.diag .ok { color: #1f7a3a; font-weight: 600; }
.diag .bad { color: var(--red); font-weight: 600; }
.diag-log { background: var(--tint-2); border: 1px solid var(--line); padding: 14px; font-size: .85rem; overflow-x: auto; white-space: pre-wrap; }
