/* ============================================================
   Anskara - Seiten-Layout fuer die handgebauten Inhaltsseiten
   Ergaenzt style.css. Prefix: .ak-
   ============================================================ */

.ak-page { font-family: var(--ak-font); color: var(--ak-ink); }

/* Volle Breite erzwingen, auch innerhalb des Theme-Containers */
.ak-page .ak-sec--bleed {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}

.ak-page .ak-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.ak-page .ak-sec { padding-block: clamp(56px, 8vw, 104px); }
.ak-page .ak-sec--tight { padding-block: clamp(40px, 5vw, 64px); }
.ak-page .ak-sec--light { background: var(--ak-light); }
.ak-page .ak-sec--dark  { background: var(--ak-ink); color: #fff; }

/* --- Augenbraue (kleine Ueberschrift mit Balken) --- */
.ak-eyebrow {
  display: block;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ak-accent);
}
.ak-eyebrow:before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 28px; height: 3px; background: var(--ak-accent);
  margin-right: 12px; position: relative; top: -2px;
}

/* --- Ueberschriften --- */
.ak-page h2 {
  font-family: var(--ak-font);
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.6px;
  margin: 0 0 20px;
  color: inherit;
}
.ak-page h3 {
  font-family: var(--ak-font);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
  color: inherit;
}
.ak-page p { margin: 0 0 18px; font-size: 17px; line-height: 1.72; color: var(--ak-muted); }
.ak-page .ak-sec--dark p { color: rgba(255,255,255,.72); }
.ak-page .ak-lead { font-size: 19px; line-height: 1.66; }

/* ============================================================
   HERO
   ============================================================ */
.ak-hero {
  position: relative;
  min-height: clamp(460px, 74vh, 700px);
  display: flex; align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.ak-hero:before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,9,9,.90) 0%, rgba(10,9,9,.72) 45%, rgba(10,9,9,.40) 100%);
}
.ak-hero .ak-wrap { position: relative; width: 100%; }
.ak-hero h1 {
  font-family: var(--ak-font);
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -1.4px;
  color: #fff;
  margin: 0 0 22px;
  max-width: 16ch;
}
.ak-hero h1 .ak-hl { color: var(--ak-accent); display: block; }
.ak-hero p {
  color: rgba(255,255,255,.82);
  font-size: clamp(17px, 2vw, 20px);
  max-width: 54ch;
  margin-bottom: 32px;
}
.ak-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   AUSSAGE-BAND
   ============================================================ */
.ak-claim { background: var(--ak-ink); color: #fff; }
.ak-claim .ak-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; flex-wrap: wrap;
}
.ak-claim h2 { max-width: 22ch; margin: 0; }
.ak-claim h2:after {
  content: ""; display: block; width: 60px; height: 4px;
  background: var(--ak-accent); margin-top: 22px;
}

/* ============================================================
   DREISPALTER
   ============================================================ */
.ak-tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px; }
.ak-tri > div { border-top: 3px solid var(--ak-line); padding-top: 22px; }
.ak-tri > div:first-child { border-top-color: var(--ak-accent); }

/* ============================================================
   KARTEN (Sektoren)
   ============================================================ */
.ak-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ak-card {
  background: #fff;
  border: 1px solid var(--ak-line);
  border-top: 4px solid var(--ak-accent);
  padding: 34px 30px 30px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ak-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(10,9,9,.09); }
.ak-card p { font-size: 16px; margin-bottom: 0; }

/* ============================================================
   BILD + TEXT
   ============================================================ */
.ak-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ak-split--flip .ak-split__media { order: 2; }
.ak-split__media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ak-split__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  aspect-ratio: 3 / 4; max-width: 100%;
}
.ak-split__media img:first-child { margin-top: 32px; }
.ak-split__body p:last-of-type { margin-bottom: 26px; }

/* ============================================================
   LEISTUNGSLISTE 01-04
   ============================================================ */
.ak-services { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.ak-svc-list { border-top: 1px solid var(--ak-line); }
.ak-svc {
  display: flex; align-items: baseline; gap: 22px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--ak-line);
  text-decoration: none;
  transition: padding-left .18s ease;
}
.ak-svc:hover { padding-left: 14px; }
.ak-svc__num {
  font-size: 15px; font-weight: 700; color: var(--ak-accent);
  letter-spacing: 1px; flex: 0 0 auto;
}
.ak-svc__label {
  font-size: clamp(18px, 2vw, 22px); font-weight: 600; color: var(--ak-ink);
  line-height: 1.3; flex: 1 1 auto;
}
.ak-svc:hover .ak-svc__label { color: var(--ak-accent); }
.ak-svc__arrow { flex: 0 0 auto; color: var(--ak-accent); font-size: 20px; line-height: 1; }

/* ============================================================
   KENNZAHLEN
   ============================================================ */
.ak-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ak-stat { border-left: 3px solid var(--ak-accent); padding-left: 22px; }
.ak-stat__num {
  display: block;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 700; line-height: 1;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 10px;
}
.ak-stat__label { font-size: 15.5px; color: rgba(255,255,255,.66); line-height: 1.5; }

.ak-knowledge { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }

/* ============================================================
   ABSCHLUSS-BAND
   ============================================================ */
.ak-closing {
  position: relative;
  background-size: cover; background-position: center;
  color: #fff; text-align: center;
}
.ak-closing:before { content: ""; position: absolute; inset: 0; background: rgba(10,9,9,.80); }
.ak-closing .ak-wrap { position: relative; }
.ak-closing h2 { max-width: 20ch; margin-inline: auto; }
.ak-closing p { color: rgba(255,255,255,.75); max-width: 58ch; margin-inline: auto; }
.ak-closing .ak-btn { margin-top: 10px; }

/* ============================================================
   SCHLUSS-AUFRUF (hell)
   ============================================================ */
.ak-outro .ak-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.ak-outro h2 { margin: 0; max-width: 20ch; }

/* ============================================================
   RESPONSIV
   ============================================================ */
@media (max-width: 980px) {
  .ak-tri     { grid-template-columns: 1fr; gap: 32px; }
  .ak-cards   { grid-template-columns: 1fr; }
  .ak-split   { grid-template-columns: 1fr; gap: 34px; }
  .ak-split--flip .ak-split__media { order: 0; }
  .ak-services { grid-template-columns: 1fr; gap: 30px; }
  .ak-knowledge { grid-template-columns: 1fr; gap: 36px; }
  .ak-stats   { grid-template-columns: 1fr; gap: 22px; }
  .ak-claim .ak-wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .ak-split__media img:first-child { margin-top: 0; }
  .ak-hero { min-height: 420px; }
  .ak-hero h1 { max-width: none; }
}

/* Die Vamtam-Titelleiste stoert auf den selbst gebauten Seiten */
body.home .meta-header,
body.ak-custom-page .meta-header { display: none; }
