@charset "UTF-8";
/*
 * Estrel Tower — Global Footer (Contact Block + Copyright Strip)
 *
 * Figma 208:350 "Contact" — 1980×789 @ #FED3CD
 *   y=34:  Top row — Download pill (left) + Phone (right)
 *   y=210: Horizontal rule (#14172D 2px)
 *   y=281: Middle — Logo + 6 nav columns
 *   y=602: Giant display address (GT Alpina Italic 203)
 * Figma 75:9 "Copyright" — 1980×39 @ #FEF5EC
 *   Copyright text (Roboto 400 14/21) + 2 social icons (24×24)
 *
 * Both blocks sit at the tail of every page layout.
 */

/* ============================
   Outer wrapper (covers both blocks)
   ============================ */
.estrel-footer {
    container-type: inline-size;
    /* Full-viewport bleed; inner .estrel-contact-footer__inner uses max-width
       1920u + margin: 0 auto so content stays centered. */
    width: 100vw;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 calc(50% - 50vw) !important;
}

/* ============================
   CONTACT BLOCK (Figma 208:350)
   ============================ */
.estrel-contact-footer {
    --u: calc(min(100vw, 1920px) / 1920);
    width: 100%;
    background: #FED3CD;
    color: #14172D;
    /* !important overrides the global `section[class^="estrel-"]` rule in
       layout.css which otherwise pumps section-gap / container-padding
       onto this block and opens a huge empty band under the address. */
    padding: calc(34 * var(--u)) 0 calc(12 * var(--u)) !important;
    margin: 0 !important;
    max-width: none !important;
    /* Prevent overflow-induced horizontal scroll from the giant address */
    overflow-x: clip;
}

.estrel-contact-footer__inner {
    max-width: calc(1920 * var(--u));
    margin: 0 auto;
    padding: 0 calc(66 * var(--u));
}

/* ---------- TOP ROW: Download + Phone ---------- */
.estrel-contact-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: calc(8 * var(--u)) 0 calc(36 * var(--u));
}

.estrel-contact-footer__download {
    display: inline-flex;
    align-items: center;
    gap: calc(22 * var(--u));
    text-decoration: none;
    color: #14172D;
    cursor: pointer;
    transition: opacity 0.2s;
}
.estrel-contact-footer__download:hover { opacity: 0.7; }

.estrel-contact-footer__download-circle {
    width: calc(56 * var(--u));
    height: calc(56 * var(--u));
    border-radius: 50%;
    background: #14172D;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.estrel-contact-footer__download-circle svg {
    width: calc(31 * var(--u));
    height: calc(33 * var(--u));
    display: block;
}

.estrel-contact-footer__download-label {
    font-family: var(--font-soehne);
    font-weight: 400;
    font-size: calc(19 * var(--u));
    line-height: calc(22 * var(--u));
    letter-spacing: 0;
}

.estrel-contact-footer__phone {
    font-family: var(--font-alpina);
    font-style: italic;
    font-weight: 250;
    font-size: calc(64 * var(--u));
    line-height: calc(70 * var(--u));
    letter-spacing: 0;
    color: #14172D;
    margin: 0;
    text-align: right;
}

/* ---------- HORIZONTAL RULE (y=210) ---------- */
.estrel-contact-footer__rule {
    border: 0;
    border-top: 2px solid #14172D;
    margin: 0 calc(-30 * var(--u));   /* extend to Figma x=36 (66 - 30) */
    width: calc(1851 * var(--u));
    height: 0;
}

/* ---------- MIDDLE: Logo + 6 nav columns ---------- */
.estrel-contact-footer__middle {
    display: flex;
    align-items: flex-start;
    padding-top: calc(71 * var(--u));       /* y=281 - y=210 = 71u */
}

.estrel-contact-footer__logo {
    display: block;
    width: calc(207 * var(--u));
    color: #14172D;
    flex-shrink: 0;
    margin-right: calc(213 * var(--u));     /* Logo-end x=272 → Col1 x=485 */
}
.estrel-contact-footer__logo-svg {
    width: 100%;
    height: auto;
    display: block;
    color: #14172D;
}

.estrel-contact-footer__nav {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.estrel-contact-footer__nav-group {
    flex-shrink: 0;
}
/* Figma 75:18 edge-to-edge gaps between the 6 nav columns */
.estrel-contact-footer__nav-group[data-col="sitemap-b"]    { margin-left: calc(52 * var(--u)); }
.estrel-contact-footer__nav-group[data-col="unternehmen"]  { margin-left: calc(108 * var(--u)); }
.estrel-contact-footer__nav-group[data-col="wissen-a"]     { margin-left: calc(108 * var(--u)); }
.estrel-contact-footer__nav-group[data-col="wissen-b"]     { margin-left: calc(42 * var(--u)); }
.estrel-contact-footer__nav-group[data-col="rechtliches"]  { margin-left: calc(152 * var(--u)); }
.estrel-contact-footer__nav-group[data-col="sprache"]      { margin-left: calc(108 * var(--u)); }

/* Sub-columns without heading (Sitemap-B, Wissen-B) shift down so their
   first link aligns with the first link of the main column next to them.
   Figma: Sitemap-B at y=34, Wissen-B at y=33 within the 126u Middle group. */
.estrel-contact-footer__nav-group[data-col="sitemap-b"],
.estrel-contact-footer__nav-group[data-col="wissen-b"] {
    margin-top: calc(34 * var(--u));
}

.estrel-contact-footer__nav-heading {
    font-family: var(--font-soehne);
    font-weight: 400;
    font-size: calc(19 * var(--u));
    line-height: calc(22 * var(--u));
    letter-spacing: 0;
    color: #14172D;
    /* Figma: heading y=281 → first link y=316 → gap 13u below heading's 22-tall bbox */
    margin: 0 0 calc(13 * var(--u));
}

.estrel-contact-footer__nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.estrel-contact-footer__nav-list li {
    margin: 0;
    padding: 0;
}
.estrel-contact-footer__nav-list a {
    display: inline-block;
    font-family: var(--font-soehne);
    font-weight: 400;
    font-size: calc(14 * var(--u));
    line-height: calc(25 * var(--u));
    letter-spacing: 0;
    color: #14172D;
    text-decoration: none;
    padding: calc(4 * var(--u)) 0;
    transition: opacity 0.2s;
}
.estrel-contact-footer__nav-list a:hover { opacity: 0.6; }

/* ---------- GIANT ADDRESS ---------- */
.estrel-contact-footer__address {
    font-family: var(--font-alpina);
    font-style: italic;
    font-weight: 250;
    /* Figma 203u is sized for a 1980 bleed-container; inside the 1920 inner
       with 66u side padding (= 1788u usable), the rendered italic glyphs
       still clip "228". Scale down to 178u so the full word fits. */
    font-size: calc(178 * var(--u));
    /* Tight line-height close to Figma's 125u keeps the copyright strip near
       the glyph baseline. Ascenders still render via overflow-y:visible. */
    line-height: calc(140 * var(--u));
    letter-spacing: 0;
    color: #14172D;
    margin: calc(140 * var(--u)) 0 0;
    max-width: 100%;
    overflow-x: clip;
    overflow-y: visible;
    white-space: nowrap;
    /* Figma 208:350 places the address at rel-x 37 with width 1844 (1980-
       frame → near full-bleed). Center-aligned text balances the glyph
       weight with the tighter padding-scaled viewport. */
    text-align: center;
}

/* ============================
   COPYRIGHT STRIP (Figma 75:9 / 208:344)
   ============================ */
.estrel-footer__bottom {
    --u: calc(100cqw / 1920);
    width: 100%;
    background: #FEF5EC;
}
.estrel-footer__bottom-inner {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: calc(39 * var(--u));
    padding: 0 calc(160 * var(--u));
}

.estrel-footer__copyright {
    font-family: 'Roboto', var(--font-soehne), sans-serif;
    font-weight: 400;
    font-size: calc(14 * var(--u));
    line-height: calc(21 * var(--u));
    letter-spacing: 0;
    color: #14172D;
}

.estrel-footer__social {
    display: flex;
    align-items: center;
    gap: calc(14 * var(--u));
}
.estrel-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14172D;
    transition: opacity 0.3s;
}
.estrel-footer__social a:hover { opacity: 0.6; }
.estrel-footer__social svg {
    width: calc(24 * var(--u));
    height: calc(24 * var(--u));
}


/* ============================
   RESPONSIVE — Tablet (<1024)
   Stack columns, shrink display type.
   ============================ */
@media (max-width: 1024px) {
    .estrel-contact-footer {
        padding: 28px 0 24px;
    }
    .estrel-contact-footer__inner {
        padding: 0 24px;
    }
    .estrel-contact-footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        padding: 0 0 24px;
    }
    .estrel-contact-footer__download-circle { width: 48px; height: 48px; }
    .estrel-contact-footer__download-circle svg { width: 24px; height: 24px; }
    .estrel-contact-footer__download-label { font-size: 15px; line-height: 1.3; }
    .estrel-contact-footer__phone {
        font-size: 36px;
        line-height: 1.1;
        text-align: left;
    }
    .estrel-contact-footer__rule {
        margin: 0;
        width: 100%;
    }
    .estrel-contact-footer__middle {
        flex-direction: column;
        gap: 32px;
        padding-top: 28px;
    }
    .estrel-contact-footer__logo { margin-right: 0; width: 150px; }
    .estrel-contact-footer__nav {
        /* Mobile/Tablet: vertikal stack statt überladenem wrap-Layout.
           continuation-Gruppen (sitemap-b, wissen-b ohne eigene Heading) werden
           visuell mit ihren Parents zusammengezogen, damit Sitemap/Wissenswertes
           als eine Section wirken. */
        flex-wrap: nowrap;
        flex-direction: column;
        gap: 28px;
    }
    .estrel-contact-footer__nav-group[data-col] { margin-left: 0; }
    .estrel-contact-footer__nav-group[data-col="sitemap-b"],
    .estrel-contact-footer__nav-group[data-col="wissen-b"] {
        margin-top: -20px; /* gap 28 - 20 = 8px zur Vorgänger-Gruppe */
    }
    .estrel-contact-footer__nav-heading { font-size: 16px; line-height: 1.3; }

    /* Nav links: bump touch target to ≥44px via padding without changing visual size */
    .estrel-contact-footer__nav-list a {
        font-size: 13px;
        line-height: 1.6;
        padding: 10px 0;
        min-height: var(--touch-target-min);
        display: inline-flex;
        align-items: center;
    }

    .estrel-contact-footer__address {
        font-size: 64px;
        line-height: 1;
        margin: 24px 0 0;
        width: auto;
    }

    .estrel-footer__bottom-inner {
        height: auto;
        padding: 12px 24px;
    }
    .estrel-footer__copyright { font-size: 12px; line-height: 1.5; }
    .estrel-footer__social svg { width: 20px; height: 20px; }
    .estrel-footer__social { gap: 12px; }

    /* Social icons: expand touch target via ::before overlay (icons stay 20px visually) */
    .estrel-footer__social a {
        position: relative;
        isolation: isolate;
    }
    .estrel-footer__social a::before {
        content: '';
        position: absolute;
        /* expand 20px icon to var(--touch-target-min) tap area */
        inset: calc((var(--touch-target-min) - 20px) / -2);
        z-index: 1;
    }
}

/* ============================
   RESPONSIVE — Mobile (<768)
   ============================ */
@media (max-width: 767px) {
    .estrel-contact-footer__inner { padding: 0 16px; }
    .estrel-contact-footer__phone { font-size: 28px; }

    /* Address: at ≤767 the 44px font overflows containers narrower than ~350px.
       Use fluid sizing so the text always fits inside the padded inner (vw - 32px). */
    .estrel-contact-footer__address {
        font-size: clamp(28px, 10.5vw, 44px);
        white-space: nowrap;
    }

    .estrel-footer__bottom-inner { padding: 12px 16px; }
    .estrel-footer__copyright { font-size: 11px; }
    .estrel-footer__social svg { width: 18px; height: 18px; }

    /* Mobile social: ::before already set in tablet block; adjust inset for 18px icons */
    .estrel-footer__social a::before {
        inset: calc((var(--touch-target-min) - 18px) / -2);
    }
}

/* ============================
   RESPONSIVE — Small Mobile (<480)
   Address needs extra reduction for very narrow viewports (320–414px).
   "SONNENALLEE 225" rendered at 44px = ~400px wide; at 320px inner=288px → overflow.
   ============================ */
@media (max-width: 479px) {
    .estrel-contact-footer__address {
        font-size: clamp(22px, 8.8vw, 36px);
    }
}
