/*
Theme Name:   Konstruktion Child - Anskara
Theme URI:    https://www.anskara.de
Description:  Child-Theme fuer anskara.de. Traegt Header und Footer als handgeschriebenes
              Markup, unabhaengig von Elementor Pro Theme Builder.
Author:       Anskara
Template:     konstruktion
Version:      1.0.0
Text Domain:  konstruktion-child
*/

:root {
  --ak-ink:      #0A0909;
  --ak-ink-soft: #1C1A1A;
  --ak-accent:   #FA6400;
  --ak-accent-d: #d95400;
  --ak-muted:    #4E4E4E;
  --ak-light:    #F9F9F9;
  --ak-line:     #E7E7E7;
  --ak-white:    #FFFFFF;
  --ak-font:     "Titillium Web", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ak-head-h:   84px;
}

/* ============================================================
   HEADER
   ============================================================ */

.ak-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--ak-white);
  border-bottom: 1px solid var(--ak-line);
  font-family: var(--ak-font);
  transition: box-shadow .2s ease;
}
.ak-header.is-stuck { box-shadow: 0 2px 18px rgba(10,9,9,.10); }

.ak-header__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--ak-head-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

/* --- Logo --- */
.ak-header__logo { flex: 0 0 auto; display: flex; align-items: center; }
.ak-header__logo a { display: block; line-height: 0; }
.ak-header__logo img {
  height: 44px;
  width: auto;
  max-width: 240px;
  display: block;
}
.ak-header__logo .ak-textlogo {
  font-weight: 700; font-size: 26px; color: var(--ak-ink);
  letter-spacing: -.5px; text-decoration: none; line-height: 1.1;
}

/* --- Navigation --- */
.ak-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.ak-nav > ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.ak-nav li { position: relative; margin: 0; }
.ak-nav a {
  display: block;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ak-ink);
  text-decoration: none;
  line-height: 1.3;
  position: relative;
  transition: color .15s ease;
}
.ak-nav a:after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px;
  height: 2px; background: var(--ak-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .18s ease;
}
.ak-nav a:hover { color: var(--ak-accent); }
.ak-nav a:hover:after,
.ak-nav .current-menu-item > a:after,
.ak-nav .current_page_item > a:after,
.ak-nav .current-menu-ancestor > a:after { transform: scaleX(1); }
.ak-nav .current-menu-item > a,
.ak-nav .current_page_item > a { color: var(--ak-accent); }

/* Pfeil bei Untermenues */
.ak-nav .menu-item-has-children > a { padding-right: 26px; }
.ak-nav .menu-item-has-children > a:before {
  content: ""; position: absolute; right: 12px; top: 50%;
  width: 6px; height: 6px; margin-top: -4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .55;
}

/* --- Dropdown --- */
.ak-nav .sub-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 280px;
  margin: 0; padding: 10px 0;
  list-style: none;
  background: var(--ak-white);
  border: 1px solid var(--ak-line);
  border-top: 3px solid var(--ak-accent);
  box-shadow: 0 14px 34px rgba(10,9,9,.13);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.ak-nav li:hover > .sub-menu,
.ak-nav li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.ak-nav .sub-menu a {
  padding: 11px 20px;
  font-weight: 400;
  font-size: 14.5px;
  white-space: nowrap;
}
.ak-nav .sub-menu a:after { display: none; }
.ak-nav .sub-menu a:hover { background: var(--ak-light); color: var(--ak-accent); }

/* --- Aktionen rechts --- */
.ak-header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }

.ak-btn {
  display: inline-block;
  padding: 13px 26px;
  background: var(--ak-accent);
  color: var(--ak-white) !important;
  font-family: var(--ak-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  transition: background .15s ease, transform .15s ease;
  white-space: nowrap;
}
.ak-btn:hover { background: var(--ak-accent-d); transform: translateY(-1px); }
.ak-btn--ghost {
  background: transparent;
  color: var(--ak-white) !important;
  border: 2px solid rgba(255,255,255,.35);
  padding: 11px 24px;
}
.ak-btn--ghost:hover { background: var(--ak-accent); border-color: var(--ak-accent); }

/* --- Burger --- */
.ak-burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0; margin: 0;
  background: transparent; border: 0; cursor: pointer;
  position: relative;
}
.ak-burger span,
.ak-burger:before, .ak-burger:after {
  content: ""; position: absolute; left: 10px; right: 10px;
  height: 2px; background: var(--ak-ink);
  transition: transform .2s ease, opacity .2s ease;
}
.ak-burger:before { top: 14px; }
.ak-burger span  { top: 21px; }
.ak-burger:after { top: 28px; }
.ak-burger[aria-expanded="true"]:before { transform: translateY(7px) rotate(45deg); }
.ak-burger[aria-expanded="true"] span   { opacity: 0; }
.ak-burger[aria-expanded="true"]:after  { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobil --- */
@media (max-width: 1024px) {
  :root { --ak-head-h: 70px; }
  .ak-burger { display: block; order: 3; }
  .ak-header__inner { gap: 12px; }
  .ak-header__logo { flex: 1 1 auto; }
  .ak-header__logo img { height: 36px; }
  .ak-header__actions { order: 2; }
  .ak-header__actions .ak-btn { padding: 10px 18px; font-size: 14px; }

  .ak-nav {
    order: 4;
    flex: 1 0 100%;
    display: none;
    border-top: 1px solid var(--ak-line);
    max-height: calc(100vh - var(--ak-head-h));
    overflow-y: auto;
  }
  .ak-nav.is-open { display: block; }
  .ak-nav > ul { display: block; padding: 8px 0 18px; }
  .ak-nav a { padding: 13px 4px; font-size: 16px; }
  .ak-nav a:after { display: none; }
  .ak-nav .menu-item-has-children > a:before { display: none; }
  .ak-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; border: 0; border-left: 2px solid var(--ak-accent);
    box-shadow: none; padding: 0 0 6px 16px; margin: 0 0 6px;
  }
  .ak-nav .sub-menu a { padding: 10px 4px; white-space: normal; }
}

@media (max-width: 560px) {
  .ak-header__actions .ak-btn { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.ak-footer {
  background: var(--ak-ink-soft);
  color: rgba(255,255,255,.72);
  font-family: var(--ak-font);
  font-size: 15px;
  line-height: 1.65;
}
.ak-footer a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .15s ease; }
.ak-footer a:hover { color: var(--ak-accent); }

/* --- CTA-Band --- */
.ak-footer__cta {
  background: var(--ak-ink);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.ak-footer__cta-inner {
  max-width: 1300px; margin: 0 auto; padding: 46px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.ak-footer__cta-text { max-width: 620px; }
.ak-footer__cta-text h2 {
  margin: 0 0 8px;
  font-family: var(--ak-font);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--ak-white);
  line-height: 1.2;
  letter-spacing: -.3px;
}
.ak-footer__cta-text p { margin: 0; color: rgba(255,255,255,.66); font-size: 16px; }

/* --- Spalten --- */
.ak-footer__main {
  max-width: 1300px; margin: 0 auto; padding: 56px 24px 40px;
  display: grid; gap: 40px;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}
.ak-footer__col h3 {
  margin: 0 0 18px;
  font-family: var(--ak-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ak-white);
  position: relative;
  padding-bottom: 12px;
}
.ak-footer__col h3:after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 32px; height: 3px; background: var(--ak-accent);
}
.ak-footer__col ul { list-style: none; margin: 0; padding: 0; }
.ak-footer__col li { margin: 0 0 9px; }

.ak-footer__logo img { height: 40px; width: auto; margin-bottom: 18px; display: block; }
.ak-footer__about { margin: 0 0 20px; max-width: 360px; color: rgba(255,255,255,.62); }

.ak-footer__nap { font-style: normal; }
.ak-footer__nap strong { color: var(--ak-white); font-weight: 600; display: block; margin-bottom: 6px; }
.ak-footer__nap .ak-reg { display: block; margin-top: 12px; font-size: 13.5px; color: rgba(255,255,255,.48); }

/* --- Schlussleiste --- */
.ak-footer__bottom { border-top: 1px solid rgba(255,255,255,.09); }
.ak-footer__bottom-inner {
  max-width: 1300px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: rgba(255,255,255,.5);
}
.ak-footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.ak-footer__top {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; letter-spacing: .4px;
}
.ak-footer__top:before {
  content: ""; width: 7px; height: 7px;
  border-top: 2px solid currentColor; border-left: 2px solid currentColor;
  transform: rotate(45deg); position: relative; top: 2px;
}

@media (max-width: 960px) {
  .ak-footer__main { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 600px) {
  .ak-footer__main { grid-template-columns: 1fr; padding: 40px 24px 30px; }
  .ak-footer__cta-inner { padding: 36px 24px; }
  .ak-footer__bottom-inner { justify-content: flex-start; }
}

/* Sichtbarer Fokus fuer Tastaturbedienung */
.ak-header a:focus-visible,
.ak-footer a:focus-visible,
.ak-burger:focus-visible {
  outline: 2px solid var(--ak-accent);
  outline-offset: 2px;
}

/* Skip-Link */
.ak-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ak-ink); color: #fff; padding: 12px 20px; z-index: 10000;
}
.ak-skip:focus { left: 0; }
