/* Own page frame of mail-file.com: static header, hero with the uploader and compact footer. */
body.mf-public { --nm-color-primary:#1f5fbf; --nm-color-primary-soft:#e4eefc; --nm-color-on-primary:#ffffff; --nm-color-focus:var(--nm-color-primary); background:var(--nm-color-page); color:var(--nm-color-text); }
[data-theme='dark'] body.mf-public { --nm-color-primary:#8fb6f2; --nm-color-primary-soft:#1a2a40; --nm-color-on-primary:#0f1f36; }
html:has(body.mf-public) { scroll-padding-top:110px; scroll-behavior:smooth; }
.mf-public main { min-height:0; }

.mf-header { position:sticky; z-index:900; top:0; border-bottom:1px solid var(--nm-color-line); background:var(--nm-color-surface); }
.mf-header-inner { display:grid; grid-template-columns:1fr auto 1fr; gap:var(--nm-space-sm) var(--nm-space-lg); align-items:center; padding-block:var(--nm-space-md); }
.mf-header-logo { display:inline-flex; align-items:center; justify-self:start; color:inherit; text-decoration:none; }
.mf-logo { display:inline-flex; gap:12px; align-items:center; color:var(--nm-color-text); }
.mf-logo-mark { flex:0 0 auto; width:44px; height:44px; }
.mf-logo-mark rect { fill:#1f5fbf; }
.mf-logo-mark path { fill:none; stroke:#fff; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.mf-logo-text { display:grid; gap:3px; }
.mf-logo-name { font-family:'Raleway', sans-serif; font-size:1.6rem; font-weight:800; letter-spacing:-.03em; line-height:1; white-space:nowrap; }
.mf-logo-name span { color:var(--nm-color-primary); }
.mf-logo-tagline { color:var(--nm-color-text-muted); font-size:.66rem; letter-spacing:.04em; line-height:1; white-space:nowrap; }
.mf-header-nav { display:flex; flex-wrap:wrap; justify-content:center; gap:4px var(--nm-space-md); }
.mf-header-nav a { padding-block:10px; border-bottom:2px solid transparent; color:var(--nm-color-text-muted); font-weight:700; text-decoration:none; }
.mf-header-nav a:hover, .mf-header-nav a:focus-visible { border-color:var(--nm-color-primary); color:var(--nm-color-primary); }
.mf-header-controls { display:flex; align-items:center; justify-self:end; gap:var(--nm-space-xs); }
.mf-theme-toggle { display:grid; min-width:44px; min-height:44px; place-items:center; border:1px solid var(--nm-color-line); border-radius:var(--nm-radius); background:var(--nm-color-page); color:var(--nm-color-text); cursor:pointer; font:inherit; }
.mf-theme-toggle:hover, .mf-theme-toggle:focus-visible { border-color:var(--nm-color-primary); color:var(--nm-color-primary); }

/* Language dropdown with two-colour flags drawn in CSS, so no flag sprite has to load. */
.mf-language { position:relative; }
.mf-language summary { display:flex; gap:8px; align-items:center; min-height:44px; padding:0 12px; border:1px solid var(--nm-color-line); border-radius:var(--nm-radius); background:var(--nm-color-page); cursor:pointer; font-size:.86rem; font-weight:700; list-style:none; }
.mf-language summary::-webkit-details-marker { display:none; }
.mf-language summary:hover, .mf-language[open] summary { border-color:var(--nm-color-primary); color:var(--nm-color-primary); }
.mf-language summary i { font-size:.7em; }
.mf-language-list { position:absolute; z-index:10; top:calc(100% + 6px); right:0; display:grid; min-width:170px; padding:6px; border:1px solid var(--nm-color-line); border-radius:var(--nm-radius); background:var(--nm-color-page); box-shadow:0 14px 34px rgba(0, 0, 0, .16); }
.mf-language-list a { display:flex; gap:10px; align-items:center; padding:9px 10px; border-radius:calc(var(--nm-radius) / 2); color:var(--nm-color-text); font-size:.9rem; font-weight:700; text-decoration:none; }
.mf-language-list a:hover, .mf-language-list a:focus-visible, .mf-language-list a[aria-current='page'] { background:var(--nm-color-primary-soft); color:var(--nm-color-primary); }
.mf-flag { display:inline-block; flex:0 0 auto; width:20px; height:14px; border-radius:2px; box-shadow:0 0 0 1px rgba(0, 0, 0, .12); }
.mf-flag-de { background:linear-gradient(#000 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.mf-flag-fr { background:linear-gradient(90deg, #0055a4 33.3%, #fff 33.3% 66.6%, #ef4135 66.6%); }
.mf-flag-es { background:linear-gradient(#aa151b 25%, #f1bf00 25% 75%, #aa151b 75%); }
.mf-flag-us { background:linear-gradient(90deg, #3c3b6e 40%, transparent 40%), repeating-linear-gradient(#b22234 0 2px, #fff 2px 4px); }

/* Hero: a quiet tinted band with the headline; the uploader below reaches up into it. */
.mf-hero { padding-block:clamp(44px, 6vw, 88px) clamp(140px, 14vw, 210px); background:var(--nm-color-primary-soft); text-align:center; }
.mf-hero-inner { max-width:900px; }
.mf-hero .nm-eyebrow { color:var(--nm-color-primary); }
.mf-hero .nm-display { font-size:clamp(2.1rem, 4vw, 3.8rem); }
.mf-hero .nm-text { max-width:680px; margin-inline:auto; font-size:clamp(1.05rem, 1.4vw, 1.2rem); }
.mf-upload { position:relative; z-index:1; margin-top:calc(-1 * clamp(110px, 11vw, 180px)); }
.mf-upload-box { max-width:900px; margin-inline:auto; padding:clamp(14px, 2vw, 24px); border:1px solid var(--nm-color-line); border-radius:calc(var(--nm-radius) * 1.5); background:var(--nm-color-page); box-shadow:0 18px 44px rgba(20, 40, 70, .12); }
.mf-upload-box .mailfile-dropzone { min-height:300px; }
.mf-upload-box .mailfile-alert { margin-bottom:14px; }
[data-theme='dark'] .mf-hero { background:#1a2433; border-bottom:1px solid var(--nm-color-line); }
[data-theme='dark'] .mf-upload-box { border:1px solid var(--nm-color-line); box-shadow:0 24px 60px rgba(0, 0, 0, .45); }
[data-theme='dark'] .mf-logo-mark rect { fill:#2a5aa8; }
.mf-facts { display:flex; flex-wrap:wrap; justify-content:center; gap:10px clamp(18px, 3vw, 40px); margin:clamp(20px, 3vw, 32px) 0 0; padding:0; color:var(--nm-color-text-muted); font-weight:700; list-style:none; }
.mf-facts li { display:flex; gap:9px; align-items:center; }
.mf-facts i { color:var(--nm-color-primary); }

/* Note below the uploader, three plain steps and the security list: text without boxes. */
.mf-note { max-width:760px; margin:clamp(16px, 2vw, 24px) auto 0; color:var(--nm-color-text-muted); font-size:.92rem; line-height:1.6; text-align:center; }
.mf-steps { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:clamp(24px, 3.5vw, 56px); margin:var(--nm-space-lg) 0 0; padding:0; list-style:none; }
.mf-steps li { display:grid; gap:10px; align-content:start; }
.mf-step-number { display:grid; width:40px; height:40px; place-items:center; border:2px solid var(--nm-color-primary); border-radius:50%; color:var(--nm-color-primary); font-family:'Raleway', sans-serif; font-size:1.1rem; font-weight:800; }
.mf-steps h3, .mf-list h3 { margin:0; font-family:'Raleway', sans-serif; font-size:1.2rem; }
.mf-steps p, .mf-list p { margin:0; color:var(--nm-color-text-muted); line-height:1.6; }
.mf-band { margin-top:clamp(40px, 6vw, 88px); padding-block:clamp(40px, 6vw, 84px); border-block:1px solid var(--nm-color-line); background:var(--nm-color-surface); }
.mf-band .nm-eyebrow-line { --nm-eyebrow-accent:var(--nm-color-secondary); }
.mf-list { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:clamp(20px, 2.6vw, 36px) clamp(32px, 5vw, 72px); margin:var(--nm-space-lg) 0 0; padding:0; list-style:none; }
.mf-list li { display:flex; gap:16px; align-items:flex-start; }
.mf-list li > i { flex:0 0 28px; margin-top:.2em; color:var(--nm-color-primary); font-size:1.2rem; text-align:center; }
.mf-list div { display:grid; gap:6px; }
.mf-card-icon { display:grid; flex:0 0 46px; width:46px; height:46px; place-items:center; border-radius:12px; background:var(--nm-color-primary-soft); color:var(--nm-color-primary); font-size:1.15rem; }

/* Home page blocks beside a picture: numbered steps and short security points. */
.mf-story-steps { display:grid; gap:18px; margin:0; padding:0; counter-reset:mf-step; list-style:none; }
.mf-story-steps li { position:relative; display:grid; gap:4px; padding-left:56px; counter-increment:mf-step; }
.mf-story-steps li::before { position:absolute; top:0; left:0; display:grid; width:38px; height:38px; place-items:center; border:2px solid var(--nm-color-primary); border-radius:50%; color:var(--nm-color-primary); content:counter(mf-step); font-family:'Raleway', sans-serif; font-weight:800; }
/* In the upload flow: finished steps are ticked, the current one is highlighted. */
.mf-story-steps li.is-done::before { border-color:#1a7f47; background:#1a7f47; color:#fff; content:'\2713'; }
.mf-story-steps li.is-done strong, .mf-story-steps li.is-done span { color:var(--nm-color-text-muted); }
.mf-story-steps li.is-current::before { background:var(--nm-color-primary); color:var(--nm-color-on-primary); }
.mf-story-steps li.is-current { padding-block:10px; padding-right:14px; margin-left:-14px; padding-left:70px; border-radius:var(--nm-radius); background:var(--nm-color-primary-soft); }
.mf-story-steps li.is-current::before { top:10px; left:14px; }
.mf-story-steps strong { font-family:'Raleway', sans-serif; font-size:1.15rem; }
.mf-story-steps span, .mf-story-points span { color:var(--nm-color-text-muted); line-height:1.6; }
.mf-story-points { display:grid; gap:14px; margin:0; padding:0; list-style:none; }
.mf-story-points li { display:flex; gap:14px; align-items:flex-start; }
.mf-story-points i { flex:0 0 24px; margin-top:.25em; color:var(--nm-color-primary); text-align:center; }
.mf-story-points strong { color:var(--nm-color-text); }
.mf-upload { margin-bottom:clamp(8px, 2vw, 24px); }

/* Content pages: a shorter tinted head without the uploader, and cards in a band. */
.mf-hero-page { padding-block:clamp(44px, 6vw, 88px); margin-bottom:clamp(8px, 2vw, 24px); }
.mf-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:clamp(14px, 1.6vw, 22px); margin-top:var(--nm-space-lg); }
.mf-card { display:grid; gap:10px; align-content:start; padding:clamp(20px, 2vw, 28px); border:1px solid var(--nm-color-line); border-radius:var(--nm-radius); background:var(--nm-color-page); }
.mf-card h3 { margin:0; font-family:'Raleway', sans-serif; font-size:1.2rem; }
.mf-card p { margin:0; color:var(--nm-color-text-muted); line-height:1.6; }
@media (max-width:980px) { .mf-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:620px) { .mf-grid { grid-template-columns:minmax(0, 1fr); } }
.mf-footer-pages ul { display:flex; flex-wrap:wrap; gap:var(--nm-space-xs) var(--nm-space-md); margin:0; padding:clamp(20px, 3vw, 32px) 0 0; list-style:none; font-size:.95rem; }

/* Pages of the upload flow: a narrower box in the hero, the uploader's own tools and the danger button. */
/* Link page: three numbered ways of passing the file on, in one box. */
.mf-share { display:grid; gap:0; padding:clamp(8px, 1.5vw, 16px) clamp(20px, 3vw, 40px); }
.mf-share-way { display:flex; gap:clamp(14px, 2vw, 24px); align-items:flex-start; padding-block:clamp(20px, 2.6vw, 32px); }
.mf-share-way + .mf-share-way { border-top:1px solid var(--nm-color-line); }
.mf-share-way .mf-step-number { flex:0 0 40px; }
.mf-share-body { display:grid; flex:1 1 auto; gap:12px; min-width:0; }
.mf-share-body h2 { margin:0; font-family:'Raleway', sans-serif; font-size:1.3rem; }
.mf-share-body p { margin:0; color:var(--nm-color-text-muted); line-height:1.55; }
.mf-share-link { display:flex; flex-wrap:wrap; gap:10px; align-items:stretch; }
.mf-share-link .mailfile-link-value { flex:1 1 320px; min-width:0; margin:0; }
.mf-share-qr { grid-template-columns:minmax(0, 1fr) auto; gap:clamp(16px, 3vw, 40px); align-items:center; }
.mf-share-qr > div:first-child { display:grid; gap:12px; }
.mf-share-qr .mailfile-link-qr-code { width:150px; }
.mf-eyebrow-file { text-transform:none; }
/* Confirmation on a button: green for a moment after copying or saving. */
.nm-button.mf-button-done, .nm-button.mf-button-done:hover { border-color:#1a7f47; background:#1a7f47; color:#fff; }
@media (max-width:620px) { .mf-share-qr { grid-template-columns:minmax(0, 1fr); justify-items:start; } .mf-share-way { flex-direction:column; } }
.mf-box-narrow { max-width:620px; padding:clamp(20px, 3vw, 36px); }
.mf-box-center { justify-items:center; text-align:center; }
.mf-box-center form { display:grid; justify-items:center; }
.mf-owner { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:clamp(14px, 2vw, 24px); max-width:900px; margin:clamp(16px, 2vw, 24px) auto 0; }
.mf-owner-box { display:grid; gap:12px; align-content:start; padding:clamp(18px, 2vw, 26px); border:1px solid var(--nm-color-line); border-radius:var(--nm-radius); background:var(--nm-color-surface); }
.mf-owner-box h2 { display:flex; gap:10px; align-items:center; margin:0; font-family:'Raleway', sans-serif; font-size:1.15rem; }
.mf-owner-box h2 i { color:var(--nm-color-primary); }
.mf-owner-box p { margin:0; color:var(--nm-color-text-muted); font-size:.95rem; line-height:1.55; }
.mf-owner-actions { display:flex; flex-wrap:wrap; gap:8px; }
.mf-owner-password { font-size:1.25rem; letter-spacing:.08em; text-align:center; }
.mf-delete-confirm { display:grid; gap:10px; padding:14px 16px; border:1px solid #c62828; border-radius:var(--nm-radius); background:var(--nm-color-page); }
.mf-delete-confirm[hidden], #mfDeleteAsk[hidden] { display:none; }
.mf-delete-confirm p { color:var(--nm-color-text); }
.mf-notice-done { display:flex; gap:12px; align-items:flex-start; margin-bottom:14px; padding:14px 16px; border:1px solid #1a7f47; border-radius:var(--nm-radius); background:var(--nm-color-page); }
.mf-notice-done i { flex:0 0 auto; margin-top:.2em; color:#1a7f47; font-size:1.15rem; }
.mf-box-note { margin:0 0 16px; color:var(--nm-color-text-muted); font-size:.95rem; line-height:1.55; }
.mf-box-note strong { display:block; color:var(--nm-color-text); }
.mf-button-danger, .nm-button.mf-button-danger { border-color:#c62828; background:#c62828; color:#fff; }
.mf-button-danger:hover, .mf-button-danger:focus-visible { background:#a31f1f; color:#fff; }
.mf-password-form { display:grid; gap:14px; max-width:340px; margin-inline:auto; }
.mf-password-form input { font-family:monospace; font-size:1.1rem; letter-spacing:.08em; text-align:center; text-transform:uppercase; }
@media (max-width:720px) { .mf-owner { grid-template-columns:minmax(0, 1fr); } }

/* Call to upload at the end of the "how it works" page. */
/* The box reaches down into the netzmal band below it. */
.mf-cta-section { position:relative; z-index:1; margin-block:clamp(40px, 6vw, 88px) -40px; }
.mf-cta { box-shadow:0 18px 44px rgba(12, 40, 84, .22); }
main:has(> .mf-cta-section) + .mf-netzmal-band { margin-top:0; padding-top:calc(40px + clamp(40px, 6vw, 84px)); }
.mf-band-lead { max-width:860px; }
.mf-hint { max-width:760px; margin-block:clamp(8px, 2vw, 24px) clamp(32px, 5vw, 64px); color:var(--nm-color-text-muted); font-size:.92rem; text-align:center; }
.mf-hint i { color:var(--nm-color-primary); }
.mf-hint a { color:var(--nm-color-primary); font-weight:700; white-space:nowrap; }
.mf-cta { display:flex; flex-wrap:wrap; gap:var(--nm-space-md) var(--nm-space-xl); align-items:center; justify-content:space-between; padding:clamp(24px, 3.5vw, 44px) clamp(24px, 4vw, 56px); border-radius:var(--nm-radius); background:#1f5fbf; color:#fff; }
.mf-cta h2 { margin:0; color:#fff; font-size:clamp(1.5rem, 2.4vw, 2.2rem); }
.mf-cta p { margin:8px 0 0; color:#e4eefc; font-size:1.05rem; }
.mf-cta-button { display:inline-flex; gap:.5em; align-items:center; padding:14px 26px; border-radius:var(--nm-radius); background:#fff; color:#17498f; font-size:1.05rem; font-weight:800; text-decoration:none; white-space:nowrap; transition:transform 160ms ease, box-shadow 160ms ease; }
.mf-cta-button:hover, .mf-cta-button:focus-visible { box-shadow:0 10px 26px rgba(0, 0, 0, .22); color:#17498f; transform:translateY(-2px); }
[data-theme='dark'] .mf-cta { background:#1b3a66; }
.mf-header-nav a[aria-current='page'] { border-color:var(--nm-color-primary); color:var(--nm-color-primary); }

/* netzmal introduction on the download page: team photo with logo beside a short text and two topics. */
.mf-promo { margin-block:clamp(24px, 4vw, 56px) clamp(40px, 6vw, 88px); }
.mf-promo-inner { display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 6fr); gap:clamp(24px, 4vw, 64px); align-items:center; padding:clamp(20px, 3vw, 44px); border:1px solid var(--nm-color-line); border-radius:calc(var(--nm-radius) * 1.5); background:var(--nm-color-surface); }
.mf-promo-team { position:relative; align-self:center; margin:0; padding:clamp(64px, 7vw, 96px) clamp(8px, 1.5vw, 20px) 0; border-radius:var(--nm-radius); background:linear-gradient(#f4f6f8, #dfe5ec); overflow:hidden; }
.mf-promo-logo { position:absolute; top:clamp(14px, 2vw, 22px); left:clamp(16px, 2vw, 24px); width:clamp(92px, 9vw, 124px); height:auto; }
.mf-promo-photo { display:block; width:100%; height:auto; }
.mf-promo-topics { display:grid; gap:12px; }
.mf-promo-topic { display:flex; gap:14px; align-items:flex-start; padding:14px 16px; border:1px solid var(--nm-color-line); border-radius:var(--nm-radius); background:var(--nm-color-page); color:var(--nm-color-text); text-decoration:none; transition:border-color 160ms ease, transform 160ms ease; }
.mf-promo-topic:hover, .mf-promo-topic:focus-visible { border-color:var(--nm-color-primary); transform:translateY(-2px); }
.mf-promo-topic > span:last-child { display:grid; gap:4px; }
.mf-promo-topic strong { font-family:'Raleway', sans-serif; font-size:1.1rem; }
.mf-promo-topic strong i { color:var(--nm-color-primary); font-size:.7em; }
.mf-promo-topic span span { color:var(--nm-color-text-muted); line-height:1.5; }
.mf-footer-spaced { margin-top:0; }
@media (max-width:900px) { .mf-promo-inner { grid-template-columns:minmax(0, 1fr); } }

/* Pages after the upload (captcha, link, download) keep their content below the header. */
.mf-public .mailfile-intro { margin-top:clamp(40px, 6vw, 80px); }

/* netzmal note directly on the footer, then the footer itself. */
.mf-netzmal-band { margin-top:var(--nm-space-xl); padding-block:clamp(40px, 6vw, 84px); background:var(--nm-color-primary-soft); }
.mf-netzmal-band .nm-text { max-width:none; }
.mf-netzmal-band .nm-eyebrow-line { --nm-eyebrow-accent:var(--nm-color-secondary); }
.mf-footer { border-top:1px solid var(--nm-color-line); background:var(--nm-color-surface); }
.mf-footer-inner { display:flex; justify-content:space-between; align-items:flex-end; gap:var(--nm-space-md) var(--nm-space-xl); padding-block:clamp(28px, 5vw, 64px); }
.mf-footer-brand { display:grid; gap:var(--nm-space-sm); }
.mf-footer address { color:var(--nm-color-text-muted); font-style:normal; line-height:1.6; }
.mf-footer-links { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:var(--nm-space-xs) var(--nm-space-md); margin:0; padding:0; list-style:none; }
.mf-footer a { display:inline-block; padding-block:4px; color:var(--nm-color-text-muted); font-weight:600; text-decoration:underline; text-decoration-color:var(--nm-color-line); text-underline-offset:.22em; }
.mf-footer a.mf-footer-external { display:inline-flex; gap:.35em; align-items:center; white-space:nowrap; }
.mf-footer a:hover, .mf-footer a:focus-visible { color:var(--nm-color-primary); text-decoration-color:currentColor; }
.fa-solid { display:inline-block; min-width:1em; }

@media (max-width:820px) {
    .mf-header-inner { grid-template-columns:1fr auto; }
    .mf-header-nav { grid-column:1 / -1; grid-row:2; justify-content:flex-start; }
    .mf-language-label { display:none; }
    .mf-steps { grid-template-columns:minmax(0, 1fr); }
    .mf-footer-inner { flex-direction:column; align-items:stretch; }
    .mf-footer-links { justify-content:flex-start; }
}
@media (max-width:720px) { .mf-list { grid-template-columns:minmax(0, 1fr); } }
@media (max-width:620px) { .mf-logo-tagline { display:none; } }
