/* ==========================================================================
   Start in Germany — design system
   One stylesheet for the homepage and the legal pages.
   Logical properties throughout, so Arabic (RTL) and EN/DE/FR (LTR) share it.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0a1520;
  --navy-950: #0c1b2a;
  --navy-900: #10243a;
  --navy-800: #173352;
  --navy-700: #22466b;
  --text: #16212d;
  --text-2: #3b4856;
  --muted: #5d6976;
  --subtle: #8b95a0;
  --paper: #fbfaf7;
  --sand-50: #f6f2ea;
  --sand-100: #efe7d8;
  --white: #fff;
  --line: #e6e0d4;
  --line-strong: #d6cdbb;
  --gold-text: #8a6526;
  --gold-600: #a57a33;
  --gold-500: #bf9246;
  --gold-400: #d4ad66;
  --gold-300: #e6cd9c;
  --gold-100: #f7efde;
  --green: #12804a;
  --danger: #b23a2b;

  --font-display: "Alexandria", "Manrope", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "DM Sans", system-ui, sans-serif;

  --page: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 76px;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(16, 36, 58, .05), 0 1px 1px rgba(16, 36, 58, .03);
  --shadow-2: 0 2px 4px rgba(16, 36, 58, .04), 0 14px 34px -14px rgba(16, 36, 58, .18);
  --shadow-3: 0 4px 10px rgba(16, 36, 58, .05), 0 30px 60px -24px rgba(16, 36, 58, .32);
  --ring: 0 0 0 4px rgba(191, 146, 70, .22);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}
:root:not([dir="rtl"]) {
  --font-display: "Manrope", "Alexandria", system-ui, sans-serif;
  --font-body: "DM Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--navy-950); text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--gold-300); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: none; }
[dir="rtl"] .icon-flip,
[dir="rtl"] svg.icon:has(> use[href="#i-arrow"]) { transform: scaleX(-1); }
[dir="rtl"] .text-link > span[aria-hidden="true"],
[dir="rtl"] .translation-links a > span[aria-hidden="true"],
[dir="rtl"] .button-ghost > span[aria-hidden="true"] { display: inline-block; transform: scaleX(-1); }

.skip-link {
  position: fixed; z-index: 400; inset-block-start: -80px; inset-inline-start: 16px;
  padding: 10px 18px; border-radius: var(--r-pill); background: var(--navy-950); color: #fff; font-weight: 600;
  transition: inset-block-start .2s var(--ease-out);
}
.skip-link:focus { inset-block-start: 12px; }

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* Latin headings get optical tightening; Arabic keeps natural spacing (letter-spacing breaks joined script). */
:root:not([dir="rtl"]) h1,
:root:not([dir="rtl"]) h2,
:root:not([dir="rtl"]) h3 { letter-spacing: -.025em; }

/* ---------- Buttons & links ---------- */
.button {
  --btn-bg: var(--navy-950);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s, border-color .25s, color .25s;
  -webkit-tap-highlight-color: transparent;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(.985); }
.button .icon { transition: transform .25s var(--ease-out); }
.button:hover .icon { transform: translateX(3px); }
[dir="rtl"] .button:hover .icon { transform: translateX(-3px); }
[dir="rtl"] .button:hover .icon-flip { transform: scaleX(-1) translateX(3px); }
.button-dark:hover { --btn-bg: var(--navy-800); box-shadow: 0 10px 24px -10px rgba(16, 36, 58, .55); }
.button-gold {
  --btn-fg: var(--ink);
  background: linear-gradient(180deg, #dcb874 0%, var(--gold-500) 100%);
  border-color: rgba(138, 101, 38, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px -10px rgba(165, 122, 51, .7);
}
.button-gold:hover { background: linear-gradient(180deg, #e3c283 0%, #c79b4f 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 28px -12px rgba(165, 122, 51, .8); }
.button-ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .26); }
.button-ghost:hover { --btn-bg: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.button-outline { --btn-bg: #fff; --btn-fg: var(--navy-950); border-color: var(--line-strong); }
.button-outline:hover { border-color: var(--gold-500); }
.button-whatsapp { --btn-bg: var(--green); }
.button-whatsapp:hover { --btn-bg: #0e6d3e; box-shadow: 0 10px 24px -10px rgba(18, 128, 74, .6); }
.button-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.button-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.button[disabled] { cursor: progress; opacity: .75; transform: none; }
.button[disabled] .icon { visibility: hidden; }
.button[disabled]::after {
  content: ""; position: absolute; inset-inline-end: 22px; width: 18px; height: 18px;
  border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding-block-end: 4px;
  color: var(--navy-900); font-size: 15px; font-weight: 600;
  background: linear-gradient(var(--gold-500), var(--gold-500)) no-repeat;
  background-size: 100% 1px; background-position: 0 100%;
  transition: color .2s, background-size .3s var(--ease-out);
}
.text-link:hover { color: var(--gold-text); background-size: 100% 2px; }

/* ---------- Utility bar ---------- */
.utility-bar { background: var(--ink); color: rgba(255, 255, 255, .72); font-size: 13px; }
.utility-inner {
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.utility-promo { display: inline-flex; align-items: center; gap: 10px; transition: color .2s; }
.utility-promo img { width: auto; height: 18px; border-radius: 4px; }
.utility-promo .icon { width: 14px; height: 14px; color: var(--gold-400); animation: promoNudge 2.4s ease-in-out infinite; }
[dir="rtl"] .utility-promo .icon { animation-name: promoNudgeRtl; }
.utility-promo:hover { color: #fff; }
/* Same size and place, but a gold light sweeps across the text and the logo glows so the free CV offer catches the eye. */
.utility-promo span {
  font-weight: 600;
  background: linear-gradient(90deg, #fff 0%, #fff 38%, var(--gold-300) 50%, #fff 62%, #fff 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: promoShine 3.8s ease-in-out infinite;
}
.utility-promo img { animation: promoGlow 2.4s ease-out infinite; }
@keyframes promoShine { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0 0; } }
@keyframes promoGlow { 0% { box-shadow: 0 0 0 0 rgba(212, 173, 102, .6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(212, 173, 102, 0); } }
@keyframes promoNudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2px, -2px); } }
@keyframes promoNudgeRtl { 0%, 100% { transform: scaleX(-1) translate(0, 0); } 50% { transform: scaleX(-1) translate(2px, -2px); } }
.utility-social { display: flex; gap: 4px; }
.utility-social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; transition: background-color .2s, color .2s; }
.utility-social a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.utility-social .icon { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(251, 250, 247, .84);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { background: rgba(251, 250, 247, .92); border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(16, 36, 58, .35); }
.header-inner {
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--navy-950); }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.brand-name { display: grid; line-height: 1; font-family: "Manrope", var(--font-display); text-transform: uppercase; }
.brand-name b { font-size: 10.5px; font-weight: 600; letter-spacing: .24em; color: var(--gold-text); }
.brand-name strong { margin-top: 4px; font-size: 17px; font-weight: 800; letter-spacing: .06em; }

.main-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; padding: 8px 11px; border-radius: var(--r-pill);
  color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
/* The logo already links home, so the desktop bar skips the "Home" item to leave room for longer languages. */
.nav-links a[data-spy="home"] { display: none; }
.nav-links a:hover { color: var(--navy-950); background: rgba(16, 36, 58, .05); }
.nav-links a.is-active { color: var(--navy-950); }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; transform: translateX(-50%);
  border-radius: 50%; background: var(--gold-500);
}
.nav-sheet-head, .nav-sheet-foot { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; flex: none; }
.language-switch { position: relative; }
.language-current {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; color: var(--text-2);
  font-size: 13.5px; font-weight: 600; transition: border-color .2s, box-shadow .2s;
}
.language-current:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.language-selected { display: inline-flex; align-items: center; gap: 8px; }
.language-caret { width: 14px; height: 14px; color: var(--subtle); transition: transform .25s var(--ease-out); }
.language-current[aria-expanded="true"] .language-caret { transform: rotate(180deg); }
.language-menu {
  position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; z-index: 10; min-width: 176px;
  padding: 6px; display: grid; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top;
  transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s;
}
.language-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease-out); }
.language-menu button {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 10px;
  background: none; text-align: start; font-size: 14px; color: var(--text);
}
.language-menu button:hover { background: var(--sand-50); }
.language-menu button[aria-current="true"] { background: var(--gold-100); color: var(--navy-950); font-weight: 600; }

.flag-icon { display: inline-block; flex: none; width: 20px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(10, 21, 32, .12); }
.flag-ar { background: linear-gradient(to bottom, #ce1126 0 33.33%, #fff 33.33% 66.66%, #111 66.66%); }
.flag-de { background: linear-gradient(to bottom, #111 0 33.33%, #d00 33.33% 66.66%, #ffce00 66.66%); }
.flag-fr { background: linear-gradient(to right, #002395 0 33.33%, #fff 33.33% 66.66%, #ed2939 66.66%); }
.flag-en { background-color: #012169; background-image: linear-gradient(57deg, transparent 41%, #fff 41% 47%, #c8102e 47% 52%, #fff 52% 58%, transparent 58%), linear-gradient(-57deg, transparent 41%, #fff 41% 47%, #c8102e 47% 52%, #fff 52% 58%, transparent 58%), linear-gradient(to bottom, transparent 35%, #fff 35% 43%, #c8102e 43% 57%, #fff 57% 65%, transparent 65%), linear-gradient(to right, transparent 37%, #fff 37% 45%, #c8102e 45% 55%, #fff 55% 63%, transparent 63%); }

.menu-toggle {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: #fff;
}
.menu-bars { display: grid; gap: 5px; width: 18px; }
.menu-bars i { display: block; height: 1.6px; border-radius: 2px; background: var(--navy-950); }
.menu-bars i:last-child { width: 12px; justify-self: end; }
[dir="rtl"] .menu-bars i:last-child { justify-self: start; }

.mobile-quick-links { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(132px, 14vw, 180px);
  background: var(--ink); color: #fff;
}
.hero-backdrop {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(191, 146, 70, .28), transparent 62%),
    radial-gradient(700px 560px at 0% 110%, rgba(34, 70, 107, .55), transparent 60%),
    linear-gradient(180deg, #0c1a28 0%, var(--ink) 100%);
}
.hero-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero-inner {
  max-width: var(--page); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 88px); align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-block-end: 26px;
  padding: 7px 16px 7px 12px; border: 1px solid rgba(212, 173, 102, .35); border-radius: var(--r-pill);
  background: rgba(212, 173, 102, .08); color: var(--gold-300); font-size: 13.5px; font-weight: 600;
}
[dir="rtl"] .hero-kicker { padding: 7px 12px 7px 16px; }
.kicker-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); }
.kicker-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--gold-400); opacity: 0; animation: pulse 2.6s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.hero h1 {
  color: #fff; font-size: clamp(40px, 5.3vw, 74px); line-height: 1.08; font-weight: 600;
  background: linear-gradient(180deg, #fff 30%, #e9dcc1 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-block-end: .06em;
}
[dir="rtl"] .hero h1 { line-height: 1.28; }
.hero-lead { max-width: 33em; margin-block-start: 24px; color: rgba(255, 255, 255, .72); font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 36px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin-block-start: 48px; padding-block-start: 28px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-stats dt { font-family: "Manrope", var(--font-display); font-size: clamp(16px, 1.5vw, 20px); font-weight: 700; color: #fff; white-space: nowrap; }
[dir="rtl"] .hero-stats div:last-child dt { font-family: var(--font-display); }
.hero-stats dd { margin-block-start: 6px; color: rgba(255, 255, 255, .58); font-size: 13.5px; line-height: 1.5; }

.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid rgba(212, 173, 102, .3); border-radius: calc(var(--r-xl) + 6px); pointer-events: none;
}
[dir="rtl"] .hero-visual::before { inset: 22px 22px -22px -22px; }
.hero-photo-frame {
  position: relative; aspect-ratio: 1 / 1.06; overflow: hidden; border-radius: var(--r-xl);
  background: var(--navy-900); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease-in-out), transform 7s linear;
}
.hero-photo.is-visible { opacity: 1; transform: scale(1); }
.photo-shade { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(6, 14, 22, .78)); pointer-events: none; }
.hero-badge {
  position: absolute; inset-block-start: 18px; inset-inline-start: 18px;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px;
  border-radius: var(--r-md); background: rgba(255, 255, 255, .94); color: var(--navy-950);
  font-size: 13px; font-weight: 700; box-shadow: var(--shadow-2);
}
[dir="rtl"] .hero-badge { padding: 8px 8px 8px 14px; }
.hero-badge img { width: 32px; height: 32px; border-radius: 8px; }
.hero-photo-bar {
  position: absolute; inset-inline: 16px; inset-block-end: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 10px 10px 16px;
  border-radius: var(--r-md); background: rgba(8, 17, 27, .5); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
[dir="rtl"] .hero-photo-bar { padding: 10px 16px 10px 10px; }
.photo-caption { display: flex; align-items: center; gap: 12px; min-width: 0; color: #fff; font-size: 13.5px; font-weight: 500; }
.photo-caption [data-photo-caption] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caption-index { color: var(--gold-300); font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .08em; direction: ltr; }
.carousel-controls { display: flex; align-items: center; gap: 6px; flex: none; }
.carousel-arrow, .carousel-pause {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: transparent; color: #fff; font-size: 11px;
  transition: background-color .2s, border-color .2s;
}
.carousel-arrow:hover, .carousel-pause:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.carousel-arrow .icon { width: 16px; height: 16px; }
.carousel-dots { display: flex; align-items: center; gap: 6px; padding-inline: 4px; }
.carousel-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, .45); transition: width .35s var(--ease-out), background-color .3s; }
.carousel-dot.active { width: 20px; background: var(--gold-400); }

/* ---------- Service ribbon ---------- */
.service-ribbon {
  position: relative; z-index: 2;
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: calc(-1 * clamp(84px, 9vw, 112px)) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.service-ribbon a {
  position: relative; display: grid; align-content: start; gap: 4px; min-height: 172px;
  padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-2);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.service-ribbon a:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--gold-300); }
.ribbon-index { position: absolute; inset-block-start: 22px; inset-inline-end: 22px; color: var(--subtle); font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.ribbon-icon { width: 44px; height: 44px; padding: 11px; margin-block-end: 18px; border-radius: 14px; background: var(--gold-100); color: var(--gold-text); box-sizing: border-box; }
.ribbon-title { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; color: var(--navy-950); line-height: 1.4; }
.service-ribbon b { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.ribbon-arrow { position: absolute; inset-block-end: 22px; inset-inline-end: 22px; width: 18px; height: 18px; color: var(--gold-600); opacity: 0; transform: translate(-4px, 4px); transition: opacity .3s, transform .35s var(--ease-out); }
[dir="rtl"] .ribbon-arrow { transform: scaleX(-1) translate(-4px, 4px); }
.service-ribbon a:hover .ribbon-arrow { opacity: 1; transform: none; }
[dir="rtl"] .service-ribbon a:hover .ribbon-arrow { transform: scaleX(-1); }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) var(--gutter); }
.section > * { max-width: var(--page); margin-inline: auto; }
.section-kicker {
  display: flex; align-items: center; gap: 12px; margin-block-end: 18px;
  color: var(--gold-text); font-size: 13.5px; font-weight: 700;
}
.section-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
:root:not([dir="rtl"]) .section-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.section h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.12; }
[dir="rtl"] .section h2 { line-height: 1.34; }
.section-lead { max-width: 34em; margin-block-start: 20px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 6vw, 80px); align-items: end; margin-block-end: clamp(40px, 5vw, 64px); }
.section-heading-side { display: grid; justify-items: start; gap: 18px; padding-block-end: 8px; }
.section-heading-side p { color: var(--muted); font-size: 16.5px; line-height: 1.85; }
.centered-heading { display: grid; justify-items: center; text-align: center; margin-block-end: clamp(36px, 5vw, 56px); }
.centered-heading .section-kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- Courses ---------- */
.courses-section { background: var(--paper); padding-block-start: clamp(88px, 10vw, 136px); }
.course-layout {
  padding: 10px; border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-2);
}
.level-list {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px;
  padding: 6px; border-radius: calc(var(--r-xl) - 8px); background: var(--sand-50);
}
.level-list [role="tab"] {
  display: grid; justify-items: center; gap: 2px; padding: 12px 8px; border: 0; border-radius: var(--r-md);
  background: transparent; color: var(--muted);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.level-list [role="tab"] span { font-family: "Manrope", sans-serif; font-size: 20px; font-weight: 800; color: var(--navy-900); letter-spacing: .02em; }
.level-list [role="tab"] i { font-style: normal; font-size: 12.5px; font-weight: 500; }
.level-list [role="tab"]:hover { background: rgba(255, 255, 255, .7); }
.level-list [role="tab"][aria-selected="true"] { background: #fff; box-shadow: var(--shadow-1), 0 0 0 1px var(--line); color: var(--text-2); }
.level-list [role="tab"][aria-selected="true"] span { color: var(--gold-text); }
.level-track { grid-column: 1 / -1; height: 3px; margin: 4px 8px 2px; border-radius: 3px; background: var(--line); overflow: hidden; }
.level-track i { display: block; height: 100% !important; width: calc((var(--level, 0) + 1) * 20%) !important; border-radius: inherit; background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); transition: width .5s var(--ease-out); }
[dir="rtl"] .level-track i { margin-inline-start: 0; }
.level-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(20px, 3vw, 36px);
}
.level-panel:focus-visible { outline-offset: -2px; border-radius: var(--r-lg); }
.level-overline { color: var(--gold-text); font-size: 13px; font-weight: 700; margin-block-end: 10px; }
:root:not([dir="rtl"]) .level-overline { text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; }
.level-panel h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; }
.level-panel h3 span:first-child { color: var(--line-strong); font-weight: 400; }
.level-panel-copy > p:not(.level-overline) { margin-block: 14px 22px; color: var(--muted); font-size: 16.5px; line-height: 1.85; }
.level-outcomes { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 28px; }
.level-outcomes span {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--sand-50); border: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; font-weight: 500;
}
.level-outcomes span::before {
  content: ""; width: 14px; height: 14px; background: var(--gold-600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.level-photo { overflow: hidden; border-radius: var(--r-lg); background: var(--sand-50); aspect-ratio: 3 / 2; }
.level-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.level-panel:hover .level-photo img { transform: scale(1.02); }
.course-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  margin-block-start: 20px; padding: 18px 18px 18px 26px; border-radius: var(--r-lg);
  background: var(--gold-100); border: 1px solid rgba(191, 146, 70, .28);
}
[dir="rtl"] .course-footer { padding: 18px 26px 18px 18px; }
.course-footer p { color: var(--navy-900); font-size: 15.5px; font-weight: 500; }
.free-test-link {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid rgba(191, 146, 70, .3); color: var(--navy-950); font-size: 14px; font-weight: 600;
  transition: box-shadow .25s, transform .25s var(--ease-out);
}
[dir="rtl"] .free-test-link { padding: 8px 8px 8px 16px; }
.free-test-link img { width: auto; height: 30px; border-radius: var(--r-pill); }
.free-test-link .icon { width: 16px; height: 16px; color: var(--gold-600); }
.free-test-link:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }

/* ---------- Exams ---------- */
.exams-section {
  background: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center;
  max-width: none;
}
.exams-section > * { max-width: none; margin: 0; }
.exams-section { padding-inline: max(var(--gutter), calc((100% - var(--page)) / 2)); }
.exam-image { position: relative; aspect-ratio: 1 / .92; overflow: hidden; border-radius: var(--r-xl); box-shadow: var(--shadow-3); }
.exam-image img { width: 100%; height: 100%; object-fit: cover; }
.exam-image-label {
  position: absolute; inset-inline-start: 20px; inset-block-end: 20px; display: grid; gap: 2px; max-width: calc(100% - 40px);
  padding: 16px 20px; border-radius: var(--r-md); background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.exam-image-label span { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--navy-950); }
.exam-image-label b { color: var(--muted); font-size: 14px; font-weight: 500; }
.exam-logos { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 32px 22px; }
.exam-logos > * {
  display: inline-flex; align-items: center; justify-content: center; height: 56px; min-width: 104px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper);
}
.exam-logo { font-family: "Manrope", sans-serif; font-size: 22px; font-weight: 800; line-height: 1; }
.goethe-logo { color: #8cb41e; text-transform: lowercase; letter-spacing: -.02em; }
.goethe-logo span { color: var(--navy-950); }
.osd-logo { color: #d1121c; letter-spacing: .02em; }
.exam-logos > img { width: auto; height: 56px; padding: 6px 18px; object-fit: contain; }
.exam-levels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-end: 32px; }
.exam-levels span { margin-inline-end: 6px; color: var(--muted); font-size: 14px; font-weight: 500; }
.exam-levels b {
  padding: 6px 13px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff;
  color: var(--navy-900); font-family: "Manrope", sans-serif; font-size: 13.5px; font-weight: 700;
}
.exam-levels b:last-child { background: var(--gold-100); border-color: rgba(191, 146, 70, .35); color: var(--gold-text); }

/* ---------- Recognition ---------- */
.recognition-section { background: var(--sand-50); border-top: 1px solid var(--line); }
.recognition-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.recognition-block {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-1);
  transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.recognition-block:hover { box-shadow: var(--shadow-3); transform: translateY(-3px); }
.recognition-media { position: relative; aspect-ratio: 2 / 1; }
.recognition-image { width: 100%; height: 100%; object-fit: cover; }
.recognition-symbol {
  position: absolute; inset-block-end: -26px; inset-inline-start: 28px;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: #fff; color: var(--gold-text); box-shadow: var(--shadow-2), 0 0 0 1px var(--line);
}
.recognition-symbol .icon { width: 26px; height: 26px; }
.recognition-body { display: flex; flex-direction: column; flex: 1; padding: 46px clamp(22px, 3vw, 34px) clamp(24px, 3vw, 32px); }
.recognition-titleline h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.35; }
.recognition-body > p:not(.duration-note) { margin-block: 10px 18px; color: var(--muted); font-size: 15px; }
.document-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-block-end: 22px; }
.document-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.document-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-block-start: 1px; border-radius: 50%;
  background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8' fill='none' stroke='%238a6526' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.duration-note {
  display: flex; align-items: flex-start; gap: 12px; margin-block: auto 22px; padding: 14px 16px;
  border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line);
}
.duration-note > .icon { width: 20px; height: 20px; margin-block-start: 2px; color: var(--gold-600); }
.duration-note span span { display: block; color: var(--subtle); font-size: 12.5px; font-weight: 600; }
.duration-note strong { display: block; color: var(--navy-900); font-size: 14.5px; font-weight: 600; line-height: 1.6; }
.recognition-body .text-link { align-self: flex-start; }

.training-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  margin-block-start: 24px; padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  border-radius: var(--r-xl); background: var(--navy-950); color: #fff;
}
.training-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 100% 0%, rgba(191, 146, 70, .3), transparent 65%); }
[dir="rtl"] .training-band::before { background: radial-gradient(600px 300px at 0% 0%, rgba(191, 146, 70, .3), transparent 65%); }
.training-band > div { max-width: 40em; }
.training-eyebrow { color: var(--gold-300); font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-block-end: 8px; }
.training-band h3 { color: #fff; font-size: clamp(22px, 2.2vw, 28px); }
.training-band p:not(.training-eyebrow) { margin-block-start: 8px; color: rgba(255, 255, 255, .7); font-size: 15.5px; }
/* The Ausbildung search card spans the full width; the free-CV card sits under it as a small strip. */
.recognition-extras { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-block-start: 24px; }
.recognition-help { display: grid; justify-self: start; width: min(100%, 560px); }
.bewerbungswerk-card {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px 16px 20px;
  border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff;
  transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out), border-color .35s;
}
.bewerbungswerk-card img { width: auto; height: 28px; border-radius: 7px; flex: none; }
.bewerbungswerk-card span { flex: 1; font-family: var(--font-display); font-size: 16.5px; font-weight: 600; color: var(--navy-950); line-height: 1.4; }
.bewerbungswerk-card .icon { width: 36px; height: 36px; padding: 10px; border-radius: 50%; background: var(--navy-950); color: #fff; box-sizing: border-box; transition: transform .35s var(--ease-out); }
.bewerbungswerk-card:hover, .ausbildung-search-card:hover { box-shadow: var(--shadow-3); transform: translateY(-3px); border-color: var(--gold-300); }
.bewerbungswerk-card:hover .icon { transform: rotate(45deg); }
[dir="rtl"] .bewerbungswerk-card:hover .icon { transform: scaleX(-1) rotate(45deg); }
.ausbildung-search-card {
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: center; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff;
  transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out), border-color .35s;
}
/* Shown at its own proportions so the whole screenshot is visible. */
.ausbildung-search-card img { width: 100%; height: auto; aspect-ratio: 1178 / 519; object-fit: cover; background: var(--sand-50); }
.ausbildung-search-copy { display: flex; flex-direction: column; gap: 12px; padding: 32px 30px; }
.ausbildung-search-copy b { font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; color: var(--navy-950); line-height: 1.4; }
.ausbildung-search-copy small { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.ausbildung-search-copy strong { display: inline-flex; align-items: center; gap: 6px; margin-block-start: auto; color: var(--gold-text); font-size: 14.5px; font-weight: 700; }
.ausbildung-search-copy strong .icon { width: 16px; height: 16px; }

/* ---------- Translation ---------- */
.translation-section {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center;
  padding-inline: max(var(--gutter), calc((100% - var(--page)) / 2));
  background: var(--navy-950); color: #fff;
}
.translation-section > * { max-width: none; margin: 0; }
.translation-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(800px 500px at 100% 100%, rgba(191, 146, 70, .2), transparent 60%), radial-gradient(700px 500px at 0% 0%, rgba(34, 70, 107, .6), transparent 60%);
}
.translation-image { position: relative; }
.translation-image img { width: 100%; aspect-ratio: 1 / .92; object-fit: cover; border-radius: var(--r-xl); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .06); }
.translation-stamp {
  position: absolute; inset-block-start: -18px; inset-inline-end: -14px;
  display: grid; place-content: center; text-align: center; width: 116px; height: 116px; border-radius: 50%;
  background: linear-gradient(160deg, #e2c07e, var(--gold-500)); color: var(--ink); transform: rotate(-10deg);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .55);
}
.translation-stamp::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px dashed rgba(10, 21, 32, .35); }
.translation-stamp span { font-size: 13px; font-weight: 600; }
.translation-stamp b { font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.1; }
.translation-section .section-kicker { color: var(--gold-300); }
.translation-section h2 { color: #fff; }
.translation-section .section-lead { color: rgba(255, 255, 255, .72); }
.translation-links { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 28px; }
.translation-links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 14.5px; font-weight: 500;
  transition: background-color .2s, border-color .2s;
}
.translation-links a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); }
.discount-note {
  display: flex; align-items: center; gap: 18px; margin-block: 28px 32px; padding: 16px 20px;
  border-radius: var(--r-lg); background: rgba(212, 173, 102, .1); border: 1px solid rgba(212, 173, 102, .32);
  color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.6;
}
.discount-number { flex: none; color: var(--gold-300); font-family: "Manrope", sans-serif; font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }

/* ---------- Contact ---------- */
.contact-section {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 80px); align-items: start;
  padding-inline: max(var(--gutter), calc((100% - var(--page)) / 2));
  background: var(--paper);
}
.contact-section > * { max-width: none; margin: 0; }
.contact-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.contact-methods-title { margin-block: 36px 14px; color: var(--subtle); font-size: 13.5px; font-weight: 600; }
.contact-methods { display: grid; gap: 10px; }
.contact-method {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease-out);
}
[dir="rtl"] .contact-method { padding: 12px 12px 12px 16px; }
.contact-method:hover { border-color: var(--gold-300); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.contact-method-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--sand-50); color: var(--navy-900); }
.contact-method-icon.is-whatsapp { background: #e4f4ea; color: var(--green); }
.contact-method-icon .icon { width: 20px; height: 20px; }
.contact-method b { display: block; color: var(--navy-950); font-size: 15px; font-weight: 600; }
.contact-method small { display: block; color: var(--muted); font-size: 13.5px; }
[dir="rtl"] .contact-method small[dir="ltr"] { text-align: end; }

.contact-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px;
  padding: clamp(22px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-3);
}
.form-row { display: grid; gap: 8px; min-width: 0; }
.form-row-wide, .phone-field, .submit-actions, .form-note, .form-status { grid-column: 1 / -1; }
.form-honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-form { position: relative; }
.form-row label, .phone-field legend { color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.phone-field { margin: 0; padding: 0; border: 0; }
.phone-field legend { padding: 0; margin-block-end: 8px; }
.phone-controls { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 10px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fdfcfa;
  color: var(--text); font-size: 15.5px; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.contact-form textarea { min-height: 118px; resize: vertical; }
.contact-form select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 40px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%235d6976' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 16px; background-position: right 14px center;
}
[dir="rtl"] .contact-form select { background-position: left 14px center; }
.contact-form ::placeholder { color: #9aa3ac; }
.contact-form input:hover, .contact-form select:hover, .contact-form textarea:hover { border-color: #c4b9a3; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold-500); background: #fff; box-shadow: var(--ring); }
.contact-form input:user-invalid, .contact-form select:user-invalid, .contact-form textarea:user-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(178, 58, 43, .1); }
[dir="rtl"] .contact-form input[dir="ltr"] { text-align: end; }
.conditional-field[hidden] { display: none; }
.conditional-field:not([hidden]) { animation: fieldIn .35s var(--ease-out); }
@keyframes fieldIn { from { opacity: 0; transform: translateY(-6px); } }
.submit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 6px; }
.submit-actions .button { flex: 1 1 220px; min-height: 54px; }
.form-note { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.form-status { font-size: 14.5px; font-weight: 600; color: var(--navy-900); }
.form-status:not(:empty) { padding: 12px 16px; border-radius: var(--r-sm); background: var(--gold-100); border-inline-start: 3px solid var(--gold-500); animation: fieldIn .35s var(--ease-out); }

/* ---------- Partners ---------- */
.partners-section { background: #fff; border-top: 1px solid var(--line); padding-block: clamp(64px, 7vw, 96px); }
.partners-marquee {
  overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.partners-track { display: flex; align-items: center; gap: clamp(48px, 7vw, 96px); width: max-content; animation: marquee 34s linear infinite; }
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partners-track a { display: grid; place-items: center; height: 72px; padding: 0 8px; }
.partners-track img { width: auto; max-width: 170px; max-height: 52px; object-fit: contain; filter: grayscale(1); opacity: .62; transition: filter .3s, opacity .3s; }
.partners-track a:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-section { background: var(--sand-50); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.about-card { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-1); }
.about-head { display: flex; align-items: center; gap: 20px; }
.about-portrait { width: 88px; height: 88px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--gold-100), 0 0 0 5px rgba(191, 146, 70, .35); }
.about-head h3 { font-size: 22px; }
.about-head p { margin-block-start: 6px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.role-list { display: grid; gap: 10px; margin-block-start: 24px; padding-block-start: 22px; border-top: 1px solid var(--line); }
.role-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.role-list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-block-start: .6em; border-radius: 50%; background: var(--gold-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .66); padding: clamp(64px, 8vw, 96px) var(--gutter) 28px; }
.footer-top, .footer-bottom { max-width: var(--page); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand-block { display: grid; justify-items: start; align-content: start; gap: 18px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-family: "Manrope", sans-serif; font-size: 19px; font-weight: 800; letter-spacing: .02em; }
.footer-brand img { width: 44px; height: 44px; border-radius: 12px; }
.footer-brand-block p { max-width: 26em; font-size: 15px; line-height: 1.8; }
.footer-title { margin-block-end: 16px; color: #fff; font-size: 14px; font-weight: 700; }
.footer-links { display: grid; gap: 10px; justify-items: start; }
.footer-links a, .footer-mail { font-size: 14.5px; transition: color .2s; }
.footer-links a:hover, .footer-mail:hover { color: #fff; }
.footer-social { display: flex; gap: 8px; margin-block-end: 16px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); transition: background-color .2s, color .2s, border-color .2s; }
.footer-social a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-block-start: 56px; padding-block-start: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
.site-credit { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13.5px; }
.site-credit img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.site-credit a { color: var(--gold-300); font-weight: 600; }
.site-credit a:hover { color: #fff; }
.footer-bottom small { font-size: 13px; color: rgba(255, 255, 255, .45); }

/* ---------- Floating contact & cookie notice ---------- */
.floating-social { position: fixed; z-index: 150; inset-block-end: 20px; inset-inline-end: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.floating-whatsapp {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border-radius: var(--r-pill);
  background: var(--green); color: #fff; font-size: 14.5px; box-shadow: 0 16px 30px -12px rgba(18, 128, 74, .65);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
[dir="rtl"] .floating-whatsapp { padding: 0 16px 0 20px; }
.floating-whatsapp .icon { width: 22px; height: 22px; }
.floating-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -12px rgba(18, 128, 74, .75); }
.floating-facebook { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #1877f2; border: 1px solid var(--line); box-shadow: var(--shadow-2); transition: transform .3s var(--ease-out); }
.floating-facebook:hover { transform: translateY(-2px); }

.cookie-notice {
  position: fixed; z-index: 260; inset-block-end: 20px; inset-inline-start: 20px; max-width: 440px;
  display: flex; align-items: center; gap: 18px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-3);
  animation: cookieIn .6s var(--ease-out) .6s both;
}
.cookie-notice[hidden] { display: none; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } }
.cookie-notice strong { display: block; color: var(--navy-950); font-size: 15px; }
.cookie-notice p { margin-block-start: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.cookie-notice a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
#cookie-dismiss {
  flex: none; min-height: 42px; padding: 0 20px; border: 0; border-radius: var(--r-pill);
  background: var(--navy-950); color: #fff; font-size: 14px; font-weight: 600; transition: background-color .2s;
}
#cookie-dismiss:hover { background: var(--navy-800); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js-ui [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
.js-ui [data-reveal="zoom"] { transform: scale(.965); }
.js-ui [data-reveal="fade"] { transform: none; }
.js-ui [data-reveal].is-in,
.reveal-all [data-reveal] { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal-site-header .header-inner { justify-content: space-between; }
.legal-home-link { display: inline-flex; align-items: center; gap: 8px; }
.legal-page-wrap { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(72px, 9vw, 120px); }
.legal-page { max-width: 860px; margin: 0 auto; color: var(--text-2); }
.legal-back { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-text); font-size: 14px; font-weight: 600; }
.legal-back:hover { color: var(--navy-900); }
.legal-kicker { margin: 28px 0 10px; color: var(--gold-text); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.legal-page h1 { color: var(--navy-950); font-size: clamp(34px, 5vw, 56px); line-height: 1.12; letter-spacing: -.025em; }
.legal-date { margin: 14px 0 40px; color: var(--subtle); font-size: 14px; }
.legal-clause { padding: 28px 0; border-top: 1px solid var(--line); }
.legal-clause h2, .legal-page .legal-card h2 { margin: 0 0 14px; color: var(--navy-950); font-size: 20px; line-height: 1.45; letter-spacing: -.01em; }
.legal-clause p, .legal-clause li, .legal-card p, .legal-card li { color: var(--text-2); font-size: 15.5px; line-height: 1.9; overflow-wrap: anywhere; }
.legal-clause p { margin: 0 0 14px; }
.legal-clause ul, .legal-card ul { margin: 0 0 16px; padding-inline-start: 22px; list-style: disc; }
.legal-clause a, .legal-card a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.legal-card { padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-2); }
.legal-page .legal-card h2 { margin-block-start: 28px; }
.legal-card p { margin: 8px 0; }
.legal-address { font-style: normal; font-size: 15.5px; line-height: 1.9; color: var(--text-2); }
.legal-summary { margin-block-start: 28px; padding: 16px 20px; border-radius: var(--r-md); background: var(--gold-100); border-inline-start: 3px solid var(--gold-500); color: var(--text-2); font-size: 14.5px; line-height: 1.8; }
.legal-footer { padding: 28px var(--gutter); display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; background: var(--ink); }
.legal-footer a { color: rgba(255, 255, 255, .7); font-size: 14px; }
.legal-footer a:hover { color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Collapsed navigation: ui.js adds .nav-collapsed when the menu would not fit on one line (always at 1140px and below). */
html.nav-collapsed { --header-h: 68px; }
html.nav-collapsed .menu-toggle { display: grid; }
html.nav-collapsed .header-actions { gap: 8px; }
html.nav-collapsed .main-nav {
  position: fixed; inset: 0; z-index: 320; display: none; flex-direction: column; justify-content: flex-start;
  padding: 18px var(--gutter) 28px; background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
}
html.nav-collapsed .main-nav.open { display: flex; animation: sheetIn .4s var(--ease-out); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-12px); } }
html.nav-collapsed .nav-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-block-end: 18px; }
html.nav-collapsed .nav-sheet-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-950); font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: .02em; }
html.nav-collapsed .nav-sheet-brand img { width: 36px; height: 36px; border-radius: 10px; }
html.nav-collapsed .nav-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy-950); }
html.nav-collapsed .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
html.nav-collapsed .nav-links a[data-spy="home"] { display: block; }
html.nav-collapsed .nav-links a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--navy-950); }
html.nav-collapsed .nav-links a:hover { background: none; color: var(--gold-text); }
html.nav-collapsed .nav-links a.is-active::after { left: auto; inset-inline-end: 4px; top: 50%; bottom: auto; width: 6px; height: 6px; transform: translateY(-50%); }
html.nav-collapsed .nav-sheet-foot { display: grid; gap: 16px; margin-block-start: 28px; }
html.nav-collapsed .nav-sheet-foot .button { width: 100%; min-height: 54px; font-size: 16px; }
html.nav-collapsed .nav-sheet-promo { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); color: var(--text-2); font-size: 14px; font-weight: 500; }
html.nav-collapsed .nav-sheet-promo img { width: auto; height: 26px; border-radius: 6px; flex: none; }
html.nav-collapsed .mobile-nav-social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
html.nav-collapsed .mobile-nav-social a { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); color: var(--navy-900); font-size: 13px; font-weight: 600; }
html.nav-collapsed .mobile-nav-social .icon { width: 22px; height: 22px; }
html.nav-collapsed body.mobile-menu-open { overflow: hidden; }
/* A backdrop-filter would turn the header into the containing block of the fixed menu sheet. */
html.nav-collapsed body.mobile-menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
body.mobile-menu-open .cookie-notice,
html.nav-collapsed body.mobile-menu-open .floating-social { display: none; }

html.nav-collapsed .mobile-quick-links {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 12px;
}
html.nav-collapsed .mobile-quick-links::-webkit-scrollbar { display: none; }
html.nav-collapsed .mobile-quick-links a {
  flex: none; scroll-snap-align: start; padding: 8px 14px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line); color: var(--navy-900); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: border-color .2s, background-color .2s;
}
html.nav-collapsed .mobile-quick-links a:hover { border-color: var(--gold-300); }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .hero-visual::before { display: none; }
  .hero-photo-frame { aspect-ratio: 4 / 3; }
  .service-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-heading { grid-template-columns: 1fr; align-items: start; }
  .exams-section, .translation-section, .contact-section { grid-template-columns: 1fr; }
  .contact-intro { position: static; }
  .recognition-extras { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand-block { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root, html.nav-collapsed { --header-h: 62px; }
  body { font-size: 15.5px; }
  /* Phones keep the free-CV link visible above the header; the social icons live in the menu instead. */
  .utility-inner { justify-content: center; min-height: 38px; }
  .utility-social { display: none; }
  .utility-promo { min-width: 0; max-width: 100%; gap: 8px; }
  .utility-promo img { height: 16px; flex: none; }
  .utility-promo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
  /* All four service shortcuts stay visible: a 2 × 2 grid instead of a row that has to be swiped. */
  html.nav-collapsed .mobile-quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; overflow: visible; padding: 0 var(--gutter) 10px; }
  html.nav-collapsed .mobile-quick-links a { min-width: 0; padding: 7px 8px; text-align: center; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
  .brand img { width: 38px; height: 38px; border-radius: 10px; }
  .brand-name b { font-size: 9px; }
  .brand-name strong { font-size: 15px; }
  .header-inner { gap: 12px; }
  .language-current { height: 40px; padding: 0 10px; }
  .language-current b { display: none; }
  .header-contact { display: none; }
  .menu-toggle { width: 42px; height: 42px; }

  .hero { padding: 36px var(--gutter) 104px; }
  .hero-kicker { margin-block-end: 20px; font-size: 13px; }
  .hero h1 { font-size: clamp(36px, 10vw, 50px); }
  .hero-lead { margin-block-start: 18px; font-size: 16px; }
  .hero-actions { margin-block-start: 28px; flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; gap: 0; margin-block-start: 32px; padding-block-start: 8px; }
  .hero-stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .hero-stats div:last-child { border-bottom: 0; }
  .hero-stats dt { font-size: 16px; }
  .hero-stats dd { margin: 0; text-align: end; }
  .hero-photo-frame { aspect-ratio: 1 / .9; border-radius: var(--r-lg); }
  .hero-badge { inset-block-start: 12px; inset-inline-start: 12px; font-size: 12px; }
  .hero-badge img { width: 26px; height: 26px; }
  .hero-photo-bar { inset-inline: 10px; inset-block-end: 10px; padding: 8px 8px 8px 12px; gap: 8px; }
  [dir="rtl"] .hero-photo-bar { padding: 8px 12px 8px 8px; }
  .photo-caption { font-size: 12.5px; gap: 8px; }
  .carousel-pause { display: none; }
  .carousel-arrow { width: 32px; height: 32px; }

  .service-ribbon { margin-top: -64px; gap: 10px; }
  .service-ribbon a { min-height: 0; padding: 16px 16px 18px; border-radius: var(--r-md); }
  .ribbon-index, .ribbon-arrow { display: none; }
  .ribbon-icon { width: 38px; height: 38px; padding: 9px; margin-block-end: 12px; border-radius: 11px; }
  .ribbon-title { font-size: 14.5px; }
  .service-ribbon b { font-size: 12.5px; }

  .section h2 { font-size: clamp(29px, 8.2vw, 40px); }
  .section-lead, .section-heading-side p { font-size: 15.5px; }
  .courses-section { padding-block-start: 72px; }
  .course-layout { padding: 6px; border-radius: var(--r-lg); }
  .level-list { gap: 2px; padding: 4px; border-radius: var(--r-md); }
  .level-list [role="tab"] { padding: 10px 2px; border-radius: 12px; }
  .level-list [role="tab"] span { font-size: 17px; }
  .level-list [role="tab"] i { font-size: 10.5px; }
  .level-panel { grid-template-columns: 1fr; padding: 18px 14px 14px; gap: 20px; }
  .level-panel-copy { order: 1; }
  .level-photo { order: 2; }
  .level-panel-copy .button { width: 100%; }
  .course-footer { flex-direction: column; align-items: stretch; padding: 18px; }
  .free-test-link { justify-content: space-between; }

  .exam-image { aspect-ratio: 1.15 / 1; border-radius: var(--r-lg); }
  .exam-image-label { inset-inline-start: 12px; inset-block-end: 12px; padding: 12px 14px; }
  .exam-image-label span { font-size: 16px; }
  .exam-logos > * { height: 50px; min-width: 0; flex: 1; padding: 0 12px; }
  .exam-logos > img { height: 50px; padding: 5px 12px; }
  .exam-copy .button { width: 100%; }

  .recognition-columns { grid-template-columns: 1fr; gap: 16px; }
  .recognition-block { border-radius: var(--r-lg); }
  .document-list { grid-template-columns: 1fr; }
  .training-band { border-radius: var(--r-lg); }
  .training-band .button { width: 100%; }
  .ausbildung-search-card { grid-template-columns: 1fr; border-radius: var(--r-lg); }
  .ausbildung-search-card img { aspect-ratio: 1178 / 519; height: auto; }
  .bewerbungswerk-card { border-radius: var(--r-lg); padding: 14px 16px; }
  .recognition-help { width: 100%; }

  .translation-image img { border-radius: var(--r-lg); aspect-ratio: 1.15 / 1; }
  .translation-stamp { width: 92px; height: 92px; inset-block-start: -14px; inset-inline-end: -6px; }
  .translation-stamp b { font-size: 17px; }
  .translation-stamp span { font-size: 11.5px; }
  .discount-note { gap: 14px; padding: 14px 16px; font-size: 14px; }
  .discount-number { font-size: 30px; }
  .translation-copy .button { width: 100%; }

  .contact-form { grid-template-columns: 1fr; border-radius: var(--r-lg); }
  .phone-controls { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .submit-actions .button { flex-basis: 100%; }

  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-card { border-radius: var(--r-lg); }
  .about-head { align-items: flex-start; gap: 16px; }
  .about-portrait { width: 72px; height: 72px; }

  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .floating-social { inset-block-end: 14px; inset-inline-end: 14px; }
  .floating-whatsapp { width: 54px; height: 54px; padding: 0; justify-content: center; }
  [dir="rtl"] .floating-whatsapp { padding: 0; }
  .floating-whatsapp b { display: none; }
  .floating-facebook { width: 42px; height: 42px; }
  .cookie-notice { inset-inline: 12px; inset-block-end: 12px; max-width: none; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  #cookie-dismiss { width: 100%; }
}

@media (max-width: 380px) {
  .service-ribbon { grid-template-columns: 1fr; }
  .phone-controls { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .ribbon-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-ui [data-reveal] { opacity: 1; transform: none; }
  .partners-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .partners-track a[aria-hidden="true"] { display: none; }
}

@media print {
  .utility-bar, .site-header, .floating-social, .cookie-notice, .hero-photo-bar { display: none !important; }
  .js-ui [data-reveal] { opacity: 1; transform: none; }
}
