:root {
  --green-dark: #2e6258;
  --green-text: #213b37;
  --green-soft: #48635d;
  --beige-bg: #f4f1e8;
  --beige-card: #f8f5ea;
  --beige-line: #d9d0bc;
  --beige-accent: #efe2ad;
  --beige-hover: #efe7d4;
  --link-blue: #224b76;
  --gold: #d9b65d;
  --white-soft: rgba(255, 255, 255, 0.9);
  --shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--beige-bg);
  color: var(--green-text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  background: var(--green-dark);
  border-bottom: 1px solid var(--beige-line);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("http://medizin-altenburg-tt.de/Bilder/Halle2.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero-inner { position: relative; padding: 24px 0 0; }

.title-bar {
  background: var(--white-soft);
  backdrop-filter: blur(4px);
  border-radius: 24px 24px 0 0;
  padding: 20px 28px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-box {
  width: 100px;
  height: 100px;
  border-radius: 18px;
  border: 4px solid var(--gold);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.site-title {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
}

.hero-copy {
  position: relative;
  color: white;
  padding: 34px 0 48px;
  max-width: 720px;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.hero-copy p {
  margin: 16px 0 0;
  font-size: 20px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 13px 18px;
  border-radius: 8px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: #e6d28f;
  color: #223a36;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn:hover { transform: translateY(-1px); }

.main-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f5f1e5;
  border-top: 1px solid var(--beige-line);
  border-bottom: 1px solid var(--beige-line);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 18px;
  transition: background 0.2s ease;
}

.nav-link:hover { background: #ebe4d1; }
.nav-link.active { background: #e6d28f; font-weight: 700; }

main { padding: 28px 0 0; }
.page-section { padding: 34px 0; }

.section-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
}

.section-subtitle {
  margin: 12px 0 0;
  font-size: 24px;
  color: var(--green-soft);
}

.card {
  background: var(--beige-card);
  border: 1px solid var(--beige-line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.home-grid, .news-grid, .team-grid, .success-grid, .info-grid {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.home-grid { grid-template-columns: 1.2fr 0.8fr; }
.news-grid { grid-template-columns: repeat(3, 1fr); }
.team-grid { grid-template-columns: repeat(3, 1fr); }
.success-grid { grid-template-columns: 1fr 1fr; }
.info-grid { grid-template-columns: 1fr 1fr; }

.panel, .news-card, .team-card, .success-card, .info-card {
  padding: 24px;
}

.panel h3, .news-card h3, .team-card h3, .success-card h3, .info-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
}

.panel p, .card-copy {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: var(--green-soft);
}

.mini-list, .exercise-list, .material-list, .achievement-list, .contact-list, .info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mini-list { margin-top: 18px; }
.mini-list li {
  padding: 12px 0;
  border-top: 1px solid var(--beige-line);
  font-size: 18px;
}
.mini-list li:first-child { border-top: 0; padding-top: 0; }

.news-date {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #6f7d3d;
  text-transform: uppercase;
}

.news-link, .section-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  color: var(--link-blue);
}

.badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e6d28f;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.content-table {
  margin-top: 28px;
  border: 1px solid var(--beige-line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--beige-card);
  box-shadow: var(--shadow);
}

.content-head, .content-body, .content-foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.head-cell {
  background: var(--beige-accent);
  padding: 18px 20px;
  font-size: 22px;
  font-weight: 700;
  border-right: 1px solid var(--beige-line);
}

.body-cell {
  min-height: 420px;
  padding: 20px;
  border-right: 1px solid var(--beige-line);
  border-top: 1px solid var(--beige-line);
  background: linear-gradient(to bottom, #fbfaf5, #f7f3e7);
}

.foot-cell {
  border-top: 1px solid var(--beige-line);
  border-right: 1px solid var(--beige-line);
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--link-blue);
  background: #f7f3e8;
}

.head-cell:last-child, .body-cell:last-child, .foot-cell:last-child { border-right: none; }
.foot-cell:hover { background: var(--beige-hover); }

.exercise-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #738b22;
  margin-top: 8px;
  flex: 0 0 auto;
}

.video-card {
  overflow: hidden;
  border: 1px solid #cfc5ae;
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: url("http://medizin-altenburg-tt.de/Bilder/Aufschlag.png") center/cover;
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

.play-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}

.play-button span {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 34px;
}

.video-content { padding: 16px; }
.video-title, .material-title { margin: 0 0 12px; font-size: 22px; }
.video-copy { margin: 8px 0 0; color: var(--green-soft); font-size: 17px; line-height: 1.6; }

.material-group + .material-group {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #ddd4bf;
}

.material-list { margin-top: 12px; }
.material-list li, .achievement-list li, .info-list li, .contact-list li {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.6;
}

.material-link {
  color: #184c7a;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 700;
}

.material-link:hover { color: #0d3556; }

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th, td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--beige-line);
  font-size: 17px;
}

th { background: #efe2ad; }

.contact-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--beige-line);
}

footer {
  margin-top: 48px;
  border-top: 1px solid #d6cfbe;
  background: var(--green-dark);
  color: white;
}

.footer-inner {
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-inner a:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .home-grid, .news-grid, .team-grid, .success-grid, .info-grid,
  .content-head, .content-body, .content-foot {
    grid-template-columns: 1fr;
  }
  .head-cell, .body-cell, .foot-cell { border-right: none; }
  .title-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 20px, 1120px); }
  .title-bar { padding: 18px; }
  .hero-copy p, .section-subtitle { font-size: 18px; }
  .nav-link { font-size: 16px; padding: 9px 12px; }
  .body-cell { min-height: auto; }
}
