:root {
  color-scheme: light;
  --blue-950: #05284a;
  --blue-850: #0b3a66;
  --blue-650: #1f6796;
  --gold-500: #f2c230;
  --gold-200: #f8df87;
  --stone-100: #f8f0df;
  --stone-200: #e9dcc6;
  --cream: #fff8eb;
  --white: #ffffff;
  --ink: #172331;
  --muted: #5d6b74;
  --line: rgba(5, 40, 74, 0.15);
  --shadow: 0 22px 70px rgba(5, 40, 74, 0.16);
  --wrap: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

[data-lang] {
  display: none;
}

html:not(:has([data-lang].is-active)) [data-lang="en"],
[data-lang].is-active {
  display: revert;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px max(20px, calc((100vw - 1120px) / 2));
  overflow: hidden;
  background: rgba(255, 248, 235, 0.94);
  border-bottom: 1px solid rgba(5, 40, 74, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: var(--blue-950);
  text-decoration: none;
  font-size: 1.06rem;
  font-weight: 820;
}

.brand:focus-visible,
.language-switcher button:focus-visible {
  outline: 3px solid rgba(242, 194, 48, 0.62);
  outline-offset: 3px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(242, 194, 48, 0.7);
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(5, 40, 74, 0.18);
}

.language-switcher {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  max-width: 100%;
}

.language-switcher button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0;
  color: var(--blue-950);
  background: var(--white);
  border: 1px solid rgba(5, 40, 74, 0.18);
  border-radius: 50%;
  cursor: pointer;
}

.language-switcher button:hover,
.language-switcher:not(:has(button.is-active)) button[data-language-button="en"],
.language-switcher button.is-active {
  background: var(--gold-500);
  border-color: rgba(5, 40, 74, 0.28);
  box-shadow: 0 8px 20px rgba(5, 40, 74, 0.13);
}

.flag {
  position: relative;
  display: block;
  width: 24px;
  height: 16px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(5, 40, 74, 0.18);
}

.flag-de {
  background: linear-gradient(#111 0 33.333%, #d71920 33.333% 66.666%, #f6c400 66.666%);
}

.flag-es {
  background: linear-gradient(#c8102e 0 25%, #ffc400 25% 75%, #c8102e 75%);
}

.flag-gb {
  background:
    linear-gradient(34deg, transparent 0 42%, #fff 42% 47%, #c8102e 47% 53%, #fff 53% 58%, transparent 58%),
    linear-gradient(-34deg, transparent 0 42%, #fff 42% 47%, #c8102e 47% 53%, #fff 53% 58%, transparent 58%),
    linear-gradient(90deg, transparent 0 40%, #fff 40% 45%, #c8102e 45% 55%, #fff 55% 60%, transparent 60%),
    linear-gradient(0deg, transparent 0 35%, #fff 35% 43%, #c8102e 43% 57%, #fff 57% 65%, transparent 65%),
    #012169;
}

.hero {
  position: relative;
  min-height: clamp(570px, 76svh, 710px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: var(--blue-950);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
  background: var(--blue-950);
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-media::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 40, 74, 0.93) 0%, rgba(5, 40, 74, 0.72) 46%, rgba(5, 40, 74, 0.18) 100%),
    linear-gradient(0deg, rgba(5, 40, 74, 0.58) 0%, rgba(5, 40, 74, 0.08) 64%);
}

.hero-media::after {
  z-index: 2;
  background:
    radial-gradient(circle at 78% 34%, rgba(242, 194, 48, 0.14), transparent 30%),
    linear-gradient(110deg, rgba(242, 194, 48, 0.05), transparent 40%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  background: linear-gradient(0deg, var(--cream), rgba(255, 250, 240, 0));
}

.hero-inner {
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(72px, 10vh, 118px) 0 clamp(58px, 9vh, 98px);
  color: var(--cream);
}

.route-line {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--gold-200);
  font-size: clamp(0.76rem, 1vw, 0.92rem);
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.35rem, 7vw, 6.8rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.92;
  text-wrap: balance;
}

.hero-copy {
  max-width: 700px;
  margin-bottom: 24px;
  color: rgba(255, 250, 240, 0.95);
  font-size: clamp(1.08rem, 1.75vw, 1.34rem);
  font-weight: 540;
  line-height: 1.38;
}

.hero-signals {
  display: grid;
  width: min(740px, 100%);
  gap: 10px;
}

.hero-signals p {
  width: max-content;
  max-width: 100%;
  margin-bottom: 0;
  padding: 9px 13px;
  color: var(--gold-200);
  background: rgba(5, 40, 74, 0.66);
  border: 1px solid rgba(247, 224, 164, 0.3);
  border-radius: 999px;
  font-size: clamp(0.84rem, 1.25vw, 0.98rem);
  font-weight: 760;
}

.section-wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.help-section,
.process-section,
.scope-section {
  padding: clamp(66px, 10vw, 122px) 0;
}

.help-section,
.scope-section {
  background: var(--cream);
}

.process-section {
  background: var(--stone-100);
  border-top: 1px solid rgba(5, 40, 74, 0.08);
  border-bottom: 1px solid rgba(5, 40, 74, 0.08);
}

.help-layout,
.scope-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

.section-label {
  margin-bottom: 12px;
  color: var(--blue-650);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h2 {
  max-width: 790px;
  margin-bottom: 20px;
  color: var(--blue-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
  text-wrap: balance;
}

.section-copy p:not(.section-label),
.scope-grid p {
  max-width: 690px;
  color: #2a3b49;
  font-size: clamp(1.04rem, 1.55vw, 1.18rem);
}

.example-stack {
  display: grid;
  gap: 16px;
}

.example-card,
.step-card,
.trust-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 46px rgba(5, 40, 74, 0.08);
}

.example-card {
  padding: clamp(22px, 3vw, 30px);
}

.example-number,
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  color: var(--blue-950);
  background: var(--gold-500);
  box-shadow: inset 0 0 0 1px rgba(5, 40, 74, 0.08);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
}

h3 {
  margin-bottom: 12px;
  color: var(--blue-950);
  font-size: clamp(1.24rem, 1.8vw, 1.55rem);
  line-height: 1.16;
}

.example-card p,
.step-card p,
.trust-box p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.photo-strip {
  width: var(--wrap);
  margin: 0 auto clamp(54px, 8vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(190px, 0.8fr) minmax(190px, 0.8fr);
  gap: 14px;
}

.strip-photo {
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  background: var(--stone-200);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.strip-photo-large {
  min-height: 300px;
}

.strip-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(28px, 5vw, 44px);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  min-height: 255px;
  padding: clamp(22px, 3vw, 30px);
}

.scope-grid {
  align-items: center;
}

.trust-box {
  padding: clamp(24px, 4vw, 34px);
  color: var(--blue-950);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 235, 0.92));
  border-left: 4px solid var(--gold-500);
}

.trust-box h3 {
  margin-bottom: 12px;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px max(20px, calc((100vw - 1120px) / 2));
  color: rgba(255, 250, 240, 0.78);
  background: var(--blue-950);
}

.site-footer strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cream);
}

.site-footer p {
  margin-bottom: 0;
}

.footer-status {
  max-width: 480px;
  text-align: right;
}

@media (max-width: 900px) {
  :root {
    --wrap: min(100% - 32px, 720px);
  }

  .hero {
    min-height: 710px;
  }

  .hero-media::before {
    background:
      linear-gradient(90deg, rgba(5, 40, 74, 0.92), rgba(5, 40, 74, 0.66)),
      linear-gradient(0deg, rgba(5, 40, 74, 0.66), rgba(5, 40, 74, 0.1));
  }

  .hero-media img {
    object-position: 52% center;
  }

  .help-layout,
  .scope-grid,
  .step-grid,
  .photo-strip {
    grid-template-columns: 1fr;
  }

  .strip-photo,
  .strip-photo-large {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .step-card {
    min-height: 0;
  }

  .example-number,
  .step-number {
    margin-bottom: 20px;
  }
}

@media (max-width: 560px) {
  :root {
    --wrap: min(100% - 28px, 520px);
  }

  .site-header {
    min-height: 58px;
    padding: 8px 14px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
    font-size: 1rem;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .language-switcher {
    gap: 6px;
  }

  .language-switcher button {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .flag {
    width: 22px;
    height: 15px;
  }

  .hero {
    min-height: 630px;
  }

  .hero-inner {
    padding: 70px 0 60px;
  }

  .route-line {
    margin-bottom: 14px;
    font-size: 0.68rem;
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(2.35rem, 10.5vw, 3.35rem);
    line-height: 0.96;
  }

  .hero-copy {
    margin-bottom: 20px;
    font-size: 1.03rem;
    line-height: 1.42;
  }

  .hero-signals p {
    width: 100%;
    border-radius: 8px;
    font-size: 0.82rem;
  }

  .help-section,
  .process-section,
  .scope-section {
    padding: 56px 0;
  }

  .photo-strip {
    margin-bottom: 56px;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.04;
  }

  .section-copy p:not(.section-label),
  .scope-grid p {
    font-size: 1rem;
  }

  .example-stack,
  .step-grid {
    gap: 14px;
  }

  .strip-photo,
  .strip-photo-large {
    aspect-ratio: 4 / 3;
  }

  .site-footer {
    flex-direction: column;
    padding: 28px 14px;
  }

  .footer-status {
    text-align: left;
  }
}

@media (max-width: 380px) {
  .site-header {
    padding-inline: 10px;
  }

  .brand {
    gap: 7px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand span {
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .language-switcher {
    gap: 4px;
  }

  .language-switcher button {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }
}
