/* GAAC Mittenwalde — shared design system
   Derived from the homepage gaac-karriere.branchenleads.de/landingpage-gaac-mittenwalde
   Used by all subpages so look & feel stays consistent. */

/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --blue:        #00A0E0;
  --blue-deep:   #0089BF;
  --blue-soft:   #E6F6FD;
  --yellow:      #EED423;
  --yellow-deep: #D8BE1B;
  --ink:         #0B0F14;
  --ink-soft:    #475569;
  --ink-mute:    #7A8693;
  --bg:          #FFFFFF;
  --bg-soft:     #F4F5F7;
  --bg-softer:   #FAFAFB;
  --bg-dark:     #0E1722;
  --border:      #E4E7EC;
  --border-soft: #EFF1F4;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(15,23,34,.04), 0 1px 1px rgba(15,23,34,.03);
  --shadow:    0 6px 24px rgba(15,23,34,.06), 0 2px 6px rgba(15,23,34,.04);
  --shadow-lg: 0 24px 60px rgba(15,23,34,.14);

  --container: 1240px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ───────────────────────── Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.5vw, 1.35rem); }
p  { margin: 0 0 1em; color: var(--ink-soft); text-wrap: pretty; }
p.lead { font-size: 1.075rem; color: var(--ink-soft); max-width: 64ch; }

/* Yellow highlight marker used in headlines on the homepage */
.hl {
  background: var(--yellow);
  color: var(--ink);
  padding: 0.02em 0.32em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  white-space: normal;
}

/* Small black pill badge ("KONTAKTFORMULAR" style) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
}
.badge--blue { background: var(--blue); }

/* ───────────────────────── Layout helpers ───────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--soft  { background: var(--bg-soft); }
.section--dark  { background: var(--bg-dark); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p  { color: rgba(255,255,255,.78); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head--left { text-align: left; margin-inline: 0; }
.section-head p { font-size: 1.075rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  --bg: var(--blue);
  --fg: #fff;
  --bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--bd);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--fg); }
.btn--blue   { --bg: var(--blue); --fg: #fff; }
.btn--blue:hover { --bg: var(--blue-deep); }
.btn--yellow { --bg: var(--yellow); --fg: var(--ink); }
.btn--yellow:hover { --bg: var(--yellow-deep); }
.btn--ghost  { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn--ghost:hover { --bg: rgba(255,255,255,.12); }
.btn--outline { --bg: transparent; --fg: var(--ink); --bd: var(--border); }
.btn--outline:hover { --bg: var(--bg-soft); }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

/* ───────────────────────── Header ───────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
}
.site-header__logo img { height: 46px; width: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-inline: auto;
  flex-wrap: nowrap;
}
.site-nav a {
  position: relative;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  padding: 4px 0;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--blue); }
.site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}
.site-header .btn--header {
  padding: 13px 26px;
  border-radius: 10px;
}

/* ── Dropdown (Leistungen) ── */
.nav-dropdown { position: relative; }
.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  position: relative;
}
.nav-dropdown__toggle svg { transition: transform .2s ease; }
.nav-dropdown:hover .nav-dropdown__toggle,
.nav-dropdown__toggle[aria-expanded="true"] { color: var(--blue); }
.nav-dropdown:hover .nav-dropdown__toggle svg,
.nav-dropdown__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-dropdown__toggle.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 18px; bottom: -8px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.nav-dropdown__menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0; right: 0;
  height: 14px;
}
.nav-dropdown__menu a {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink);
}
.nav-dropdown__menu a:hover { background: var(--bg-soft); color: var(--blue); }
.nav-dropdown__menu a.is-active {
  background: var(--blue-soft);
  color: var(--blue-deep);
}
.nav-dropdown__menu a.is-active::after { content: none; }

/* Mobile nav (simple — hides nav and shows button only) */
@media (max-width: 880px) {
  .site-header__inner { height: 72px; }
  .site-header__logo img { height: 36px; }
  .site-nav { display: none; }
  .site-header .btn--header { padding: 10px 18px; font-size: .92rem; }
}

/* ───────────────────────── Cards ───────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-soft);
}
.card h3 { margin-bottom: .55em; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ───────────────────────── Footer ───────────────────────── */
.site-footer {
  background: var(--bg-soft);
  padding: 56px 0 40px;
  margin-top: 0;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  max-width: 760px;
}
.site-footer__links a {
  color: var(--ink);
  font-weight: 600;
  font-size: .92rem;
  padding: 4px 0;
  position: relative;
}
.site-footer__links a:hover { color: var(--blue); }
.site-footer__links a + a::before {
  content: "";
  position: absolute;
  left: -14px; top: 50%;
  width: 3px; height: 3px;
  background: var(--ink-mute);
  border-radius: 50%;
  transform: translateY(-50%);
}
.site-footer__logo img { height: 28px; opacity: .9; }
.site-footer__socials {
  display: flex;
  gap: 14px;
}
.site-footer__socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.soc-fb { background: #1877F2; }
.soc-ig { background: radial-gradient(circle at 30% 110%, #FED373 0%, #F15245 35%, #D92E7F 50%, #9B36B7 75%, #515ECF 100%); }
.soc-yt { background: #FF0000; }
.site-footer__copy { color: var(--ink-soft); font-size: .9rem; }
.site-footer__legal a { color: var(--ink); font-weight: 600; margin: 0 8px; }
.site-footer__made { color: var(--ink-mute); font-size: .82rem; margin-top: 4px; }

/* ───────────────────────── Utility ───────────────────────── */
.text-center { text-align: center; }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
