/*
 * Site-specific styles layered on top of the migrated WordPress theme.
 * The original pages relied on per-image width/height attributes plus the
 * SiteOrigin image-widget CSS to keep screenshots in bounds. That markup was
 * dropped when posts moved to Markdown, so size content images here.
 */

/* ---- Case, not caps ----------------------------------------------------
 * The theme sets text-transform: uppercase on h3 globally, on .main h1 and on
 * the slider. All-caps German compounds ("EUROPÄISCHE SOZIALDATEN-VERNETZUNG")
 * are hard to read, so headings and content render in normal case. The nav
 * menus keep their caps — they are the one place caps still read as a label,
 * so .hdr-nav__menu / .hdr-mobile__menu / .nav > li > a are left untouched. */
h3,
.main h1,
.slider-text article { text-transform: none; }

/* Images never exceed their column; shown one per row, centered, and
 * never upscaled (small screenshots keep their native size). */
.entry-content img,
.textwidget img,
.post-gallery img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
}

.post-gallery {
  margin: 12px 0;
}

/* Long CLI commands in code blocks must wrap instead of widening the page. */
.entry-content pre,
.entry-content code {
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

/* Safety net: never allow horizontal page scroll from wide content. */
body {
  overflow-x: hidden;
}

/* ---- Shared bits ------------------------------------------------------- */
:root {
  --accent: #12b0b6;
  --ink: #222;
  --muted: #667;
  --line: #e5e5e5;

  /* Homepage band heights (header/footer excluded), defined in relation to each
   * other rather than as fixed sizes. One base drives all three via ratios, so
   * changing --band-base rescales the whole hierarchy and keeps the proportion
   * hero : Referenzen : Kompetenzen = 1.30 : 1.00 : 0.875 (Referenzen = base). */
  --band-base: 400px;
  --band-h-hero: calc(var(--band-base) * 1.3);    /* tallest  → 520px */
  --band-h-ref: var(--band-base);                 /* middle   → 400px */
  --band-h-komp: calc(var(--band-base) * 0.875);  /* shortest → 350px */
  /* Flagship product band (Fluxo) — its own dedicated band between Kompetenzen
   * and Referenzen. Floored at the base so it does NOT alter the existing
   * hero : Referenzen : Kompetenzen hierarchy; content sits near this floor. */
  --band-h-fluxo: var(--band-base);               /* flagship → 400px */
}

.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.btn-cta:hover { filter: brightness(0.93); color: #fff; text-decoration: none; }

.section-band { padding: 40px 0; }
.section-band--grey { background: #f5f6f7; }
.section-band--white { background: #fff; }

/* Homepage band hierarchy: give the content-driven bands a min-height floor and
 * vertically centre their content so the sizing reads as a deliberate system.
 * Profile (part 1) largest, Referenzen (part 3) smallest; Kompetenzen (part 2)
 * is reduced further down (.container-full aside overrides). */
.section-band--hero {
  min-height: var(--band-h-hero);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}
.section-band--ref {
  min-height: var(--band-h-ref);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-band--fluxo {
  min-height: var(--band-h-fluxo);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Welcome text styled like the original theme (.main h1 + .home .post p:first-of-type). */
.home-welcome { text-align: center; }
.home-welcome h1 {
  color: #12b0b6;
  font-family: 'open_sanslight', 'Open Sans', sans-serif;
  font-size: 2.85em;
  margin: 0 0 35px;
}
.home-welcome p:first-of-type {
  color: #aaaeba;
  font-family: 'open_sanslight', 'Open Sans', sans-serif;
  font-size: 2.14em;
  margin-bottom: 18px;
}
/* The three middle sections (Willkommen · Profil · Kompetenzen) share one
 * continuous background; the inner .section-band stay transparent. Uses the
 * light-grey gradient that the header used before it went dark navy
 * (#EFF2F5 → #D3DAE0), replacing the old bg-architektur grid image. */
.middle-bg {
  background: linear-gradient(180deg, #eff2f5 0%, #d3dae0 100%);
}
.section-title { margin: 0 0 24px; }
.section-more { margin-top: 20px; }

/* Fixed nav bar. Sits over the top of the banner at scroll 0 (transparent, so the
 * header looks untouched) and stays pinned while scrolling. Once scrolled it gets
 * a solid background and shrinks, so it stays readable over page content. */
.hdr-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.hdr-bar.is-stuck {
  background-color: rgba(9, 20, 26, 0.94);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
}
.hdr-bar .hdr-nav,
.hdr-nav__logo img,
.hdr-mobile__logo img {
  transition: padding-top 0.25s ease, height 0.25s ease;
}
.hdr-bar.is-stuck .hdr-nav { padding-top: 10px; padding-bottom: 6px; }
.hdr-bar.is-stuck .hdr-nav__logo img { height: 58px; }
.hdr-bar.is-stuck .hdr-mobile { padding-top: 8px; padding-bottom: 4px; }
.hdr-bar.is-stuck .hdr-mobile__logo img { height: 42px; }

/* Header: the theme (#top-main-menu) supplies the skyline banner; the nav is
 * laid out as a grid so the logo stays centered between the two menu halves
 * regardless of item count/width. */
.hdr-bar .hdr-nav {
  position: relative;
  z-index: 2;
  display: grid;
  /* minmax(0,1fr) (not the default minmax(auto,1fr)) forces the two side
   * columns to stay exactly equal, so the logo stays dead-center even though
   * the right menu has more items than the left. */
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 40px;
  padding-top: 34px;
}
.hdr-nav__logo { justify-self: center; display: inline-block; line-height: 0; }
.hdr-nav__logo img { height: 100px; width: auto; display: block; pointer-events: none; }
.hdr-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 48px;
}
.hdr-nav__menu--left { justify-content: flex-end; }
.hdr-nav__menu--right { justify-content: flex-start; }
.hdr-nav__menu a {
  display: block;
  padding: 0 0 7px;
  color: #aaaeba;
  font-family: 'open_sanslight', 'Open Sans', sans-serif;
  font-weight: normal;
  font-size: 1.42em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 4px solid transparent;
}
.hdr-nav__menu a:hover,
.hdr-nav__menu a.is-active { color: #aaaeba; border-bottom-color: var(--accent); }
.hdr-nav__phone a { font-size: 18px; }
/* Convenience-translation note on the English legal pages (Imprint/Privacy). */
.legal-note {
  border-left: 4px solid var(--accent);
  background: rgba(18, 176, 182, 0.06);
  padding: 12px 16px;
  margin: 0 0 24px;
  font-size: 0.95em;
}
/* DE|EN language switch: pinned to the top-right of the header grid so the logo
 * stays dead-center. Mirrors the nav link styling (logo grey; teal for the
 * active language). */
.hdr-nav__lang {
  position: absolute;
  top: 16px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'open_sanslight', 'Open Sans', sans-serif;
  font-size: 1.05em;
  text-transform: uppercase;
}
.hdr-nav__lang a {
  color: #aaaeba;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.hdr-nav__lang a:hover { border-bottom-color: var(--accent); }
.hdr-nav__lang a.is-active { color: var(--accent); border-bottom-color: var(--accent); cursor: default; }
.hdr-nav__lang-sep { color: #6b7280; }
.hdr-nav__disabled {
  display: block;
  padding: 0 0 7px;
  color: #8a99a0;
  font-family: 'open_sanslight', 'Open Sans', sans-serif;
  text-transform: uppercase;
  font-size: 1.42em;
  border-bottom: 4px solid transparent;
  opacity: 0.6;
  cursor: not-allowed;
}
/* Mobile header (hamburger). Hidden on desktop; the desktop .hdr-nav grid is
 * hidden on phones instead. The original theme collapsed the menu behind a
 * toggle on small screens — this restores that behaviour for the new nav. */
.hdr-mobile { display: none; }
.hdr-mobile__menu { display: none; }

@media (max-width: 768px) {
  /* Swap the desktop grid nav for the compact mobile bar. */
  .hdr-bar .hdr-nav { display: none; }
  .hdr-mobile {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px 0;
  }
  .hdr-mobile__logo { display: inline-block; line-height: 0; }
  .hdr-mobile__logo img { height: 52px; width: auto; display: block; }

  /* Hamburger button: three bars in the logo grey, turning teal when open. */
  .hdr-mobile__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .hdr-mobile__toggle span {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 2px;
    background: #aaaeba;
    transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
  }
  .hdr-mobile__toggle.is-open span { background: var(--accent); }
  .hdr-mobile__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hdr-mobile__toggle.is-open span:nth-child(2) { opacity: 0; }
  .hdr-mobile__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Dropdown panel: dark overlay dropping under the bar, like the old menu. */
  .hdr-mobile__menu:not([hidden]) { display: block; }
  .hdr-mobile__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 3;
    margin: 6px 0 0;
    padding: 6px 0;
    list-style: none;
    background: rgba(20, 24, 30, 0.96);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  }
  .hdr-mobile__menu li { margin: 0; }
  .hdr-mobile__menu a,
  .hdr-mobile__disabled {
    display: block;
    padding: 13px 22px;
    color: #e6e8ee;
    font-family: 'open_sanslight', 'Open Sans', sans-serif;
    font-size: 1.15em;
    text-transform: uppercase;
    text-decoration: none;
    border-left: 4px solid transparent;
  }
  .hdr-mobile__menu a:hover,
  .hdr-mobile__menu a.is-active {
    color: #fff;
    border-left-color: var(--accent);
    background: rgba(18, 176, 182, 0.14);
  }
  .hdr-mobile__disabled { color: #8a99a0; opacity: 0.7; cursor: not-allowed; }

  /* Language switch row at the foot of the mobile dropdown. */
  .hdr-mobile__lang {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
    font-family: 'open_sanslight', 'Open Sans', sans-serif;
    text-transform: uppercase;
  }
  .hdr-mobile__lang a {
    color: #e6e8ee;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
  }
  .hdr-mobile__lang a.is-active { color: var(--accent); border-bottom-color: var(--accent); }
  .hdr-mobile__lang span { color: #6b7280; }
}

/* The header banner is now DARK (navy) at every size, so the mobile nav toggle
 * keeps its default light-grey bars (teal when open) — no dark-on-light override
 * needed anymore.
 *
 * Cloud choice follows the MENU state, not an .env switch: the RIGHT cloud shows
 * whenever the menu is expanded (theme base images: desktop 701–1600, fullhd
 * >=1601), and the CENTER cloud shows when the menu is collapsed. The menu
 * collapses at <=768px. smartphone (<500) and tablet (500–700) base images are
 * already the centre cloud; the only overlap is the desktop image on portrait
 * tablets (701–768px), so swap just that slice to the centre variant. */
@media (min-width: 701px) and (max-width: 768px) {
  #top-main-menu {
    background-image: url(/vendor/themes/tachi_it/images/skyline-leipzig-desktop-center.jpg);
  }
}

/* Header height: shorter banner on desktop. The banner is now a vertically
 * centred cloud (no skyline), so we frame it with background-position:center
 * (was a negative-y crop of the old sky) — that keeps the cloud centred at any
 * height instead of clipping its bottom. background-size stays 100% auto.
 * Tablet (<=1024) and mobile heights stay with the theme. */
@media (min-width: 1401px) {
  #top-main-menu { height: 240px; background-position: center; }
}
@media (min-width: 1201px) and (max-width: 1400px) {
  #top-main-menu { height: 225px; background-position: center; }
}
@media (min-width: 1025px) and (max-width: 1200px) {
  #top-main-menu { height: 215px; background-position: center; }
}

/* Tablet/mobile (<=1024) keep the theme's background-size:cover, but the theme
 * also centers it, which crops away the darkened top strip that makes the nav
 * and hamburger legible. Anchor to the top instead. The tablet (2:1) and
 * smartphone (1.56:1) images are cut to taller aspects so cover barely crops
 * them sideways and the right-hand cloud stays in frame. */
@media (max-width: 1024px) {
  #top-main-menu { background-position: center top; }
}

/* ---- Home intro -------------------------------------------------------- */
/* Centred welcome block ("Software that works." + lead paragraphs) sitting
 * above the profile row, spanning the full band width. */
.home-intro {
  text-align: center;
  margin: 12px 0 40px;
}
.home-intro h1 {
  margin: 0 0 24px;
  color: var(--accent);
}
.home-intro p {
  margin: 0 auto 12px;
  font-size: 17px;
  line-height: 1.55;
}

/* ---- Home hero --------------------------------------------------------- */
/* Stable 3-column grid (photo · text · QR) on desktop; stacks to one centered
 * column below 860px in a clean order instead of the old ad-hoc flex wrap. */
.home-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}
.home-hero__photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.15);
}
.home-hero__text { min-width: 0; }
.home-hero__text h1 { margin: 0 0 22px; color: var(--accent); text-align: center; }
.home-hero__role { font-size: 17px; color: var(--muted); margin: 0 0 14px; }
.home-hero__lead { font-size: 16px; line-height: 1.5; }
.home-hero__trust {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-hero__trust li {
  background: #eef7f7;
  border: 1px solid #d6ecec;
  color: #0a6b6f;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
}
.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
}
.home-hero__qr {
  text-align: center;
  text-decoration: none;
  color: var(--muted);
}
.home-hero__qr img { width: 130px; height: 130px; display: block; }
.home-hero__qr span { display: block; font-size: 12px; margin-top: 6px; }

@media (max-width: 860px) {
  .home-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 24px;
  }
  .home-hero__trust { justify-content: center; }
  .home-hero__cta { justify-content: center; }
  /* Stacked content already exceeds the desktop floors — drop them so short
   * viewports don't get forced empty space. */
  .section-band--hero, .section-band--ref, .section-band--fluxo { min-height: 0; }
  /* Flagship product: stack text over the product mark on narrow screens. */
  .ref-flagship { flex-direction: column; gap: 18px; }
  .fluxo-head { flex-direction: column; gap: 16px; }
}

/* ---- Kompetenzen band height ------------------------------------------- */
/* Override the theme's tall .container-full aside min-height ladder (490px base,
 * vendor/themes/tachi_it/style.css) with the shared band height so Kompetenzen
 * matches the hero and Referenzen bands at every desktop width. This sheet loads
 * after the theme; the single unbroken min-width:768px rule wins over the theme's
 * stepped breakpoints without re-raising. Bounded to min-width:768px so the ≤767
 * stacked layout stays fully governed by the theme's 200px. */
@media (min-width: 768px) { .container-full aside { min-height: var(--band-h-komp); } }

/* The fixed band height above decouples the tile height from the theme's
 * width-scaled background (background-size: 100% auto in style.css): at narrow
 * desktop widths (~768–1140px) the image renders shorter than the 350px tile,
 * leaving a white strip under the white text (no fallback colour on desktop).
 * Force the backgrounds to cover the full tile — position (right/left center)
 * is preserved, and at wide widths this matches the current framing. */
@media (min-width: 768px) {
  #leistung-server, #leistung-code, #leistung-cloud { background-size: cover; }
}

/* Header alignment: the theme centres only #leistung-code/#leistung-cloud titles
 * vertically (table-cell + middle), leaving #leistung-server top-aligned, so on
 * wide screens (>1400px) title 1 sits ~35px higher than titles 2/3. Centre all
 * three consistently across every desktop width so the headers align. */
@media (min-width: 768px) {
  .container-full #leistung-server h3 span,
  .container-full #leistung-code h3 span,
  .container-full #leistung-cloud h3 span {
    display: table-cell;
    vertical-align: middle;
  }
}

/* Links inside the Kompetenz tiles (e.g. the CPSA-Advanced references): white +
 * underlined so they read as links and stay legible on the dark tile background
 * — the theme's default teal link colour is low-contrast there. */
.container-full .textwidget a { color: #fff; text-decoration: underline; }
.container-full .textwidget a:hover { color: #fff; opacity: 0.8; }

/* ---- Pillars ----------------------------------------------------------- */
.pillars { display: flex; gap: 24px; flex-wrap: wrap; }
.pillar { flex: 1 1 260px; }
.pillar h3 { margin-top: 0; }
.pillar i { color: var(--accent); margin-right: 6px; }

/* ---- Reference teasers ------------------------------------------------- */
.ref-teasers { display: flex; gap: 24px; flex-wrap: wrap; }
.ref-teaser {
  flex: 1 1 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.ref-teaser__tag { font-size: 13px; font-weight: 700; color: var(--accent); }
.ref-teaser h3 { margin: 6px 0 10px; font-size: 18px; }

/* ---- Flagship product (Fluxo) — homepage ----------------------------- */
.ref-flagship {
  display: flex;
  gap: 28px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(18, 176, 182, 0.08);
}
.ref-flagship__body { flex: 1 1 340px; }
.ref-flagship__shot { flex: 1 1 300px; display: flex; }
.ref-flagship__badge {
  display: inline-block;
  font-size: 13px; font-weight: 700; color: var(--accent);
}
.ref-flagship__title { margin: 8px 0 2px; font-size: 26px; }
.ref-flagship__tagline { margin: 0 0 10px; font-weight: 600; color: var(--ink); }
.ref-flagship__more { margin-top: 12px; }
.ref-flagship__more a { color: var(--accent); font-weight: 600; text-decoration: none; }
.ref-flagship__more a:hover { text-decoration: underline; }

/* Product mark. The logo artwork carries its own rounded corners and colour —
 * no border, background or radius here. */
.fluxo-mark { display: block; width: 100%; height: auto; }
.ref-flagship__shot .fluxo-mark { align-self: center; max-width: 200px; margin: 0 auto; }

/* ---- Fluxo detail page ------------------------------------------------ */
/* Roomy, quiet rhythm: the intro sits apart, each block gets air and an accent
   icon heading (same vocabulary as the Arbeitsweise block). */
.post .lead { font-size: 1.12em; color: #445; margin-bottom: 20px; }
.fluxo-head { display: flex; gap: 32px; align-items: center; margin-bottom: 44px; }
.fluxo-head .fluxo-mark { flex: 0 0 auto; width: 120px; }
.fluxo-head .lead { margin: 0; max-width: 60ch; }
.case__stack--lead { margin-top: 22px; }

.fluxo-block { margin-top: 40px; }
.fluxo-block:first-child { margin-top: 0; }
.fluxo-block__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 19px;
}
.fluxo-block__title .fa { color: var(--accent); font-size: 20px; }
.fluxo-block p { margin: 0; max-width: 66ch; }

.fluxo-tech { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.fluxo-tech .case__stack { margin-top: 14px; }
.fluxo-cta { margin-top: 40px; }

@media (max-width: 767px) {
  .fluxo-head { align-items: flex-start; gap: 20px; margin-bottom: 32px; }
  .fluxo-block { margin-top: 32px; }
}

/* ---- Profil ------------------------------------------------------------ */
.profil { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.profil__photo { flex: 0 0 auto; }
.profil__photo img { width: 180px; height: 180px; object-fit: cover; border-radius: 8px; }
.profil__text { flex: 1 1 320px; }
/* Understated award line — a quiet credit, not a badge. */
.profil-award {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.profil-award .fa { color: var(--accent); margin-right: 8px; }
.profil-award strong { color: var(--ink); }

/* The merged Profil page carries no section headings — the blocks are told
   apart by rhythm alone, so the gap has to do that work: a wide margin plus one
   hairline. Trailing margins inside a block are collapsed so every gap is the
   same regardless of what the block ends with (pill row, card, list). */
.page-section {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.page-section > :last-child { margin-bottom: 0; }
.page-section .skill-stack { margin-bottom: 0; }
.page-section .cases .case:last-child { margin-bottom: 0; }
.page-section .cert-groups .cert-group:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
  .page-section { margin-top: 36px; padding-top: 32px; }
}

/* .hdr-bar is fixed, so an anchor target would land underneath it. The only
   in-page jumps left are the /referenzen/ and /zertifikate/ redirect stubs, and
   those arrive by navigation — the bar is still at its full ~140px height, not
   the compact .is-stuck one. Offset for the tall bar so the section's top rule
   stays visible; when the bar is compact this just reads as extra air. */
#expertise, #referenzen, #zertifikate, #ausbildung { scroll-margin-top: 160px; }
@media (max-width: 767px) {
  #expertise, #referenzen, #zertifikate, #ausbildung { scroll-margin-top: 110px; }
}

/* ---- Skills & tech ----------------------------------------------------- */
/* One flat row of headline technologies — the .home-hero__trust pill recipe,
   sized up a little since it stands on its own here. */
.skill-stack { list-style: none; padding: 0; margin: 0 0 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.skill-stack li {
  background: #eef7f7;
  border: 1px solid #d6ecec;
  color: #0a6b6f;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 600;
}

/* ---- Certificates ------------------------------------------------------ */
.cert-group { margin-bottom: 24px; }
.cert-list { list-style: none; padding: 0; margin: 0; }
.cert-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.cert-name { font-weight: 600; }
.cert-meta { color: var(--muted); font-size: 14px; }

/* ---- Arbeitsweise ------------------------------------------------------ */
.profil-meta__title {
  margin: 0 0 16px;
  font-size: 18px;
}
.profil-meta__title .fa {
  color: var(--accent);
  margin-right: 8px;
}

.worklist { list-style: none; padding: 0; margin: 0; }
.worklist li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--line);
}
.worklist li:first-child { padding-top: 0; }
.worklist li:first-child::before { top: 2px; }
.worklist li:last-child { border-bottom: 0; padding-bottom: 0; }
.worklist li::before {
  content: "\f00c";                 /* Font Awesome check */
  font-family: "FontAwesome";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--accent);
  font-size: 13px;
}

/* ---- Case studies ------------------------------------------------------ */
.case {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 22px;
}
.case h3 { margin: 6px 0 12px; }
.case__tag { font-size: 13px; font-weight: 700; color: var(--accent); }
.case p { margin: 6px 0; }
.case__stack { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.case__stack li { background: #f2f4f5; border-radius: 4px; padding: 2px 10px; font-size: 12px; color: #445; }
.case--flagship {
  border-left-width: 5px;
  box-shadow: 0 2px 10px rgba(18, 176, 182, 0.08);
}
.case--flagship h3 { font-size: 22px; }
.case__head { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.case__head h3 { margin: 4px 0 0; }
.case__head .case__tag { display: block; }
/* The logo artwork carries its own rounded corners — no border-radius here. */
.case__logo { flex: 0 0 auto; width: 56px; height: 56px; }
.case__more { margin: 12px 0 0; }
.case__more a { color: var(--accent); font-weight: 600; text-decoration: none; }
.case__more a:hover { text-decoration: underline; }

/* ---- Kontakt ----------------------------------------------------------- */
/* Single column since the (non-functional) contact form was removed — contact
   runs over the mailto/tel links and the vCard below. */
.kontakt { display: flex; gap: 32px; flex-wrap: wrap; }
.kontakt__info { flex: 1 1 260px; max-width: 46ch; }
.contact-card {
  display: inline-block;
  margin-top: 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}
.contact-card__qr img { width: 150px; height: 150px; display: block; }

/* ---- Certificate carousel (max 3 visible, center slide in focus) ------- */
.cert-carousel {
  position: relative;
  max-width: 760px;
  margin: 8px auto 32px;
  padding: 0 44px;
}
.cert-carousel__viewport { overflow: hidden; }
.cert-carousel__track {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  display: flex;
  align-items: center;
  transition: transform 0.35s ease;
}
.cert-slide {
  flex: 0 0 33.333%;
  box-sizing: border-box;
  padding: 0 8px;
  transform: scale(0.82);
  opacity: 0.5;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.cert-slide.is-active { transform: scale(1); opacity: 1; }
.cert-slide a { display: block; text-decoration: none; color: var(--ink); }
.cert-slide img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
/* Centered slide: teal frame + glow so the selection is obvious.
 * outline (not border) avoids any layout shift as slides change. */
.cert-slide.is-active img {
  outline: 3px solid var(--accent);
  outline-offset: -1px;
  box-shadow: 0 6px 22px rgba(18, 176, 182, 0.38);
}
.cert-slide.is-active span { color: var(--accent); }
.cert-slide span { display: block; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.3; min-height: 2.6em; margin-top: 8px; color: var(--muted); }
.cert-carousel__nav {
  position: absolute;
  top: 165px;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.cert-carousel__nav:disabled { opacity: 0.35; cursor: default; }
.cert-carousel__prev { left: 0; }
.cert-carousel__next { right: 0; }
@media (max-width: 600px) {
  .cert-slide { flex-basis: 100%; }
}
