:root {
  --bg: #f3f1ec;
  --surface: #fcfbf8;
  --surface-strong: #f6f3ee;
  --line: #d8d1c5;
  --line-strong: #b8ad9c;
  --text: #1f2529;
  --text-soft: #56606a;
  --accent: #39444c;
  --shadow: 0 16px 42px rgba(30, 35, 38, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.1rem;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 34%),
    linear-gradient(180deg, #efece5 0%, var(--bg) 22rem, #f7f5f0 100%);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  padding: 3rem 0 1.5rem;
}

.eyebrow,
.section-label,
.hero-kicker,
.semester {
  font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow,
.section-label,
.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  color: var(--text-soft);
}

.title-block {
  display: grid;
  gap: 1rem;
  align-items: end;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.semester {
  margin-bottom: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.subtitle {
  max-width: 40rem;
  margin-bottom: 0;
  font-size: 1.08rem;
  color: var(--text-soft);
}

.subtitle-line {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.94rem;
  color: var(--text-soft);
}

.subtitle-line + .subtitle-line {
  margin-top: 0.45rem;
}

.subtitle a {
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 68, 76, 0.24);
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(57, 68, 76, 0.18);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
}

.section-nav a {
  text-decoration: none;
  color: var(--text-soft);
}

.section-nav a:hover,
.section-nav a:focus-visible {
  color: var(--text);
}

.hero {
  padding: 0.5rem 0 2.5rem;
}



.hero-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(12rem, 30vw, 18rem);
  overflow: hidden;
  background: transparent;
}

/*
  Fuer ein spaeteres Titelbild z. B. so erweitern:
  .hero-frame {
    background: center / cover no-repeat url("assets/title-image.jpg");
  }
*/

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.hero-image {
  width: 50%;
  height: auto;
  min-height: 0;
  /*max-width: 22rem; */
  max-height: 80%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 759px) {
  .hero-image {
    width: 56%;
  }
}

.layout {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.card,
.content-section {
  padding: 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(57, 68, 76, 0.12);
  background: rgba(252, 251, 248, 0.88);
  box-shadow: 0 10px 28px rgba(30, 35, 38, 0.04);
}

.card-accent {
  background: linear-gradient(180deg, rgba(246, 243, 238, 0.96), rgba(252, 251, 248, 0.92));
}

.section-heading {
  margin-bottom: .6rem;
}

.section-heading-compact {
  margin-top: 1.0rem;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.info-box {
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(57, 68, 76, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.4);
}

.content-section h3,
.info-box h3 {
  margin-bottom: 0.55rem;
  font-size: 1.06rem;
  font-weight: 600;
}

.news-list,
.plain-list,
.literature-list {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.news-list li,
.plain-list li,
.literature-list li {
  margin-bottom: 0.0rem;
}

.news-list li:last-child,
.plain-list li:last-child,
.literature-list li:last-child {
  margin-bottom: 0;
}

.schedule-line {
  margin-bottom: 0;
}

.highlight-red {
  color: #9f2d20;
  font-weight: 600;
}

.highlight-muted {
  color: var(--text-soft);
  font-style: italic;
}

.highlight-note {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border-radius: 0.35rem;
  background: rgba(159, 45, 32, 0.08);
  color: #7d2419;
  font-weight: 600;
}

.split-section {
  display: grid;
  gap: 1.2rem;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 34rem;
}

th,
td {
  padding: 0.9rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(57, 68, 76, 0.14);
}

th {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.site-footer {
  padding: 0 0 2.5rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(57, 68, 76, 0.16);
  color: var(--text-soft);
  font-size: 0.95rem;
}

@media (min-width: 760px) {
  .title-block {
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    gap: 2rem;
  }

  .split-section {
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
    align-items: start;
  }

  .content-section,
  .card {
    padding: 2rem;
  }
}

@media (max-width: 759px) {
  .site-header {
    padding-top: 2rem;
  }

  .section-nav {
    gap: 0.55rem 0.9rem;
    font-size: 0.88rem;
  }

  .hero {
    padding-bottom: 2rem;
  }

  .card,
  .content-section {
    padding: 1.35rem;
  }
}
