:root {
  --cb-navy: #0d2b4d;
  --cb-blue: #1c3d6b;
  --cb-blue-soft: #dceaf6;
  --cb-gold: #c8922b;
  --cb-gold-dark: #a97714;
  --cb-green: #2f8f55;
  --cb-green-soft: #e4f4ea;
  --cb-sky: #3b8cc5;
  --cb-sky-soft: #e5f1fa;
  --cb-red-soft: #fae9e5;
  --cb-purple-soft: #eee8fa;
  --cb-light: #f6f7f9;
  --cb-soft: #eef3f8;
  --cb-white: #ffffff;
  --cb-text: #152238;
  --cb-muted: #5c6b7a;
  --cb-border: rgba(13, 43, 77, 0.14);
  --cb-shadow: 0 14px 34px rgba(13, 43, 77, 0.14);
  --cb-shadow-soft: 0 8px 22px rgba(13, 43, 77, 0.08);
  --cb-radius-lg: 28px;
  --cb-radius-md: 18px;
  --cb-radius-sm: 12px;
  --cb-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Verdana, Arial, sans-serif;
  color: var(--cb-text);
  background:
    linear-gradient(rgba(246, 247, 249, 0.94), rgba(246, 247, 249, 0.97)),
    radial-gradient(circle at top left, #dceaf6 0%, transparent 34%),
    radial-gradient(circle at top right, #f5e4bf 0%, transparent 28%),
    #f6f7f9;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

/* ZENTRALE SEITENBREITE */

.page {
  width: min(var(--cb-max), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

main {
  width: 100%;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0 10px;
  backdrop-filter: blur(14px);
  background: rgba(246, 247, 249, 0.84);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--cb-border);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(13, 43, 77, 0.10);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, #ffffff, #f2e3c6);
  border: 1px solid rgba(200, 146, 43, 0.45);
  display: grid;
  place-items: center;
  color: var(--cb-gold-dark);
  font-size: 23px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(200, 146, 43, 0.16);
}

.brand-text strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--cb-navy);
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: 0.2px;
}

.brand-text span {
  display: block;
  color: var(--cb-gold-dark);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.6px;
  margin-top: 2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cb-navy);
}

.desktop-nav a {
  padding: 11px 12px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: #f3ead7;
  color: var(--cb-gold-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--cb-border);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--cb-navy);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--cb-navy);
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.lang-switch button:hover,
.lang-switch button.is-active {
  background: var(--cb-navy);
  color: #fff;
}

.cta-small {
  padding: 11px 18px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--cb-gold), var(--cb-gold-dark));
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(200, 146, 43, 0.25);
  white-space: nowrap;
  transition: 0.2s ease;
}

.cta-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(200, 146, 43, 0.30);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: var(--cb-navy);
  color: #fff;
  width: 44px;
  height: 42px;
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  margin-top: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--cb-border);
  border-radius: 18px;
  box-shadow: var(--cb-shadow);
}

.mobile-nav a {
  display: block;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cb-navy);
  border-bottom: 1px solid rgba(13, 43, 77, 0.07);
}

.mobile-nav a:hover {
  background: var(--cb-soft);
}

.mobile-nav.open {
  display: block;
}

/* HERO */

.hero {
  padding: 34px 0 18px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--cb-gold-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 auto;
  max-width: 980px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--cb-navy);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.8px;
}

.hero p {
  max-width: 860px;
  margin: 18px auto 0;
  font-size: clamp(16px, 2.1vw, 20px);
  color: var(--cb-muted);
}

.hero-line {
  width: 74px;
  height: 4px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--cb-gold), transparent);
  border-radius: 999px;
}

/* HAUPTKARTEN */

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
  margin-bottom: 26px;
  margin-left: auto;
  margin-right: auto;
}

.gateway-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border-radius: var(--cb-radius-lg);
  border: 1px solid var(--cb-border);
  box-shadow: var(--cb-shadow);
  background: #fff;
}

.gateway-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.86) 45%, rgba(255,255,255,0.56) 100%),
    var(--card-bg);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.gateway-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(200, 146, 43, 0.13);
  z-index: 0;
}

.gateway-card.residence {
  --card-bg:
    radial-gradient(circle at 88% 16%, rgba(200, 146, 43, 0.28), transparent 26%),
    radial-gradient(circle at 90% 84%, rgba(59, 140, 197, 0.18), transparent 28%),
    linear-gradient(135deg, #f1e0c4, #ffffff 42%, #d8e9f4);
}

.gateway-card.institute {
  --card-bg:
    radial-gradient(circle at 88% 16%, rgba(47, 143, 85, 0.20), transparent 26%),
    radial-gradient(circle at 90% 84%, rgba(59, 140, 197, 0.22), transparent 28%),
    linear-gradient(135deg, #d9ecf9, #ffffff 42%, #d5e4ef);
}

.gateway-content {
  position: relative;
  z-index: 1;
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 390px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.card-icon {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 31px;
  color: #fff;
  background: var(--cb-navy);
  box-shadow: 0 8px 20px rgba(13, 43, 77, 0.22);
}

.residence .card-icon {
  background: linear-gradient(135deg, var(--cb-gold), var(--cb-gold-dark));
}

.institute .card-icon {
  background: linear-gradient(135deg, var(--cb-blue), var(--cb-sky));
}

.gateway-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--cb-navy);
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.08;
}

.gateway-card .claim {
  margin: 9px 0 0;
  color: var(--cb-gold-dark);
  font-size: 14px;
  font-weight: 700;
}

.institute .claim {
  color: #23648e;
}

.gateway-card .description {
  max-width: 450px;
  margin: 10px 0 22px;
  color: var(--cb-text);
  font-size: 15px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.feature-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(13, 43, 77, 0.14);
  color: var(--cb-navy);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(13, 43, 77, 0.08);
  transition: 0.2s ease;
}

.feature-link:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 146, 43, 0.58);
  box-shadow: 0 14px 26px rgba(13, 43, 77, 0.14);
  background: #ffffff;
}

.feature-link span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.link-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: var(--cb-sky-soft);
  color: var(--cb-navy);
  font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(13, 43, 77, 0.08);
}

.residence .feature-link:nth-child(1) .link-icon {
  background: #f4e6c9;
}

.residence .feature-link:nth-child(2) .link-icon {
  background: #e5f1fa;
}

.residence .feature-link:nth-child(3) .link-icon {
  background: #eef0ff;
}

.residence .feature-link:nth-child(4) .link-icon {
  background: #fff2d9;
}

.residence .feature-link:nth-child(5) .link-icon {
  background: #f0e7df;
}

.residence .feature-link:nth-child(6) .link-icon {
  background: #e8f4f7;
}

.institute .feature-link:nth-child(1) .link-icon {
  background: #f4e6c9;
}

.institute .feature-link:nth-child(2) .link-icon {
  background: var(--cb-green-soft);
}

.institute .feature-link:nth-child(3) .link-icon {
  background: #eef0ff;
}

.institute .feature-link:nth-child(4) .link-icon {
  background: #e5f1fa;
}

.institute .feature-link:nth-child(5) .link-icon {
  background: #fff2d9;
}

.institute .feature-link:nth-child(6) .link-icon {
  background: #eaf5ef;
}

.arrow {
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 1;
  color: var(--cb-gold-dark);
  opacity: 0.9;
}

.feature-link:hover .arrow {
  transform: translateX(2px);
}

.card-bottom {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(13, 43, 77, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.residence .card-bottom {
  background: rgba(200, 146, 43, 0.94);
}

/* THEMENBANNER */

.theme-banner {
  margin-top: 26px;
  margin-bottom: 26px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(13,43,77,0.96), rgba(13,43,77,0.76)),
    linear-gradient(135deg, #133d68, #0d2b4d 45%, #1b4f79);
  box-shadow: var(--cb-shadow);
}

.theme-inner {
  padding: 30px 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
}

.theme-item {
  padding: 16px 12px;
  border-radius: 20px;
  transition: 0.2s ease;
}

.theme-item:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.theme-icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 24px;
  background: rgba(255,255,255,0.15);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.16),
    0 10px 22px rgba(0,0,0,0.12);
}

.theme-icon svg {
  display: block;
}

.theme-item strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  margin-bottom: 5px;
}

.theme-item span {
  display: block;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
}

.theme-claim {
  text-align: center;
  color: #f4c66c;
  padding: 0 20px 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2.4vw, 28px);
}

/* INFO-LEISTE */

.info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 34px;
  margin-left: auto;
  margin-right: auto;
}

.info-item {
  display: flex;
  gap: 12px;
  padding: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--cb-border);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(13, 43, 77, 0.06);
  transition: 0.2s ease;
}

.info-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(13, 43, 77, 0.10);
}

.info-item .info-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--cb-green-soft);
  font-size: 23px;
  color: var(--cb-gold-dark);
}

.info-item:nth-child(2) .info-icon {
  background: var(--cb-sky-soft);
}

.info-item:nth-child(3) .info-icon {
  background: #eef0ff;
}

.info-item:nth-child(4) .info-icon {
  background: #e8f4f7;
}

.info-item strong {
  display: block;
  color: var(--cb-navy);
  font-size: 14px;
  margin-bottom: 4px;
}

.info-item span {
  color: var(--cb-muted);
  font-size: 12px;
}

/* RECHTLICHE SEITEN */

.legal-page {
  margin-top: 28px;
  margin-bottom: 44px;
}

.legal-card {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(26px, 4vw, 46px);
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-lg);
  box-shadow: var(--cb-shadow);
}

.legal-card h2 {
  margin: 32px 0 10px;
  color: var(--cb-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  margin: 0 0 16px;
  color: var(--cb-text);
  font-size: 15px;
  line-height: 1.75;
}

.legal-card strong {
  color: var(--cb-navy);
}

.legal-card a {
  color: var(--cb-blue);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-card a:hover {
  color: var(--cb-gold-dark);
}

.legal-card ul {
  margin: 8px 0 20px 22px;
  padding: 0;
}

.legal-card li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.65;
}

.legal-note {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 5px solid var(--cb-gold);
  border-radius: 16px;
  background: #fff7e8;
  color: var(--cb-text);
}

.legal-note strong {
  display: block;
  margin-bottom: 6px;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--cb-border);
  padding: 28px 0 40px;
  color: var(--cb-muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-brand strong {
  display: block;
  color: var(--cb-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.footer-brand span {
  display: block;
  color: var(--cb-muted);
  margin-top: 3px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--cb-navy);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--cb-gold-dark);
}

.footer-copy {
  color: var(--cb-muted);
}

/* SPRACHUMSCHALTUNG */

[data-lang="en"] {
  display: none;
}

body.lang-en [data-lang="de"] {
  display: none;
}

body.lang-en [data-lang="en"] {
  display: initial;
}

/* RESPONSIVE */

@media (max-width: 1060px) {
  .desktop-nav,
  .cta-small {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-inner {
    align-items: center;
  }

  .gateway-grid {
    grid-template-columns: minmax(0, 760px);
  }

  .info-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 20px, var(--cb-max));
  }

  .site-header {
    padding-top: 10px;
  }

  .header-inner {
    padding: 12px;
    border-radius: 18px;
  }

  .brand {
    min-width: auto;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .brand-text span {
    font-size: 9px;
    letter-spacing: 1.8px;
  }

  .lang-switch {
    padding: 6px 8px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero h1 {
    font-size: 33px;
  }

  .hero p {
    font-size: 16px;
  }

  .gateway-card,
  .gateway-content {
    min-height: auto;
  }

  .gateway-content {
    padding: 22px;
  }

  .card-head {
    display: block;
  }

  .card-icon {
    margin-bottom: 14px;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .theme-inner {
    grid-template-columns: 1fr;
  }

  .info-strip {
    grid-template-columns: 1fr;
  }

  .legal-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .footer-inner {
    display: block;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 16px;
  }
}

@media (max-width: 420px) {
  .brand-text strong {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .gateway-card h2 {
    font-size: 26px;
  }

  .legal-card p,
  .legal-card li {
    font-size: 14px;
  }
}