/*
 Theme Name:   Astra Child
 Theme URI:    https://wpastra.com/
 Description:  Child Theme für Abendbrot (Astra)
 Author:       Thomas
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* Eigene Regeln kommen AB HIER hin */
/* =======================================================
   Abendbrot – Hauptmenü (mit Trennern & funktionierender Hover-Linie)
   ======================================================= */

.main-header-menu a,
.ast-desktop .main-header-menu > li > a {
  font-family: 'Old Standard TT', serif !important;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: #222222;
  line-height: 1.3;
  display: inline-block;           /* wichtig für Border sichtbar */
  padding: 0.4em 0.8em 0.25em;     /* enger, Unterstreichung näher */
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-header-menu a:hover,
.main-header-menu a:focus {
  color: #000;
  border-bottom-color: #000;       /* klare Linie bei Hover */
}

.main-header-menu .current-menu-item > a,
.main-header-menu .current-menu-ancestor > a {
  color: #000;
  border-bottom-color: #000;       /* aktive Kategorie bleibt markiert */
}

/* ===========================
   Trenner im Desktop-Menü – stabil per border-left
   =========================== */
.ast-desktop .main-header-menu {
  display: flex;
  flex-wrap: nowrap;           /* alles in einer Zeile lassen */
  gap: 0;                      /* Abstand über Padding steuern */
}

.ast-desktop .main-header-menu > li {
  display: flex;
  align-items: flex-end;       /* Linie unter der Schrift wirkt näher */
  margin: 0;                   /* enger, sauber */
}

/* Ab dem 2. Eintrag: dünne vertikale Linie links */
.ast-desktop .main-header-menu > li + li {
  border-left: 1px solid #cfcac1;  /* dezentes Grau */
}

/* Zusätzlicher Innenabstand rechts/links */
.ast-desktop .main-header-menu > li > a {
  display: inline-block;
  padding: 0.35em 0.9em 0.2em;     /* Unterstreichung näher an die Schrift */
  line-height: 1.25;
  white-space: nowrap;             /* keine Umbrüche im Linktext */
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}

/* Links mit Trenner brauchen links etwas mehr Luft */
.ast-desktop .main-header-menu > li + li > a {
  padding-left: 1.1em;
}

/* Hover & aktiv: Unterstreichung sicher sichtbar */
.ast-desktop .main-header-menu a:hover,
.ast-desktop .main-header-menu a:focus {
  color: #000;
  border-bottom-color: #000;
}
.ast-desktop .main-header-menu .current-menu-item > a,
.ast-desktop .main-header-menu .current-menu-ancestor > a {
  color: #000;
  border-bottom-color: #000;
}

/* Mobile/Tablet: KEINE Trenner */
.ast-header-break-point .main-header-menu > li {
  border-left: 0 !important;
}

/* Leichter Rahmen unten, sauberer Abschluss */
.ast-main-header-bar {
  background: transparent !important;
  border-bottom: 1px solid #e0ded9;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

/* ---------- Overlay & Drawer ---------- */
.ast-mobile-popup-drawer { background: rgba(0,0,0,.28); }

.ast-mobile-popup-drawer .ast-mobile-popup-inner {
  background: #FAF7F2;                  /* warmweiß */
  width: 86%;
  max-width: 420px;
  box-shadow: -24px 0 48px rgba(0,0,0,.08);
  overflow-y: auto;
  padding-top: .25rem;
  padding-bottom: .5rem;
}

/* Close-Button im Drawer */
.ast-mobile-popup-drawer .ast-mobile-popup-close {
  color: #222;
  top: 14px; right: 14px;
  background: #fff;
  border: 1px solid #e0ded9;
  width: 32px; height: 32px;
  border-radius: 9999px;
}
.ast-mobile-popup-drawer .ast-mobile-popup-close:hover {
  background: #f0ede8;
}

/* ---------- Menüliste im Drawer ---------- */
.ast-header-break-point .main-header-menu,
.ast-header-break-point .main-navigation ul {
  margin: 0;
  padding: .25rem 0;
}

/* KEINE Trenner (|) im Mobile */
.ast-header-break-point .main-header-menu > li { border-left: 0 !important; }

/* Top-Level Links */
.ast-header-break-point .main-header-menu .menu-link {
  font-family: 'Old Standard TT', serif !important;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #222;
  display: block;
  padding: .9rem 1.1rem .8rem;
  border-bottom: 1px solid #e6e2db;
  line-height: 1.25;
  transition: background .15s ease, color .15s ease;
}
.ast-header-break-point .main-header-menu .menu-link:hover,
.ast-header-break-point .main-header-menu .menu-link:focus {
  background: #f0ede8;
  color: #000;
}

/* Aktives Element – dezente Markierung links */
.ast-header-break-point .main-header-menu .current-menu-item > .menu-link,
.ast-header-break-point .main-header-menu .current-menu-ancestor > .menu-link {
  color: #000;
  background: #efece6;
  box-shadow: inset 3px 0 0 0 #222;   /* linke Akzentlinie */
}

/* ---------- Untermenüs ---------- */
.ast-header-break-point .main-header-menu .sub-menu .menu-link {
  font-weight: 400;
  font-size: 16px;
  text-transform: none;               /* Subitems nicht schreien lassen */
  padding: .7rem 1.4rem .65rem;       /* eingerückt */
  border-bottom: 1px dotted #ddd8cf;
}

/* Toggle-Pfeile für Submenüs (falls aktiv) */
.ast-header-break-point .ast-menu-toggle {
  color: #444;
  width: 2.25rem; height: 2.25rem;
}
.ast-header-break-point .ast-menu-toggle:hover { color: #000; }

/* ---------- Fokus-Accessibility ---------- */
.ast-header-break-point .main-header-menu .menu-link:focus,
.ast-header-break-point .menu-toggle:focus,
.ast-mobile-popup-drawer .ast-mobile-popup-close:focus {
  outline: none !important;
  box-shadow: none !important;
}

.wpsp-eyebrow-category{
  font-family:'UnifrakturMaguntia',cursive;
  font-size:1.15rem;
  line-height:1.2;
  letter-spacing:.01em;
  margin:0 0 .35em 0;
  color:#906503;
}
.wpsp-eyebrow-category a{
  color:inherit;
  text-decoration:none;
}

/* Erzwinge die Eyebrow-Schrift über alle Breakpoints */
.wpsp-eyebrow-category,
.wpsp-eyebrow-category a {
  font-family: 'UnifrakturMaguntia', cursive !important;
  font-weight: 400;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  color: #906503;
  text-decoration: none;
}

/* Falls Elementor/Astra mobil andere Fonts setzen */
@media (max-width: 768px) {
  .wpsp-eyebrow-category,
  .wpsp-eyebrow-category a {
    font-family: 'UnifrakturMaguntia', cursive !important;
  }
}

/* H1-Formatierung normalisieren */
h1, .entry-title, .elementor-heading-title {
  text-transform: none !important;
}


