/* ==========================================================================
   Ingenieurbüro Poxleitner – Designvorschlag von Skillfleet
   Leitmotiv: der Positionsplan (Achsraster, Positionen, Maßketten, Schriftfeld)
   ========================================================================== */

/* ---------- Schriften (lokal, DSGVO) ---------- */
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/barlow-sc-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/barlow-sc-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --c-ink: #1F2A33;
  --c-ink-2: #2A3743;
  --c-paper: #F4F1EC;
  --c-white: #FFFFFF;
  --c-accent: #B5412B;
  --c-accent-hover: #9A3622;
  --c-accent-light: #E07A5F;
  --c-muted: #5B6670;
  --c-wood: #8C6A45;
  --c-line: rgb(31 42 51 / 0.12);
  --c-line-strong: rgb(31 42 51 / 0.28);
  --c-line-dark: rgb(244 241 236 / 0.14);

  --f-head: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 2px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --bar-h: 44px;
  --header-h: 76px;
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-accent); text-underline-offset: 2px; }
a:hover { color: var(--c-accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--c-accent-light); }
h1, h2, h3 { font-family: var(--f-head); margin: 0; line-height: 1.08; text-wrap: balance; hyphens: auto; }
h1 { font-weight: 700; font-size: clamp(2.5rem, 4.2vw + 1rem, 4rem); letter-spacing: -0.015em; line-height: 1.02; }
h2 { font-weight: 600; font-size: clamp(1.875rem, 2.2vw + 1rem, 2.5rem); letter-spacing: -0.005em; }
h3 { font-weight: 600; font-size: clamp(1.3125rem, 0.6vw + 1.1rem, 1.5rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--c-ink); color: var(--c-white); padding: 8px 14px; }
.skip-link:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.dark { background: var(--c-ink); color: var(--c-paper); }
.dark a { color: var(--c-accent-light); }
.white { background: var(--c-white); }

/* Positionsnummer (echte Positionen einer Statik) */
.pos { font: 500 0.8125rem/1 var(--f-mono); letter-spacing: 0.06em; color: var(--c-accent); text-transform: uppercase; }
.dark .pos { color: var(--c-accent-light); }
.lead { font-size: clamp(1.125rem, 0.4vw + 1rem, 1.3125rem); color: var(--c-muted); max-width: 36em; }
.dark .lead { color: rgb(244 241 236 / 0.78); }
.section-head { display: grid; gap: 16px; max-width: 46rem; width: fit-content; margin-bottom: clamp(40px, 5vw, 64px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  font: 500 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; flex: none; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--c-accent); color: var(--c-white); }
.btn--primary:hover { background: var(--c-accent-hover); color: var(--c-white); }
.btn--ghost { border-color: var(--c-ink); color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); color: var(--c-paper); }
.dark .btn--primary, .dark .btn--primary:hover { color: var(--c-white); }
.dark .btn--ghost { border-color: var(--c-paper); color: var(--c-paper); }
.dark .btn--ghost:hover { background: var(--c-paper); color: var(--c-ink); }

/* ---------- Maßkette (Trenner) ---------- */
.dim {
  position: relative; height: 24px; margin-block: 0;
  color: var(--c-line-strong);
}
.dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid currentColor; }
.dim::after, .dim span::before, .dim span::after {
  content: ""; position: absolute; top: 50%; width: 12px; border-top: 1.5px solid currentColor; transform: translate(-50%, -50%) rotate(-45deg);
}
.dim::after { left: 100%; }
.dim span::before { left: 0; }
.dim span { position: absolute; inset: 0; }
.dim span::after { left: var(--mid, 50%); }

/* ==========================================================================
   Vorschlags-Banner (Skillfleet)
   ========================================================================== */
.proposal-bar {
  position: relative; z-index: 60;
  background: #11181E; color: #E9E5DE;
  font-size: 0.875rem; line-height: 1.3;
}
.proposal-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: var(--bar-h); padding-block: 6px; flex-wrap: wrap; }
.proposal-bar__text { display: flex; align-items: center; gap: 10px; margin: 0; }
.proposal-bar__text strong { font-weight: 500; color: var(--c-white); }
.proposal-bar__tag {
  font: 500 0.6875rem/1 var(--f-mono); letter-spacing: 0.06em;
  padding: 5px 7px; border: 1px solid rgb(224 122 95 / 0.6); color: var(--c-accent-light); border-radius: var(--radius); white-space: nowrap;
}
.proposal-bar__actions { display: flex; align-items: center; gap: 18px; }
.proposal-bar a { color: #E9E5DE; }
.proposal-bar a:hover { color: var(--c-white); }

.switch { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 0; cursor: pointer; color: inherit; }
.switch__track { width: 38px; height: 22px; border-radius: 11px; background: rgb(255 255 255 / 0.18); position: relative; transition: background-color .2s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-white); transition: transform .2s; }
.switch[aria-pressed="true"] .switch__track { background: var(--c-accent); }
.switch[aria-pressed="true"] .switch__track::after { transform: translateX(16px); }

@media (max-width: 720px) {
  .proposal-bar__long { display: none; }
  .proposal-bar__link { display: none; }
}

/* ==========================================================================
   Kopfzeile
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--c-line);
}
/* Milchglas auf einem Pseudo-Element: backdrop-filter am Header selbst
   würde das fixierte Mobilmenü an den Header statt an den Bildschirm binden */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(244 241 236 / 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-ink); position: relative; }
.logo:hover { color: var(--c-ink); }
.logo__mark { width: 46px; height: 35px; color: var(--c-accent); flex: none; }
.logo__text { display: grid; gap: 3px; }
.logo__name { font: 700 1.5rem/0.9 var(--f-head); letter-spacing: 0.05em; }
.logo__sub { font: 500 0.625rem/1 var(--f-mono); letter-spacing: 0.04em; color: var(--c-muted); }
.dark .logo { color: var(--c-paper); }
.dark .logo__mark { color: var(--c-accent-light); }
.dark .logo__sub { color: rgb(244 241 236 / 0.6); }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav__links { display: flex; gap: clamp(16px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--c-ink); text-decoration: none; font-weight: 500; font-size: 1rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav__links a:hover { border-bottom-color: var(--c-accent); color: var(--c-ink); }
.nav .btn { min-height: 44px; padding: 10px 18px; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1.5px solid var(--c-ink); border-radius: var(--radius);
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--c-ink); position: relative; transition: transform .2s, background-color .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 959px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, calc(var(--bar-h) + var(--header-h))); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 32px;
    padding: 32px var(--gutter) 48px; background: var(--c-paper);
    border-top: 1px solid var(--c-line);
    overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; font: 600 1.75rem/1.2 var(--f-head); padding: 14px 0; border-bottom: 1px solid var(--c-line); }
  .nav .btn { justify-content: center; min-height: 52px; }
  body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   Hero – das Planblatt
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); }

/* Achsraster: senkrechte Achsen A–E mit Achskreisen */
.axes { position: absolute; inset: 0; pointer-events: none; }
.axes__inner { position: relative; height: 100%; max-width: var(--wrap); margin-inline: auto; }
.axis { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--c-line-strong); opacity: .55; transform-origin: top; }
.axis i {
  position: absolute; top: 14px; left: 0; transform: translateX(-50%);
  width: 26px; height: 26px; border: 1px solid var(--c-line-strong); border-radius: 50%; background: var(--c-paper);
  font: 500 0.6875rem/24px var(--f-mono); font-style: normal; text-align: center; color: var(--c-muted);
}
.axis:nth-child(1) { left: var(--gutter); }
.axis:nth-child(2) { left: 25%; }
.axis:nth-child(3) { left: 50%; }
.axis:nth-child(4) { left: 75%; }
.axis:nth-child(5) { left: calc(100% - var(--gutter)); }
.axis-row { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--c-line-strong); opacity: .45; transform-origin: left; }
.axis-row--1 { top: auto; bottom: 36px; }

.hero__grid {
  position: relative; display: grid; gap: clamp(32px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  padding-top: 40px;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; padding-top: 48px; }
}
.hero__copy { display: grid; gap: 24px; align-content: start; }
.hero__copy .pos { display: flex; align-items: center; gap: 12px; }
.hero__copy .pos::after { content: ""; width: 48px; border-top: 1px solid currentColor; }
.hero h1 { max-width: 9.5em; }
.hero__lead { font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem); max-width: 30em; color: var(--c-ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__phone { font-size: 0.9375rem; color: var(--c-muted); }
.hero__phone a { color: var(--c-ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--c-line-strong); }

.hero__figure { position: relative; margin: 0; }
.hero__photo { position: relative; border: 1px solid var(--c-ink); background: var(--c-ink); }
.hero__photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; filter: saturate(.88) contrast(1.02); }
.hero__photo figcaption {
  position: absolute; left: 12px; top: 12px;
  font: 500 0.6875rem/1 var(--f-mono); letter-spacing: 0.04em;
  background: rgb(31 42 51 / 0.82); color: var(--c-paper); padding: 6px 8px; border-radius: var(--radius);
}
/* Maßkette unter dem Foto */
.hero__dim { display: flex; align-items: center; gap: 10px; margin-top: 10px; font: 500 0.6875rem/1 var(--f-mono); color: var(--c-muted); }
.hero__dim .dim { flex: 1; }

/* Schriftfeld (Plankopf) */
.titleblock {
  background: var(--c-white); border: 1.5px solid var(--c-ink);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  font-size: 0.9375rem; line-height: 1.35;
}
.titleblock { position: relative; }
.titleblock > div, .titleblock > dl { padding: 10px 14px; border-right: 1px solid var(--c-ink); border-bottom: 1px solid var(--c-ink); min-width: 0; }
.titleblock > dl:nth-of-type(2n) { border-right: 0; }
.titleblock > dl:nth-of-type(5), .titleblock > dl:nth-of-type(6) { border-bottom: 0; }
.titleblock__head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-right: 0 !important; }
.titleblock dt, .titleblock__label { font: 500 0.625rem/1.2 var(--f-mono); color: var(--c-muted); letter-spacing: 0.03em; margin-bottom: 4px; display: block; }
.titleblock dd { margin: 0; font-weight: 500; }
.titleblock__head strong { font: 700 1.25rem/1.1 var(--f-head); }
.titleblock__stamp { font: 500 0.625rem/1.2 var(--f-mono); color: var(--c-accent); border: 1px solid var(--c-accent); padding: 5px 6px; border-radius: var(--radius); text-align: center; white-space: nowrap; }
.titleblock dl { margin: 0; }

@media (min-width: 960px) {
  .hero__figure .titleblock { position: absolute; left: -56px; bottom: -96px; width: min(440px, 76%); box-shadow: 10px 10px 0 rgb(31 42 51 / 0.08); }
  .hero__figure { margin-bottom: 96px; }
}
@media (max-width: 959px) {
  .hero__figure .titleblock { margin-top: 20px; }
}
@media (max-width: 420px) {
  .titleblock { font-size: 0.875rem; }
  .titleblock > div, .titleblock > dl { padding: 9px 10px; }
}

/* Lade-Moment: Achsen zeichnen sich ein, dann erscheint der Text */
@media (prefers-reduced-motion: no-preference) {
  .js .axis { animation: draw-y 1.1s cubic-bezier(.2,.7,.2,1) backwards; }
  .js .axis:nth-child(2) { animation-delay: .08s; }
  .js .axis:nth-child(3) { animation-delay: .16s; }
  .js .axis:nth-child(4) { animation-delay: .24s; }
  .js .axis:nth-child(5) { animation-delay: .32s; }
  .js .axis-row { animation: draw-x 1.2s .3s cubic-bezier(.2,.7,.2,1) backwards; }
  .js .hero__copy > *, .js .hero__figure { animation: rise .7s cubic-bezier(.2,.7,.2,1) backwards; }
  .js .hero__copy > :nth-child(1) { animation-delay: .35s; }
  .js .hero__copy > :nth-child(2) { animation-delay: .45s; }
  .js .hero__copy > :nth-child(3) { animation-delay: .55s; }
  .js .hero__copy > :nth-child(4) { animation-delay: .65s; }
  .js .hero__copy > :nth-child(5) { animation-delay: .7s; }
  .js .hero__figure { animation-delay: .5s; }
}
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Positionsliste (Leistungen)
   ========================================================================== */
.poslist { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--c-ink); }
.poslist__head, .poslist__item {
  display: grid; gap: 8px 32px; grid-template-columns: minmax(0, 1fr);
  padding: 24px 0; border-bottom: 1px solid var(--c-line-strong);
}
.poslist__head { padding-block: 10px; font: 500 0.6875rem/1.2 var(--f-mono); color: var(--c-muted); letter-spacing: 0.04em; }
.poslist__item { position: relative; transition: background-color .2s; }
.poslist__item h3 { max-width: 16em; }
.poslist__item p { color: var(--c-ink-2); max-width: 38em; }
.poslist__more { font-weight: 500; font-size: 1rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.poslist__more svg { width: 16px; height: 16px; transition: transform .2s; }
.poslist__more:hover svg { transform: translateX(4px); }
.poslist__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.poslist__tags li { font-size: 0.875rem; padding: 3px 9px; border: 1px solid var(--c-line-strong); border-radius: var(--radius); color: var(--c-muted); }
@media (min-width: 900px) {
  .poslist__head, .poslist__item { grid-template-columns: 120px minmax(0, 4fr) minmax(0, 6fr) 170px; align-items: start; }
  .poslist__item { padding: 32px 0; }
  .poslist__item:hover { background: rgb(255 255 255 / 0.55); }
  .poslist__more { justify-self: end; padding-top: 4px; }
}
@media (max-width: 899px) {
  .poslist__head { display: none; }
}

/* ==========================================================================
   Ablauf – Maßkette
   ========================================================================== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; counter-reset: step; }
.step { position: relative; display: grid; gap: 12px; padding-left: 56px; }
.step__no {
  position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--c-accent-light); color: var(--c-accent-light);
  font: 500 0.875rem/33px var(--f-mono); text-align: center; background: var(--c-ink);
}
.step p { color: rgb(244 241 236 / 0.75); }
.steps::before { content: ""; position: absolute; }
@media (max-width: 899px) {
  .steps { position: relative; }
  .steps::before { left: 18px; top: 8px; bottom: 8px; border-left: 1px solid var(--c-line-dark); }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; padding-top: 64px; }
  .steps::before { left: 0; right: 0; top: 18px; border-top: 1px solid rgb(244 241 236 / 0.35); }
  .step { padding-left: 0; padding-right: 8px; }
  .step__no { top: -64px; }
  /* Endstriche der Maßkette */
  .step::before { content: ""; position: absolute; top: -52px; left: 18px; width: 14px; border-top: 1.5px solid rgb(244 241 236 / 0.5); transform: translate(-50%, 0) rotate(-45deg); }
}
.steps-note { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 32px; border-top: 1px solid var(--c-line-dark); }
.steps-note p { margin: 0; color: rgb(244 241 236 / 0.8); max-width: 40em; }

/* ==========================================================================
   Projekte
   ========================================================================== */
.projects { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.project { margin: 0; position: relative; background: var(--c-white); border: 1px solid var(--c-line-strong); display: grid; }
.project img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.project figcaption { padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-top: 1px solid var(--c-line-strong); }
.project figcaption strong { font: 600 1.125rem/1.2 var(--f-head); }
.project figcaption span { font: 500 0.6875rem/1.2 var(--f-mono); color: var(--c-muted); white-space: nowrap; }
.project--plan img { object-fit: contain; background: var(--c-white); padding: 12px; }
@media (min-width: 900px) {
  .projects { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; }
  .project--a { grid-column: 1 / 8; grid-row: 1 / 3; }
  .project--a img { aspect-ratio: auto; min-height: 100%; }
  .project--b { grid-column: 8 / 13; }
  .project--c { grid-column: 8 / 13; }
  .project--b img, .project--c img { aspect-ratio: 16 / 10; }
  .project--a { grid-template-rows: 1fr auto; }
}

/* ==========================================================================
   Über mich
   ========================================================================== */
.about { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.about__portrait { margin: 0; position: relative; max-width: 420px; }
.about__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border: 1px solid var(--c-ink); background: var(--c-white); }
.about__portrait figcaption { margin-top: 12px; font-size: 0.9375rem; color: var(--c-muted); }
.about__portrait figcaption strong { color: var(--c-ink); font-weight: 500; display: block; }
.about__body { display: grid; gap: 24px; }
.about__quote { font: 600 clamp(1.375rem, 1vw + 1rem, 1.75rem)/1.3 var(--f-head); margin: 0; padding-left: 20px; border-left: 3px solid var(--c-accent); max-width: 28em; }

.timeline { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--c-line-strong); }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.timeline time, .timeline .when { font: 500 0.8125rem/1.6 var(--f-mono); color: var(--c-accent); }
.timeline strong { font-weight: 500; }
.timeline p { margin: 0; color: var(--c-muted); font-size: 1rem; }
@media (max-width: 480px) { .timeline li { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; } }

.creds { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.creds li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--c-white); border: 1px solid var(--c-line-strong); border-radius: var(--radius); font-size: 0.9375rem; font-weight: 500; }
.creds svg { width: 16px; height: 16px; color: var(--c-accent); flex: none; }

/* ==========================================================================
   Einsatzgebiet
   ========================================================================== */
.region { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .region { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.places { columns: 2; column-gap: 24px; list-style: none; margin: 24px 0 0; padding: 0; }
.places li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--c-line); display: flex; justify-content: space-between; gap: 8px; font-weight: 500; }
.places span { font: 500 0.75rem/1.9 var(--f-mono); color: var(--c-muted); }
.map { position: relative; background: var(--c-white); border: 1px solid var(--c-line-strong); padding: clamp(12px, 2vw, 24px); }
.map svg { width: 100%; height: auto; }
.map__note { margin-top: 10px; font: 500 0.6875rem/1.4 var(--f-mono); color: var(--c-muted); }
.map text { font-family: var(--f-body); }

/* ==========================================================================
   Wissen (Blog)
   ========================================================================== */
.articles { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .articles { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .article:first-child { grid-row: span 2; }
  .article:first-child img { aspect-ratio: 16 / 10; }
}
.article {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--c-white); border: 1px solid var(--c-line-strong); padding: 24px;
  text-decoration: none; color: var(--c-ink); transition: border-color .2s;
}
.article:hover { border-color: var(--c-ink); color: var(--c-ink); }
.article img { margin: -24px -24px 4px; width: calc(100% + 48px); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--c-line-strong); }
.article__meta { font-size: 0.875rem; color: var(--c-muted); }
.article p { color: var(--c-ink-2); font-size: 1rem; }
.article__more { margin-top: auto; font-weight: 500; font-size: 1rem; color: var(--c-accent); display: inline-flex; gap: 8px; align-items: center; }
.article__more svg { width: 16px; height: 16px; transition: transform .2s; }
.article:hover .article__more svg { transform: translateX(4px); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .faq-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.faq { border-top: 1.5px solid var(--c-ink); }
.faq__item { border-bottom: 1px solid var(--c-line-strong); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 20px 0; font: 600 clamp(1.125rem, 0.4vw + 1rem, 1.3125rem)/1.3 var(--f-head);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  color: var(--c-accent); transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--c-accent-hover); }
.faq__answer { padding: 0 0 24px; max-width: 40em; color: var(--c-ink-2); }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact { display: grid; gap: clamp(40px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.contact__list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--c-line-dark); }
.contact__list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-line-dark); }
.contact__list .label { font: 500 0.75rem/1.9 var(--f-mono); color: rgb(244 241 236 / 0.55); }
.contact__list a { color: var(--c-paper); text-decoration: none; font-weight: 500; }
.contact__list a:hover { color: var(--c-accent-light); }
.contact__big { font: 600 1.5rem/1.2 var(--f-head); }

.form { background: var(--c-paper); color: var(--c-ink); padding: clamp(20px, 3vw, 40px); border-radius: var(--radius); display: grid; gap: 18px; position: relative; }
.form__row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.9375rem; }
.field .opt { font-weight: 400; color: var(--c-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; background: var(--c-white);
  border: 1px solid var(--c-line-strong); border-radius: var(--radius); font-size: 1rem;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--c-accent); outline-offset: 0; border-color: var(--c-accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; color: var(--c-muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-accent); flex: none; }
.form .btn { justify-self: start; }
.dark .form a { color: var(--c-accent); }
.hp { position: absolute; left: -9999px; }

/* ==========================================================================
   Footer – Schriftfeld
   ========================================================================== */
.site-footer { background: #182129; color: var(--c-paper); padding-block: 56px 32px; }
.footer-block { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--c-line-dark); }
.footer-block > :not(.tip) { padding: 20px; border-bottom: 1px solid var(--c-line-dark); }
.footer-block > :nth-last-child(2) { border-bottom: 0; }
@media (min-width: 900px) {
  .footer-block { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr); }
  .footer-block > :not(.tip) { border-bottom: 0; border-right: 1px solid var(--c-line-dark); }
  .footer-block > :nth-last-child(2) { border-right: 0; }
}
.footer-block .titleblock__label { color: rgb(244 241 236 / 0.5); }
.footer-block p, .footer-block li { font-size: 0.9375rem; color: rgb(244 241 236 / 0.82); }
.footer-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--c-paper); }
.site-footer a:hover { color: var(--c-accent-light); }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 20px; font-size: 0.8125rem; color: rgb(244 241 236 / 0.55); }
.footer-meta a { color: rgb(244 241 236 / 0.75); }

/* ==========================================================================
   Tooltips „Was wir verbessert haben“
   ========================================================================== */
.has-tip { position: relative; }
.tip { position: absolute; z-index: 40; top: -13px; right: -13px; }
.tip--tl { right: auto; left: -13px; }
.tip--inline { position: relative; top: auto; right: auto; display: inline-block; vertical-align: middle; margin-left: 10px; }
.tip--in { top: 12px; right: 12px; }

.tip__dot {
  position: relative; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--c-white);
  background: var(--c-accent); color: var(--c-white); cursor: pointer; padding: 0;
  font: 500 0.75rem/1 var(--f-mono); display: grid; place-items: center;
  box-shadow: 0 2px 0 rgb(31 42 51 / 0.25);
  transition: transform .15s, background-color .15s;
}
.tip__dot:hover, .tip__dot[aria-expanded="true"] { background: var(--c-accent-hover); transform: scale(1.08); }
@media (prefers-reduced-motion: no-preference) {
  .tip__dot::before {
    content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--c-accent);
    animation: ping 2.4s ease-out 1.4s 3 both;
  }
}
@keyframes ping { 0% { opacity: .8; transform: scale(.7); } 80%, 100% { opacity: 0; transform: scale(1.5); } }

.tip__card {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(320px, calc(100vw - 32px));
  background: var(--c-white); color: var(--c-ink); border: 1.5px solid var(--c-ink); border-radius: var(--radius);
  padding: 16px 18px; text-align: left; box-shadow: 8px 8px 0 rgb(31 42 51 / 0.12);
  font: 400 0.9375rem/1.45 var(--f-body); letter-spacing: 0; text-transform: none;
  display: none;
}
.tip--tl .tip__card, .tip--inline .tip__card { right: auto; left: 0; }
.tip.is-open .tip__card { display: block; }
@media (hover: hover) {
  .tip:hover .tip__card { display: block; }
}
.tip__card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 600 1.0625rem/1.2 var(--f-head); margin-bottom: 10px; }
.tip__card-title small { font: 500 0.625rem/1 var(--f-mono); color: var(--c-accent); white-space: nowrap; }
.tip__row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-top: 1px solid var(--c-line); }
.tip__row b { font: 500 0.6875rem/1.9 var(--f-mono); color: var(--c-muted); }
.tip__row--now b { color: var(--c-accent); }
.tip__close { display: none; }

/* Mobil: Karte als Blatt am unteren Rand */
@media (max-width: 640px) {
  .tip.is-open .tip__card {
    position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto; width: auto; z-index: 90;
    box-shadow: 0 -4px 0 rgb(31 42 51 / 0.1), 0 20px 60px rgb(31 42 51 / 0.35);
    transform: none !important;
  }
  .tip.is-open .tip__close {
    display: inline-flex; margin-top: 12px; min-height: 44px; width: 100%; justify-content: center; align-items: center;
    background: var(--c-ink); color: var(--c-paper); border: 0; border-radius: var(--radius); font-weight: 500; cursor: pointer;
  }
}

html.tips-off .tip { display: none; }
/* Element mit offenem Tooltip über seine Geschwister heben */
.hero__copy > :has(.tip.is-open), .hero__copy > :has(.tip:hover),
.hero__figure:has(.tip.is-open), .hero__figure:has(.tip:hover) { position: relative; z-index: 20; }
/* Marker direkt hinter der Überschrift */
.head-row { display: flex; align-items: center; gap: 14px; }
.head-row .tip--inline { margin-left: 0; flex: none; }

/* ==========================================================================
   Interesse-Seite (Skillfleet)
   ========================================================================== */
.interest { position: relative; overflow: hidden; min-height: calc(100dvh - var(--bar-h) - var(--header-h)); display: grid; align-items: center; padding-block: clamp(48px, 8vw, 112px); }
.interest__grid { position: relative; display: grid; gap: clamp(40px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .interest__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "copy card" "more card"; align-items: center; row-gap: 0; }
  .interest__copy { grid-area: copy; }
  .interest__more { grid-area: more; }
  .card-contact { grid-area: card; }
}
.interest h1 { max-width: 11em; }
.interest__note {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 8px; padding: 16px 18px;
  background: var(--c-white); border: 1px solid var(--c-line-strong); border-left: 3px solid var(--c-accent); border-radius: var(--radius);
  font-size: 1rem; color: var(--c-ink-2); max-width: 34em;
}
.interest__note svg { width: 20px; height: 20px; color: var(--c-accent); flex: none; margin-top: 2px; }
.interest__note strong { color: var(--c-ink); font-weight: 500; }

.card-contact { background: var(--c-ink); color: var(--c-paper); border-radius: var(--radius); overflow: hidden; }
.card-contact__head { padding: 24px 24px 20px; border-bottom: 1px solid var(--c-line-dark); display: flex; gap: 16px; align-items: center; }
.card-contact__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--c-accent); color: var(--c-white); display: grid; place-items: center; font: 700 1.375rem/1 var(--f-head); flex: none; }
.card-contact__head strong { display: block; font: 600 1.375rem/1.15 var(--f-head); }
.card-contact__head span { font-size: 0.9375rem; color: rgb(244 241 236 / 0.7); }
.card-contact__list { list-style: none; margin: 0; padding: 8px 0; }
.card-contact__list a {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 14px; align-items: center;
  padding: 16px 24px; color: var(--c-paper); text-decoration: none; transition: background-color .2s;
}
.card-contact__list a:hover { background: rgb(255 255 255 / 0.06); color: var(--c-paper); }
.card-contact__icon { width: 44px; height: 44px; border: 1px solid var(--c-line-dark); border-radius: var(--radius); display: grid; place-items: center; }
.card-contact__icon svg { width: 20px; height: 20px; color: var(--c-accent-light); }
.card-contact__label { display: block; font-size: 0.8125rem; color: rgb(244 241 236 / 0.6); }
.card-contact__value { display: block; font-weight: 500; font-size: 1.0625rem; overflow-wrap: anywhere; }
.card-contact__list a > svg { width: 18px; height: 18px; color: rgb(244 241 236 / 0.5); transition: transform .2s; }
.card-contact__list a:hover > svg { transform: translateX(4px); color: var(--c-accent-light); }
.card-contact__foot { padding: 16px 24px 24px; font-size: 0.9375rem; color: rgb(244 241 236 / 0.7); border-top: 1px solid var(--c-line-dark); }

.included { margin-top: 40px; display: grid; gap: 12px; }
.included ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .included ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.included li { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; }
.included li svg { width: 18px; height: 18px; color: var(--c-accent); margin-top: 4px; flex: none; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; }
.back-link svg { width: 16px; height: 16px; transition: transform .2s; }
.back-link:hover svg { transform: translateX(-4px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.interest .axis { opacity: .3; }
.interest__more { order: 1; }
.interest__more .included { margin-top: 0; }
@media (min-width: 960px) { .interest__more .included { margin-top: 40px; } }
