:root {
  --page-bg: #f4f6fa;
  --card-bg: #ffffff;
  --subcard-bg: #f8fafc;
  --text: #1f2937;
  --muted: #667085;
  --line: #dfe5ee;
  --blue: #183f73;
  --blue-light: #eaf1fa;
  --blue-hover: #102e55;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 30px;
  background: var(--page-bg);
  color: var(--text);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-hover);
}

.site-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
}

/* Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 24px;
  background-color: #111827;
  background-image: url("m81-m82.jpg");
  background-repeat: no-repeat;
  background-position: center 56%;
  background-size: cover;
  box-shadow: var(--shadow);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 11, 24, 0.56) 0%, rgba(5, 11, 24, 0.25) 48%, rgba(5, 11, 24, 0.06) 100%),
    linear-gradient(0deg, rgba(5, 11, 24, 0.42) 0%, transparent 44%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 22px;
  min-height: 325px;
  padding: 58px 58px 82px;
  color: #fff;
}

.hero-line {
  width: 4px;
  flex: 0 0 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
}

.hero-text {
  align-self: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.hero-kicker {
  margin-bottom: 7px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.45rem, 6vw, 4.45rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-subtitle {
  margin-top: 12px;
  font-size: clamp(1.12rem, 2.5vw, 1.55rem);
  font-weight: 500;
}

.hero-semester {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.hero-nav-wrap {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 23px;
  left: 28px;
}

/* Funktioniert sowohl mit <nav class="hero-nav"> als auch mit Listen. */
.hero-nav,
.hero-menu,
.hero-nav-wrap nav,
.hero-nav-wrap ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(6, 12, 24, 0.72);
  list-style: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-nav-wrap li {
  margin: 0;
}

.hero-nav-wrap a {
  display: block;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.hero-nav-wrap a:hover,
.hero-nav-wrap a.active,
.hero-nav-wrap .active a {
  color: #111827;
  background: #fff;
}

/* Inhalt ------------------------------------------------------------- */

.content-shell {
  position: relative;
  z-index: 3;
  width: calc(100% - 48px);
  margin: -9px auto 0;
}

.content-card {
  padding: 30px;
  border: 1px solid rgba(217, 224, 234, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.panel,
.panel-content {
  min-width: 0;
}

.panel-title {
  margin-bottom: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.panel-title h2 {
  margin: 0;
  color: #15243a;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.panel-content > :first-child {
  margin-top: 0;
}

.lead {
  max-width: 800px;
  margin-bottom: 25px;
  color: #344054;
  font-size: 1.08rem;
}

.muted {
  color: var(--muted);
}

.subcard {
  margin-top: 18px;
  padding: 23px 25px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--subcard-bg);
}

.subcard h3 {
  margin: 0 0 10px;
  color: #17263c;
  font-size: 1.16rem;
  line-height: 1.3;
}

.subcard p:last-child,
.subcard ul:last-child,
.subcard dl:last-child {
  margin-bottom: 0;
}

.info-list {
  margin: 0;
  padding-left: 21px;
}

.info-list li + li {
  margin-top: 5px;
}

.olat-card {
  border-color: #c8d7ea;
  background: linear-gradient(135deg, #f3f7fc 0%, #eaf1fa 100%);
}

.button-link {
  display: inline-block;
  padding: 10px 17px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(24, 63, 115, 0.18);
  transition: transform 0.18s ease, background 0.18s ease;
}

.button-link:hover {
  transform: translateY(-1px);
  background: var(--blue-hover);
  color: #fff;
}

.note {
  margin: 0;
  padding: 13px 15px;
  border-left: 4px solid #8ba7c9;
  border-radius: 0 8px 8px 0;
  background: #eef3f9;
  color: #46566c;
}

.image-credit {
  margin: 18px 4px 0;
  color: #7a8492;
  font-size: 0.78rem;
  text-align: right;
}

/* Skripte ------------------------------------------------------------ */

.lecture-grid {
  display: grid;
  gap: 10px;
}

.lecture-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid #e1e7ef;
  border-radius: 11px;
  background: #fff;
}

.lecture-number {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.83rem;
  font-weight: 700;
}

.lecture-link {
  font-weight: 700;
  text-decoration: none;
}

/* Termine ------------------------------------------------------------ */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.content-table {
  width: 100%;
  min-width: 730px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.content-table th,
.content-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e5eaf1;
  text-align: left;
  vertical-align: top;
}

.content-table th {
  background: #172b47;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.content-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.content-table tbody tr:hover {
  background: #edf3fa;
}

.content-table tbody tr:last-child td {
  border-bottom: 0;
}

.content-table td:first-child,
.content-table td:nth-child(2),
.content-table td:last-child {
  white-space: nowrap;
}

.content-table .no-lecture {
  background: #f1f3f6;
  color: #7a8492;
  font-style: italic;
}

/* Kontakt ------------------------------------------------------------ */

.contact-list {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px 16px;
  margin: 18px 0 0;
}

.contact-list dt {
  color: #58677a;
  font-weight: 700;
}

.contact-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

/* Footer ------------------------------------------------------------- */

.footer {
  padding: 24px 20px 8px;
  color: #727d8d;
  font-size: 0.82rem;
  text-align: center;
}

.footer a {
  color: inherit;
}

/* Responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  body {
    padding: 18px;
  }

  .hero-inner {
    padding: 45px 38px 92px;
  }

  .content-shell {
    width: calc(100% - 24px);
  }
}

@media (max-width: 640px) {
  body {
    padding: 0;
    background: #fff;
  }

  .site-shell {
    width: 100%;
  }

  .hero {
    min-height: 420px;
    border-radius: 0 0 22px 22px;
    background-position: 56% center;
  }

  .hero-inner {
    min-height: 245px;
    gap: 15px;
    padding: 42px 24px 135px;
  }

  .hero-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .hero-nav-wrap {
    right: 16px;
    bottom: 18px;
    left: 16px;
  }

  .hero-nav,
  .hero-menu,
  .hero-nav-wrap nav,
  .hero-nav-wrap ul {
    gap: 3px;
    width: 100%;
    border-radius: 16px;
  }

  .hero-nav-wrap a {
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .content-shell {
    width: calc(100% - 22px);
    margin-top: -8px;
  }

  .content-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .subcard {
    padding: 19px 17px;
  }

  .contact-list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-list dd + dt {
    margin-top: 9px;
  }

  .footer {
    padding-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
