/* =====================================================================
   Autowelt Wilhelmshaven – gemeinsames Design (Navigation & Footer)
   Gilt auf allen öffentlichen Seiten. Eingebunden über layout.php.
   ===================================================================== */

.aw-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Navigation ---------- */
.aw-nav {
    position: fixed; z-index: 1000;
    top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px;
    max-width: 1240px; margin: 0 auto;
    height: 60px; padding: 0 8px 0 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: rgba(14,15,17,.82); border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 14px 40px rgba(0,0,0,.28);
    font-family: 'Inter', system-ui, sans-serif;
    box-sizing: border-box; transform: none;
}
.aw-nav *, .aw-nav *::before, .aw-nav *::after { box-sizing: border-box; }
.aw-nav-logo { display: flex; align-items: center; height: 44px; min-width: 0; text-decoration: none; }
.aw-nav-logo img { display: block; height: 22px; width: auto; max-width: 100%; }
.aw-burger {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0; margin: 0; flex: none;
    background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: #fff; cursor: pointer;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.aw-burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.aw-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.aw-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.aw-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.aw-nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    display: grid; gap: 2px; padding: 8px; margin: 0;
    background: #0e0f11; border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,.55);
    opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
}
.aw-nav-links.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .2s ease, transform .2s ease; }
.aw-nav-links a {
    display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 7px;
    color: rgba(255,255,255,.8); text-decoration: none; text-transform: uppercase;
    font-size: 12px; font-weight: 700; letter-spacing: .12em; line-height: 1; background: none;
}
.aw-nav-links a:hover { background: rgba(255,255,255,.07); color: #fff; }
.aw-nav-links a.active { background: rgba(255,255,255,.12); color: #fff; }
.aw-nav a:focus-visible, .aw-burger:focus-visible { outline: 2px solid #ff5a60; outline-offset: 2px; }

@media (min-width: 1000px) {
    .aw-nav { top: 18px; left: 24px; right: 24px; height: 66px; padding: 0 10px 0 22px; }
    .aw-nav-logo img { height: 26px; }
    .aw-burger { display: none; }
    .aw-nav-links {
        position: static; display: flex; gap: 4px; padding: 0; background: none; border: 0; box-shadow: none;
        opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: none;
    }
    .aw-nav-links a { min-height: 42px; padding: 0 14px; font-size: 11px; }
}

/* ---------- Footer ---------- */
.aw-footer {
    position: relative; z-index: 2; display: block; width: 100%; margin: 0;
    border-top: 1px solid rgba(255,255,255,.09); background: #08090a;
    padding: 44px 0 calc(28px + env(safe-area-inset-bottom));
    color: #a3a8af; font-family: 'Inter', system-ui, sans-serif; font-size: 14.5px; line-height: 1.7;
    text-align: left; letter-spacing: normal; text-transform: none; font-weight: 400; font-style: normal;
    box-sizing: border-box; max-width: none; min-height: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.aw-footer *, .aw-footer *::before, .aw-footer *::after { box-sizing: border-box; }
.aw-footer-wrap { width: 100%; max-width: 1256px; margin: 0 auto; padding: 0 18px; }
.aw-footer-grid { display: grid; gap: 28px; }
.aw-footer-logo { display: block; height: 22px; width: auto; margin: 0 0 14px -4px; }
.aw-footer h2 { margin: 0 0 12px; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1.4; }
.aw-footer p { margin: 0; color: #a3a8af; font-size: 14.5px; line-height: 1.7; }
.aw-footer ul { margin: 0; padding: 0; list-style: none; }
.aw-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.aw-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.aw-footer-contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; }
.aw-footer-contact .aw-ico { width: 17px; height: 17px; color: #ff5a60; }
.aw-hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; margin: 0; }
.aw-hours dt { color: rgba(255,255,255,.86); font-size: 14.5px; font-weight: 400; }
.aw-hours dd { margin: 0; color: #a3a8af; font-size: 14.5px; }
.aw-copyright { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.5); font-size: 13px; text-align: center; }
.aw-footer .awc-legal { text-align: center; }

@media (min-width: 640px) {
    .aw-footer-wrap { padding: 0 28px; }
    .aw-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
    .aw-footer-wrap { padding: 0 40px; }
    .aw-footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .aw-burger span, .aw-nav-links { transition: none; }
}

/* ---------- Kleine Überschrift über Seitentiteln (überall gleich) ---------- */
.aw-kicker {
    display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 0;
    color: #ff5a60; font-family: 'Inter', system-ui, sans-serif; font-size: 14px; font-weight: 600;
    letter-spacing: 0; text-transform: none; line-height: 1.4; background: none;
}
.aw-kicker::before { content: ""; display: block; flex: none; width: 28px; height: 2px; background: #e21b23; border-radius: 2px; }
.aw-kicker::after { content: none; }
