/* ===== Zentrales Menü (05.10.2026) =====
   Gehört zu menue.py im Projektordner: dort stehen Punkte, Angebote und Preise.
   Hier nur das Aussehen von
     1  Aufklapp-Flächen „Angebote" und „Ratgeber" (Mac, ab 1100 px)
     2  zweiter Zeile „Auf dieser Seite" (erscheint beim Scrollen)
     3  Handy-Menü als Blatt
     4  Fuß in drei Gruppen
   Die Flächen öffnen per :hover und :focus-within – also auch ohne JavaScript.
   menue.js ergänzt nur Tippen am Tablet, Escape und aria-expanded. */

.hdr-inner { position: relative; }
.hdr-nav a.active { color: var(--navy, #17456e); font-weight: 700; }

/* ---- 1  Aufklapp-Flächen ---- */
.mn-punkt { display: flex; align-items: center; }
/* inline-flex ausdrücklich: Impressum und Datenschutz laden site.css nicht */
.hdr-nav a.mn-link { display: inline-flex; align-items: center; min-height: 44px; gap: 7px; white-space: nowrap; }
.mn-link svg { flex: none; display: block; }
.mn-link svg { width: 10px; height: 10px; opacity: .7; transition: transform .25s ease; }
/* !important, weil site.css Links mit data-hov beim Überfahren per !important einfärbt */
.mn-punkt:hover > .mn-link, .mn-punkt:focus-within > .mn-link, .mn-punkt.offen > .mn-link { color: var(--navy, #17456e) !important; }
.mn-punkt:hover > .mn-link svg, .mn-punkt:focus-within > .mn-link svg, .mn-punkt.offen > .mn-link svg { transform: rotate(180deg); }

.mn-flaeche { position: absolute; top: calc(100% + 14px); right: 0; z-index: 2; width: min(860px, 100%);
  box-sizing: border-box; padding: 10px; background: var(--card, #fff); border: 1px solid var(--line-strong, #dbdad4);
  border-radius: 22px; box-shadow: 0 28px 70px rgba(22,21,19,.16), 0 4px 14px rgba(22,21,19,.07);
  font-family: 'Inter', system-ui, -apple-system, sans-serif; text-align: left;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .28s cubic-bezier(.22,1,.36,1), visibility 0s linear .28s; }
.mn-flaeche--ratgeber { width: min(820px, 100%); }
/* Brücke über den Spalt zwischen Menüpunkt und Fläche, damit die Maus sie nicht verliert */
.mn-flaeche::before { content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 30px; }
.mn-punkt:hover > .mn-flaeche, .mn-punkt:focus-within > .mn-flaeche, .mn-punkt.offen > .mn-flaeche {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .2s ease .09s, transform .28s cubic-bezier(.22,1,.36,1) .09s, visibility 0s linear .09s; }
/* Escape oder Klick auf einen Eintrag: zu, bis die Maus den Punkt verlässt */
.mn-punkt.zu > .mn-flaeche { opacity: 0 !important; visibility: hidden !important; }
/* Mit zweiter Zeile: Fläche darunter ansetzen, Brücke entsprechend höher */
.hdr.scrolled.hat-sub .mn-flaeche { top: calc(100% + 56px); }
.hdr.scrolled.hat-sub .mn-flaeche::before { top: -72px; height: 72px; }

.hdr-nav .mn-flaeche a { display: block; min-height: 0; color: var(--ink, #111110); font-size: 15.5px;
  letter-spacing: 0; text-decoration: none; border-radius: 10px; transition: background-color .2s ease; }
.hdr-nav .mn-flaeche a:hover, .hdr-nav .mn-flaeche a:focus-visible { background: #f5f5f2; color: var(--ink, #111110); }
.hdr-nav .mn-flaeche a[aria-current="page"] { background: #f5f5f2; }
.mn-label { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: #8a8980; }

.mn-wege { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.hdr-nav .mn-flaeche a.mn-weg { display: grid; gap: 3px; padding: 16px 18px; border-radius: 14px; }
.mn-weg__frage { font-size: 13.5px; color: var(--graphite, #65655e); }
.mn-weg__name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -.015em; }
.mn-weg__preis { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px; color: var(--navy, #17456e); margin-top: 2px; }
.mn-weg__preis small { font-family: 'Inter', system-ui, sans-serif; font-weight: 400; font-size: 13.5px; color: var(--graphite, #65655e); }

.mn-mehr { display: flex; align-items: center; gap: 8px; margin: 6px 8px 0; padding: 10px 10px 6px; border-top: 1px solid var(--line, #e9e8e3); }
.mn-mehr .mn-label { margin-right: 10px; }
.hdr-nav .mn-flaeche .mn-mehr a { font-size: 15px; padding: 8px 12px; }
.mn-mehr a b { color: var(--navy, #17456e); font-weight: 700; margin-left: 6px; }
.mn-mwst { margin-left: auto; font-size: 13px; color: var(--graphite, #65655e); white-space: nowrap; }

.mn-fuss { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 8px;
  padding: 7px 8px; background: #f5f5f2; border-radius: 14px; }
.hdr-nav .mn-flaeche .mn-fuss a { font-size: 15px; color: #3d3a35; padding: 8px 10px; }
.hdr-nav .mn-flaeche .mn-fuss a:hover, .hdr-nav .mn-flaeche .mn-fuss a:focus-visible { background: #ecebe6; }
.mn-fuss a b { color: var(--navy, #17456e); font-weight: 700; }

.mn-spalten { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 6px; padding: 12px 8px 6px; }
.mn-spalten .mn-label { padding: 0 12px 8px; }
.hdr-nav .mn-flaeche .mn-spalten a { padding: 9px 12px; }

/* ---- 2  Zweite Zeile „Auf dieser Seite" ---- */
.hdr-sub { max-width: 1560px; margin: 0 auto; display: flex; align-items: center; gap: 28px; font-size: 14px;
  max-height: 0; opacity: 0; visibility: hidden; overflow: hidden; border-top: 1px solid transparent;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .25s ease, margin .35s ease, padding .35s ease, visibility 0s linear .35s; }
.hdr.scrolled .hdr-sub { max-height: 40px; opacity: 1; visibility: visible; margin-top: 8px; padding-top: 9px;
  border-top-color: rgba(22,21,19,.09);
  transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .25s ease, margin .35s ease, padding .35s ease, visibility 0s; }
/* Die Kopfzeile ist mit der zweiten Zeile 40 px höher – Sprungziele entsprechend tiefer landen lassen */
@media (min-width: 1100px) { html.hat-sub { scroll-padding-top: 40px; } }
.hdr.scrolled.hat-sub { background: rgba(255,255,255,.93); }
.hdr-sub__label { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: #8a8980; }
.hdr-sub a { color: #3d3a35; text-decoration: none; white-space: nowrap; transition: color .2s ease; }
.hdr-sub a:hover { color: #161513; }
.hdr-sub a.active { color: var(--navy, #17456e); font-weight: 700; }

@media (max-width: 1099.98px) {
  .mn-flaeche, .hdr-sub { display: none; }
}

/* ---- 3  Handy-Menü als Blatt ---- */
.menu.menu--blatt { width: min(420px, calc(100vw - 24px)); max-height: calc(100vh - 86px); max-height: calc(100dvh - 78px);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  box-sizing: border-box; padding: 14px 12px 12px; gap: 0; background: rgba(255,255,255,.96); }
.menu--blatt .menu-nav { gap: 0; }
.menu--blatt .m-label { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: #8a8980; padding: 4px 10px 6px; }
.menu--blatt .m-hier { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(22,21,19,.09); }
.menu--blatt .m-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 8px 0; }
.menu--blatt .menu-nav .m-chips a { font-size: 14.5px; font-weight: 600; padding: 8px 14px; border: 1px solid var(--line-strong, #dbdad4);
  border-radius: 999px; color: #3d3a35; background: #fff; }
.menu--blatt .menu-nav .m-chips a.active { color: var(--navy, #17456e); border-color: var(--navy, #17456e); background: #fff; }
.menu--blatt .menu-nav a.m-weg { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 16px; padding: 9px 10px; }
.menu--blatt a.m-weg b { font-size: 14.5px; font-weight: 700; color: var(--navy, #17456e); white-space: nowrap; }
.menu--blatt .menu-nav a[aria-current] { color: var(--navy, #17456e); background: rgba(23,69,110,.07); }
.menu--blatt .m-unter { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 10px; padding-right: 10px; }
.menu--blatt .menu-nav a.m-alle { font-size: 14.5px; color: var(--navy, #17456e); padding: 10px 10px 12px; white-space: nowrap; }
.menu--blatt .m-mwst { font-size: 12.5px; color: var(--graphite, #65655e); white-space: nowrap; margin-left: auto; padding: 0 0 2px 10px; }
.menu--blatt .m-trenner { display: block; height: 1px; background: rgba(22,21,19,.09); margin: 4px 10px 6px; }
.menu--blatt .menu-nav a.m-zeile { display: flex; justify-content: space-between; align-items: center; font-size: 17px; padding: 11px 10px; }
.menu--blatt a.m-zeile svg { width: 11px; height: 11px; color: #8a8980; flex: none; }
.menu--blatt a.m-zeile small { font-family: 'Inter', system-ui, sans-serif; font-weight: 400; font-size: 13.5px;
  color: var(--graphite, #65655e); margin-left: 8px; }
.menu--blatt .m-kontakt { display: grid; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(22,21,19,.09); }
.menu--blatt .m-btn { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 52px; border-radius: 13px;
  background: var(--navy, #17456e); color: #fff; text-decoration: none; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 16.5px; }
.menu--blatt .m-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu--blatt .m-zwei a { display: flex; justify-content: center; align-items: center; min-height: 46px; border-radius: 12px;
  border: 1px solid var(--line-strong, #dbdad4); background: #fff; color: var(--ink, #111110); text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px; }
@media (max-width: 370px) {
  .menu--blatt .menu-nav a.m-weg { font-size: 15px; gap: 8px; }
  .menu--blatt a.m-weg b { font-size: 13.5px; }
}

/* ---- 4  Fuß in drei Gruppen ---- */
.foot-links.foot-links--spalten { display: grid; grid-template-columns: repeat(3, auto); justify-content: center;
  gap: 10px 72px; width: 100%; max-width: 860px; padding: 10px 0 2px; text-align: left; }
.foot-gruppe { display: flex; flex-direction: column; align-items: flex-start; }
.foot-label { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: #8a8980; padding: 0 6px 6px; }
.foot-links--spalten a { display: flex; align-items: center; min-height: 34px; padding: 0 6px; font-size: .88rem;
  color: var(--graphite, #65655e); text-decoration: none; }
.foot-links--spalten a:hover { color: var(--ink, #111110); }
.foot-links--spalten a:focus-visible { outline: 2px solid #17456e; outline-offset: 2px; border-radius: 6px; }
.foot-recht { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 20px; margin-top: 6px; }
@media (pointer: coarse) { .foot-links--spalten a { min-height: 44px; } }
/* Kontaktzeile im Fuß: dieselben Regeln wie in site.css – Impressum und Datenschutz laden site.css nicht,
   dort stand die Zeile bisher ungestaltet. */
.foot-kontakt { display: flex; flex-wrap: wrap; gap: 2px 18px; justify-content: center; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--line, #e7e4dd); width: 100%; max-width: 660px; }
.foot-kontakt a { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600;
  color: var(--graphite, #65655e); text-decoration: none; min-height: 44px; padding: 0 6px; overflow-wrap: anywhere; }
.foot-kontakt a:hover { color: var(--ink, #111110); }
.foot-kontakt a:focus-visible { outline: 2px solid #17456e; outline-offset: 2px; border-radius: 6px; }
.foot-kontakt svg { flex: none; }
.foot-kontakt .wa svg { color: #1f9c53; }
@media (max-width: 639.98px) {
  .foot-links.foot-links--spalten { grid-template-columns: 1fr 1fr; gap: 16px 20px; justify-content: stretch; max-width: 420px; }
  .foot-gruppe:first-child { grid-row: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  .mn-flaeche, .mn-link svg, .hdr-sub { transition: none !important; }
}
/* Instagram und LinkedIn am Ende der Kontaktzeile (06.10.2026, V2.7): nur Logos, als Gruppe, damit sie am Handy
   zusammen umbrechen. Quelle der Links: SOZIAL in menue.py. */
.foot-kontakt .fs-gruppe { display: inline-flex; align-items: center; gap: 4px; }
.foot-kontakt a.fs { min-width: 44px; justify-content: center; padding: 0 4px; border-radius: 6px; transition: transform .2s ease; }
.foot-kontakt a.fs svg { width: 22px; height: 22px; }
@media (hover: hover) { .foot-kontakt a.fs:hover { transform: translateY(-1px); } }
