/* Talk index of slides.aditsystems.de. Colors and cards follow the talk
   decks (style/aditsystems-white.css, .cards in style/custom.css). */
@font-face {
  font-family: "Source Sans Pro";
  src: url("fonts/source-sans-pro-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("fonts/source-sans-pro-semibold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --text: #1f2430;
  --heading: #003366;
  --accent: #ff6a00;
  --muted: color-mix(in srgb, var(--text) 65%, var(--bg));
  --line: color-mix(in srgb, var(--text) 18%, var(--bg));
  --tint: color-mix(in srgb, var(--heading) 6%, var(--bg));
  --tint-strong: color-mix(in srgb, var(--heading) 14%, var(--bg));
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 6px 18px rgb(0 51 102 / 0.08);
  --radius: 0.6rem;
  color-scheme: light;
}
/* Dark theme: only with the switch (light is the default). */
:root[data-theme="dark"] {
  --bg: #0e1520;
  --text: #e4e8ef;
  --heading: #8cc0ff;
  --accent: #ff8a3d;
  --muted: color-mix(in srgb, var(--text) 65%, var(--bg));
  --line: color-mix(in srgb, var(--text) 18%, var(--bg));
  --tint: color-mix(in srgb, #3d7cc9 12%, var(--bg));
  --tint-strong: color-mix(in srgb, #3d7cc9 24%, var(--bg));
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 6px 18px rgb(0 0 0 / 0.35);
  color-scheme: dark;
}
:root[data-theme="dark"] .brand img { filter: invert(1) hue-rotate(180deg) brightness(1.1); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.5 "Source Sans Pro", system-ui, sans-serif;
}
a { color: var(--heading); }
a:hover { color: var(--accent); }

.site-header, main, .site-footer {
  width: min(72rem, 100% - 2rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.brand img { display: block; height: 64px; width: auto; }
@media (max-width: 30rem) { .brand img { height: 48px; } }

.header-tools { display: flex; align-items: center; gap: 0.75rem; }

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 0.9rem/1.2 inherit;
  font-family: inherit;
  cursor: pointer;
}
.theme-switch:hover { color: var(--accent); border-color: var(--accent); }
.theme-switch:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.theme-switch .icon-moon { display: none; }
:root[data-theme="dark"] .theme-switch .icon-sun { display: none; }
:root[data-theme="dark"] .theme-switch .icon-moon { display: inline; }
@media (max-width: 30rem) { .theme-label { display: none; } }

.lang-switch { display: flex; gap: 0.25rem; }
.lang-switch a {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--muted);
}
.lang-switch a[aria-current="page"] { background: var(--heading); color: var(--bg); }
.lang-switch a:not([aria-current]):hover { color: var(--accent); }

.hero { padding-block: 2.5rem 0.5rem; }
.hero h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero p { margin: 0.4rem 0 0; color: var(--muted); font-size: 1.15rem; }

section { margin-block: 2rem 2.5rem; }
section h2 {
  display: inline-block;
  margin: 0 0 1rem;
  padding-bottom: 0.15rem;
  color: var(--heading);
  font-size: 1.5rem;
  font-weight: 600;
  border-bottom: 3px solid var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1.25rem;
}

/* Card like .cards in the decks: tinted panel, rounded, blue title. */
.card {
  display: flex;
  flex-direction: column;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow), 0 0 0 1px var(--tint-strong); }
.cover-link { display: block; }
.cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--tint-strong);
  border-bottom: 1px solid var(--line);
}
.card-body { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9rem 1rem 1rem; flex: 1; }

.event { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.95rem; }
.event-logo { height: 24px; width: auto; max-width: 72px; object-fit: contain; flex: none; }
.event-initial { width: 24px; }
.event-initial {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tint-strong);
  color: var(--heading);
  font-weight: 600;
}
.event time { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }

.card h3 { margin: 0; color: var(--heading); font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.badge {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: 0.15em;
}

.buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 0.25rem; }
.button {
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--heading);
  border-radius: 999px;
  color: var(--heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button.primary { background: var(--heading); color: var(--bg); }
.button:hover, .button:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }

a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 3rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .social { display: flex; gap: 0.75rem; margin-left: auto; }
.site-footer .social img { display: block; opacity: 0.75; }
.site-footer .social a:hover img { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .card, .button { transition: none; }
  .card:hover { transform: none; }
}
