/* ==========================================================================
   CSB Steuerberater – Stylesheet
   ========================================================================== */

:root {
  --color-primary: #a31f24;
  --color-primary-dark: #7c1418;
  --color-primary-light: #c53137;
  --color-ink: #24211f;
  --color-ink-soft: #56504c;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f4f2;
  --color-bg-dark: #241414;
  --color-border: #e7e0dd;
  --color-white: #ffffff;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(36, 20, 20, 0.08);
  --shadow-md: 0 8px 24px rgba(36, 20, 20, 0.10);
  --shadow-lg: 0 20px 48px rgba(36, 20, 20, 0.14);

  --container-w: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.9em;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  max-width: 680px;
  margin: 0 0 48px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.text-lede {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-ghost-light {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
  color: var(--color-white);
}
.btn-ghost-light:hover {
  background: var(--color-white);
  color: var(--color-primary-dark);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap 0.18s ease;
}
.link-arrow:hover {
  gap: 10px;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand svg, .brand img { height: 46px; width: auto; }

.footer-logos {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-logo { height: 72px; width: auto; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-ink);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a.nav-link:hover,
.main-nav li.active > a.nav-link {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

.nav-item {
  position: relative;
}

.nav-caret {
  transition: transform 0.18s ease;
}

.nav-item:hover .nav-caret,
.nav-item.dropdown-open .nav-caret {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.16s ease;
}

.nav-item:hover .dropdown,
.nav-item.dropdown-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--color-ink);
}

.dropdown a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.dropdown a .dd-desc {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--color-ink-soft);
  margin-top: 2px;
}

.nav-cta {
  display: none;
  margin-left: 12px;
}

.nav-item-external {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--color-border);
}
.nav-item-external > a.nav-link {
  font-size: 0.86rem;
  color: var(--color-ink-soft);
}
.nav-item-external > a.nav-link:hover {
  color: var(--color-primary);
  background: transparent;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
  transition: all 0.2s ease;
}

/* Hero ---------------------------------------------------------------------*/

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background: linear-gradient(160deg, #fbf7f6 0%, #f7f4f2 60%, #f2e9e8 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-seal {
  position: absolute;
  right: 48px;
  top: 32px;
}

.page-hero {
  padding: 56px 0 64px;
  background: linear-gradient(160deg, #fbf7f6 0%, #f7f4f2 100%);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  margin-bottom: 18px;
}
.breadcrumb a { font-weight: 600; color: var(--color-ink-soft); }
.breadcrumb a:hover { color: var(--color-primary); }

/* Cards --------------------------------------------------------------------*/

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.feature-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 56px;
}

.feature-panel-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to right, transparent, black 46%);
  mask-image: linear-gradient(to right, transparent, black 46%);
  pointer-events: none;
}

.feature-panel-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

@media (max-width: 760px) {
  .feature-panel {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 0 28px 28px;
  }
  .feature-panel-bg {
    position: static;
    width: calc(100% + 56px);
    margin-left: -28px;
    height: auto;
    aspect-ratio: 4 / 3;
    margin-bottom: -32px;
    opacity: 0.8;
    border-radius: 0;
    -webkit-mask-image: linear-gradient(to bottom, black 45%, transparent 88%);
    mask-image: linear-gradient(to bottom, black 45%, transparent 88%);
  }
  .feature-panel-content { max-width: none; padding-top: 12px; }
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-clickable {
  position: relative;
  cursor: pointer;
}

.card-clickable .stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-body {
  padding: 32px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.card-body .link-arrow {
  margin-top: auto;
  padding-top: 12px;
}

.tile-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.tile-icon svg { width: 26px; height: 26px; }

.tile-icon-lg {
  width: 72px;
  height: 72px;
  font-size: 2.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.feature-card-accent {
  background: var(--color-white);
  border-color: var(--color-border);
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow-md);
}

.feature-card-alert {
  position: relative;
  padding-right: 92px;
}

.alert-icon {
  position: absolute;
  top: 24px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 5px rgba(163, 31, 36, 0.1);
}

.feature-card-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.feature-card-lg {
  padding: 40px;
  gap: 28px;
  align-items: center;
}
.feature-card-lg h4 { font-size: 1.35rem; }
.feature-card-lg p { font-size: 1.05rem !important; }

@media (max-width: 600px) {
  .feature-card-row { flex-direction: column; }
}

/* Image placeholders ---------------------------------------------------- */

.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: repeating-linear-gradient(135deg, #efe8e6, #efe8e6 10px, #f6f1ef 10px, #f6f1ef 20px);
  border: 1px dashed #cdbdb9;
  border-radius: var(--radius-lg);
  color: #9c8a85;
  text-align: center;
  padding: 24px;
}

.img-placeholder svg { width: 34px; height: 34px; opacity: 0.6; }

.diagram-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.diagram-card svg { width: 100%; height: 100%; }
.diagram-card img { width: 100%; height: auto; display: block; }

.video-embed {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  cursor: pointer;
}
.video-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.82;
  transition: opacity 0.18s ease;
}
.video-embed:hover img { opacity: 0.7; }
.video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.video-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.18s ease, background 0.18s ease;
}
.video-play-btn svg { width: 26px; height: 26px; margin-left: 3px; }
.video-embed:hover .video-play-btn {
  transform: scale(1.08);
  background: var(--color-primary-dark);
}
.video-embed.is-playing img,
.video-embed.is-playing .video-play-btn {
  display: none;
}

.img-placeholder span {
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 220px;
  color: #8a7975;
}

.team-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

.office-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  border-radius: var(--radius-lg);
}

.ph-hero { aspect-ratio: 4 / 3; }
.ph-wide { aspect-ratio: 16 / 9; }
.ph-square { aspect-ratio: 1 / 1; }
.ph-portrait { aspect-ratio: 3 / 4; }
.ph-map { aspect-ratio: 16 / 8; }

.policy-content h3 { margin-top: 2.2em; }
.policy-content h4 { margin-top: 1.6em; font-size: 1.05rem; }
.policy-content h3:first-child { margin-top: 0; }

/* Brennpunkte / editorial content ----------------------------------------- */

.topic-card {
  max-width: 820px;
}

.topic-card .card-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}

.topic-meta {
  display: block;
  margin-bottom: 10px;
  color: var(--color-ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.homepage-topics {
  background: var(--color-white);
  padding-top: 64px;
}

.topics-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.topics-heading-row .section-header { margin-bottom: 0; }
.topics-all-link { flex: 0 0 auto; margin-bottom: 6px; }

.current-topics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.current-topic-card {
  max-width: none;
  border-top: 4px solid var(--color-primary);
  background: linear-gradient(135deg, var(--color-white) 0%, #fbf7f6 100%);
}

.current-topic-primary { grid-column: 1 / -1; }

.current-topic-card .card-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 34px 38px;
}

.current-topic-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.current-topic-copy h3 { margin-bottom: 10px; }
.current-topic-copy p { color: var(--color-ink-soft); }
.current-topic-copy .link-arrow { display: inline-flex; margin-top: 5px; }

.topics-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-ink-soft);
  background: var(--color-bg-alt);
}

.article-hero h1 {
  max-width: 850px;
}

.article-hero .text-lede {
  max-width: 800px;
}

.article-content {
  max-width: 920px;
}

.article-section {
  margin-top: 72px;
}

.article-section:first-of-type {
  margin-top: 64px;
}

.article-section > h2 {
  margin-bottom: 18px;
}

.article-section > p {
  max-width: 820px;
}

.key-message {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 28px 30px;
  border: 1px solid #d8b7b8;
  border-left: 5px solid var(--color-primary);
  border-radius: var(--radius-md);
  background: #fbf5f4;
}

.key-message-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: 700;
}

.key-message strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.key-message p {
  margin: 0;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.fact-card {
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
}

.fact-card h3 {
  margin-bottom: 8px;
}

.fact-card p {
  margin: 0;
  color: var(--color-ink-soft);
}

.fact-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deadline-list {
  position: relative;
  margin-top: 30px;
}

.deadline-list::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 156px;
  width: 2px;
  background: var(--color-border);
}

.deadline-item {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 48px;
  padding: 0 0 34px;
}

.deadline-item:last-child {
  padding-bottom: 0;
}

.deadline-item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 157px;
  width: 16px;
  height: 16px;
  transform: translateX(-50%);
  border: 4px solid var(--color-white);
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-border);
}

.deadline-date {
  padding-top: 2px;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.deadline-item h3 {
  margin-bottom: 6px;
}

.deadline-item p {
  margin: 0;
  color: var(--color-ink-soft);
}

.deadline-item-primary {
  padding-bottom: 0;
}

.deadline-item-primary::before {
  top: 6px;
  left: 157px;
  width: 22px;
  height: 22px;
  border-width: 5px;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.deadline-item-primary .deadline-date {
  padding-top: 0;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
}

.article-card-grid {
  margin: 28px 0;
}

.article-card-grid .feature-card h3 {
  margin-bottom: 8px;
}

.article-card-grid .feature-card p {
  margin: 0;
  color: var(--color-ink-soft);
}

.article-card-grid .feature-card .card-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--color-primary-dark);
}

.action-list {
  counter-reset: action;
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.action-list li {
  counter-increment: action;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.action-list li::before {
  content: counter(action);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
}

.action-list strong,
.action-list span {
  display: block;
}

.action-list span {
  margin-top: 2px;
  color: var(--color-ink-soft);
}

.article-sources {
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.article-sources ul {
  display: grid;
  gap: 10px;
}

.article-sources a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-note {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-ink-soft);
  font-size: 0.9rem;
}
.policy-list {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 1em;
}
.policy-list li { margin-bottom: 0.5em; }

.screenshot-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-white);
}
.screenshot-frame img {
  width: 100%;
  display: block;
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: rgba(20, 12, 12, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 760px) {
  .lightbox-overlay { padding: 24px; }
}
.screenshot-caption {
  margin-top: 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--color-ink-soft);
  text-align: left;
}

.screenshot-caption strong {
  color: var(--color-ink);
}

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 8;
  border: 0;
  border-radius: var(--radius-lg);
  display: block;
}

/* Steps ------------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 20px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.step h4 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--color-ink-soft); margin: 0; }

/* Process steps (numbered framed sections) --------------------------------- */

.process {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
  counter-reset: process-step;
}

.process-step {
  position: relative;
  padding: 40px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 59px;
  bottom: -28px;
  width: 2px;
  height: 28px;
  background: var(--color-border);
}

.process-step-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.process-step-head .step-number {
  margin-bottom: 0;
}

.process-step-head h3 {
  margin: 0;
  font-size: 1.3rem;
}

@media (max-width: 760px) {
  .process-step { padding: 28px; }
}

/* Steps slider (swipeable) ------------------------------------------------ */

.steps-slider {
  margin-top: 40px;
}

.steps-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px max(24px, calc((100% - 1180px) / 2 + 24px)) 8px;
}

.steps-track::-webkit-scrollbar {
  display: none;
}

.step-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
}

.step-slide .img-placeholder,
.step-slide .step-photo {
  border: none;
  border-radius: 0;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  background: var(--color-white);
}

.step-slide .step-photo {
  object-fit: contain;
  display: block;
}

.step-slide .img-placeholder {
  background: repeating-linear-gradient(135deg, #e2d9d6, #e2d9d6 10px, #ece4e1 10px, #ece4e1 20px);
}

.step-slide-body {
  flex: 1 1 auto;
  padding: 32px 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.step-slide-body h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.step-slide-body p {
  margin: 0;
  color: var(--color-ink-soft);
}

.step-slide-body .step-number {
  margin-bottom: 14px;
}

.step-slide-body .link-arrow {
  align-self: flex-start;
  margin-top: 16px;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.slider-arrow:hover {
  background: var(--color-bg-alt);
}

.slider-arrow:active {
  transform: scale(0.94);
}

.slider-arrow svg {
  width: 18px;
  height: 18px;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.dot.active {
  background: var(--color-primary);
  transform: scale(1.25);
}

@media (max-width: 760px) {
  .step-slide-body {
    padding: 24px;
  }
}

/* Checklist ---------------------------------------------------------------*/

.checklist li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.98rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  margin-top: 2px;
}

.two-col-list {
  columns: 2;
  column-gap: 40px;
}
.two-col-list li { break-inside: avoid; }

/* Team ---------------------------------------------------------------------*/

.team-card {
  text-align: center;
}
.team-card .card-body { padding: 24px 20px 28px; }
.team-card h3 { margin-bottom: 2px; }
.team-role {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

/* CTA band ------------------------------------------------------------------*/

.cta-section {
  padding-bottom: 72px;
}

.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--color-white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }

/* Footer ---------------------------------------------------------------- */

.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-grid h2,
.footer-grid h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-grid a {
  display: block;
  padding: 6px 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  transition: color 0.15s ease;
}
.footer-grid a:hover { color: var(--color-white); }

.footer-brand p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  max-width: 280px;
}

.footer-seal { height: 72px; width: auto; display: block; }

.footer-seal-large { height: 130px; width: auto; display: block; margin-top: 20px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a { color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--color-white); }

/* Contact form ------------------------------------------------------------ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.info-item {
  display: flex;
  gap: 16px;
}

.info-item .tile-icon {
  margin-bottom: 0;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.info-item .tile-icon svg { width: 20px; height: 20px; }

.info-item h4 { margin-bottom: 4px; font-size: 0.95rem; }
.info-item p { margin: 0; color: var(--color-ink-soft); font-size: 0.94rem; }

.form-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.form-row .req { color: var(--color-primary); }

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--color-white);
  transition: border-color 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--color-ink-soft);
}
.form-checkbox input { margin-top: 4px; width: auto; }

.form-note {
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  margin-top: 14px;
}

/* News ---------------------------------------------------------------------*/

.news-empty {
  text-align: center;
  padding: 72px 24px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
}
.news-empty .tile-icon {
  margin: 0 auto 20px;
}

/* External badge --------------------------------------------------------- */

.ext-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-soft);
}

/* Utility -------------------------------------------------------------------*/

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.stack-gap { display: flex; flex-direction: column; gap: 16px; }

/* Responsive ---------------------------------------------------------------*/

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-seal { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .two-col-list { columns: 1; }
}

@media (max-width: 1240px) {
  .main-nav { position: fixed; top: 84px; left: 0; right: 0; height: calc(100vh - 84px); z-index: 90; background: var(--color-white); flex-direction: column; align-items: stretch; padding: 16px; overflow-y: auto; display: none; transform: none; }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; padding-left: 12px; }
  .nav-item.dropdown-open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .nav-cta { display: inline-flex; margin: 12px 0 0; }
  .nav-item-external { margin-left: 0; padding-left: 0; border-left: none; }
  .nav-item-external > a.nav-link { font-size: 0.92rem; color: var(--color-ink); }
}

@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-section { padding-bottom: 48px; }
  .cta-band { flex-direction: column; text-align: center; }
  .section { padding: 56px 0; }
  .topic-card .card-body,
  .key-message,
  .fact-grid { grid-template-columns: 1fr; }
  .topics-heading-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .topics-all-link { margin-bottom: 0; }
  .current-topics-grid { grid-template-columns: 1fr; }
  .current-topic-primary { grid-column: auto; }
  .current-topic-card .card-body { grid-template-columns: 1fr; gap: 18px; padding: 28px; }
  .current-topic-marker { justify-self: start; min-height: 38px; }
  .article-section { margin-top: 52px; }
  .deadline-list::before { left: 7px; }
  .deadline-item { grid-template-columns: 1fr; gap: 7px; padding-left: 34px; }
  .deadline-item::before { left: 8px; }
  .deadline-item-primary { padding-left: 34px; }
  .deadline-item-primary::before { top: 5px; left: 8px; }
  .feature-card-alert { padding-right: 72px; }
  .alert-icon { top: 22px; right: 22px; width: 36px; height: 36px; font-size: 1.3rem; }
}

/* Floating back-to-previous button ----------------------------------------*/

.back-to-previous {
  position: fixed;
  left: 24px;
  top: 88px;
  z-index: 60;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.back-to-previous:hover,
.back-to-previous:focus-visible {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.back-to-previous svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 760px) {
  .back-to-previous { left: 16px; top: 88px; width: 44px; height: 44px; }
}

/* Shared navigation, external content and contact feedback. */
.nav-item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.btn { white-space: normal; text-align: center; justify-content: center; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
a, .policy-content { overflow-wrap: anywhere; }
.external-content { padding: 24px; background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.external-content iframe { width: 100%; border: 0; }
.external-content .btn { margin: 8px 8px 0 0; }
.form-feedback { margin-top: 16px; }
.form-feedback[data-error="true"] { color: var(--color-primary-dark); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 1240px) {
  .main-nav { height: calc(100dvh - 84px); }
  .main-nav.no-js { position: static; display: flex; height: auto; }
  .main-nav.no-js .dropdown { display: block; }
  .header-inner:has(.main-nav.no-js) { flex-wrap: wrap; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
