/* Elektro-Hansen GmbH & Co. KG – Stylesheet
   Pfad: /css/style.css

   Gestaltung leitet sich aus dem Logo ab:
   - schräger blauer Balken (wie „ELEKTRO“)  → .slab, .btn, Fotos im Kopf der Startseite
   - lange Linie mit Pfeilspitze (unter „HANSEN“) → .rule, .arrow
   Farben zentral in :root. Schriften liegen lokal in /fonts (IBM Plex, SIL OFL) – keine Drittanbieter. */

@font-face { font-family: "Plex"; src: url("../fonts/IBMPlexSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/IBMPlexSans-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/IBMPlexSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Cond"; src: url("../fonts/IBMPlexSansCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Cond"; src: url("../fonts/IBMPlexSansCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --blue: #009fe0;          /* Logo-Blau */
  --blue-ink: #006b9f;      /* Logo-Blau abgedunkelt – Text/Links auf hellem Grund */
  --blue-solid: #0083c4;    /* Flächen mit weißer Schrift (Buttons, Karriere) – besser lesbar als reines Logo-Blau */
  --ink: #14181d;           /* Schrift, dunkle Flächen */
  --ink-2: #232931;
  --paper: #f3f1ec;         /* warmes Hellgrau für Kopfbereiche */
  --line: #d9d5cc;
  --muted: #5e636a;
  --white: #fff;
  --w-page: 1180px;
  --f-body: "Plex", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --f-head: "Plex Cond", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --slant: .42em;           /* Schräge des Logo-Balkens */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--f-body); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.05; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4rem); font-weight: 700; text-transform: uppercase; letter-spacing: .005em; margin: 0; hyphens: auto; overflow-wrap: break-word; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.5vw, 2.5rem); font-weight: 700; text-transform: uppercase; margin: 2.4rem 0 1rem; }
h3 { font-size: 1.35rem; font-weight: 600; margin: 1.8rem 0 .5rem; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[id] { scroll-margin-top: 110px; }  /* Sprungziele nicht unter der festen Kopfzeile verstecken */
::selection { background: var(--blue); color: #fff; }

.wrap { max-width: var(--w-page); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: #fff; padding: 8px 14px; }

/* ---------- Logo-Motive ---------- */
.slab {
  display: inline-block;
  background: var(--blue); color: #fff;
  padding: .02em calc(var(--slant) + .18em) .04em;
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}
.rule { position: relative; height: 3px; background: var(--blue); margin: 26px 0 0 18px; max-width: 620px; }
.rule::before { /* Schrägstrich am Anfang wie im Logo */
  content: ""; position: absolute; left: -18px; bottom: 0; width: 3px; height: 26px;
  background: var(--blue); transform-origin: bottom left; transform: skewX(-36deg);
}
.rule::after {
  content: ""; position: absolute; right: -2px; top: 50%; transform: translateY(-50%);
  border-left: 15px solid var(--blue); border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.arrow { /* kleine Pfeillinie für Links */
  display: inline-block; position: relative; width: 26px; height: 2px; background: currentColor;
  vertical-align: middle; margin-left: 10px; transition: width .2s;
}
.arrow::after {
  content: ""; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
a:hover > .arrow { width: 40px; }

.btn {
  display: inline-block;
  font: 600 16px/1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  background: var(--blue-solid); color: #fff;
  padding: 16px 34px 15px;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: background .15s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: var(--blue-ink); }
.link-arrow { font: 600 16px var(--f-head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--ink); }
.link-arrow:hover { color: var(--blue-ink); }

/* ---------- Kopf ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(20,24,29,.06); }
.bar { display: flex; align-items: center; gap: 32px; min-height: 86px; }
.logo { flex-shrink: 0; margin-right: auto; }
.logo img { width: 250px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav > ul > li { position: relative; }
.nav a, .sub-toggle {
  display: block; padding: 30px 12px 27px;
  font: 600 15.5px/1 var(--f-head); text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  border-bottom: 3px solid transparent;
}
.nav a:hover, .sub-toggle:hover { color: var(--blue-ink); }
.nav a.active, .sub-toggle.active { border-bottom-color: var(--blue); }
.sub-toggle::after {
  content: ""; display: inline-block; margin-left: 7px; vertical-align: 3px;
  border-top: 5px solid currentColor; border-left: 4px solid transparent; border-right: 4px solid transparent;
}
.sub {
  list-style: none; margin: 0; padding: 10px 0;
  position: absolute; left: 0; top: 100%; min-width: 250px;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue);
  box-shadow: 0 14px 30px rgba(20,24,29,.1);
  visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { visibility: visible; opacity: 1; transform: none; }
.sub a { padding: 11px 20px; border: 0; font: 400 16px/1.3 var(--f-body); text-transform: none; letter-spacing: 0; }
.sub a:hover { background: var(--paper); }
.sub a.active { color: var(--blue-ink); font-weight: 600; }

.nav-phone { text-decoration: none; color: var(--ink); line-height: 1.15; border-left: 1px solid var(--line); padding-left: 26px; }
.nav-phone small { display: block; font-size: 12.5px; color: var(--muted); }
.nav-phone strong { font: 700 21px var(--f-head); letter-spacing: .01em; }
.nav-phone:hover strong { color: var(--blue-ink); }

.nav-toggle {
  display: none; background: var(--ink); color: #fff; border: 0; cursor: pointer;
  font: 600 15px/1 var(--f-head); text-transform: uppercase; letter-spacing: .08em;
  padding: 13px 22px; clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

/* ---------- Seitenkopf ---------- */
.page-head { background: var(--paper); padding: 44px 0 0; border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-bottom: 46px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue-ink); text-decoration: underline; }
.crumbs span { margin: 0 8px; color: var(--line); }
.head-img { margin: 0; }
.head-img img {
  width: 100%; max-height: 190px; object-fit: cover;
  clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%);
}
.page-head .head-img + * { margin-top: 0; }
.page-head.has-img .wrap:last-child { padding-bottom: 0; }

/* ---------- Inhalt ---------- */
main { display: block; }
.content { padding-top: 60px; padding-bottom: 90px; }
.content > :first-child, article > :first-child { margin-top: 0; }
.content p, .content li { max-width: 68ch; }
.lead { font-size: 1.2rem; line-height: 1.55; }
.hint { color: var(--muted); font-size: 15px; }

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 72px; align-items: start; }
.side { display: grid; gap: 28px; position: sticky; top: 118px; }
.call-card { background: var(--ink); color: #c9ced4; padding: 28px 28px 26px; }
.call-card h3 { color: #fff; margin: 0 0 .9rem; font-size: 1.25rem; }
.call-card .tel { display: block; font: 700 1.9rem/1.1 var(--f-head); color: #fff; text-decoration: none; margin-bottom: 6px; }
.call-card .tel:hover { color: var(--blue); }
.call-card p { margin: 0; font-size: 15px; line-height: 1.7; }
.call-card a { color: #fff; }
.call-card .btn { margin-top: 20px; }
.side-list h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 6px; }
.side-list ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.side-list a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 15.5px; }
.side-list a:hover { color: var(--blue-ink); }

.content-img { margin: 2.2rem 0; }
.content-img.small img { max-width: 260px; }
.back { margin-top: 3.2rem; }

/* Leistungs-Index (Leistungen + Startseite) */
.svc-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 72px; }
.svc-group h3 { margin: 0 0 12px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-ink); }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.svc-list li { max-width: none; }
.svc-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font: 600 1.35rem/1.2 var(--f-head); color: var(--ink); text-decoration: none;
}
.svc-list a:hover { color: var(--blue-ink); }
.svc-list .arrow { flex-shrink: 0; color: var(--blue); }

/* Referenzen */
.ref-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.ref-card a { display: block; text-decoration: none; color: var(--ink); }
.ref-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ref-card h2 { margin: 16px 0 0; font-size: 1.5rem; text-transform: none; }
.ref-card a:hover h2 { color: var(--blue-ink); }
.ref-photo { margin: 0; max-width: 960px; }
.ref-photo img { width: 100%; }
.ref-detail { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; align-items: start; }
.ref-detail .content-img { margin: 0; }
dl.facts { display: grid; grid-template-columns: 150px 1fr; margin: 2.2rem 0; border-top: 2px solid var(--ink); }
dl.facts dt, dl.facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
dl.facts dt { font: 600 15px var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 16px; }


/* Ansprechpartner */
.person-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; border-top: 2px solid var(--ink); }
.person { padding: 28px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.person h2 { margin: 0; font-size: 1.6rem; text-transform: none; }
.person .role { margin: .3rem 0 .6rem; color: var(--blue-ink); font-weight: 600; }
.person .role small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.person p { font-size: 16px; }
.person .pc { margin: auto 0 0; padding-top: 6px; font-size: 15.5px; line-height: 1.75; }
.team-note { margin-top: 48px; background: var(--paper); padding: 30px 34px; }
.team-note h2 { margin-top: 0; font-size: 1.6rem; }

/* Dokumente */
table.docs { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
table.docs th, table.docs td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.docs th { font: 600 14px var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
table.docs td:last-child, table.docs th:last-child { text-align: right; white-space: nowrap; padding-left: 20px; }
a.pdf { font-weight: 600; text-decoration: none; }
a.pdf::before { content: "PDF"; font: 700 11px var(--f-head); letter-spacing: .06em; color: #fff; background: var(--ink); padding: 3px 6px 2px; margin-right: 10px; vertical-align: 1px; }
a.pdf:hover::before { background: var(--blue); }

/* Historie */
.timeline { list-style: none; padding: 0; margin: 0; max-width: 860px; }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 28px; padding: 22px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 2px solid var(--ink); }
.timeline .year { font: 700 2.2rem/1 var(--f-head); color: var(--blue); }
.timeline p { margin: 0; }

/* Karriere */
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; border-top: 2px solid var(--ink); }
.jobs article { padding: 22px 0; }
.jobs h3 { margin-top: 0; }
.jobs p { font-size: 16px; }
.callout { background: var(--blue-solid); color: #fff; padding: 30px 36px; margin: 40px 0; clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%); }
.callout h3 { color: #fff; margin-top: 0; }
.callout ul { margin-bottom: 0; }

/* Impressum */
.imprint p { line-height: 1.8; margin: 0 0 1.4rem; }
.imprint .hint { margin-bottom: .6rem; }
.legal-credits summary { cursor: pointer; color: var(--blue-ink); font-weight: 600; }
.legal-credits summary:hover { color: var(--ink); }
.credits { list-style: none; padding: 0; margin: 16px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.credits li { margin-bottom: 8px; }

address.big-address { font-style: normal; line-height: 1.8; margin-bottom: 1.6rem; font-size: 1.1rem; }
.map-links { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

/* Kontaktformular */
.form-title { margin-top: 0; }
.contact-form { display: grid; gap: 20px; margin-top: 28px; max-width: 720px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; margin-bottom: 6px; font: 600 14px var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 17px/1.4 var(--f-body); color: var(--ink);
  background: var(--white); border: 1px solid #bdb8ad; border-radius: 0;
  padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,159,224,.2); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue-solid); }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; }
.captcha { background: var(--paper); padding: 18px 20px 14px; border-left: 4px solid var(--blue); }
.captcha-frage { margin: 0 0 10px; font: 600 1.25rem/1.3 var(--f-head); }
.captcha-row { display: flex; gap: 12px; align-items: stretch; }
.captcha-row input { width: 110px; flex: 0 0 auto; text-align: center; font-weight: 600; }
.captcha-neu { background: none; border: 0; padding: 0 4px; color: var(--blue-ink); font: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.captcha-neu:hover { color: var(--ink); }
.captcha .hint { margin: 10px 0 0; font-size: 14px; }
.form-error { background: #fdecea; border-left: 5px solid #b3261e; color: #6d1a14; padding: 14px 18px; margin: 20px 0 0; }

/* ---------- Startseite ---------- */
.home-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 96px 0 88px; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px 64px; align-items: center; }
.home-hero .kicker { font-size: 15px; color: var(--muted); margin: 0 0 26px; }
.home-hero h1 { font-size: clamp(2.2rem, 1.3rem + 2.2vw, 3.3rem); line-height: 1.1; }
.home-hero h1 span { display: block; white-space: nowrap; }  /* bewusste Zeilenumbrüche: je Zeile ein Begriff */
.home-hero .rule { margin-top: 32px; }
.hero-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hero-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-bottom { display: flex; justify-content: space-between; align-items: center; gap: 28px 64px; margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line); }
.home-hero .lead { margin: 0; max-width: 54ch; line-height: 1.6; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; flex-shrink: 0; }

.section { padding: 96px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px 40px; margin-bottom: 44px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 14px 0 0; max-width: 56ch; color: var(--muted); }
.section-dark { background: var(--ink); color: #c9ced4; }
.section-dark h2 { color: #fff; }
.section-dark .section-head p { color: #9aa2ab; }
.section-dark .svc-group h3 { color: var(--blue); }
.section-dark .svc-list { border-top-color: #fff; }
.section-dark .svc-list a { color: #fff; border-bottom-color: #343b44; }
.section-dark .svc-list a:hover { color: var(--blue); }
.section-dark .link-arrow { color: #fff; }
.section-dark .link-arrow:hover { color: var(--blue); }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
.intro .big { font: 600 clamp(1.5rem, 1.1rem + 1.2vw, 2.05rem)/1.25 var(--f-head); margin: 0; }
.intro p { margin-top: 0; }

.refs { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.refs article a { text-decoration: none; color: var(--ink); display: block; }
.refs img { width: 100%; object-fit: cover; }
.refs .ref-main img { aspect-ratio: 1/1; }
.refs .ref-side { display: grid; gap: 40px; align-content: start; }
.refs .ref-side img { aspect-ratio: 2/1; }
.refs h3 { margin: 16px 0 0; font-size: 1.5rem; }
.refs p { margin: 0; color: var(--muted); font-size: 15.5px; }
.refs a:hover h3 { color: var(--blue-ink); }

.years { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--blue); }
.years li { padding: 22px 26px 0 0; position: relative; }
.years li::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; background: var(--blue); clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%); }
.years b { display: block; font: 700 2.4rem/1 var(--f-head); color: var(--ink); margin-bottom: 8px; }
.years span { font-size: 15.5px; color: var(--muted); }

.join { background: var(--blue-solid); color: #fff; }
.join .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding-top: 80px; padding-bottom: 80px; align-items: center; }
.join h2 { color: #fff; margin: 0 0 14px; font-size: clamp(2rem, 1.3rem + 2.2vw, 3.2rem); }
.join p { margin: 0; color: #fff; }
.join ul { list-style: none; margin: 0 0 28px; padding: 0; border-top: 2px solid #fff; }
.join li { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.4); font: 600 1.3rem var(--f-head); }

/* ---------- Fuß ---------- */
.site-footer { background: var(--ink); color: #9aa2ab; font-size: 15.5px; }
.foot-call { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding: 72px 0 52px; border-bottom: 1px solid #2f363e; }
.foot-call p { margin: 0 0 6px; font: 600 1.15rem var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.foot-call .tel { font: 700 clamp(2.4rem, 1.4rem + 3.4vw, 4.4rem)/1 var(--f-head); color: #fff; text-decoration: none; }
.foot-call .tel:hover { color: var(--blue); }
.foot-call .mail { font: 600 1.3rem var(--f-head); color: #fff; text-decoration: none; }
.foot-call .mail:hover { color: var(--blue); }
.foot-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding: 48px 0 56px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer a { color: #d8dde2; text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.site-footer address { font-style: normal; line-height: 1.8; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 0 26px; border-top: 1px solid #2f363e; font-size: 14px; }
.foot-bottom p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(20,24,29,.94); display: flex; align-items: center; justify-content: center; z-index: 100; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 90vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 90vw; max-height: 80vh; margin: 0 auto; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-family: var(--f-head); font-size: 1.1rem; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; padding: 10px 18px; }
.lightbox button:hover { color: var(--blue); }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Tablet / Mobil ---------- */
@media (max-width: 1120px) {
  .bar { min-height: 74px; }
  .logo img { width: 210px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 3px solid var(--blue);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 28px 24px;
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a, .sub-toggle { padding: 15px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; font-size: 18px; }
  .nav a.active, .sub-toggle.active { border-bottom-color: var(--line); color: var(--blue-ink); }
  .sub-toggle::after { display: none; }
  .sub { position: static; visibility: visible; opacity: 1; transform: none; border: 0; box-shadow: none; padding: 0 0 6px 16px; min-width: 0; }
  .sub a { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
  .nav-phone { border: 0; padding: 18px 0 0; }
}
@media (max-width: 960px) {
  .with-aside, .ref-detail, .intro, .join .wrap, .refs { grid-template-columns: 1fr; gap: 40px; }
  .ref-list { grid-template-columns: 1fr 1fr; }
  .side { position: static; }
  .home-hero { padding: 64px 0 64px; }
  .hero-top { grid-template-columns: 1fr; gap: 40px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; margin-top: 40px; }
  .svc-groups { grid-template-columns: 1fr; gap: 44px; }
  .years { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .jobs { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 18px; }
  .nav { padding: 4px 18px 20px; }
  .logo img { width: 180px; }
  .page-head { padding-top: 30px; }
  .page-head .wrap { padding-bottom: 34px; }
  .head-img img { max-height: 120px; clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%); }
  .content { padding-top: 40px; padding-bottom: 64px; }
  .home-hero { padding: 48px 0 56px; }
  .hero-photos { gap: 8px; }
  .home-hero h1 span { white-space: normal; }
  .ref-list { grid-template-columns: 1fr; gap: 32px; }
  .person-grid { grid-template-columns: 1fr; }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { border-bottom: 0; padding-bottom: 0; }
  dl.facts dd { padding-top: 4px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .foot-call { grid-template-columns: 1fr; padding: 52px 0 40px; }
  .foot-cols { grid-template-columns: 1fr; gap: 30px; }
  .years { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }
  .callout { padding: 24px 22px 24px 30px; clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%); }
  table.docs td { overflow-wrap: anywhere; hyphens: auto; }
  table.docs td:last-child { white-space: normal; }
  .section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header .nav, .nav-toggle, .site-footer, .side, .head-img, .no-print { display: none; }
  .site-header { position: static; }
  .page-head { background: none; }
}
