/*
Theme Name: Everroots Familienportal
Theme URI: https://everroots.net/
Author: Everroots
Description: Freundliches, mobiles WordPress-Theme für das private Everroots Familienportal.
Version: 0.9.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: denkert-familienportal
License: GPL-2.0-or-later
*/

:root {
    --df-bg: #f6f4ef;
    --df-surface: #ffffff;
    --df-ink: #17233a;
    --df-muted: #687083;
    --df-line: #e7e2d8;
    --df-blue: #2f6d58;
    --df-blue-dark: #1d4f3d;
    --df-sky: #dbeaf8;
    --df-coral: #e47a62;
    --df-sage: #a9c6b4;
    --df-radius: 24px;
    --df-shadow: 0 20px 55px rgba(23, 35, 58, .1);
    --df-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--df-ink);
    background:
        radial-gradient(circle at 4% 24%, rgba(219,234,248,.55) 0 92px, transparent 94px),
        radial-gradient(circle at 96% 76%, rgba(169,198,180,.35) 0 130px, transparent 132px),
        var(--df-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body::before { position: fixed; top: 18%; left: -75px; z-index: -2; width: 150px; height: 150px; border: 20px solid rgba(219,234,248,.34); border-radius: 50%; content: ""; pointer-events: none; }
body::after { position: fixed; right: -45px; bottom: 12%; z-index: -2; width: 115px; height: 115px; border-radius: 48% 52% 42% 58%; content: ""; background: rgba(228,122,98,.11); pointer-events: none; transform: rotate(18deg); }
a { color: var(--df-blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--df-blue-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--df-coral); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; display: block; width: auto; height: auto; padding: 12px 16px; margin: 8px; clip: auto; color: var(--df-ink); background: #fff; }

.df-shell { width: min(calc(100% - 40px), var(--df-width)); margin-inline: auto; }
.df-site-header { position: sticky; top: 0; z-index: 100; padding: 14px 0; border-bottom: 1px solid rgba(231,226,216,.72); background: rgba(246,244,239,.88); box-shadow: 0 8px 30px rgba(23,35,58,.045); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.admin-bar .df-site-header { top: 32px; }
.df-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.df-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--df-ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.df-brand-mark { display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 18px; background: #fff9ef; box-shadow: 0 8px 20px rgba(43,94,167,.16); }
.df-brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.df-brand .custom-logo { display: block; width: auto; max-height: 48px; }
.df-brand-text small { display: block; color: var(--df-muted); font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.df-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.df-nav a { color: var(--df-ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.df-nav a:hover, .df-nav .current-menu-item > a { color: var(--df-blue); }
.df-nav li { position: relative; }
.df-nav a::before { display: inline-grid; width: 24px; height: 24px; margin-right: 7px; place-items: center; border-radius: 50% 44% 56% 48%; color: #315b43; background: #e4f0e8; font-size: 12px; vertical-align: -2px; content: "•"; transform: rotate(-4deg); }
.df-nav li:nth-child(2n) a::before { color: #8a5e27; background: #fff0d6; content: "◇"; transform: rotate(5deg); }
.df-nav li:nth-child(3n) a::before { color: #315d7a; background: #e5f1f8; content: "○"; }
.df-nav li:nth-child(4n) a::before { color: #805d8e; background: #f0e7f5; content: "♡"; }
.df-menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--df-line); border-radius: 14px; color: var(--df-ink); background: #fff; cursor: pointer; }
.df-menu-toggle svg { width: 22px; }

.df-main { min-height: 65vh; }
.df-login-stage { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(260px,.85fr) minmax(330px,430px); align-items: center; gap: clamp(55px,10vw,150px); width: min(calc(100% - 40px),1040px); min-height: calc(100vh - 160px); margin-inline: auto; padding: 55px 0 100px; }
.df-login-stage::before,.df-login-stage::after { position: absolute; z-index: -1; border-radius: 50%; content: ""; pointer-events: none; }
.df-login-stage::before { top: 8%; left: -18%; width: 420px; height: 420px; background: rgba(219,234,248,.64); }
.df-login-stage::after { right: -13%; bottom: 3%; width: 270px; height: 270px; background: rgba(169,198,180,.28); }
.df-login-welcome { position: relative; min-height: 390px; padding: 154px 0 0 30px; }
.df-welcome-mark { position: absolute; top: 18px; left: 16px; z-index: 2; width: 125px; height: 125px; border-radius: 38px; object-fit: cover; filter: drop-shadow(0 14px 24px rgba(23,35,58,.14)); transform: rotate(-3deg); }
.df-login-welcome p,.df-login-welcome strong,.df-login-welcome small { position: relative; z-index: 2; display: block; margin: 0; }
.df-login-welcome p { color: var(--df-muted); font-size: 15px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.df-login-welcome strong { margin-top: 4px; font-family: Georgia,"Times New Roman",serif; font-size: clamp(50px,7vw,80px); font-weight: 500; line-height: 1; letter-spacing: -.055em; }
.df-login-welcome small { margin: 20px 0 0 48px; color: var(--df-blue); font-size: 17px; }
.df-orbit { position: absolute; display: block; border-radius: 50%; }
.df-orbit-one { top: 22px; right: 25px; width: 92px; height: 92px; background: rgba(248,188,94,.25); }
.df-orbit-two { right: 105px; bottom: 35px; width: 54px; height: 54px; background: rgba(43,94,167,.16); }
.df-orbit-three { bottom: 0; left: 0; width: 125px; height: 125px; border: 2px solid rgba(169,198,180,.48); }
.df-login-card { width: 100%; padding: clamp(25px,6vw,42px); border: 1px solid rgba(231,226,216,.9); border-radius: 36px 26px 42px 30px; background: rgba(255,255,255,.94); box-shadow: var(--df-shadow); }
.df-login-symbol { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 25px; border-radius: 17px; color: var(--df-blue-dark); background: var(--df-sky); }
.df-login-symbol svg { width: 25px; height: 25px; }
.df-login-card h1 { margin: 0 0 7px; font-family: Georgia,"Times New Roman",serif; font-size: 42px; font-weight: 500; letter-spacing: -.035em; }
.df-login-card > p { margin: 0 0 25px; color: var(--df-muted); }
.df-login-form label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 750; }
.df-login-form input[type=text], .df-login-form input[type=password] { box-sizing: border-box; width: 100%; min-height: 49px; padding: 10px 12px; border: 1px solid #cfd4dc; border-radius: 13px; background: #fff; font-size: 16px; }
.df-login-form .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.df-login-form input[type=submit] { width: 100%; min-height: 50px; margin-top: 12px; border: 0; border-radius: 13px; color: #fff; background: var(--df-blue); font-weight: 800; cursor: pointer; }
.df-access-note { margin: 24px 0 0!important; padding-top: 18px; border-top: 1px solid var(--df-line); color: var(--df-muted); font-size: 14px; }
.df-access-note a { font-weight: 750; }
.df-hero { position: relative; overflow: hidden; padding: 86px 0 104px; }
.df-hero::before, .df-hero::after { position: absolute; content: ""; border-radius: 999px; filter: blur(1px); pointer-events: none; }
.df-hero::before { top: -150px; right: -110px; width: 460px; height: 460px; background: rgba(219,234,248,.8); }
.df-hero::after { bottom: 0; left: -120px; width: 310px; height: 310px; background: rgba(169,198,180,.28); }
.df-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(330px,.75fr); align-items: center; gap: clamp(50px,8vw,110px); }
.df-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--df-blue); font-size: 13px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.df-eyebrow::before { width: 28px; height: 2px; content: ""; background: currentColor; }
.df-hero h1 { max-width: 730px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(52px,8vw,92px); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.df-hero h1 em { color: var(--df-blue); font-weight: inherit; }
.df-hero-copy { max-width: 610px; margin: 26px 0 0; color: var(--df-muted); font-size: clamp(18px,2vw,21px); }
.df-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.df-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px; border: 1px solid transparent; border-radius: 15px; color: #fff; background: var(--df-blue); font-size: 15px; font-weight: 800; text-decoration: none; box-shadow: 0 10px 24px rgba(43,94,167,.2); transition: transform .18s ease, background .18s ease; }
.df-button:hover { color: #fff; background: var(--df-blue-dark); transform: translateY(-2px); }
.df-button-secondary { color: var(--df-ink); background: rgba(255,255,255,.8); border-color: var(--df-line); box-shadow: none; }
.df-button-secondary:hover { color: var(--df-blue); background: #fff; }

.df-phone { position: relative; width: min(100%,360px); margin-inline: auto; padding: 11px; border-radius: 48px; background: #18253b; box-shadow: 0 35px 80px rgba(23,35,58,.28); transform: rotate(2deg); }
.df-phone::before { position: absolute; top: 18px; left: 50%; z-index: 2; width: 90px; height: 24px; border-radius: 20px; content: ""; background: #18253b; transform: translateX(-50%); }
.df-phone-screen { min-height: 590px; padding: 62px 22px 24px; border-radius: 38px; background: linear-gradient(155deg,#f8fbff,#f3efe7); }
.df-phone-top { color: var(--df-muted); font-size: 12px; font-weight: 700; }
.df-phone-title { margin: 8px 0 22px; font-family: Georgia,"Times New Roman",serif; font-size: 33px; line-height: 1.05; }
.df-phone-card { margin-top: 12px; padding: 17px; border-radius: 18px; background: rgba(255,255,255,.92); border: 1px solid rgba(231,226,216,.8); box-shadow: 0 10px 30px rgba(23,35,58,.07); }
.df-phone-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 20px; border-radius: 13px; color: var(--df-blue-dark); background: var(--df-sky); font-size: 21px; }
.df-phone-card strong { display: block; font-size: 16px; }
.df-phone-card span { color: var(--df-muted); font-size: 13px; }
.df-phone-status { display: flex; align-items: center; gap: 7px; margin-top: 13px; color: #237253; font-size: 12px; font-weight: 750; }
.df-phone-status::before { width: 8px; height: 8px; border-radius: 50%; content: ""; background: #4da77d; }

.df-section { padding: 90px 0; }
.df-section-white { background: #fff; }
.df-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.df-section-head h2 { max-width: 650px; margin: 0; font-family: Georgia,"Times New Roman",serif; font-size: clamp(38px,5vw,58px); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; }
.df-section-head p { max-width: 430px; margin: 0; color: var(--df-muted); }
.df-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.df-feature { min-height: 280px; padding: 28px; border: 1px solid var(--df-line); border-radius: var(--df-radius); background: var(--df-surface); box-shadow: 0 12px 38px rgba(23,35,58,.05); }
.df-feature:nth-child(2) { background: #edf5fb; }
.df-feature:nth-child(3) { background: #edf3ee; }
.df-feature-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: var(--df-blue-dark); background: var(--df-sky); font-size: 24px; }
.df-feature h3 { margin: 52px 0 8px; font-size: 22px; }
.df-feature p { margin: 0; color: var(--df-muted); }
.df-badge { display: inline-block; margin-top: 18px; padding: 5px 9px; border-radius: 99px; color: #785b11; background: #fff4cc; font-size: 12px; font-weight: 800; }

.df-trust { display: grid; grid-template-columns: .75fr 1.2fr; gap: 60px; align-items: center; }
.df-trust-card { padding: 34px; border-radius: 30px; color: #fff; background: var(--df-blue-dark); box-shadow: var(--df-shadow); }
.df-trust-card strong { display: block; font-family: Georgia,"Times New Roman",serif; font-size: 72px; font-weight: 500; line-height: 1; }
.df-trust-card span { display: block; margin-top: 12px; color: #d8e8fb; }
.df-trust-copy h2 { margin: 0 0 18px; font-family: Georgia,"Times New Roman",serif; font-size: clamp(38px,5vw,58px); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; }
.df-checks { display: grid; gap: 13px; margin: 26px 0 0; padding: 0; list-style: none; }
.df-checks li { display: flex; gap: 12px; color: var(--df-muted); }
.df-checks li::before { display: grid; flex: 0 0 25px; place-items: center; width: 25px; height: 25px; border-radius: 50%; content: "✓"; color: #237253; background: #ddf2e6; font-size: 13px; font-weight: 900; }

.df-content { width: min(calc(100% - 40px), 880px); margin: 40px auto 90px; padding: clamp(25px,5vw,55px); border-radius: 28px; background: #fff; box-shadow: var(--df-shadow); }
.df-content-wide { position: relative; width: min(calc(100% - 24px), 1080px); padding: 0; background: transparent; box-shadow: none; }
.df-has-mail-portal .df-main { position: relative; overflow: clip; }
.df-has-mail-portal .df-main::before,.df-has-mail-portal .df-main::after { position: absolute; z-index: -1; border-radius: 50%; content: ""; }
.df-has-mail-portal .df-main::before { top: 120px; left: -150px; width: 370px; height: 370px; background: rgba(219,234,248,.52); }
.df-has-mail-portal .df-main::after { top: 850px; right: -110px; width: 260px; height: 260px; background: rgba(169,198,180,.3); }
.df-has-mail-portal .df-main { background-image: radial-gradient(circle at 9% 32%,rgba(228,122,98,.09) 0 9px,transparent 10px),radial-gradient(circle at 91% 62%,rgba(43,94,167,.09) 0 13px,transparent 14px),radial-gradient(circle at 16% 84%,rgba(169,198,180,.14) 0 20px,transparent 21px); background-size: 360px 420px,430px 520px,540px 590px; }
.df-page-header { margin-bottom: 32px; }
.df-page-header h1 { margin: 0; font-family: Georgia,"Times New Roman",serif; font-size: clamp(42px,6vw,68px); font-weight: 500; line-height: 1.03; letter-spacing: -.04em; }
.df-entry > *:first-child { margin-top: 0; }
.df-entry > *:last-child { margin-bottom: 0; }
.df-entry h2, .df-entry h3 { line-height: 1.2; }
.df-entry input, .df-entry textarea, .df-entry select { max-width: 100%; }
.df-entry .dfm-portal { max-width: 100%; margin-top: 0; padding-inline: 0; }
.df-entry .dfm-hero { background: linear-gradient(145deg,#eef5fb,#fff); }
.df-entry .dfm-portal { isolation: isolate; }
.df-entry .dfm-portal::before { position: fixed; z-index: -1; right: 3vw; bottom: 7vh; width: 180px; height: 180px; border-radius: 61% 39% 52% 48%; content: ""; background: rgba(248,188,94,.12); transform: rotate(16deg); pointer-events: none; }

.df-site-footer { padding: 46px 0 30px; color: #c8d5e7; background: #15233a; }
.df-footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 35px; }
.df-footer-brand { color: #fff; font-weight: 800; }
.df-footer-copy { max-width: 480px; margin: 8px 0 0; color: #9eafc5; font-size: 14px; }
.df-footer-nav ul { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.df-footer-nav a { color: #c8d5e7; font-size: 14px; text-decoration: none; }
.df-footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #8294ad; font-size: 13px; }

@media (max-width: 860px) {
    .df-menu-toggle { display: inline-flex; }
    .df-nav { position: absolute; top: 74px; right: 20px; left: 20px; display: none; padding: 18px; border: 1px solid var(--df-line); border-radius: 18px; background: #fff; box-shadow: var(--df-shadow); }
    .df-nav.is-open { display: block; }
    .df-nav ul { align-items: stretch; flex-direction: column; gap: 5px; }
    .df-nav a { display: block; padding: 10px; }
    .df-hero { padding-top: 54px; }
    .df-hero-grid { grid-template-columns: 1fr; }
    .df-phone { width: min(88%,350px); }
    .df-section-head, .df-footer-grid { align-items: flex-start; flex-direction: column; }
    .df-feature-grid { grid-template-columns: 1fr; }
    .df-feature { min-height: 0; }
    .df-feature h3 { margin-top: 34px; }
    .df-trust { grid-template-columns: 1fr; }
    .df-login-stage { grid-template-columns: 1fr; gap: 10px; width: min(calc(100% - 30px),520px); }
    .df-login-welcome { min-height: 250px; padding: 128px 0 0 18px; }
    .df-welcome-mark { top: 8px; left: 8px; width: 104px; height: 104px; }
    .df-login-welcome strong { font-size: clamp(48px,13vw,68px); }
    .df-orbit-one { top: 2px; right: 18px; width: 68px; height: 68px; }
    .df-orbit-two { right: 90px; bottom: 5px; }
    .df-orbit-three { width: 82px; height: 82px; }
}

@media (max-width: 782px) { .admin-bar .df-site-header { top: 46px; } }

@media (max-width: 520px) {
    .df-shell { width: min(calc(100% - 24px), var(--df-width)); }
    .df-brand-text small { display: none; }
    .df-hero h1 { font-size: 50px; }
    .df-actions { flex-direction: column; }
    .df-button { width: 100%; }
    .df-phone { width: 100%; border-radius: 40px; }
    .df-phone-screen { min-height: 540px; border-radius: 31px; }
    .df-section { padding: 66px 0; }
    .df-content { width: calc(100% - 20px); margin-top: 18px; border-radius: 20px; }
    .df-content-wide { padding-inline: 0; background: transparent; }
    .df-footer-nav ul { flex-direction: column; gap: 8px; }
    .df-login-stage { min-height: auto; padding: 28px 0 70px; }
    .df-login-card { border-radius: 28px 22px 32px 24px; }
}

/* Warm illustrated Everroots landscape across portal, login and public views. */
body {
    background-color: #fbf6ec;
    background-image: linear-gradient(rgba(255,250,242,.18),rgba(255,250,242,.18)),url("assets/images/everroots-portal-background.png");
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
body::before,body::after,.df-has-mail-portal .df-main::before,.df-has-mail-portal .df-main::after { display: none; }
.df-has-mail-portal .df-main { background: transparent; }
.df-login-stage::before,.df-login-stage::after { opacity: .18; }
.df-login-card { background: rgba(255,253,248,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 760px) { body { background-attachment: scroll; background-size: auto 100vh; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto!important; transition: none!important; }
}

/* Everroots 0.7 – warm illustrated app shell from the approved preview. */
.df-has-mail-portal .df-site-header {
    padding: 16px 0 9px;
    border: 0;
    background: linear-gradient(180deg,rgba(255,250,241,.96),rgba(246,244,239,.8));
    box-shadow: none;
}
.df-has-mail-portal .df-header-inner {
    width: min(calc(100% - 34px), 1180px);
    min-height: 104px;
    padding: 12px 25px;
    border: 1px solid rgba(231,219,200,.8);
    border-radius: 25px 34px 28px 22px;
    background: rgba(255,253,248,.96);
    box-shadow: 0 14px 34px rgba(86,67,38,.13);
}
.df-has-mail-portal .df-brand { gap: 15px; }
.df-has-mail-portal .df-brand-mark {
    width: 82px;
    height: 82px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 8px 12px rgba(42,63,49,.13));
}
.df-has-mail-portal .df-brand-text {
    font-family: Georgia,"Times New Roman",serif;
    font-size: clamp(34px,4.2vw,52px);
    font-weight: 700;
    letter-spacing: -.045em;
}
.df-has-mail-portal .df-brand-text small { display: none; }
.df-has-mail-portal .df-nav ul { gap: clamp(11px,1.6vw,24px); }
.df-has-mail-portal .df-nav li { min-width: 51px; }
.df-has-mail-portal .df-nav a {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 4px;
    color: #91a8b9;
}
.df-has-mail-portal .df-nav a::before { display: none; }
.df-nav-icon {
    position: relative;
    display: grid;
    width: 49px;
    height: 49px;
    place-items: center;
    border-radius: 17px 13px 18px 14px;
    background: #eef3f6;
    transition: color .18s ease, transform .18s ease, background .18s ease;
}
.df-nav-icon::after {
    position: absolute;
    right: 6px;
    bottom: -7px;
    left: 6px;
    height: 5px;
    border-radius: 9px;
    background: currentColor;
    content: "";
    opacity: .28;
}
.df-nav-icon svg { width: 28px; height: 28px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.df-nav-icon img { display:block; width:42px; height:42px; object-fit:contain; filter:drop-shadow(0 4px 7px rgba(23,35,58,.12)); }
.df-nav-icon svg circle,.df-nav-icon svg rect { vector-effect: non-scaling-stroke; }
.df-nav-label {
    position: absolute;
    top: calc(100% + 9px);
    left: 50%;
    z-index: 4;
    padding: 4px 8px;
    border-radius: 8px;
    color: #fff;
    background: #234c38;
    box-shadow: 0 5px 14px rgba(23,35,58,.15);
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%,-4px);
    transition: opacity .15s ease,transform .15s ease;
}
.df-has-mail-portal .df-nav a:hover .df-nav-label,.df-has-mail-portal .df-nav a:focus-visible .df-nav-label { opacity: 1; transform: translate(-50%,0); }
.df-has-mail-portal .df-nav a:hover .df-nav-icon,.df-has-mail-portal .df-nav a:focus-visible .df-nav-icon { color: #4f8b61; background: #e8f1e5; transform: translateY(-2px) rotate(-2deg); }
.df-has-mail-portal .df-nav li:first-child .df-nav-icon { color: #4f8b61; background: #e8f1e5; }
.df-has-mail-portal .df-content-wide { width: min(calc(100% - 24px), 1180px); margin-top: 18px; }

@media (max-width: 860px) {
    .df-has-mail-portal .df-header-inner { min-height: 76px; padding: 9px 13px; border-radius: 22px; }
    .df-has-mail-portal .df-brand-mark { width: 60px; height: 60px; }
    .df-has-mail-portal .df-brand-text { font-size: clamp(28px,8vw,38px); }
    .df-has-mail-portal .df-nav { top: calc(100% + 6px); }
    .df-has-mail-portal .df-nav ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
    .df-has-mail-portal .df-nav a { display: flex; justify-content: flex-start; gap: 11px; padding: 7px; }
    .df-has-mail-portal .df-nav-icon { flex: 0 0 42px; width: 42px; height: 42px; }
    .df-has-mail-portal .df-nav-label { position: static; padding: 0; color: var(--df-ink); background: transparent; box-shadow: none; font-size: 14px; opacity: 1; transform: none; }
}

@media (max-width: 520px) {
    .df-has-mail-portal .df-site-header { padding: 8px 0 5px; }
    .df-has-mail-portal .df-header-inner { width: calc(100% - 16px); }
    .df-has-mail-portal .df-brand-mark { width: 52px; height: 52px; }
    .df-has-mail-portal .df-brand-text { font-size: 30px; }
    .df-has-mail-portal .df-content-wide { width: calc(100% - 12px); }
}
