/*
Theme Name: Denkert Familienportal
Theme URI: https://denkert.org/
Author: Denkert Familienportal
Description: Ruhiges, mobiles WordPress-Theme für das private Denkert Familienportal.
Version: 0.2.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: #2b5ea7;
    --df-blue-dark: #173f76;
    --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: var(--df-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
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: 42px; height: 42px; border-radius: 14px; color: #fff; background: var(--df-blue); box-shadow: 0 8px 20px rgba(43,94,167,.24); }
.df-brand-mark svg { width: 23px; height: 23px; }
.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-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: 360px; padding: 90px 0 0 30px; }
.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(228,122,98,.18); }
.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-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-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: 190px; padding: 28px 0 0 18px; }
    .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; }
}

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