/* Handy-Menue als Kacheln (Entwurf B, 18.11.2026). Markup: includes/navigation.php (.overlay.ov-tiles) */
.overlay.ov-tiles{background:var(--bg2);backdrop-filter:none;-webkit-backdrop-filter:none;overscroll-behavior:contain;
  align-items:stretch;gap:0;padding-left:20px;padding-right:20px;
  padding-top:calc(var(--headBottom,74px) + env(safe-area-inset-top,0px) + 14px);}
[data-theme="dark"] .overlay.ov-tiles{background:var(--bg);}

.ovt-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;max-width:520px;margin:0 auto;}
.ovt-tile{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;gap:14px;
  min-height:118px;width:100%;padding:16px;text-align:left;font:inherit;color:var(--ink);cursor:pointer;
  background:var(--card);border:1px solid var(--line);border-radius:18px;
  transition:transform .12s cubic-bezier(.23,1,.32,1),border-color .2s;}
.ovt-tile:active{transform:scale(.97);}
.ovt-ic{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:var(--ink);color:var(--bg);}
.ovt-ic.is-accent{background:#d62828;color:#fff;}
.ovt-ic svg{width:20px;height:20px;display:block;}
.ovt-txt{display:flex;flex-direction:column;gap:2px;}
.ovt-txt b{font-size:17px;font-weight:650;letter-spacing:-.01em;line-height:1.2;}
.ovt-txt small{font-size:12.5px;color:var(--muted);line-height:1.3;}
.overlay.ov-tiles a.ovt-tile.active{border-color:var(--ink);}

/* Aufklappbare Kacheln (Leistungen, Wissen): geoeffnet ueber die volle Breite */
.ovt-group{display:block;width:auto;}
.ovt-group .ovt-tile{position:relative;}
.ovt-group .ov-chev{position:absolute;top:16px;right:14px;}
.ovt-group.open .ov-chev{top:50%;margin-top:-10px;}
.ovt-group.open{grid-column:1 / -1;}
.ovt-group.open .ovt-tile{min-height:0;flex-direction:row;align-items:center;justify-content:flex-start;border-radius:18px 18px 0 0;border-bottom-color:transparent;}
.overlay.ov-tiles .ovt-group .ov-sub{margin:0;max-width:none;align-items:stretch;gap:2px;padding:4px 16px 14px;
  background:var(--card);border:1px solid var(--line);border-top:0;border-radius:0 0 18px 18px;}
.overlay.ov-tiles .ov-item{justify-content:flex-start;text-align:left;font-size:15px;color:var(--ink);}
.overlay.ov-tiles .ov-overview{align-self:flex-start;font-size:14px;}

/* Kontaktwege und Demo-Knopf */
.ovt-contact{display:flex;justify-content:center;gap:26px;margin:26px auto 14px;}
.ovt-contact a{font-size:14.5px;font-weight:500;color:var(--muted);min-height:44px;display:inline-flex;align-items:center;}
.ovt-cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;max-width:520px;margin:0 auto;
  height:52px;border-radius:14px;background:var(--ink);color:var(--bg);font-size:15.5px;font-weight:600;
  transition:transform .12s cubic-bezier(.23,1,.32,1);}
.ovt-cta:active{transform:scale(.97);}

/* Einblenden: Kacheln nacheinander, alte Einzel-Animation der Liste aus */
.overlay.ov-tiles>*{opacity:1;transform:none;}
.ovt-grid>*,.ovt-contact,.ovt-cta{opacity:0;transform:translateY(14px);
  transition:opacity .4s cubic-bezier(.23,1,.32,1),transform .4s cubic-bezier(.23,1,.32,1);}
body.menu-open .ovt-grid>*,body.menu-open .ovt-contact,body.menu-open .ovt-cta{opacity:1;transform:none;}
body.menu-open .ovt-grid>*:nth-child(2){transition-delay:.03s;}
body.menu-open .ovt-grid>*:nth-child(3){transition-delay:.06s;}
body.menu-open .ovt-grid>*:nth-child(4){transition-delay:.09s;}
body.menu-open .ovt-grid>*:nth-child(5){transition-delay:.12s;}
body.menu-open .ovt-grid>*:nth-child(6){transition-delay:.15s;}
body.menu-open .ovt-contact,body.menu-open .ovt-cta{transition-delay:.15s;}
@media(prefers-reduced-motion:reduce){.ovt-grid>*,.ovt-contact,.ovt-cta{transform:none;transition:opacity .2s;}}

/* Kopfzeile bei offenem Menue: ohne dunkle Leiste, Logo und Knoepfe gut lesbar auf hellem Grund */
body.menu-open #header{background:var(--bg2)!important;border-bottom-color:transparent!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;transform:none!important;}
[data-theme="dark"] body.menu-open #header{background:var(--bg)!important;}
html:not([data-theme="dark"]):not(.hx-off) body.dark-top.menu-open #header .logo img{filter:none;}
html:not([data-theme="dark"]):not(.hx-off) body.dark-top.menu-open #header .burger{border-color:var(--line);}
html:not([data-theme="dark"]):not(.hx-off) body.dark-top.menu-open #header .burger span{background:var(--ink);}
html:not([data-theme="dark"]):not(.hx-off) body.dark-top.menu-open #header .nav-tools{background:rgba(0,0,0,.05);}
html:not([data-theme="dark"]):not(.hx-off) body.dark-top.menu-open #header .nav-tools .theme-btn,
html:not([data-theme="dark"]):not(.hx-off) body.dark-top.menu-open #header .nav-tools .lang-globe{color:var(--ink);}

/* Kleine Handys (bis 360 px): kompaktere Kacheln, Unterzeilen in einer Zeile */
@media(max-width:360px){
  .overlay.ov-tiles{padding-left:14px;padding-right:14px;}
  .ovt-grid{gap:10px;}
  .ovt-tile{min-height:104px;padding:13px;gap:10px;border-radius:16px;}
  .ovt-ic{width:34px;height:34px;border-radius:10px;}
  .ovt-ic svg{width:18px;height:18px;}
  .ovt-txt b{font-size:15.5px;}
  .ovt-txt small{font-size:11.5px;}
  .ovt-group .ov-chev{top:13px;right:11px;}
  .ovt-contact{gap:20px;margin:20px auto 10px;}
}
/* Querformat (niedrige Hoehe): drei Spalten, flache Kacheln ohne Unterzeile */
@media(max-height:520px) and (orientation:landscape){
  .overlay.ov-tiles{padding-top:calc(var(--headBottom,64px) + 8px);padding-bottom:16px;}
  .ovt-grid{grid-template-columns:repeat(3,1fr);gap:10px;max-width:760px;}
  .ovt-tile{min-height:0;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;padding:10px 12px;border-radius:14px;}
  .ovt-group .ovt-tile{padding-right:34px;}
  .ovt-ic{width:32px;height:32px;border-radius:9px;}
  .ovt-ic svg{width:17px;height:17px;}
  .ovt-txt b{font-size:15px;}
  .ovt-txt small{display:none;}
  .ovt-group .ov-chev,.ovt-group.open .ov-chev{top:50%;margin-top:-10px;right:10px;}
  .ovt-contact{margin:12px auto 6px;}
  .ovt-cta{max-width:760px;height:46px;}
}
