:root {
  --bg: #eef2ff;
  --bg-accent: #dfe7ff;
  --surface: #ffffff;
  --surface-soft: rgba(255,255,255,0.8);
  --text: #1f2957;
  --text-soft: #4c5688;
  --primary: #5b31c8;
  --primary-dark: #43219a;
  --border: #cfd8ff;
  --shadow: 0 18px 45px rgba(33, 45, 106, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #ffffff 0, #eef2ff 38%, #d4ddff 100%);
}

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

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 40px;
}

.hero-card,
.topic-bar,
.nav-card,
.content-card,
.footer-card {
  background: var(--surface-soft);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
  background: linear-gradient(135deg, rgba(91, 49, 200, 0.94), rgba(65, 31, 151, 0.92));
  color: #fff;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  opacity: 0.92;
}

.nadpis {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  margin: 0;
  line-height: 1;
}

.hero-copy {
  margin: 12px 0 0;
  max-width: 44rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
}

.home-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.hero-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.2);
}

.topic-bar {
  margin: 20px 0;
  padding: 16px 22px;
  color: var(--text);
  font-size: 1rem;
}

.topic-sep {
  opacity: 0.45;
  margin: 0 10px;
}

.content-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.nav-card,
.content-card,
.footer-card {
  padding: 24px;
}

.nav-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.p_link {
  margin: 0 0 8px;
}

.p_link a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(91, 49, 200, 0.06);
  border: 1px solid transparent;
}

.wob_t {
  color: var(--text);
  font-size: 1rem;
}

a {
  font-size: 0.98rem;
  color: var(--primary-dark);
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.p_link a:hover,
.home-link:hover {
  transform: translateY(-1px);
}

.p_link a:hover {
  background: rgba(91, 49, 200, 0.11);
  border-color: rgba(91, 49, 200, 0.14);
}

.content-card {
  line-height: 1.65;
  overflow-x: auto;
}

.content-card strong { color: #1d2450; }
.content-card big { font-size: 1.35em; }
.content-card br + br { content: ""; }

.content-card table,
.table_inhalt,
.table1,
.table2,
.table3 {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.content-card td,
.content-card th {
  vertical-align: top;
}

.content-card iframe {
  max-width: 100%;
  width: 100%;
  min-height: 315px;
  border: 0;
  border-radius: 18px;
}


.video-block {
  margin: 0 0 28px;
}

.video-block .video-note {
  margin: 0 0 12px;
}

.video-embed {
  width: min(100%, 854px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(33, 45, 106, 0.14);
}

.video-embed iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
  display: block;
  border: 0;
  border-radius: 0;
}

.video-stack {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}

.td_link,
.td_grau {
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
}

.block { text-align: left; }

.p_klein {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

.footer-card {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-contact {
  flex-shrink: 0;
}

@media (max-width: 920px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 18px, 1120px);
    margin-top: 10px;
  }

  .hero-card,
  .topic-bar,
  .nav-card,
  .content-card,
  .footer-card {
    border-radius: 18px;
  }

  .hero-card,
  .nav-card,
  .content-card,
  .footer-card {
    padding: 18px;
  }

  .hero-top,
  .footer-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-bar {
    padding: 14px 16px;
  }

  .content-card iframe {
    min-height: 220px;
  }

  .video-stack {
    gap: 22px;
  }
}


.footer-mail {
  margin: 10px 0 0;
  font-weight: 700;
}
.footer-mail a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(91,49,200,0.08);
}
.content-card img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
.content-card object,
.content-card embed {
  max-width: 100%;
}

.contact-box{
  display:inline-block;
  padding:16px 18px;
  border:1px solid var(--border);
  border-radius:16px;
  background:rgba(91,49,200,0.05);
  line-height:1.6;
  margin:6px 0;
}


/* v6 additions */
.nav-list a.active {
  background: linear-gradient(135deg, rgba(91,49,200,0.92), rgba(65,31,151,0.92));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 22px rgba(65, 31, 151, 0.22);
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.language-badge {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}
.lang-option, .search-button, .menu-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}
.lang-option.is-active {
  background: var(--primary-dark);
  color: #fff;
  border-color: transparent;
}
.search-form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
  margin: 0 0 14px;
}
.search-input {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
.search-input:focus { outline: 2px solid rgba(91,49,200,0.18); border-color: var(--primary); }
.search-results {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.search-result, .search-empty {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(91,49,200,0.05);
  border: 1px solid rgba(91,49,200,0.08);
}
.search-result strong { display:block; color: var(--text); margin-bottom: 3px; }
.search-result span { display:block; font-size: 0.92rem; color: var(--text-soft); }
.summary-box {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(91,49,200,0.08), rgba(91,49,200,0.03));
  border: 1px solid rgba(91,49,200,0.12);
}
.summary-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.summary-copy { margin: 0; }
.lightbox-link {
  display: inline-block;
  border: 0; background: transparent; padding: 0; cursor: zoom-in;
}
.lightbox-link img { border-radius: 16px; box-shadow: 0 10px 24px rgba(33,45,106,0.14); }
.lightbox {
  position: fixed; inset: 0; background: rgba(7,10,25,0.84); display: none; align-items: center; justify-content: center;
  padding: 24px; z-index: 9999;
}
.lightbox.open { display: flex; flex-direction: column; }
.lightbox-image { max-width: min(92vw, 1200px); max-height: 78vh; object-fit: contain; border-radius: 20px; }
.lightbox-caption { color: #fff; margin-top: 12px; text-align: center; }
.lightbox-close { position: absolute; top: 18px; right: 18px; border: 0; background: rgba(255,255,255,0.16); color: #fff; width: 44px; height: 44px; border-radius: 999px; font-size: 1.6rem; cursor: pointer; }
body.lightbox-open { overflow: hidden; }
.menu-toggle { display: none; width: 100%; margin: 0 0 14px; border-radius: 14px; padding: 12px 14px; }
.nav-list { display: block; }
@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav-list { display: none; }
  .nav-list.show { display: block; }
  .search-form { grid-template-columns: 1fr; }
}
