:root {
  --tan-header-navy: #17324b;
  --tan-header-teal: #187b74;
  --tan-header-line: #d7e4e3;
}

.tan-header,
.tan-header * {
  box-sizing: border-box;
}

.tan-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  min-height: 82px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--tan-header-line);
  color: var(--tan-header-navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 4px 18px rgba(23, 50, 75, 0.04);
}

.tan-header-inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.tan-brand {
  display: inline-flex;
  flex: 0 0 205px !important;
  width: 205px !important;
  height: auto !important;
  line-height: 0;
  text-decoration: none;
}

.tan-brand img {
  display: block !important;
  width: 205px !important;
  height: auto !important;
  max-width: 205px !important;
  max-height: none !important;
  aspect-ratio: 900 / 222 !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

.tan-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  margin-left: auto;
  white-space: nowrap;
}

.tan-desktop-nav a,
.tan-mobile-nav a {
  color: var(--tan-header-navy);
  font-size: 0.9375rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}

.tan-desktop-nav a:hover,
.tan-desktop-nav a:focus-visible,
.tan-mobile-nav a:hover,
.tan-mobile-nav a:focus-visible {
  color: var(--tan-header-teal);
}

.tan-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 12px;
  background: var(--tan-header-navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.tan-header-cta:hover,
.tan-header-cta:focus-visible {
  background: #234e69;
  color: #fff;
}

.tan-menu-toggle {
  display: none;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--tan-header-line);
  border-radius: 13px;
  background: #fff;
  color: var(--tan-header-navy);
  font: inherit;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.tan-mobile-nav[hidden] {
  display: none !important;
}

.tan-mobile-nav {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 18px;
  padding: 10px 18px;
  display: grid;
  background: #fff;
  border: 1px solid var(--tan-header-line);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 20px 38px rgba(23, 50, 75, 0.13);
}

.tan-mobile-nav a {
  display: block;
  padding: 13px 8px;
  border-bottom: 1px solid #e3eceb;
  font-size: 1rem;
}

.tan-mobile-nav a:last-child {
  border-bottom: 0;
}

.tan-footer,
.tan-footer * {
  box-sizing: border-box;
}

.tan-footer {
  position: relative;
  width: 100%;
  padding: 54px 0 96px;
  background: #0c2437;
  color: #d5e1e7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.tan-footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.9fr 0.9fr;
  gap: 46px;
  align-items: start;
}

.tan-footer-logo-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.tan-footer-brand img {
  display: block;
  width: 230px;
  height: auto;
  max-width: none;
  aspect-ratio: 900 / 222;
  object-fit: contain;
}

.tan-footer-brand p {
  max-width: 330px;
  margin: 16px 0 0;
  color: #d5e1e7;
}

.tan-footer-nav {
  display: grid;
  align-content: start;
  gap: 9px;
}

.tan-footer-nav b {
  margin-bottom: 4px;
  color: #fff;
  font-size: 0.9375rem;
}

.tan-footer-nav a {
  margin: 0;
  padding: 0;
  color: #d5e1e7;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tan-footer-nav a:hover,
.tan-footer-nav a:focus-visible {
  color: #fff;
}

.tan-footer-bottom {
  width: min(1180px, calc(100% - 48px));
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #9eb1bc;
  font-size: 0.8rem;
}

@media (max-width: 1080px) {
  .tan-desktop-nav {
    display: none;
  }

  .tan-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .tan-footer-inner {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .tan-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .tan-header,
  .tan-header-inner {
    min-height: 72px;
  }

  .tan-header-inner,
  .tan-mobile-nav,
  .tan-footer-inner,
  .tan-footer-bottom {
    width: min(100% - 28px, 1180px);
  }

  .tan-header-inner {
    gap: 10px;
  }

  .tan-brand {
    flex-basis: 165px !important;
    width: 165px !important;
  }

  .tan-brand img {
    width: 165px !important;
    max-width: 165px !important;
  }

  .tan-header-cta {
    display: none;
  }

  .tan-menu-toggle {
    width: 46px;
    height: 46px;
  }

  .tan-footer {
    padding: 46px 0 112px;
  }

  .tan-footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .tan-footer-brand {
    grid-column: auto;
  }

  .tan-footer-brand img {
    width: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tan-header * {
    scroll-behavior: auto;
  }
}

/* Zentraler Screenshot-Zoom – bewusst in der immer geladenen Basisdatei. */
.tan-shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 24, 37, 0.9);
}

.tan-shot-lightbox[hidden] {
  display: none !important;
}

.tan-shot-lightbox-dialog {
  position: relative;
  display: grid;
  place-items: center;
  width: min(94vw, 760px);
  max-height: 92vh;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.tan-shot-lightbox-image {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: calc(92vh - 36px) !important;
  object-fit: contain !important;
  transform: none !important;
}

.tan-shot-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #17324b;
  color: #fff;
  font: 400 1.75rem/1 system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.tan-shot-lightbox-close:focus-visible,
img[data-tan-zoomable="true"]:focus-visible {
  outline: 4px solid #efb74e;
  outline-offset: 4px;
}

@media (min-width: 641px) {
  img[data-tan-zoomable="true"] {
    cursor: zoom-in !important;
  }
}

@media (max-width: 640px) {
  .tan-shot-lightbox {
    display: none !important;
  }
}
