/* A.R.P. Consulting – arpaero.com
   System fonts only: no external font or CDN requests (GDPR). */
:root {
  --navy: #00063A;
  --navy-2: #0B1460;
  --gold: #FFDE59;
  --gold-light: #FFDE59;
  --gold-deep: #FFB000;
  --gold-text: #8A6A00; /* gold for text on light backgrounds (contrast) */
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --text: #1B2430;
  --muted: #5B6675;
  --line: #E1E5EB;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 31, 58, .08);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Michroma (SIL Open Font License 1.1) – self-hosted, see fonts/Michroma-OFL-LICENSE.txt */
@font-face {
  font-family: "Michroma";
  src: url(fonts/michroma-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root { --font-brand: "Michroma", var(--font); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--gold); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Language switching: content pairs carry data-l="en" / data-l="de" */
html[data-lang="en"] [data-l="de"],
html[data-lang="de"] [data-l="en"] { display: none !important; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0, 6, 58, .97); backdrop-filter: blur(6px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 42px; height: 42px; }
.brand-text { font-family: var(--font-brand); font-weight: 400; letter-spacing: .06em; font-size: .9rem; line-height: 1.25; color: var(--gold); }
.brand-text small { display: block; font-family: var(--font); font-weight: 600; letter-spacing: .28em; font-size: .6rem; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #DCE3EE; text-decoration: none; font-size: .92rem; }
.nav-links a:hover { color: var(--gold-light); }
.lang-switch { display: inline-flex; border: 1px solid rgba(234, 217, 162, .5); border-radius: 999px; overflow: hidden; }
.lang-switch button { background: transparent; color: #DCE3EE; border: 0; padding: 5px 11px; font: inherit; font-size: .8rem; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: var(--navy); font-weight: 700; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, #1C2C8A 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 84px 0 64px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -160px; background: url(emblem.png) center / contain no-repeat; opacity: .07; pointer-events: none; }
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--font-brand); color: var(--gold); letter-spacing: .08em; font-size: .78rem; margin-bottom: 16px; }
.hero h1 { font-family: var(--font-brand); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; color: var(--gold); font-size: clamp(1.7rem, 4.2vw, 2.9rem); margin-bottom: .45em; }
.hero .lead { font-size: 1.15rem; color: #D5DDEA; max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-deep); color: var(--navy); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.portrait { aspect-ratio: 4 / 5; border-radius: 22px; background: linear-gradient(145deg, #142070, #00063A); border: 1px solid rgba(255, 222, 89, .4); display: flex; align-items: center; justify-content: center; color: var(--gold-light); font-size: 4rem; font-weight: 700; letter-spacing: .05em; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border-radius: var(--radius); overflow: hidden; margin-top: 56px; }
.stat { background: rgba(0, 6, 58, .55); padding: 20px; }
.stat strong { display: block; font-size: 1.8rem; color: var(--gold-light); }
.stat span { font-size: .88rem; color: #C8D2E1; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--surface); }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.kicker { font-family: var(--font-brand); color: var(--gold-text); letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; margin-bottom: 10px; }

.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.brands { display: grid; gap: 12px; }
.brand-row { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.brand-row strong { color: var(--navy); }
.brand-row span { display: block; color: var(--muted); font-size: .9rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
section.alt .card { background: var(--bg); box-shadow: none; }
.card .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--navy); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Timeline */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 34px 44px; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 4px solid var(--gold-deep); }
.tl-date { font-size: .85rem; font-weight: 700; color: var(--gold-text); letter-spacing: .05em; }
.tl-item h3 { margin: 2px 0 2px; }
.tl-org { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.tl-item ul { margin: 0; padding-left: 18px; color: var(--text); }
.tl-item li { margin-bottom: 4px; }

/* Achievements */
.achievements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.achv { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius); padding: 26px; }
.achv strong { display: block; font-size: 2rem; color: var(--gold-light); line-height: 1.1; margin-bottom: 8px; }
.achv h3 { color: #fff; font-size: 1.02rem; margin-bottom: 6px; }
.achv p { color: #C8D2E1; font-size: .92rem; margin: 0; }

.creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.cred { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.cred b { color: var(--navy); }
.cred span { color: var(--muted); font-size: .92rem; display: block; }
.cred .dot { flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--gold-deep); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.4fr; gap: 40px; }
.contact-info dl { margin: 0; }
.contact-info dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-top: 18px; }
.contact-info dd { margin: 2px 0 0; font-size: 1.05rem; }
form.contact { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact .full { grid-column: 1 / -1; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
input, select, textarea { width: 100%; padding: 11px 13px; border: 1px solid #C9D1DC; border-radius: 10px; font: inherit; font-size: .97rem; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-deep); outline-offset: 1px; border-color: var(--gold-deep); }
textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.alert { grid-column: 1 / -1; padding: 12px 16px; border-radius: 10px; font-size: .95rem; display: none; }
.alert.ok { background: #E8F5EC; color: #1D5B33; border: 1px solid #B9DFC6; }
.alert.err { background: #FCEBEA; color: #7A231D; border: 1px solid #F1C3BF; }

/* Footer */
.site-footer { background: var(--navy); color: #AEB9C9; padding: 34px 0; font-size: .9rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer a { color: #DCE3EE; text-decoration: none; margin-left: 18px; }
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover { color: var(--gold-light); }

/* Legal pages */
.legal { background: var(--surface); padding: 56px 0 72px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal h3 { font-size: 1.02rem; margin-top: 1.4em; }
.legal p, .legal li { color: #2C3644; }
.todo { background: #FFF4CC; padding: 0 4px; border-radius: 4px; }

/* Responsive */
@media (max-width: 920px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 300px; width: 100%; margin: 0 auto; }
  .cards, .achievements { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: flex-start; padding: 16px 20px 22px; gap: 14px; }
  .nav-links.open { display: flex; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .cards, .achievements, .creds { grid-template-columns: 1fr; }
  form.contact { grid-template-columns: 1fr; padding: 20px; }
  .site-footer a { margin-left: 0; margin-right: 16px; }
}
