/* ── HBA FINANZEN – STYLES ── */
:root {
    --hba-lime: #aadd00;
    --hba-lime-bright: #c6ff00;
    --hba-lime-muted: #7aaa00;
    --hba-dark: #141410;
    --hba-dark2: #252520;
    --hba-text: #1c1c18;
    --hba-text-muted: #77776e;
    --hba-bg: #ffffff;
    --hba-bg-off: #f4f3ee;
    --hba-border: #e0dfd8;
    --hba-r: 18px;
    --hba-rsm: 12px;
}

@keyframes hba-fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hba-barGrow {
    from {
        width: 0;
    }

    to {
        width: 52px;
    }
}

@keyframes hba-bobScroll {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

@keyframes hba-shimmer {
    from {
        background-position: -200% 0;
    }

    to {
        background-position: 200% 0;
    }
}

/* ── HERO ── */
.hba-hero {
    position: relative;
    height: 220px;
    border-radius: 0 0 28px 28px;
    overflow: hidden;
    margin-bottom: 0;
}

.hba-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hba-hero-ph {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2a3d1a 0%, #3d5a22 40%, #1e2e10 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hba-hero-ph-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(170, 221, 0, .12) 1px, transparent 1px);
    background-size: 22px 22px;
}

.hba-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(8, 8, 6, .78) 0%, rgba(8, 8, 6, .3) 60%, rgba(8, 8, 6, .1) 100%),
        linear-gradient(to top, rgba(8, 8, 6, .7) 0%, transparent 50%);
}

.hba-hero-content {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 2;
}

.hba-hero-eyebrow {
    font-size: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hba-lime);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: hba-fadeUp .5s .3s both;
}

.hba-hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--hba-lime);
}

.hba-hero-h1 {
    font-size: 1.65rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    letter-spacing: -.025em;
    animation: hba-fadeUp .6s .45s both;
}

.hba-hero-accent {
    position: relative;
    display: inline-block;
}

.hba-hero-accent::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    height: 2px;
    background: var(--hba-lime);
    border-radius: 2px;
    width: 52px;
    animation: hba-barGrow .7s 1s ease both;
}

.hba-scroll-track {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2px;
    height: 44px;
    background: rgba(255, 255, 255, .15);
    border-radius: 2px;
    overflow: hidden;
}

.hba-scroll-thumb {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: var(--hba-lime);
    border-radius: 2px;
    animation: hba-bobScroll 2.4s ease-in-out infinite;
}

/* ── TOPBAR ── */
.hba-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
}

.hba-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}

.hba-logo-dot {
    width: 28px;
    height: 28px;
    background: var(--hba-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    color: var(--hba-dark);
}

.hba-logo-name {
    font-size: .95rem;
    font-weight: 700;
    color: white;
    letter-spacing: -.01em;
}

.hba-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: .85rem;
    cursor: pointer;
}

/* ── CONTENT WRAPPER ── */
.hba-wrap {
    max-width: 480px;
    margin: 0 auto;
    background: var(--hba-bg-off);
}

.hba-content {
    padding: 16px 14px 100px;
}

/* ── TABS ── */
.hba-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    animation: hba-fadeUp .5s .55s both;
}

.hba-tab {
    flex: 1;
    background: white;
    border: 1px solid var(--hba-border);
    border-radius: 22px;
    padding: 8px 10px;
    text-align: center;
    font-size: .62rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hba-text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.hba-tab.active {
    background: var(--hba-dark);
    color: var(--hba-lime);
    border-color: var(--hba-dark);
}

/* ── SUMMARY ROW ── */
.hba-summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.hba-sum-card {
    background: white;
    border-radius: var(--hba-rsm);
    border: 1px solid var(--hba-border);
    padding: 12px 10px;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
}

.hba-sum-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
}

.hba-sum-lbl {
    font-size: .58rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--hba-text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.hba-sum-val {
    font-size: .98rem;
    font-weight: 700;
    color: var(--hba-dark);
    letter-spacing: -.02em;
}

.hba-sum-bar {
    height: 3px;
    background: var(--hba-bg-off);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.hba-sum-bar-fill {
    height: 100%;
    background: var(--hba-lime);
    border-radius: 2px;
}

/* ── CARDS ── */
.hba-card {
    background: white;
    border-radius: var(--hba-r);
    border: 1px solid var(--hba-border);
    overflow: hidden;
    margin-bottom: 12px;
    transition: transform .3s cubic-bezier(.22, .68, 0, 1.2), box-shadow .3s;
    cursor: pointer;
}

.hba-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .09);
}

.hba-card-lime {
    background: var(--hba-lime);
    border-color: var(--hba-lime);
}

.hba-card-dark {
    background: var(--hba-dark2);
    border-color: var(--hba-dark2);
}

.hba-card-inner {
    padding: 18px;
}

.hba-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.hba-tag-pill {
    font-size: .6rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--hba-text-muted);
    font-weight: 500;
    border: 1px solid var(--hba-border);
    padding: 3px 9px;
    border-radius: 16px;
    background: var(--hba-bg-off);
}

.hba-tag-pill-lime {
    background: rgba(255, 255, 255, .35);
    border-color: transparent;
    color: rgba(0, 0, 0, .5);
}

.hba-tag-pill-dark {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .45);
}

.hba-arr {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--hba-border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    color: var(--hba-text-muted);
    transition: all .25s;
    flex-shrink: 0;
}

.hba-card:hover .hba-arr {
    background: var(--hba-dark);
    color: var(--hba-lime);
    border-color: var(--hba-dark);
    transform: rotate(-8deg) scale(1.08);
}

.hba-arr-dark {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .5);
}

.hba-card:hover .hba-arr-dark {
    background: var(--hba-lime);
    color: var(--hba-dark);
    border-color: var(--hba-lime);
}

.hba-card-lbl {
    font-size: .7rem;
    color: var(--hba-text-muted);
    margin-bottom: 3px;
}

.hba-card-lbl-lime {
    color: rgba(0, 0, 0, .5);
}

.hba-card-lbl-dark {
    color: rgba(255, 255, 255, .4);
}

.hba-card-val {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--hba-dark);
}

.hba-card-val-lime {
    color: var(--hba-dark);
}

.hba-card-val-dark {
    color: white;
}

.hba-divider {
    height: 1px;
    background: var(--hba-border);
    margin: 12px 0;
}

.hba-divider-lime {
    background: rgba(0, 0, 0, .1);
}

.hba-divider-dark {
    background: rgba(255, 255, 255, .08);
}

.hba-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.hba-r-lbl {
    font-size: .78rem;
    color: var(--hba-text-muted);
}

.hba-r-lbl-lime {
    color: rgba(0, 0, 0, .5);
}

.hba-r-lbl-dark {
    color: rgba(255, 255, 255, .4);
}

.hba-r-val {
    font-size: .82rem;
    font-weight: 600;
    color: var(--hba-dark);
}

.hba-r-val-dark {
    color: white;
}

.hba-restval {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1;
    margin: 4px 0 2px;
}

.hba-pos {
    color: var(--hba-lime-muted);
}

.hba-neg {
    color: #c43030;
}

.hba-badge-pos {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(170, 221, 0, .15);
    color: var(--hba-lime-muted);
    font-size: .65rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 10px;
    margin-top: 6px;
}

.hba-badge-neg {
    display: inline-flex;
    align-items: center;
    background: rgba(200, 40, 40, .1);
    color: #b83030;
    font-size: .65rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 10px;
    margin-top: 6px;
}

/* ── AUSGABEN ── */
.hba-aus-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 10px;
}

.hba-aus-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--hba-bg-off);
    border-radius: var(--hba-rsm);
    padding: 10px 13px;
    border: 1px solid var(--hba-border);
    transition: border-color .2s;
}

.hba-aus-item:hover {
    border-color: var(--hba-lime);
}

.hba-aus-name {
    font-size: .83rem;
    font-weight: 500;
    color: var(--hba-dark);
}

.hba-aus-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hba-aus-val {
    font-size: .83rem;
    font-weight: 600;
    color: var(--hba-dark);
}

.hba-aus-del {
    font-size: .7rem;
    color: var(--hba-text-muted);
    cursor: pointer;
    padding: 2px 7px;
    border-radius: 7px;
    transition: background .2s, color .2s;
    text-decoration: none;
}

.hba-aus-del:hover {
    background: rgba(200, 40, 40, .08);
    color: #b83030;
}

/* ── FORMULAR ── */
.hba-form-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hba-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.hba-f-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hba-f-lbl {
    font-size: .62rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--hba-text-muted);
    font-weight: 500;
}

.hba-f-input {
    background: var(--hba-bg-off);
    border: 1px solid var(--hba-border);
    border-radius: var(--hba-rsm);
    padding: 10px 12px;
    font-size: .85rem;
    color: var(--hba-dark);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    width: 100%;
}

.hba-f-input:focus {
    border-color: var(--hba-lime);
    box-shadow: 0 0 0 3px rgba(170, 221, 0, .14);
}

.hba-btn-lime {
    background: var(--hba-lime);
    color: var(--hba-dark);
    padding: 11px 20px;
    border-radius: 22px;
    font-size: .83rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    letter-spacing: -.01em;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .2s, transform .15s, box-shadow .2s;
}

.hba-btn-lime:hover {
    background: var(--hba-lime-bright);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(170, 221, 0, .3);
}

/* ── SUCCESS MESSAGE ── */
.hba-notice {
    background: rgba(170, 221, 0, .15);
    border: 1px solid rgba(170, 221, 0, .3);
    border-radius: var(--hba-rsm);
    padding: 10px 14px;
    font-size: .8rem;
    color: var(--hba-lime-muted);
    font-weight: 500;
    margin-bottom: 14px;
}

/* ── BOTTOM NAV ── */
.hba-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: white;
    border-top: 1px solid var(--hba-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 14px;
    z-index: 100;
}

.hba-bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    padding: 4px 16px;
    border-radius: 12px;
    transition: background .2s;
    text-decoration: none;
}

.hba-bnav-item:hover {
    background: var(--hba-bg-off);
}

.hba-bnav-ico {
    font-size: 1.1rem;
}

.hba-bnav-lbl {
    font-size: .6rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--hba-text-muted);
    font-weight: 500;
}

.hba-bnav-item.active .hba-bnav-lbl {
    color: var(--hba-lime-muted);
    font-weight: 700;
}

/* ── RESPONSIVE: TABLET ab 600px ── */
@media (min-width: 600px) {

  .hba-wrap {
    max-width: 700px;
    margin: 0 auto;
  }

  .hba-hero {
    height: 280px;
    border-radius: 0 0 32px 32px;
  }

  .hba-hero-h1 {
    font-size: 2.2rem;
  }

  .hba-content {
    padding: 20px 20px 100px;
  }

  .hba-summary-row {
    gap: 12px;
  }

  .hba-sum-card {
    padding: 16px 14px;
  }

  .hba-sum-val {
    font-size: 1.15rem;
  }

  .hba-card-val {
    font-size: 2rem;
  }

  .hba-restval {
    font-size: 2.4rem;
  }

  .hba-form-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hba-bottom-nav {
    max-width: 700px;
  }
}

/* ── RESPONSIVE: DESKTOP ab 960px ── */
@media (min-width: 960px) {

  .hba-wrap {
    max-width: 1080px;
  }

  .hba-hero {
    height: 340px;
    border-radius: 26px;
    margin: 16px 16px 0;
  }

  .hba-hero-h1 {
    font-size: 2.8rem;
  }

  .hba-hero-eyebrow {
    font-size: .72rem;
  }

  .hba-topbar {
    padding: 20px 28px;
  }

  .hba-logo-name {
    font-size: 1.1rem;
  }

  .hba-content {
    padding: 28px 28px 60px;
  }

  /* Summary Row – größer */
  .hba-summary-row {
    gap: 16px;
    margin-bottom: 20px;
  }

  .hba-sum-card {
    padding: 20px 18px;
  }

  .hba-sum-lbl {
    font-size: .68rem;
    margin-bottom: 6px;
  }

  .hba-sum-val {
    font-size: 1.3rem;
  }

  /* Cards nebeneinander auf Desktop */
  .hba-desktop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }

  .hba-desktop-grid .hba-card {
    margin-bottom: 0;
  }

  .hba-card-val {
    font-size: 2.2rem;
  }

  .hba-restval {
    font-size: 2.8rem;
  }

  .hba-card-inner {
    padding: 24px;
  }

  /* Formular 3-spaltig auf Desktop */
  .hba-form-row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
  }

  .hba-btn-lime {
    width: auto;
    padding: 11px 32px;
  }

  /* Ausgaben-Liste breiter */
  .hba-aus-item {
    padding: 13px 18px;
  }

  .hba-aus-name {
    font-size: .95rem;
  }

  .hba-aus-val {
    font-size: .95rem;
  }

  /* Bottom Nav auf Desktop oben */
  .hba-bottom-nav {
    top: 0;
    bottom: auto;
    border-top: none;
    border-bottom: 1px solid var(--hba-border);
    max-width: 1080px;
    padding: 14px 28px;
    justify-content: flex-start;
    gap: 8px;
  }

  .hba-bnav-item {
    flex-direction: row;
    gap: 7px;
    padding: 8px 16px;
  }

  .hba-bnav-lbl {
    font-size: .72rem;
  }

  .hba-content {
    padding-top: 80px;
  }
}

/* ── RESPONSIVE: LARGE DESKTOP ab 1280px ── */
@media (min-width: 1280px) {

  .hba-wrap {
    max-width: 1200px;
  }

  .hba-hero {
    height: 400px;
    margin: 20px 20px 0;
  }

  .hba-hero-h1 {
    font-size: 3.2rem;
  }

  .hba-summary-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .hba-sum-val {
    font-size: 1.5rem;
  }

  .hba-card-val {
    font-size: 2.6rem;
  }

  .hba-restval {
    font-size: 3.2rem;
  }
}