/* Anke Vogel — Relaunch: geteilte Basis für alle Startseiten-Varianten.
   Palette reduziert auf: Blau, Dunkelblau, Weiß, Grau (Feedback-Stand) —
   Beige-Paper und das helle Blaugrau wurden neutralisiert. */

:root {
  --slate: #40576D;       /* Blau */
  --slate-deep: #243D59;  /* Dunkelblau — Randbereich-Blau aus dem Mockup-Screenshot, geschätzt */
  --slate-soft: #60686E;  /* Grau (Sekundärtext, Labels) — neutral, Kontrast ≥ 4,5:1 auf Paper/Paper-Cool */
  --accent: #547089;
  --paper: #F5F6F6;       /* fast weißes Grau statt Beige */
  --paper-cool: #EAEBEC;  /* neutrales Grau statt Blaugrau */
  --ink: #1E2A34;
  --white: #FFFFFF;
  --on-slate-text: #C3CFD8; /* Text auf Slate-Flächen (Footer-Fließtext, Nebenzeilen) */
  --max: 1280px;
  /* Markenschrift für Headlines: LFT Etica Condensed, eingebunden über Adobe Fonts (Typekit-Kit uum7spx). */
  /* Der Kit liefert nur Regular (400) und Bold (700) — kein separater Light-Schnitt. */
  --font-headline: 'lft-etica-condensed', 'lft-etica', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
}

body {
  font-family: 'lft-etica', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.5;
}

h1, h2, h3 { font-family: var(--font-headline); }
h2, .section-title { line-height: 1.2; }

/* Bold/Light-Kontrast für zweigeteilte Headline-Phrasen (statt Versalien-Mix) */
.headline-split, .page-header h1.headline-split { font-weight: 400; }
.headline-split strong { font-weight: 700; }

::selection { background: var(--slate); color: #fff; }

img { max-width: 100%; display: block; }

.container {
  width: 84%;
  margin: 0 auto;
}

/* ===== Kicker / Label ===== */
.kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
}

/* ===== Nav ===== */
.av-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 8%;
}
.av-nav__logo { height: 55px; }
.av-nav__links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  list-style: none;
  margin: 0;
  padding: 0;
}
.av-nav__links a {
  color: var(--slate-deep);
  text-decoration: none;
}
.av-nav__links a:hover { color: var(--slate); }
.av-nav__links a.is-active { color: var(--slate); border-bottom: 2px solid var(--slate); padding-bottom: 4px; }
.av-nav--on-photo .av-nav__links a { color: #fff; }
.av-nav--on-photo .av-nav__links a.is-active { border-color: #fff; }

@media (max-width: 720px) {
  .av-nav { padding: 20px 24px; }
}

/* ===== Hamburger-Menü: helles, vollflächiges Menü auf allen Seiten und Bildschirmgrößen ===== */
.av-nav__links { display: none; }
.av-burger { width: 44px; height: 44px; border: 0; background: none; padding: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; cursor: pointer; color: var(--slate-deep); }
.av-burger i { display: block; width: 26px; height: 2px; background: currentColor; border-radius: 1px; }
.av-nav--on-photo .av-burger { color: #fff; }
.av-menu { position: fixed; inset: 0; z-index: 1000; visibility: hidden; pointer-events: none; transition: visibility 0s .3s; }
.av-menu.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.av-menu__overlay { display: none; }
.av-menu__panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow-y: auto;
  background: rgba(245,246,246,0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: clamp(150px, 22vh, 220px) 8% 32px;
  opacity: 0; transition: opacity .3s ease;
}
.av-menu.is-open .av-menu__panel { opacity: 1; }
/* Logo oben links, Schließen-Kreuz oben rechts (ohne Kreis) */
.av-menu__panel::before {
  content: ""; position: absolute; top: 28px; left: 8%; width: 146px; height: 55px;
  background: url("Logo_AV_Design_quer.png") left center / contain no-repeat;
}
.av-menu__close { position: absolute; top: 34px; right: 8%; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--slate-deep); }
.av-menu__close i { position: absolute; left: 9px; top: 21px; width: 26px; height: 2px; background: currentColor; border-radius: 1px; transform: rotate(45deg); }
.av-menu__close i + i { transform: rotate(-45deg); }
/* Inhalt mittig, 760 px breit wie der Einstiegstext: links nummerierte Navigation, rechts Button und Kontakt */
.av-menu__links {
  display: grid; grid-template-columns: minmax(0, 1fr) 230px; column-gap: 56px; align-content: start;
  width: 100%; max-width: 760px; margin: 0 auto 32px;
}
.av-menu__nav { grid-column: 1; grid-row: 1; counter-reset: avm; }
.av-menu__row {
  counter-increment: avm; position: relative;
  display: flex; flex-wrap: wrap; align-items: center;
  padding: 20px 0 20px 34px; border-bottom: 1px solid rgba(30,42,52,0.12);
}
.av-menu__row::before {
  content: counter(avm, decimal-leading-zero);
  position: absolute; left: 0; top: calc(20px + clamp(26px, 4.5vw, 36px) * 0.55); transform: translateY(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--slate); opacity: .75;
}
.av-menu__row > a.main {
  font-family: var(--font-headline); font-size: clamp(26px, 4.5vw, 36px);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; color: var(--ink); text-decoration: none;
}
.av-menu__row > a.main:hover { color: var(--slate); }
.av-menu__row > a.main.is-active { color: var(--slate); }
.av-menu a.is-active::after {
  content: ""; display: inline-block; width: .6em; height: .6em; margin-left: .35em; vertical-align: -0.05em; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h17M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h17M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Unterpunkte direkt unter „Leistungen“ */
.av-menu__subs { flex: 0 0 100%; display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.av-menu__subs a { font-size: 15px; font-weight: 400; line-height: 1.3; color: var(--slate); padding: 4px 0; text-decoration: none; }
.av-menu__subs a:hover { color: var(--slate-deep); text-decoration: underline; }
.av-menu__subs a.is-active { color: var(--slate-deep); }
/* Rechts: Button über den Kontaktdaten */
.av-menu__side { grid-column: 2; grid-row: 1; align-self: end; padding-bottom: 20px; } /* unten rechts, bündig mit der letzten Navigationszeile */
.av-menu__cta { display: inline-flex; width: 100%; padding: 12px 18px; }
.av-menu__contact { margin-top: 28px; font-size: 14px; line-height: 1.6; color: var(--slate); }
.av-menu__contact h2 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--slate); margin: 0 0 12px; font-family: 'lft-etica', system-ui, sans-serif; }
.av-menu__contact a { display: block; color: var(--slate-deep); text-decoration: none; padding: 2px 0; }
.av-menu__contact a:hover { color: var(--slate); text-decoration: underline; }
.av-menu__contact span { display: block; padding: 2px 0; }
@media (max-width: 720px) {
  .av-menu__panel { padding: 128px 24px 28px; }
  .av-menu__panel::before { left: 24px; top: 20px; }
  .av-menu__close { top: 26px; right: 24px; }
  .av-menu__links { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }
  .av-menu__side { grid-column: 1; grid-row: 2; align-self: start; padding: 22px 0 0; }
  .av-menu__row { padding: 14px 0 14px 28px; }
  .av-menu__row::before { top: calc(14px + clamp(26px, 4.5vw, 36px) * 0.55); }
  .av-menu__subs a { font-size: 14px; }
}
html.av-menu-open { overflow: hidden; }

/* ===== Untermenü unter „Leistungen“ ===== */
.av-nav__has-sub { position: relative; padding-bottom: 12px; margin-bottom: -12px; }
.av-nav__sub { display: none; position: absolute; top: 100%; left: -16px; min-width: 210px; margin: 0; padding: 8px 0; list-style: none; background: #fff; border: 1px solid rgba(30,42,52,0.1); border-radius: 4px; box-shadow: 0 10px 28px rgba(30,42,52,0.14); z-index: 30; }
.av-nav__has-sub:hover .av-nav__sub, .av-nav__has-sub:focus-within .av-nav__sub { display: block; }
.av-nav .av-nav__sub a { display: block; padding: 9px 18px; color: var(--slate-deep) !important; white-space: nowrap; border-bottom: none !important; }
.av-nav .av-nav__sub a:hover { background: var(--paper-cool); color: var(--slate) !important; }
.av-nav .av-nav__sub a.is-active { color: var(--slate) !important; padding-bottom: 9px; }
@media (max-width: 720px) {
  .av-nav__has-sub { padding-bottom: 0; margin-bottom: 0; }
  .av-nav__sub { display: block; position: static; min-width: 0; padding: 4px 0 0 12px; background: none; border: none; box-shadow: none; }
  .av-nav .av-nav__sub a { padding: 4px 0; color: var(--slate) !important; font-weight: 600; }
  .av-nav--on-photo .av-nav__sub a { color: var(--slate-deep) !important; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border-radius: 3px;
  padding: 12px 24px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--slate); color: #fff; }
.btn-primary:hover { background: var(--slate-deep); }
.btn-secondary { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn-secondary:hover { background: rgba(64,87,109,0.08); }
.btn-secondary.on-dark { border-color: #fff; color: #fff; }
.btn-secondary.on-dark:hover { background: rgba(255,255,255,0.1); }

/* ===== Tags / Badge ===== */
.tag {
  display: inline-block;
  background: var(--paper-cool);
  color: var(--slate-deep);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
}
.badge-kombi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--slate-deep);
  color: #fff;
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 700;
}
.badge-kombi img { width: 16px; height: 16px; border-radius: 2px; }

/* ===== Checkliste ===== */
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.check-list li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ===== Foto-Platzhalter (bewusst als Platzhalter markiert, siehe Designsystem 05/08) ===== */
.photo-ph {
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #D8D9DA, #D8D9DA 14px, #E6E7E8 14px, #E6E7E8 28px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-ph__label {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #56626b;
  letter-spacing: 0.02em;
  z-index: 1;
  background: rgba(246,244,240,0.85);
  padding: 4px 10px;
  border-radius: 2px;
}
/* ===== Echte Bilder in Foto-Platzhaltern ===== */
.photo-ph > .ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-ph:has(> .ph-img) { background: none; }
.split-c__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
@media (max-width: 900px) {
  .proj-header > .ph-img { display: none; }
  .proj-header:has(> .ph-img) { background: var(--paper); }
}

.tri-overlay {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
  opacity: 0.82;
}
.tri-overlay--left { left: 0; }
.tri-overlay--right { right: 0; }

/* ===== Zitat ===== */
.quote-card {
  background: #fff;
  border: 1px solid rgba(30,42,52,0.1);
  border-radius: 4px;
  padding: 36px 40px;
}
.quote-card__text { font-size: 19px; font-weight: 500; margin: 0 0 14px; max-width: 640px; }
.quote-card__source { font-size: 13.5px; color: var(--slate-soft); }
.quote-card__placeholder-note { font-size: 11.5px; color: var(--slate-soft); margin-top: 10px; font-style: italic; }

/* ===== Claim-Rotator ===== */
.claim { animation: av-fade .5s ease; }
@keyframes av-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.claim-dots { display: flex; gap: 8px; }
.claim-dots button {
  width: 28px; height: 4px; border-radius: 2px; cursor: pointer;
  background: rgba(120,124,128,0.3); border: none; padding: 0;
}
.claim-dots button.is-active { background: var(--slate); }

/* ===== Footer ===== */
.av-footer {
  background: var(--slate);
  color: #C3CFD8;
}
.av-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 48px;
  flex-wrap: wrap;
}
.av-footer__logo { height: 40px; }
.av-footer__links { display: flex; gap: 20px; font-size: 13px; }
.av-footer__links a { color: #cdd8e0; text-decoration: none; }
.av-footer__links a:hover { color: #fff; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
/* Zwei Sections mit gleichem (Paper-)Hintergrund hintereinander: Gesamtabstand 64 px statt Summe der Paddings */
.section:not(.section--paper-cool):not(.section--duo-dark):not(.section--slate-deep):not(.faq-section):has(+ .section:not(.section--paper-cool):not(.section--duo-dark):not(.section--slate-deep):not(.faq-section)) { padding-bottom: 32px; }
.section:not(.section--paper-cool):not(.section--duo-dark):not(.section--slate-deep):not(.faq-section) + .section:not(.section--paper-cool):not(.section--duo-dark):not(.section--slate-deep):not(.faq-section) { padding-top: 32px; }
.section--paper-cool { background: var(--paper-cool); }
.section--slate-deep { background: var(--slate-deep); color: #fff; }
.section-title { font-size: 34px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 16px; }
.section-lede { font-size: 15.5px; color: var(--slate); max-width: 620px; margin: 0 0 32px; }

/* ===== Hinweiszeile über der Navigation (jede Seite) ===== */
.hint-bar {
  background: var(--slate); color: rgba(255,255,255,0.88);
  text-align: center; font-size: 12px; letter-spacing: 0.03em;
  padding: 9px 16px;
}

/* ===== Seiten-Header für Unterseiten (kein Video-Hero) ===== */
.page-header { padding: 56px 0 8px; max-width: 760px; }
.page-header .kicker { margin-bottom: 14px; }
.page-header h1 { font-size: 44px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.12; margin: 0 0 18px; }
.page-header p { font-size: 17px; line-height: 1.6; color: var(--slate); margin: 0; }
@media (max-width: 720px) {
  .page-header h1 { font-size: 32px; }
}

/* ===== Pfeil (Linienpfeil, eine Variante für Buttons, Links und Slider) ===== */
.arr {
  display: inline-block; width: 1.15em; height: 1.15em; margin-left: 0.45em; vertical-align: -0.2em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h17M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h17M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.arr--left { transform: scaleX(-1); margin: 0 0.45em 0 0; }

/* ===== Link mit Pfeil ===== */
.link-arrow { color: var(--slate); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.link-arrow:hover { color: var(--slate-deep); }

/* ===== Tag-Reihe ===== */
.strip { display: flex; gap: 10px; padding: 0 0 26px; flex-wrap: wrap; }
.strip .tag { font-size: 13px; }

/* ===== Zitate: Grid + Karussell-Navigation kombiniert ===== */
.quotes-carousel__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.qcard { background: #fff; border: 1px solid rgba(30,42,52,0.1); border-radius: 4px; padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; min-height: 170px; }
.qcard__mark { font-family: Georgia, serif; font-size: 34px; color: rgba(120,124,128,0.28); font-weight: 700; line-height: 1; }
.qcard__text { font-size: 14.5px; line-height: 1.55; margin: 0; color: var(--ink); flex: 1; }
.qcard__source { font-size: 12.5px; color: var(--slate); font-weight: 700; }
.quotes-carousel__nav { display: flex; align-items: center; justify-content: center; gap: 16px; }
.quotes-carousel__arrow {
  width: 44px; height: 44px; border: none; border-radius: 3px; padding: 0;
  background: none; color: var(--slate); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.quotes-carousel__arrow:hover { color: var(--slate-deep); }
.quotes-carousel__arrow .arr { width: 24px; height: 24px; margin: 0; vertical-align: 0; }
.quotes-carousel__dots { display: flex; gap: 8px; }
.quotes-carousel__dots button { width: 22px; height: 4px; border-radius: 2px; border: none; background: rgba(120,124,128,0.3); cursor: pointer; }
.quotes-carousel__dots button.is-active { background: var(--slate); }
@media (max-width: 900px) {
  .quotes-carousel__grid { grid-template-columns: 1fr; }
}

/* ===== Grafik + 3D: ausführlicher Abschnitt, flaches Slate-Blau ===== */
.split-c { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.split-c__text-col { display: flex; flex-direction: column; justify-content: center; }
.split-c__text-col h2 { font-size: 34px; }
.split-c__text-col .badge-kombi { align-self: flex-start; margin-top: 24px; }
.split-c__text-col p { font-size: 16.5px; max-width: 480px; }
.split-c__video {
  position: relative; border-radius: 4px; overflow: hidden; min-height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.split-c__video .photo-ph__label { display: inline-flex; align-items: center; gap: 8px; }
.split-c__video .play-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: inline-block; }
.section--duo-dark { background: var(--slate); color: #fff; }
.section--duo-dark h2 { color: #fff; }
.section--duo-dark .check-list li { color: rgba(255,255,255,0.92); }
.section--duo-dark .check-list li::before { color: #fff; }
.section--duo-dark .badge-kombi { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35); }
@media (max-width: 900px) {
  .split-c { grid-template-columns: 1fr; }
}

/* ===== Case-Study-Karten mit Bildslider (Kachelrand-Slider) ===== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.case-card { background: #fff; border: 1px solid rgba(30,42,52,0.1); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.case-card__slider { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.case-card__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.case-card__slide.is-active { opacity: 1; }
.case-card__dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.case-card__dots button {
  width: 7px; height: 7px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.55);
}
.case-card__dots button.is-active { background: #fff; }
.case-card__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border: none; border-radius: 3px; cursor: pointer; padding: 0;
  background: none; color: #fff; filter: drop-shadow(0 1px 4px rgba(20,30,40,0.55));
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s ease;
}
.case-card__arrow .arr { width: 26px; height: 26px; margin: 0; vertical-align: 0; }
.case-card__arrow--prev { left: 10px; }
.case-card__arrow--next { right: 10px; }
.case-card__slider:hover .case-card__arrow, .case-card__arrow:focus-visible { opacity: 1; }
/* Kantenverlauf hinter den Pfeilen: weiße Pfeile bleiben auch auf hellen Fotos lesbar */
.case-card__slider::before, .case-card__slider::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 26%; pointer-events: none; z-index: 1;
  opacity: 0; transition: opacity .2s ease;
}
.case-card__slider::before { left: 0; background: linear-gradient(to right, rgba(20,30,40,0.38), transparent); }
.case-card__slider::after { right: 0; background: linear-gradient(to left, rgba(20,30,40,0.38), transparent); }
.case-card__slider:hover::before, .case-card__slider:hover::after { opacity: 1; }
@media (hover: none) {
  .case-card__slider::before, .case-card__slider::after { opacity: 1; }
}
@media (hover: none) { .case-card__arrow { opacity: 1; } }
.case-card__dots button { width: 8px; height: 8px; }
.case-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.case-card__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.case-card__tags .tag { font-size: 11.5px; padding: 4px 11px; }
.case-card h3 { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.case-card p { font-size: 14px; color: var(--slate); line-height: 1.55; margin: 0 0 18px; flex: 1; }
@media (max-width: 900px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* ===== Bildergalerie: full-bleed, dezenter Hover ===== */
.gallery-full { max-width: var(--max); margin: 28px auto 0; padding: 0 48px; }
.gallery-full__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gallery-full__item { position: relative; aspect-ratio: 16 / 10; overflow: hidden; cursor: pointer; }
.gallery-full__media { position: absolute; inset: 0; transition: transform .45s ease; }
.gallery-full__item:hover .gallery-full__media { transform: scale(1.05); }
.gallery-full__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(30,42,52,0) 0%, rgba(30,42,52,0.6) 100%);
  color: #fff;
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.gallery-full__item:hover .gallery-full__caption { opacity: 1; transform: translateY(0); }
.gallery-full__company { font-size: 14px; font-weight: 700; }
.gallery-full__title { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.8; margin-top: 2px; font-family: 'lft-etica', system-ui, sans-serif; }
.gallery__foot { margin-top: 28px; }
@media (max-width: 900px) {
  .gallery-full__grid { grid-template-columns: 1fr; }
  .gallery-full__item { aspect-ratio: 4/3; }
}
@media (max-width: 720px) {
  .gallery-full { padding: 0 24px; }
}

/* ===== FAQ: zurückgenommen, optisch abgesetzt ===== */
.faq-section { background: var(--paper-cool); text-align: center; }
.faq-section .kicker { margin: 0 0 14px; }
.faq-section h2 { font-size: 26px; margin: 0 0 20px; }
.faq-list { display: flex; flex-direction: column; max-width: 780px; margin: 0 auto; text-align: left; }
.faq-item { padding: 16px 0; border-bottom: 1px solid rgba(30,42,52,0.1); }
.faq-item:first-child { padding-top: 0; }
.faq-item h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.faq-item p { font-size: 13.5px; color: var(--slate); margin: 0; line-height: 1.55; }

/* ===== Kontaktblock (auf jeder Seite unten) ===== */
.contact-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-block__row { padding: 16px 0; border-top: 1px solid rgba(30,42,52,0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact-block__row:last-child { border-bottom: 1px solid rgba(30,42,52,0.12); }
.contact-block__row-label { font-family: 'lft-etica', system-ui, sans-serif; font-weight: 400; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.contact-block__row-value { font-size: 16px; color: var(--ink); text-decoration: none; }
.contact-block__form { background: #fff; border: 1px solid rgba(30,42,52,0.1); border-radius: 4px; padding: 36px; }
.contact-block__form h3 { font-size: 26px; font-weight: 700; margin: 0 0 22px; }
.contact-block__field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.contact-block__field span { font-size: 13px; font-weight: 700; color: var(--slate); }
.contact-block__field input, .contact-block__field textarea {
  font-family: 'lft-etica', system-ui, sans-serif; font-size: 14px; color: var(--ink);
  border: 1px solid rgba(30,42,52,0.15); border-radius: 3px; background: var(--paper);
  padding: 12px 14px; resize: none;
}
.contact-block__field textarea { height: 110px; }
@media (max-width: 900px) {
  .contact-block { grid-template-columns: 1fr; }
}

/* ===== Footer (Variante A, gemeinsamer Baustein: assets/footer.js) ===== */
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px 0 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-top__statement { font-family: var(--font-headline); font-size: 34px; line-height: 1.2; font-weight: 400; color: #fff; margin: 0; }
.footer-top__statement strong { font-weight: 700; }
.footer-top .btn { flex: none; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; }
.av-footer__logo { margin-bottom: 20px; }
.footer-grid__about-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #cdd8e0; }
.footer-grid__cols { display: grid; grid-template-columns: auto auto; column-gap: 72px; justify-content: start; align-content: start; }
.footer-grid__label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #BFCCD6; font-weight: 700; margin-bottom: 14px; }
.footer-grid__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #fff; }
.footer-grid__links a, .footer-bottom a { color: #fff; text-decoration: none; }
.footer-grid__links a:hover, .footer-bottom a:hover { color: #cdd8e0; }
.footer-bottom { padding: 20px 0 8px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--on-slate-text); }
.footer-legacy { padding: 0 0 28px; text-align: right; font-size: 12.5px; color: var(--on-slate-text); }
@media (max-width: 900px) {
  .footer-top { flex-direction: column; align-items: flex-start; gap: 24px; padding: 40px 0 32px; }
  .footer-top__statement { font-size: 28px; }
  .footer-top__br { display: none; }
  .footer-grid { grid-template-columns: 1fr; padding: 32px 0; }
  .footer-grid__cols { column-gap: 48px; }
  .footer-legacy { text-align: left; }
}

/* ===== Projekt-Detailseite (Case Study) ===== */

/* Full-Width-Header, wie Startseiten-Hero, nur niedriger */
.proj-header { position: relative; height: 72vh; min-height: 520px; overflow: hidden; }
.proj-header .av-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.proj-header__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,42,52,0.25) 0%, rgba(30,42,52,0.1) 40%, rgba(30,42,52,0.68) 100%);
  z-index: 1;
}
.proj-header__content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 8% 36px; color: #fff;
}
.proj-header__kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; opacity: 0.9; margin-bottom: 10px; }
.proj-header h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
.proj-header__sub { font-size: 16px; margin: 0; opacity: 0.94; }
@media (max-width: 900px) {
  .proj-header { height: auto; min-height: 0; padding: 32px 8% 28px; display: block; }
  .proj-header .av-nav { position: static; padding: 0 0 24px; }
  .proj-header__scrim { display: none; }
  .proj-header__content { position: static; color: var(--ink); padding: 0; max-width: 100%; }
  .proj-header__kicker { color: var(--slate); }
}

.proj-tags { display: flex; gap: 8px; flex-wrap: wrap; padding: 32px 0 0; }

.proj-narrative { display: flex; flex-direction: column; gap: 28px; max-width: 720px; }
.proj-narrative__block h3 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); font-weight: 700; margin: 0 0 10px; }
.proj-narrative__block p { font-size: 16px; line-height: 1.65; color: var(--ink); margin: 0; }

.proj-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* Bildergalerie der Projektseiten: zwei Spalten (ohne Skript) bzw. dynamische Zeilen (gallery.js):
   zwei Bilder je Zeile, mal links, mal rechts größer; sehr breite Bilder stehen allein */
.proj-gallery { columns: 2 320px; column-gap: 20px; }
.proj-gallery__item { break-inside: avoid; margin-bottom: 20px; border-radius: 4px; width: 100%; }
.proj-gallery__item .photo-ph__label { font-size: 10.5px; }
.proj-gallery.is-dyn { columns: auto; display: block; }
.proj-gallery__row { display: flex; gap: 20px; margin-bottom: 20px; }
.proj-gallery__row .proj-gallery__item { margin-bottom: 0; flex: none; }
@media (max-width: 640px) {
  .proj-gallery { columns: 1; }
}

/* Projekte-Übersicht: gemischtes Masonry aus Case-Study-Karten (klickbar) und Einzelbildern (nicht klickbar) */
/* Grid-basiertes Masonry statt Spalten-Fluss: so starten alle Kacheln der ersten Reihe exakt auf gleicher Höhe; */
/* die Zeilenspannen werden per JS aus der tatsächlichen Kachelhöhe berechnet (siehe Skript am Seitenende). */
.mix-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1px; column-gap: 20px; margin-top: 8px; }
.mix-grid__card, .mix-grid__item { margin-bottom: 20px; align-self: start; display: block; width: 100%; }

.mix-grid__card { position: relative; background: #fff; border: 1px solid rgba(30,42,52,0.1); border-radius: 4px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.mix-grid__card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(30,42,52,0.12); }
.mix-grid__card .photo-ph { position: relative; }
.mix-grid__card-kombi {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--slate); color: #fff; padding: 5px 10px; border-radius: 3px;
  font-size: 10.5px; font-weight: 700;
}
.mix-grid__card-kombi img { width: 12px; height: 12px; border-radius: 2px; }
.mix-grid__card-tags { position: absolute; left: 12px; bottom: 12px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 24px); }
.mix-grid__card-tags .tag { font-size: 10.5px; padding: 4px 11px; background: rgba(246,244,240,0.92); }
.mix-grid__card-body { padding: 16px 18px 20px; }
.mix-grid__card-title { font-size: 16px; font-weight: 700; margin: 0; }

/* Einzelbilder: keine dauerhafte Beschriftung — Bildtitel erscheint erst beim Hovern, unten im Bild */
.mix-grid__item { position: relative; overflow: hidden; border-radius: 4px; cursor: default; }
.mix-grid__item-bg { position: absolute; inset: 0; transition: transform .45s ease; }
.mix-grid__item:hover .mix-grid__item-bg { transform: scale(1.05); }
.mix-grid__item-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, rgba(30,42,52,0) 0%, rgba(30,42,52,0.6) 100%);
  color: #fff;
  font-family: 'lft-etica', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.mix-grid__item:hover .mix-grid__item-caption { opacity: 1; transform: translateY(0); }
.mix-grid__item .mix-grid__card-tags { transition: opacity .2s ease; }
.mix-grid__item:hover .mix-grid__card-tags { opacity: 0; }

@media (max-width: 900px) {
  .mix-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .mix-grid { grid-template-columns: 1fr; }
}

.proj-quote { max-width: 720px; margin: 0 auto; text-align: center; }
.proj-quote__mark { display: block; font-size: 48px; line-height: 1; color: var(--slate); margin: 0 0 8px; font-family: Georgia, serif; }
.proj-quote__text { font-size: 16px; font-weight: 400; line-height: 1.6; color: var(--ink); margin: 0 0 20px; }
.proj-quote__name { display: block; font-weight: 700; font-size: 15px; color: var(--slate-deep); }
.proj-quote__role { display: block; font-size: 14px; color: var(--slate-soft); margin-top: 2px; }

.proj-pagenav { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(30,42,52,0.12); }
.proj-pagenav a { color: var(--slate); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.proj-pagenav a:hover { color: var(--slate-deep); }
.proj-pagenav__all { font-size: 13px; color: var(--slate); }

/* Leistungen-Tags unter dem Fließtext */
.proj-narrative .proj-tags-in { display: flex; flex-wrap: wrap; gap: 8px; }

/* Markenelemente (Logo, Farben, Schrift) */
.mk__grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 28px; margin-top: 8px; }
.mk__block h3 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin: 0 0 14px; font-weight: 700; }
.mk__logo { display: grid; gap: 12px; }
.mk__logo div { border-radius: 4px; display: flex; align-items: center; justify-content: center; padding: 28px 20px; min-height: 110px; }
.mk__logo .l { background: #fff; border: 1px solid rgba(30,42,52,0.1); }
.mk__logo .d { background: var(--ink); }
.mk__logo img { width: min(100%, 230px); height: auto; }
.mk__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mk__sw { border-radius: 4px; overflow: hidden; background: #fff; border: 1px solid rgba(30,42,52,0.1); }
.mk__sw i { display: block; height: 120px; }
.mk__sw b { display: block; padding: 12px 12px 2px; font-size: 14px; color: var(--slate-deep); }
.mk__sw span { display: block; padding: 0 12px; font-size: 12px; line-height: 1.55; color: var(--slate-soft); }
.mk__sw span:last-child { padding-bottom: 12px; }
.mk__type { background: #fff; border: 1px solid rgba(30,42,52,0.1); border-radius: 4px; padding: 24px; }
.mk__type .big { font-size: 34px; line-height: 1.1; color: var(--ink); margin: 0 0 14px; font-weight: 400; }
.mk__type .nm { font-weight: 700; color: var(--slate-deep); font-size: 14px; }
.mk__type .ds { font-size: 13px; color: var(--slate-soft); margin-top: 2px; }
.mk__grid--2 { grid-template-columns: 1fr 1.4fr; }
@media (max-width: 900px) { .mk__grid, .mk__grid--2 { grid-template-columns: 1fr; } }

/* Filter blendet Kacheln aus */
.mix-grid [hidden] { display: none !important; }

/* Projekt-Filter (Projektübersicht und "Weitere Projekte") */
.proj-filter { display: flex; flex-wrap: wrap; gap: 28px; margin: 8px 0 28px; border-bottom: 1px solid rgba(30,42,52,0.12); }
.proj-filter__btn {
  font-family: var(--font-headline); font-size: 15px; font-weight: 600; color: var(--slate);
  background: none; border: none; padding: 0 0 12px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.proj-filter__btn:hover { color: var(--slate-deep); }
.proj-filter__btn.is-active { color: var(--slate-deep); border-bottom-color: var(--slate-deep); }

/* ===== Hinweis-Box (ohne Balken, mit Info-Icon) ===== */
.hint-box {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid rgba(30,42,52,0.1); border-radius: 4px;
  padding: 16px 40px 16px 22px; font-size: 14px; line-height: 1.6; color: var(--ink);
}
.hint-box--paper { background: var(--paper); }
.hint-box::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; background-color: var(--slate);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v5.5M12 7.6v.01'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v5.5M12 7.6v.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hint-box__text { margin: 0; }
.hint-box strong { color: var(--slate-deep); }

/* ===== Rechtstexte (Impressum, Datenschutz) ===== */
.legal { max-width: 800px; margin-left: 0; font-size: 15px; line-height: 1.65; color: var(--ink); }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 20px; margin: 28px 0 8px; }
.legal h1, .legal h2, .legal h3, .legal p, .legal li { overflow-wrap: anywhere; hyphens: auto; }
.legal h4, .legal h5 { font-size: 16px; margin: 22px 0 6px; font-family: inherit; font-weight: 700; color: var(--slate-deep); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal a { color: var(--slate); overflow-wrap: anywhere; }
.legal a:hover { color: var(--slate-deep); }

/* ===== Formulare und Pop-up "Kennenlerncall buchen" ===== */
.contact-block__field select {
  font-family: 'lft-etica', system-ui, sans-serif; font-size: 14px; color: var(--ink);
  border: 1px solid rgba(30,42,52,0.15); border-radius: 3px; background: var(--paper); padding: 12px 14px;
}
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 13px; line-height: 1.5; color: var(--slate-soft); }
.form-consent input { flex: none; margin-top: 3px; accent-color: var(--slate); }
.form-consent a { color: var(--slate); }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--slate-soft); }
.form-status:empty { display: none; }
.form-status--ok { color: var(--slate-deep); font-weight: 700; }
.form-status--error { color: #9B2C2C; }
.btn:disabled { opacity: 0.6; cursor: default; }

.call-dialog { border: 0; border-radius: 4px; padding: 36px; width: calc(100% - 32px); max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; color: var(--ink); background: #fff; box-shadow: 0 20px 60px rgba(20,30,40,0.35); }
.call-dialog::backdrop { background: rgba(30,42,52,0.55); }
.call-dialog h2 { font-size: 30px; margin: 0 0 10px; padding-right: 40px; }
.call-dialog__lede { font-size: 14px; line-height: 1.6; color: var(--slate-soft); margin: 0 0 22px; }
.call-dialog__close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; padding: 0; }
.call-dialog__close i { position: absolute; left: 7px; right: 7px; top: 17px; height: 2px; background: var(--slate-deep); transform: rotate(45deg); }
.call-dialog__close i + i { transform: rotate(-45deg); }
.call-slot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-bottom: 14px; }
.call-slot__label { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: var(--slate); }
.call-slot input, .call-slot select {
  font-family: 'lft-etica', system-ui, sans-serif; font-size: 14px; color: var(--ink);
  border: 1px solid rgba(30,42,52,0.15); border-radius: 3px; background: var(--paper); padding: 12px 14px; min-width: 0;
}
@media (max-width: 560px) { .call-dialog { padding: 28px 20px; } .call-slot { grid-template-columns: 1fr; } }

/* ===== Obere Leiste mit Menü, sobald die Seite gescrollt ist (assets/nav.js) ===== */
.av-sticky {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: 66px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 8%;
  background: var(--slate); box-shadow: 0 2px 14px rgba(20,30,40,0.18);
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform .3s ease, opacity .3s ease, visibility 0s .3s;
}
.av-sticky.is-visible { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.av-sticky__logo img { height: 55px; display: block; }
.av-sticky .av-burger { color: #fff; }
@media (max-width: 720px) { .av-sticky { padding: 0 24px; } }
@media (prefers-reduced-motion: reduce) { .av-sticky { transition: none; } }

/* Zurück-Button auf den Projektseiten (unter dem Bildkopf) */
.proj-back-row { padding-top: 28px; padding-bottom: 0; }
.proj-back-row + .section { padding-top: 56px; }
.proj-back {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 15px; border-radius: 999px;
  background: none; border: 1.5px solid var(--slate);
  color: var(--slate); font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.proj-back:hover, .proj-back:focus-visible { background: var(--slate); color: #fff; }
.proj-back__arr { font-size: 17px; line-height: 1; }
.av-sticky__back { margin-left: auto; margin-right: 18px; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.av-sticky__back:hover { text-decoration: underline; }
@media (max-width: 480px) { .av-sticky__back span.txt { display: none; } }


/* ===== Cookie-Hinweis (Einwilligung Matomo) ===== */
.av-consent {
  position: fixed; left: 24px; bottom: 24px; z-index: 950;
  width: min(560px, calc(100% - 48px)); box-sizing: border-box;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--slate); border-radius: var(--radius-panel, 6px);
  padding: 24px 26px;
}
.av-consent h2 { font-family: var(--font-headline); font-size: 22px; font-weight: 700; line-height: 1.15; margin: 0 0 8px; }
.av-consent p { font-size: 14px; line-height: 1.55; color: var(--slate); margin: 0; }
.av-consent p a { color: var(--slate-deep); text-decoration: underline; }
.av-consent__actions { display: flex; gap: 12px; margin-top: 18px; }
.av-consent__actions .btn { flex: 1 1 0; padding: 12px 16px; }
@media (max-width: 720px) {
  .av-consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px; }
  .av-consent h2 { font-size: 20px; }
}
