:root {
  --blue: #17324d;
  --blue-2: #244762;
  --graphite: #2f363d;
  --ivory: #f5f1e8;
  --paper: #fffcf6;
  --sage-brand: #7a8578;
  --sage: #657063;
  --stone: #d9d2c5;
  --white: #ffffff;
  --display: Georgia, "Times New Roman", serif;
  --ui: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
  --shadow: 0 20px 60px rgb(23 50 77 / 9%);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--graphite);
  background: var(--ivory);
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; }

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgb(23 50 77 / 12%);
  background: rgb(245 241 232 / 92%);
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand img { display: block; width: clamp(205px, 24vw, 300px); height: auto; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--blue);
  font-size: .88rem;
  font-weight: 500;
}

.desktop-nav a, .language-nav a { text-decoration: none; }
.desktop-nav a:hover, .language-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.desktop-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 7px; }

.language-nav {
  display: flex;
  gap: 9px;
  padding-left: 22px;
  border-left: 1px solid var(--stone);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
}

.language-nav a { padding: 5px 1px; color: var(--sage); }
.language-nav a[aria-current="true"] { color: var(--blue); border-bottom: 1px solid var(--blue); }
.mobile-menu { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 78px;
}

.hero::after {
  content: "";
  position: absolute;
  top: 28px;
  right: max(20px, calc((100% - var(--max)) / 2));
  width: 1px;
  height: 82px;
  background: var(--sage);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  align-items: center;
  gap: clamp(44px, 7vw, 96px);
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--sage);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  color: var(--blue);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}

html:not([lang^="de"]) h1,
html:not([lang^="de"]) h2,
html:not([lang^="de"]) h3 { hyphens: none; }

h1 { max-width: 760px; font-size: clamp(2.5rem, 4.2vw, 3.75rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.025em; }
h3 { font-size: 1.45rem; }

.hero-copy {
  max-width: 680px;
  margin: 28px 0 34px;
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  line-height: 1.7;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.button:hover { transform: translateY(-2px); background: var(--blue-2); }
.button.secondary { background: transparent; color: var(--blue); }
.button.secondary:hover { background: rgb(23 50 77 / 7%); }

.hero-panel {
  position: relative;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 58px);
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgb(245 241 232 / 22%);
  border-radius: 5px;
  pointer-events: none;
}

.panel-mark { position: relative; width: 74px; height: 74px; }
.panel-mark img { width: 100%; filter: brightness(0) invert(1); opacity: .93; }

.service-list {
  position: relative;
  list-style: none;
  margin: 50px 0 0;
  padding: 0;
  counter-reset: services;
}

.service-list li {
  counter-increment: services;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid rgb(245 241 232 / 20%);
  font-family: var(--display);
  font-size: 1.13rem;
}

.service-list li::before {
  content: "0" counter(services);
  color: #bac2b5;
  font-family: var(--ui);
  font-size: .875rem;
  letter-spacing: .08em;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--blue);
  color: white;
}

.skip-link:focus { transform: translateY(0); }

.statement {
  padding: 34px 0;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  background: var(--paper);
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(180px, .6fr) 1.8fr;
  align-items: start;
  gap: 50px;
}

.statement .eyebrow { margin: 7px 0 0; }
.statement p:last-child { max-width: 850px; margin: 0; color: var(--blue); font-family: var(--display); font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.4; }

.section { padding-top: clamp(76px, 10vw, 128px); padding-bottom: clamp(76px, 10vw, 128px); }
.section.soft { width: 100%; max-width: none; padding-left: max(20px, calc((100% - var(--max)) / 2)); padding-right: max(20px, calc((100% - var(--max)) / 2)); background: var(--paper); border-top: 1px solid rgb(23 50 77 / 9%); border-bottom: 1px solid rgb(23 50 77 / 9%); }

.section-heading { max-width: 760px; margin-bottom: 52px; }
.section-heading .eyebrow { margin-bottom: 18px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}

.service-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 26px;
  border-right: 1px solid var(--stone);
}

.service-card:last-child { border-right: 0; }
.service-card .index { margin-bottom: 42px; color: var(--sage); font-size: .875rem; font-weight: 600; letter-spacing: .1em; }
.service-card h3 { min-height: 3.5em; }
.service-card p { margin: 20px 0 28px; font-size: 1rem; }
.service-card a { margin-top: auto; color: var(--blue); font-size: .88rem; font-weight: 600; text-decoration: none; }
.service-card:hover { background: var(--paper); }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 20px 0 20px 42px; border-top: 1px solid var(--stone); font-size: 1.05rem; }
.check-list li:last-child { border-bottom: 1px solid var(--stone); }
.check-list li::before { content: "✓"; position: absolute; left: 5px; top: 20px; color: var(--sage); font-weight: 600; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--stone); border: 1px solid var(--stone); }
.process-grid article { min-height: 280px; padding: 32px; background: var(--ivory); }
.process-grid span { color: var(--sage); font-size: .875rem; font-weight: 600; letter-spacing: .1em; }
.process-grid h3 { margin-top: 54px; }
.process-grid p { margin: 16px 0 0; }

.faq-list { border-top: 1px solid var(--stone); }
.faq-list details { border-bottom: 1px solid var(--stone); }
.faq-list summary { position: relative; padding: 23px 56px 23px 0; color: var(--blue); cursor: pointer; font-family: var(--display); font-size: 1.25rem; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; top: 17px; color: var(--sage); font-family: var(--ui); font-size: 1.6rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 780px; margin: -2px 0 24px; }

.final-cta { padding: 68px 0; background: var(--sage); color: var(--white); }
.final-cta > .shell { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.final-cta h2 { max-width: 760px; color: var(--white); font-size: clamp(1.9rem, 3vw, 2.75rem); }
.final-cta .eyebrow { color: var(--white); opacity: .8; }
.final-cta .actions { flex: 0 0 auto; }
.final-cta .button { border-color: var(--white); background: var(--white); color: var(--blue); }
.final-cta .button.secondary { background: transparent; color: var(--white); }

.breadcrumbs { display: flex; gap: 10px; padding-top: 22px; color: var(--sage); font-size: .875rem; }
.breadcrumbs a { text-underline-offset: 4px; }
.breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-hero { padding: clamp(62px, 9vw, 112px) 0 clamp(72px, 9vw, 120px); border-bottom: 1px solid var(--stone); }
.page-hero h1 { max-width: 980px; }
.page-hero .hero-copy { max-width: 780px; }

.service-detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(50px, 8vw, 100px); }
.detail-main { display: grid; gap: 86px; }
.detail-main h2, .detail-aside h2 { margin-bottom: 28px; font-size: clamp(1.65rem, 2.5vw, 2.25rem); }
.detail-aside { display: grid; align-content: start; gap: 1px; padding: 1px; background: var(--stone); }
.detail-aside > div { padding: 30px; background: var(--paper); }
.detail-aside ul { margin: 0; padding-left: 20px; }
.detail-aside li { margin: 12px 0; }
.official-link { margin: 24px 0 0; font-weight: 600; }
.official-link a { color: var(--blue); text-underline-offset: 4px; }
.number-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.number-list li { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--stone); }
.number-list li:last-child { border-bottom: 1px solid var(--stone); }
.number-list span { color: var(--sage); font-size: .875rem; font-weight: 600; }
.number-list p { margin: 0; }
.notice-section { padding-bottom: 40px; }
.notice { padding: 26px 30px; border-left: 4px solid var(--sage); background: var(--paper); color: var(--blue); }
.notice p { margin: 8px 0 0; }

.article { padding-top: clamp(64px, 9vw, 108px); padding-bottom: clamp(80px, 10vw, 140px); }
.article > header { max-width: 920px; padding-bottom: 52px; border-bottom: 1px solid var(--stone); }
.article h1 { max-width: 980px; }
.article-body { max-width: 760px; }
.article-body section { margin-bottom: 54px; }
.article-body h2 { margin-bottom: 24px; font-size: clamp(1.65rem, 2.5vw, 2.25rem); }
.article-body p { margin: 0 0 18px; font-size: 1.06rem; line-height: 1.8; }
.not-found { min-height: 65vh; display: grid; place-content: center; padding-block: 100px; text-align: center; }
.not-found h1 { max-width: 820px; }
.not-found p:not(.eyebrow) { font-size: 1.1rem; }
.not-found .actions { justify-content: center; margin-top: 18px; }

.site-footer { padding: 70px 0 24px; background: var(--blue); color: rgb(245 241 232 / 75%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .7fr; gap: clamp(40px, 8vw, 110px); }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-grid img { width: min(290px, 100%); height: auto; margin-bottom: 12px; }
.footer-grid p { margin: 0; }
.footer-grid a { color: inherit; text-decoration: none; }
.footer-grid a:hover { color: white; text-decoration: underline; text-underline-offset: 4px; }
.footer-label { color: var(--white); font-size: .875rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.footer-base { display: flex; justify-content: space-between; margin-top: 58px; padding-top: 22px; border-top: 1px solid rgb(245 241 232 / 20%); font-size: .875rem; }

:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; box-shadow: 0 0 0 6px #075b9c; }

@media (max-width: 860px) {
  .desktop-nav, .language-nav { display: none; }
  .mobile-menu { position: relative; display: block; margin-left: auto; }
  .mobile-menu summary { min-width: 72px; padding: 10px 12px; border: 1px solid var(--stone); border-radius: 5px; color: var(--blue); cursor: pointer; list-style: none; text-align: center; font-size: .875rem; font-weight: 600; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; top: calc(100% + 10px); right: 0; width: min(310px, calc(100vw - 28px)); display: grid; padding: 18px; border: 1px solid var(--stone); border-radius: 6px; background: var(--paper); box-shadow: var(--shadow); }
  .mobile-menu nav > a { padding: 10px 4px; color: var(--blue); font-weight: 500; text-decoration: none; }
  .mobile-languages { display: flex; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--stone); }
  .mobile-languages a { padding: 5px 8px; color: var(--sage); text-decoration: none; }
  .mobile-languages a[aria-current="true"] { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
  .hero { padding-top: 52px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { min-height: auto; }
  .statement-grid, .service-detail { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(2) { border-right: 0; }
  .service-card:nth-child(-n+2) { border-bottom: 1px solid var(--stone); }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { min-height: auto; }
  .process-grid h3 { margin-top: 28px; }
  .final-cta > .shell { display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 76px; }
  .brand img { width: 210px; }
  h1 { font-size: clamp(2.35rem, 8vw, 3rem); }
  .hero::after { display: none; }
  .hero-panel { padding: 36px 30px; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .statement-grid { gap: 20px; }
  .service-grid, .footer-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; border-right: 0; border-bottom: 1px solid var(--stone); }
  .service-card:last-child { border-bottom: 0; }
  .service-card .index { margin-bottom: 26px; }
  .service-card h3 { min-height: auto; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-base { display: grid; gap: 8px; }
  .page-hero h1, .article h1 { font-size: clamp(2.35rem, 8vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
