/* ==========================================================================
   ALBAKSAN — Header ek stilleri  (ASD Creative · 26.11.2026)
   main.css'e dokunulmadı; bu dosya yalnız ekleme yapar.
   1) Hamburger butonu (eski <a> yerine erişilebilir <button>)
   2) Uzun menü metinleri (DE) için masaüstü sıkıştırma kademeleri
   3) Taşma emniyeti: menü yine sığmazsa çekmece moduna geç (.alb-nav-collapsed)
   4) Mobil çekmece menü (drawer)
   Renkler mevcut kimlikten: turuncu #c06222 · mavi #1f7696 · metin #262626 · Open Sans
   ========================================================================== */

/* 1) Hamburger artık <button>: tarayıcı varsayılanlarını sıfırla, görünüm main.css'teki gibi kalsın */
header button.swith-menu {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
header button.swith-menu:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* 2) Menü başlıkları kendi içinde iki satıra kırılmasın */
header .menu > li > a { white-space: nowrap; }

/* Almanca menü 15px'te ~1173px; logonun yanına ancak 1520px ve üstünde sığıyor.
   Altında harf boyu / boşluklar kademeli olarak daraltılır (tasarım aynı kalır). */
@media only screen and (min-width: 1366px) and (max-width: 1519px) {
  html[lang="de"] header .menu > li { padding: 0 2px; }
  html[lang="de"] header .menu > li:last-child { padding-right: 0; }
  html[lang="de"] header .menu > li > a { font-size: 14px; padding: 0 5px; }
  html[lang="de"] header:not(.header-fixed) .logo { width: 280px; }
}
@media only screen and (min-width: 1271px) and (max-width: 1365px) {
  html[lang="de"] header .menu > li { padding: 0 2px; }
  html[lang="de"] header .menu > li:last-child { padding-right: 0; }
  html[lang="de"] header .menu > li > a { font-size: 13px; padding: 0 4px; letter-spacing: -0.1px; }
  /* sabit (kaydırılmış) header'daki logo ölçüsü */
  html[lang="de"] header:not(.header-fixed) .logo { width: 250px; }
}

/* 3) Emniyet: albaksan-nav.js menünün logoyla aynı satıra sığmadığını ölçerse
   (ör. farklı font işleme, tarayıcı yakınlaştırması) masaüstünde de çekmeceye geçer. */
@media only screen and (min-width: 1271px) {
  html.alb-nav-collapsed header .menu { display: none !important; }
  html.alb-nav-collapsed header .swith-menu { display: block; }
}

/* 4) Mobil çekmece menü ------------------------------------------------------ */
.alb-drawer-backdrop {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.alb-drawer-backdrop.is-open { opacity: 1; }

.alb-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 88vw;
  max-width: 360px;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  font-family: "Open Sans", sans-serif;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0.32s;
}
.alb-drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Üst bant: kaydırılmış header ile aynı turuncu + beyaz logo */
.alb-drawer__top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #c06222;
  padding: 12px 10px 12px 20px;
}
.alb-drawer__logo { display: block; width: 190px; }
.alb-drawer__logo img { display: block; width: 100%; height: auto; }
.alb-drawer__close {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  color: #fff;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 44px;
  cursor: pointer;
}
.alb-drawer__close:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

/* Dil seçici: masaüstündeki gibi mavi metin, aktif dil altı çizili */
.alb-drawer__langs {
  flex: 0 0 auto;
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 0 12px;
}
.alb-drawer__langs a {
  flex: 1 1 0;
  text-align: center;
  text-decoration: none;
  color: #1f7696;
  font-weight: 600;
  font-size: 14px;
  line-height: 46px;
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
}
.alb-drawer__langs a.active { border-bottom-color: #1f7696; }

.alb-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.alb-drawer__menu { list-style: none; margin: 0; padding: 6px 0 0; }
.alb-drawer__menu > li { border-bottom: 1px solid #f0f0f0; }
.alb-drawer__menu a {
  display: block;
  text-decoration: none;
  color: #262626;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  padding: 13px 20px;
}
.alb-drawer__menu a:hover,
.alb-drawer__menu a[aria-current="page"] { color: #c06222; }

/* Alt menü (akordeon) */
.alb-drawer__row { display: flex; align-items: stretch; }
.alb-drawer__row > a { flex: 1 1 auto; }
.alb-drawer__toggle {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 52px;
  background: none;
  border: 0;
  border-left: 1px solid #f0f0f0;
  color: #c06222;
  font-size: 22px;
  cursor: pointer;
}
.alb-drawer__toggle .fa { transition: transform 0.25s ease; }
.alb-drawer__toggle[aria-expanded="true"] .fa { transform: rotate(180deg); }
.alb-drawer__subwrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.alb-drawer__subwrap.is-open { grid-template-rows: 1fr; }
.alb-drawer__sub {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #faf6f3;
  transition: visibility 0s linear 0.28s;
}
.alb-drawer__subwrap.is-open .alb-drawer__sub { visibility: visible; transition: none; }
.alb-drawer__sub li:first-child { padding-top: 6px; }
.alb-drawer__sub li:last-child { padding-bottom: 10px; }
.alb-drawer__sub a,
.alb-drawer__sub span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 9px 20px 9px 34px;
}
.alb-drawer__sub span { color: #9a9a9a; }

/* Son öğe masaüstündeki gibi mavi buton */
.alb-drawer__menu > li.alb-drawer__cta { border-bottom: 0; padding: 18px 20px 6px; }
.alb-drawer__cta a { background: #1f7696; color: #fff; text-align: center; }
.alb-drawer__cta a:hover,
.alb-drawer__cta a[aria-current="page"] { background: #207697; color: #fff; }

.alb-drawer__contact { padding: 12px 20px 28px; }
.alb-drawer__contact a {
  display: block;
  color: #262626;
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  padding: 6px 0;
}
.alb-drawer__contact .fa { color: #c06222; width: 18px; margin-right: 8px; text-align: center; }

.alb-drawer a:focus-visible,
.alb-drawer__toggle:focus-visible { outline: 2px solid #1f7696; outline-offset: -2px; }

/* Çekmece açıkken sayfa arkada kaymasın */
html.alb-drawer-lock,
html.alb-drawer-lock body { overflow: hidden; }

/* Masaüstünde (menü sığıyorsa) çekmece hiç görünmez */
@media only screen and (min-width: 1271px) {
  html:not(.alb-nav-collapsed) .alb-drawer,
  html:not(.alb-nav-collapsed) .alb-drawer-backdrop { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .alb-drawer,
  .alb-drawer.is-open,
  .alb-drawer-backdrop,
  .alb-drawer__toggle .fa,
  .alb-drawer__subwrap { transition: none; }
}
