/* =============================================================
   Manuela Klaas - shared site styles
   Used by every page (profile, IT, legal). Page-specific layout
   lives in home.css / it.css / legal.css.
   Design DNA from the original site: navy blue, Roboto uppercase
   headings, Poppins text, Roboto Slab quotes.
   ============================================================= */

:root {
  --ink: #00172D;
  --ink-2: #33475B;
  --mute: #56667A;
  --blue: #00498D;
  --blue-deep: #02386E;
  --blue-bright: #0052A2;
  --blue-overlay: #15487B;
  --blue-tint: #EEF4FA;
  --band: #F4F7FA;
  --paper: #FFFFFF;
  --line: #DCE3EA;

  --radius: 6px;
  --shadow-sm: 0 2px 8px rgba(0, 23, 45, .06);
  --shadow-md: 0 12px 30px rgba(0, 23, 45, .10);
  --ease: cubic-bezier(.2, .7, .3, 1);

  --container: 1200px;
  --gutter: 30px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: 24px; }

h1, h2, h3, h4 {
  font-family: 'Roboto', 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.3;
}
h2 { font-size: clamp(22px, 2.4vw, 28px); text-transform: uppercase; letter-spacing: .03em; line-height: 1.3; }
h3 { font-size: 19px; line-height: 1.4; }
h4 { font-size: 15px; }
p { margin-bottom: 14px; }
h1, h2, .quote, .lede, .hero-lede { text-wrap: balance; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

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

/* ---------- section bands ---------- */
.band { padding: 88px var(--gutter); }
.band.tint { background: var(--band); }
.band > .container { padding: 0; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.divider { width: 55px; height: 3px; background: var(--blue-deep); margin: 0 auto 18px; }
.col-divider { width: 55px; height: 3px; background: var(--blue-deep); margin-bottom: 18px; }
.section-head .lede { margin-top: 14px; color: var(--ink-2); }
.quote {
  font-family: 'Roboto Slab', serif;
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--blue-deep);
  margin-top: 16px;
}
.quote cite {
  display: block;
  margin-top: 6px;
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mute);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.2;
  border: 2px solid var(--blue);
  border-radius: 4px;
  background: var(--blue);
  color: #FFFFFF;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(2, 56, 110, .25); }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }
.btn-email { text-transform: none; letter-spacing: .02em; font-size: 14.5px; }

/* ---------- top bar (tablet + mobile) ---------- */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: none;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-bar-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 58px; padding: 0 20px;
  max-width: var(--container); margin: 0 auto;
}
.brand {
  font-family: 'Roboto', sans-serif; font-weight: 600;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue);
}
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; color: var(--blue);
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 20px 20px;
  max-width: var(--container); margin: 0 auto;
  border-top: 1px solid var(--line);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  display: flex; align-items: center; min-height: 48px;
  font-family: 'Roboto', sans-serif; font-weight: 500;
  font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .mobile-nav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.mobile-nav .mobile-nav-actions > :only-child { grid-column: 1 / -1; }
.mobile-nav .mobile-nav-actions .btn { min-height: 48px; border-bottom: 2px solid var(--blue); padding: 12px 10px; font-size: 12.5px; }
.mobile-nav .mobile-nav-actions .btn:not(.btn-outline) { color: #FFFFFF; }
@media (max-width: 1100px) {
  .top-bar { display: block; }
  body.has-top-bar { padding-top: 58px; }
  [id] { scroll-margin-top: 72px; }
}

/* ---------- footer (identical on every page) ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .62);
  padding: 52px var(--gutter) 44px;
  text-align: center;
  font-size: 13px;
}
.site-footer .social { display: flex; justify-content: center; gap: 12px; margin-bottom: 22px; }
.site-footer .social a {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08);
  color: #FFFFFF;
  transition: background .2s, transform .2s var(--ease);
}
.site-footer .social a:hover { background: var(--blue-bright); transform: translateY(-2px); color: #FFFFFF; }
.site-footer .social svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer .links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; margin-top: 14px; }
.site-footer .links a { color: rgba(255, 255, 255, .85); }
.site-footer .links a:hover, .site-footer .links a[aria-current="page"] { color: #FFFFFF; }
.site-footer .links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- small screens ---------- */
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  body { font-size: 14.5px; }
  .band { padding: 60px var(--gutter); }
  .section-head { margin-bottom: 36px; }
  .btn-row .btn { flex: 1 1 100%; }
  .site-footer .links { gap: 6px 18px; }
}

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

/* ---------- language tag on cross-language links (profile EN, IT/legal DE) ---------- */
.lang-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-family: 'Roboto', sans-serif; font-weight: 600;
  font-size: .72em; line-height: 1.3; letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .8;
  vertical-align: .1em;
}
.btn .lang-tag { margin-left: 0; }
