/* ═══════════════════════════════════════════════════════════
   HANDWERK SaaS – BASE  ·  Design: Stahl & Licht
   Topbar + zweigeteilter Header · Diagonale Layouts
   Poppins only · andi24-icons
   ═══════════════════════════════════════════════════════════ */

:root {
    --hw-primary:    #1e293b;
    --hw-accent:     #f97316;
    --hw-accent-dk:  #ea6c0a;
    --hw-accent-lt:  #f97316cc;
    --hw-cream:      #f1f5f9;
    --hw-light:      #f8fafc;
    --hw-warm:       #fff7ed;
    --hw-text:       #374151;
    --hw-border:     #e2e8f0;
    --hw-steel:      #64748b;
    --hw-dark:       #0a0f1a;
    --ff-heading:    'Poppins', system-ui, sans-serif;
    --ff-body:       'Poppins', system-ui, sans-serif;
    --topbar-h:      36px;
    --header-h:      68px;
    --offset:        calc(var(--topbar-h) + var(--header-h));
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
    font-family: var(--ff-body);
    font-size: 16px; line-height: 1.75;
    color: var(--hw-text); background: #fff;
    padding-top: var(--offset);
}
h1,h2,h3,h4,h5,h6 {
    font-family: var(--ff-heading); font-weight: 800;
    line-height: 1.1; color: var(--hw-primary);
    margin-top: 0; letter-spacing: -0.03em;
}
h1 { font-size: clamp(32px, 5vw, 68px); }
h2 { font-size: clamp(26px, 4vw, 48px); }
h3 { font-size: clamp(20px, 3vw, 32px); }
h4 { font-size: 22px; } h5 { font-size: 18px; } h6 { font-size: 16px; }
p { margin-bottom: 16px; }
a { text-decoration: none; transition: all .2s; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── CONTAINER & GRID ────────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
[class*="col-"] { padding: 0 15px; width: 100%; }
@media(min-width:768px) {
    .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}
@media(min-width:992px) {
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-lg-5 { flex: 0 0 41.666%; max-width: 41.666%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.333%; max-width: 58.333%; }
    .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
}
@media(min-width:1200px) {
    .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
    .col-xl-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
}

/* ── UTILS ───────────────────────────────────────────────── */
.d-flex { display: flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.flex-wrap { flex-wrap: wrap !important; }
.text-center { text-align: center !important; }
.text-white { color: #fff !important; }
.gap-10{gap:10px}.gap-20{gap:20px}.gap-30{gap:30px}
.mb-0{margin-bottom:0!important}.mb-10{margin-bottom:10px!important}
.mb-20{margin-bottom:20px!important}.mb-30{margin-bottom:30px!important}
.mb-40{margin-bottom:40px!important}.mb-50{margin-bottom:50px!important}
.mt-10{margin-top:10px!important}.mt-20{margin-top:20px!important}.mt-30{margin-top:30px!important}
.pt-80{padding-top:80px!important}.pb-80{padding-bottom:80px!important}
.pt-100{padding-top:100px!important}.pb-100{padding-bottom:100px!important}
.hw-mt-14{margin-top:14px}.hw-mt-36{margin-top:36px}.hw-mb-16{margin-bottom:16px}
@media(min-width:992px) { .d-lg-none{display:none!important} .d-lg-flex{display:flex!important} .d-lg-block{display:block!important} }
@media(max-width:991px) { .d-lg-show{display:block!important} }
@media(max-width:767px) { .container{padding:0 16px} }

/* ── ICON ANIMATION ──────────────────────────────────────── */
.ai-spin,.ai-spinner { animation: hwSpin 1s linear infinite; display: inline-block; }
@keyframes hwSpin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════
   TOPBAR — schmaler schwarzer Utility-Strip
   ══════════════════════════════════════════════════════════ */
.hw-topbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--topbar-h); background: var(--hw-primary);
    z-index: 1001; display: flex; align-items: center;
}
.hw-topbar-inner {
    width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.hw-topbar-left { display: flex; align-items: center; gap: 20px; overflow: hidden; }
.hw-topbar-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: rgba(255,255,255,.45); white-space: nowrap; flex-shrink: 0;
}
.hw-topbar-item i { color: var(--hw-accent); font-size: 10px; }
.hw-topbar-item a { color: rgba(255,255,255,.65); }
.hw-topbar-item a:hover { color: var(--hw-accent); }
.hw-topbar-right { flex-shrink: 0; }
.hw-topbar-notdienst {
    background: #dc2626; color: #fff;
    padding: 3px 12px; font-size: 10px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    border-radius: 2px; display: flex; align-items: center; gap: 6px;
}
.hw-topbar-notdienst::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: #fca5a5; animation: hwBlink 1.2s infinite;
}
.hw-topbar-notdienst a { color: #fef08a; font-weight: 700; }
.hw-topbar-notdienst a:hover { text-decoration: underline; }
@keyframes hwBlink { 0%,100%{opacity:1} 50%{opacity:.3} }
/* Compat: altes .hw-notdienst-bar falls PHP es noch nutzt */
.hw-notdienst-bar {
    position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h);
    background: #dc2626; z-index: 1001;
    display: flex; align-items: center; justify-content: center;
    gap: 8px; font-size: 12px; font-weight: 600; color: #fff; padding: 0 20px;
}
.hw-notdienst-bar a { color: #fef08a; font-weight: 700; }
.hw-notdienst-bar a:hover { text-decoration: underline; }
.hw-notdienst-label { color: rgba(255,255,255,.7); font-size: 11px; }

@media(max-width:767px) {
    .hw-topbar-inner { padding: 0 16px; }
    .hw-topbar-item:nth-child(n+3) { display: none; }
}
@media(max-width:480px) {
    .hw-topbar-item:nth-child(n+2) { display: none; }
}

/* ══════════════════════════════════════════════════════════
   HAUPTNAVIGATION — Weiß · Logo = oranger Block
   ══════════════════════════════════════════════════════════ */
.hw-header {
    position: fixed; top: var(--topbar-h); left: 0; right: 0;
    height: var(--header-h); background: #fff;
    border-bottom: none;
    z-index: 1000; display: flex; align-items: stretch;
    transition: box-shadow .3s;
}
.hw-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.1); }
.hw-header-inner {
    width: 100%; max-width: 1280px; margin: 0 auto; display: flex; align-items: stretch;
}

/* Logo — oranges Rechteck */
.hw-logo { background: var(--hw-accent); padding: 0 22px;
    display: flex; align-items: center; flex-shrink: 0; transition: background .2s;
}
.hw-logo:hover { background: var(--hw-accent-dk); }
.hw-logo a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hw-logo-icon {
    width: 32px; height: 32px; background: var(--hw-primary); border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    color: var(--hw-accent); font-size: 17px; flex-shrink: 0;
}
.hw-logo-img { height: 34px; width: auto; filter: brightness(0) invert(1); }

/* Custom Logo (aus tenant_settings[logo_url]) – kein Filter, transparenter Container */
.hw-logo--custom { background: transparent; padding: 4px 12px; }
.hw-logo--custom:hover { background: rgba(0,0,0,.05); }
.hw-logo--custom .hw-logo-img { height: 75px; max-width: 220px; filter: none; object-fit: contain; }
.hw-logo-text {
    font-weight: 800; font-size: 13px; color: var(--hw-primary);
    letter-spacing: -0.5px; line-height: 1.2; white-space: nowrap;
}
.hw-logo-text small {
    display: block; font-size: 9px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase; color: rgba(30,41,59,.5);
}

/* Nav Links */
.hw-nav { display: flex; align-items: stretch; flex: 1; padding-left: 4px; }
.hw-nav > ul { display: flex; align-items: stretch; list-style: none; flex: 1; }
.hw-nav > ul > li { display: flex; align-items: stretch; position: relative; }
.hw-nav > ul > li > a {
    display: flex; align-items: center; gap: 5px;
    padding: 0 14px; font-size: 11px; font-weight: 700;
    color: var(--hw-steel); letter-spacing: .4px; text-transform: uppercase;
    border-bottom: 3px solid transparent; white-space: nowrap;
    transition: color .2s, border-color .2s;
}
.hw-nav > ul > li > a i { font-size: 12px; }
.hw-nav > ul > li > a:hover  { color: var(--hw-primary); border-bottom-color: var(--hw-accent); }
.hw-nav > ul > li > a.active { color: var(--hw-primary); border-bottom-color: var(--hw-accent); }

/* CTA */
.hw-nav-cta {
    align-self: center !important; margin: 0 0 0 8px !important;
    background: var(--hw-accent) !important; color: #fff !important;
    padding: 9px 18px !important; border-bottom: none !important;
    border-radius: 3px !important; font-size: 11px !important;
    letter-spacing: .5px !important; gap: 6px !important; flex-shrink: 0;
}
.hw-nav-cta i { color: #fff !important; font-size: 12px !important; }
.hw-nav-cta:hover { background: var(--hw-accent-dk) !important; color: #fff !important; border-bottom: none !important; }
.hw-nav-cta::after { display: none !important; }

/* Dropdown */
.hw-dd-l1 {
    display: none; position: absolute; top: 100%; left: 0;
    background: #ffffff !important; border: 1px solid var(--hw-border);
    border-top: 3px solid var(--hw-accent);
    min-width: 200px; padding: 5px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,.2); z-index: 1001; list-style: none;
    opacity: 1 !important;
}
.hw-has-dd:hover .hw-dd-l1 { display: block; }
.hw-has-dd.open  .hw-dd-l1 { display: block; }
.hw-has-dd.open > a .hw-dd-arrow { transform: rotate(180deg); }
.hw-dd-arrow { transition: transform .2s; }
.hw-dd-l1-direct a {
    display: block; padding: 10px 16px;
    font-size: 11px; font-weight: 700; color: var(--hw-steel);
    text-transform: uppercase; letter-spacing: .5px;
    border-left: 3px solid transparent; transition: all .15s;
}
.hw-dd-l1-direct a:hover {
    color: var(--hw-primary); background: var(--hw-light);
    border-left-color: var(--hw-accent); padding-left: 20px;
}
.hw-dd-l2 { display: none; }

/* Hamburger */
.hw-hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 5px; background: none; border: none;
    margin: auto 16px auto auto; flex-shrink: 0;
}
.hw-hamburger span { display: block; width: 22px; height: 2px; background: var(--hw-primary); transition: all .3s; border-radius: 1px; }
.hw-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hw-hamburger.open span:nth-child(2) { opacity: 0; }
.hw-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.nav-open { overflow: hidden; }

/* ── RESPONSIVE NAV ──────────────────────────────────────── */
@media(max-width:1100px) {
    .hw-nav > ul > li > a { padding: 0 10px; font-size: 10px; }
    .hw-logo { padding: 0 16px; }
}
@media(max-width:991px) {
    :root { --topbar-h: 34px; --header-h: 60px; }
    .hw-hamburger { display: flex; }
    .hw-logo-text small { display: none; }
    .hw-nav {
        display: none; position: fixed;
        top: var(--offset); left: 0; right: 0;
        background: #fff; border-top: 3px solid var(--hw-accent);
        max-height: calc(100vh - var(--offset));
        overflow-y: auto; flex-direction: column; padding: 0;
        box-shadow: 0 8px 32px rgba(0,0,0,.15); z-index: 998;
    }
    .hw-nav.open { display: flex; }
    .hw-nav > ul { flex-direction: column; flex: unset; }
    .hw-nav > ul > li { display: block; }
    .hw-nav > ul > li > a {
        padding: 16px 24px; border-bottom: 1px solid var(--hw-border);
        border-left: 3px solid transparent; font-size: 13px;
        justify-content: flex-start; gap: 14px;
    }
    .hw-nav > ul > li > a .hw-dd-arrow { margin-left: auto; }
    .hw-nav > ul > li > a:hover,
    .hw-nav > ul > li > a.active {
        border-bottom-color: var(--hw-border);
        border-left-color: var(--hw-accent); background: var(--hw-light);
    }
    .hw-nav-cta { margin: 12px 16px !important; display: flex !important; justify-content: center; border-radius: 3px !important; padding: 12px 20px !important; }
    .hw-dd-l1 { display: none; position: static; border: none; box-shadow: none; background: var(--hw-light); padding: 0; }
    .hw-has-dd.open .hw-dd-l1 { display: block; }
    .hw-dd-l1-direct a { padding: 11px 32px; border-left: none; border-bottom: 1px solid var(--hw-border); }
    .hw-dd-l1-direct a:hover { padding-left: 38px; border-left: none; }
}
@media(max-width:480px) {
    .hw-logo-text { display: none; }
    .hw-logo { padding: 0 14px; }
}

/* ── SCROLL ANIMATIONS ───────────────────────────────────── */
[data-reveal] { opacity: 0; transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
[data-reveal="fade-up"]    { transform: translateY(30px); }
[data-reveal="fade-down"]  { transform: translateY(-20px); }
[data-reveal="fade-left"]  { transform: translateX(30px); }
[data-reveal="fade-right"] { transform: translateX(-30px); }
[data-reveal="zoom"]       { transform: scale(0.95); }
[data-reveal="fade"]       { transform: none; }
[data-reveal].revealed     { opacity: 1; transform: none; }
[data-delay="100"]{transition-delay:.1s}[data-delay="200"]{transition-delay:.2s}
[data-delay="300"]{transition-delay:.3s}[data-delay="400"]{transition-delay:.4s}
[data-delay="500"]{transition-delay:.5s}[data-delay="600"]{transition-delay:.6s}
@media(prefers-reduced-motion:reduce) {
    [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ══════════════════════════════════════════════════════════
   FOOTER — Technisches Datenblatt
   ══════════════════════════════════════════════════════════ */
.hw-footer { background: var(--hw-dark); position: relative; }
.hw-footer::before {
    content: ''; display: block; height: 56px;
    background: linear-gradient(to bottom right, #fff 49.5%, var(--hw-dark) 50%);
}
.hw-footer-top { padding: 16px 0 64px !important; }
.hw-footer-top .row {
    display: grid !important;
    grid-template-columns: 1.5fr 1.1fr 0.9fr 1.3fr !important;
    gap: 0 !important; align-items: start !important;
    flex-wrap: unset !important; margin: 0 !important;
}
.hw-footer-top [class*="col-"] {
    flex: unset !important; max-width: unset !important; width: unset !important;
    padding: 0 36px !important; margin-bottom: 0 !important;
    border-right: 1px solid rgba(255,255,255,.06);
}
.hw-footer-top [class*="col-"]:last-child { border-right: none; }
.hw-footer-top [class*="col-"]:first-child { padding-left: 0 !important; padding-right: 40px !important; }
.hw-footer-top [class*="col-"]:last-child { padding-right: 0 !important; }
.hw-footer-top .mb-40 { margin-bottom: 0 !important; }

/* Logo & Info-Spalte */
.hw-footer-logo-img { height: 40px; width: auto; display: block; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .85; }
.hw-footer-logo-text { font-family: var(--ff-heading); font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.5px; display: block; margin-bottom: 3px; }
.hw-footer-logo-sub  { font-size: 9px; color: rgba(255,255,255,.25); letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 16px; }
.hw-footer-desc { font-size: 13px; line-height: 1.75; color: rgba(255,255,255,.38); margin-bottom: 16px; }

/* Social Icons */
.hw-footer-social { display: flex; gap: 8px; margin-top: 4px; }
.hw-footer-social a {
    width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.08); border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.3); font-size: 13px; transition: all .2s;
}
.hw-footer-social a:hover { border-color: var(--hw-accent); color: var(--hw-accent); background: rgba(249,115,22,.08); }

/* Spalten-Überschriften */
.hw-footer-heading {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px;
    color: var(--hw-accent); margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(249,115,22,.15); display: block;
}

/* Links */
.hw-footer-links { list-style: none; }
.hw-footer-links li { margin-bottom: 8px; }
.hw-footer-links a {
    font-size: 13px; color: rgba(255,255,255,.35); display: flex; align-items: center;
    gap: 8px; transition: color .2s, padding-left .2s;
}
.hw-footer-links a::before { content: '—'; color: var(--hw-accent); font-weight: 700; font-size: 11px; opacity: .7; }
.hw-footer-links a:hover { color: rgba(255,255,255,.8); padding-left: 4px; }

/* Öffnungszeiten */
.hw-footer-hours { list-style: none; }
.hw-footer-hours li {
    display: flex; justify-content: space-between; padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,.04); font-size: 12px; color: rgba(255,255,255,.38);
}
.hw-footer-hours li:last-child { border-bottom: none; }
.hw-footer-hours li.closed { color: rgba(255,255,255,.14); }
.hw-footer-hours li span:first-child { color: rgba(255,255,255,.22); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }

/* 24h Notdienst-Box im Footer — im Farbschema bleiben */
.hw-footer-notdienst {
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(249,115,22,.08);
    border: 1px solid rgba(249,115,22,.25);
    border-radius: 4px;
    display: flex; align-items: center; gap: 10px;
}
.hw-footer-notdienst-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--hw-accent); flex-shrink: 0;
    animation: hwBlink 1.4s ease-in-out infinite;
}
.hw-footer-notdienst p {
    margin: 0; font-size: 11px; font-weight: 700;
    color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 1px; line-height: 1.4;
}
.hw-footer-notdienst a {
    color: var(--hw-accent); font-size: 14px; font-weight: 800;
    letter-spacing: -0.3px; display: block; margin-top: 1px;
}
.hw-footer-notdienst a:hover { color: #fff; }

/* Kontakt */
.hw-footer-contact { list-style: none; }
.hw-footer-contact li {
    display: flex; gap: 10px; margin-bottom: 12px;
    font-size: 13px; color: rgba(255,255,255,.4); align-items: flex-start; line-height: 1.5;
}
.hw-footer-contact li i { color: var(--hw-accent); font-size: 12px; margin-top: 3px; flex-shrink: 0; }
.hw-footer-contact a { color: rgba(255,255,255,.4); }
.hw-footer-contact a:hover { color: var(--hw-accent); }

/* CTA-Button im Footer */
.hw-footer-cta-wrap { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06); }

/* Footer Bottom */
.hw-footer-bottom { border-top: 1px solid rgba(255,255,255,.05); padding: 18px 0; background: rgba(0,0,0,.2); }
.hw-footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.hw-footer-bottom-inner p { margin: 0; font-size: 11px; color: rgba(255,255,255,.18); }
.hw-footer-bottom-inner ul { display: flex; gap: 20px; list-style: none; }
.hw-footer-bottom-inner ul a { font-size: 11px; color: rgba(255,255,255,.18); }
.hw-footer-bottom-inner ul a:hover { color: var(--hw-accent); }
.hw-demo-badge { text-align: center; padding: 12px 0; font-size: 11px; color: rgba(255,255,255,.12); border-top: 1px solid rgba(255,255,255,.04); }
.hw-demo-badge a { color: var(--hw-accent); opacity: .4; }
.hw-demo-badge a:hover { opacity: 1; }
.hw-andi24-link { display: inline-flex; align-items: center; vertical-align: middle; }
.hw-andi24-logo { height: 56px; width: auto; vertical-align: middle; opacity: .4; transition: opacity .2s; }
.hw-andi24-logo:hover { opacity: .9; }

@media(max-width:991px) {
    .hw-footer::before { height: 36px; }
    .hw-footer-top .row { grid-template-columns: 1fr 1fr !important; }
    .hw-footer-top [class*="col-"] {
        padding: 30px 24px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,.05);
    }
    .hw-footer-top [class*="col-"]:first-child { padding-left: 24px !important; padding-right: 24px !important; }
    .hw-footer-top [class*="col-"]:last-child { padding-right: 24px !important; border-bottom: none; }
    .hw-footer-top [class*="col-"]:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.05) !important; }
}
@media(max-width:540px) {
    .hw-footer-top .row { grid-template-columns: 1fr !important; }
    .hw-footer-top [class*="col-"] { border-right: none !important; }
    .hw-footer-bottom-inner { flex-direction: column; text-align: center; gap: 8px; }
}