/* =========================================
   Harztor Bürger-App — Stylesheet v1.4.0
   Farbe: #3CA94B  |  Oswald 600 + Poppins 400/500/600
   WCAG AA: touch targets ≥44px, text ≥15px

   TYPO-SYSTEM — nur diese Größen, sonst nichts:
   Oswald 600 / 28px  → Header "Bürger-App", Section-Titel, Melder-Titel
   Poppins 600 / 20px → Kachel-Labels, Kontakt-Labels, News-Titel
   Poppins 500 / 20px → Melder-Subtitle
   Poppins 600 / 16px → News-Datum (Metadaten)
   Poppins 400 / 16px → Footer
   ========================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --gruen:      #3CA94B;
    --gruen-dark: #2e8239;
    --gruen-light:#e8f6ea;
    --text:       #1a1a1a;
    --text-soft:  #555;
    --bg:         #f0f4f0;
    --white:      #ffffff;
    --radius:     14px;
    --shadow:     0 2px 10px rgba(0,0,0,.09);
}

html { scroll-behavior: smooth; }

body.htba-app {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
}

/* ── HEADER ─────────────────────────────── */

.htba-header {
    background: var(--gruen);
    padding: 16px 20px 14px;
    padding-top: calc(16px + env(safe-area-inset-top));
    display: flex;
    align-items: center;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.htba-logo {
    height: 32px;
    width: auto;
    flex-shrink: 0;
}

.htba-header-sub {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: rgba(255,255,255,.92);
    letter-spacing: .5px;
}

/* ── HAUPTINHALT ─────────────────────────── */

.htba-main {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.htba-section-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 28px;
    color: var(--gruen);
    margin-bottom: 14px;
    letter-spacing: .3px;
}

/* ── LEBENSLAGEN GRID ────────────────────── */

.htba-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.htba-tile {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 14px 20px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    -webkit-tap-highlight-color: transparent;
}

.htba-tile:active {
    transform: scale(.97);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.htba-tile-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gruen-light);
    border-radius: 50%;
    color: var(--gruen);
    flex-shrink: 0;
}

.htba-tile-icon i {
    font-size: 28px;
    line-height: 1;
}

.htba-tile-label {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: var(--text);
}

/* ── SUCHE (Ivory Search) ────────────────── */

.htba-section .is-search-form {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.htba-section .is-search-form label {
    flex: 1 !important;
    display: block !important;
    width: auto !important;
    margin-bottom: 0 !important;
    min-width: 0 !important;
}

.htba-section .is-search-form input.is-search-input {
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: var(--text) !important;
    height: 56px !important;
    border: 1px solid #000 !important;
    border-radius: 50px !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    outline: none !important;
}

.htba-section .is-search-input::placeholder { color: #818181 !important; }

.htba-section .is-search-form button.is-search-submit,
.htba-section .is-search-form input[type="submit"].is-search-submit {
    font-family: 'Oswald', sans-serif !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    color: #fff !important;
    background-color: var(--gruen) !important;
    height: 56px !important;
    border-radius: 50px !important;
    padding: 0 22px !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

/* ── HARZTOR-MELDER ──────────────────────── */

/* Zwei Buttons übereinander in einer Section */
.htba-section--actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.htba-melder-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--gruen);
    color: var(--white);
    border-radius: var(--radius);
    padding: 22px 48px 22px 22px;
    min-height: 88px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: background .15s, transform .15s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.htba-melder-btn > i {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.htba-melder-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: .3px;
}

.htba-melder-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0;
    opacity: 1;
}

.htba-melder-btn:active {
    background: var(--gruen-dark);
    transform: scale(.98);
}

/* Sekundär-Variante: Müllkalender — weiß mit grünem Rand */
.htba-melder-btn--secondary {
    background: var(--white);
    color: var(--text);
    border: 2px solid var(--gruen);
}

.htba-melder-btn--secondary > i { color: var(--gruen); }
.htba-melder-btn--secondary .htba-melder-text { color: var(--text); }
.htba-melder-btn--secondary .htba-melder-sub { color: var(--text-soft); }

.htba-melder-btn--secondary:active {
    background: var(--gruen-light);
    transform: scale(.98);
}

.htba-melder-btn--secondary::after { color: var(--gruen); }

.htba-melder-btn::after {
    content: '›';
    position: absolute;
    right: 20px;
    font-size: 28px;
    opacity: .7;
}

/* ── NACHRICHTEN KARUSSELL ───────────────── */

.htba-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.htba-carousel::-webkit-scrollbar { display: none; }

.htba-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s;
}

.htba-card:active { transform: scale(.97); }

.htba-card-img {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: var(--gruen-light);
}

.htba-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.htba-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.htba-card-date {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--gruen);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.htba-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}

/* ── KONTAKT ─────────────────────────────── */

.htba-kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.htba-kontakt-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 12px;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s;
}

.htba-kontakt-item:active { transform: scale(.97); }

/* 3 Items: letztes (Ansprechpartner) über volle Breite */
.htba-kontakt-item:last-child {
    grid-column: 1 / -1;
}

.htba-kontakt-item i {
    font-size: 26px;
    line-height: 1;
    color: var(--gruen);
    flex-shrink: 0;
}

/* ── FOOTER ──────────────────────────────── */

.htba-footer {
    text-align: center;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-soft);
}

.htba-footer a {
    color: var(--text-soft);
    text-decoration: none;
}

.htba-footer a:hover,
.htba-footer a:focus { color: var(--gruen); }
