/*
Theme Name: Lexipad
Theme URI: https://lexipad.de/
Author: Lexipad
Description: Modernes, responsives Portal-Theme für die modulare Lexipad WordPress Suite.
Version: 0.3.0
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lexipad-theme
*/

:root {
    --lp-ink: #17213b;
    --lp-ink-soft: #536079;
    --lp-blue: #3568f4;
    --lp-blue-dark: #244cc2;
    --lp-violet: #7457e8;
    --lp-mint: #2bbf9b;
    --lp-coral: #ff7a67;
    --lp-cloud: #f5f7fc;
    --lp-cloud-blue: #eef3ff;
    --lp-line: #dfe5f0;
    --lp-white: #fff;
    --lp-shadow-sm: 0 10px 30px rgba(35, 52, 98, .08);
    --lp-shadow-lg: 0 28px 75px rgba(35, 52, 98, .15);
    --lp-radius-sm: 12px;
    --lp-radius-md: 20px;
    --lp-radius-lg: 32px;
    --lp-shell: min(1180px, calc(100% - 40px));
    --lp-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background: var(--lp-white);
    color: var(--lp-ink);
    font-family: var(--lp-font);
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

body.navigation-open {
    overflow: hidden;
}

img {
    height: auto;
    max-width: 100%;
}

a {
    color: var(--lp-blue-dark);
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

a:hover {
    color: var(--lp-blue);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(53, 104, 244, .36);
    outline-offset: 3px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background: var(--lp-white);
    border-radius: 8px;
    box-shadow: var(--lp-shadow-sm);
    clip: auto !important;
    clip-path: none;
    color: var(--lp-ink);
    display: block;
    font-weight: 700;
    height: auto;
    left: 12px;
    padding: 12px 18px;
    top: 12px;
    width: auto;
    z-index: 100000;
}

.section-shell,
.content-shell {
    margin-inline: auto;
    width: var(--lp-shell);
}

.content-shell {
    padding-block: clamp(3.5rem, 8vw, 7rem);
}

.content-shell--page {
    max-width: 1040px;
}

.content-shell--narrow {
    max-width: 820px;
}

.site-main {
    min-height: 65vh;
}

/* Header and navigation */
.site-header {
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(223, 229, 240, .8);
    left: 0;
    position: sticky;
    right: 0;
    top: 0;
    z-index: 1000;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

body.admin-bar .site-header {
    top: 32px;
}

.site-header__inner {
    align-items: center;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
    margin-inline: auto;
    min-height: 76px;
    width: var(--lp-shell);
}

.site-brand {
    align-items: center;
    color: var(--lp-ink);
    display: inline-flex;
    font-weight: 800;
    gap: .7rem;
    justify-self: start;
    letter-spacing: -.035em;
    text-decoration: none;
}

.site-brand:hover {
    color: var(--lp-ink);
}

.site-brand__mark {
    align-items: center;
    background: linear-gradient(145deg, var(--lp-blue), var(--lp-violet));
    border-radius: 11px;
    box-shadow: 0 8px 20px rgba(53, 104, 244, .22);
    color: #fff;
    display: inline-flex;
    font-size: 1.25rem;
    height: 38px;
    justify-content: center;
    line-height: 1;
    transform: rotate(-4deg);
    width: 38px;
}

.site-brand__name {
    font-size: 1.28rem;
}

.site-brand--custom .custom-logo-link {
    display: flex;
}

.site-brand--custom img {
    max-height: 46px;
    width: auto;
}

.site-navigation {
    align-items: center;
    display: flex;
    justify-content: center;
}

.site-navigation .menu {
    align-items: center;
    display: flex;
    gap: .18rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-navigation .menu + .menu {
    border-left: 1px solid var(--lp-line);
    margin-left: .55rem;
    padding-left: .55rem;
}

.site-navigation .menu-item {
    position: relative;
}

.site-navigation .menu-item > a {
    border-radius: 9px;
    color: #48546d;
    display: block;
    font-size: .91rem;
    font-weight: 650;
    padding: .55rem .7rem;
    text-decoration: none;
    white-space: nowrap;
}

.site-navigation .menu-item > a:hover,
.site-navigation .current-menu-item > a,
.site-navigation .current_page_item > a {
    background: var(--lp-cloud-blue);
    color: var(--lp-blue-dark);
}

.site-navigation .sub-menu {
    background: var(--lp-white);
    border: 1px solid var(--lp-line);
    border-radius: 12px;
    box-shadow: var(--lp-shadow-sm);
    display: none;
    left: 0;
    list-style: none;
    margin: 0;
    min-width: 210px;
    padding: .45rem;
    position: absolute;
    top: calc(100% + 8px);
}

.site-navigation .menu-item:hover > .sub-menu,
.site-navigation .menu-item:focus-within > .sub-menu {
    display: block;
}

.site-account {
    align-items: center;
    display: flex;
    gap: .8rem;
    justify-self: end;
}

.account-login {
    color: var(--lp-ink);
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
}

.navigation-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: none;
    height: 44px;
    justify-content: center;
    padding: 9px;
    width: 44px;
}

.navigation-toggle > span[aria-hidden] {
    background: var(--lp-ink);
    border-radius: 99px;
    display: block;
    height: 2px;
    margin: 5px 0;
    transition: transform .2s ease, opacity .2s ease;
    width: 23px;
}

.navigation-toggle[aria-expanded="true"] > span[aria-hidden]:nth-of-type(1) {
    transform: translateY(7px) rotate(45deg);
}

.navigation-toggle[aria-expanded="true"] > span[aria-hidden]:nth-of-type(2) {
    opacity: 0;
}

.navigation-toggle[aria-expanded="true"] > span[aria-hidden]:nth-of-type(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.account-menu {
    position: relative;
}

.account-menu summary {
    align-items: center;
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    gap: .5rem;
    list-style: none;
    padding: 4px 10px 4px 4px;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu__avatar {
    border-radius: 50%;
    display: block;
}

.account-menu__name {
    font-size: .86rem;
    font-weight: 700;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu__chevron {
    color: var(--lp-ink-soft);
}

.account-menu__panel {
    background: var(--lp-white);
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    box-shadow: var(--lp-shadow-lg);
    min-width: 230px;
    padding: .7rem;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
}

.account-menu__panel p {
    border-bottom: 1px solid var(--lp-line);
    line-height: 1.3;
    margin: 0 0 .4rem;
    overflow: hidden;
    padding: .55rem .65rem .8rem;
}

.account-menu__panel small {
    color: var(--lp-ink-soft);
    display: block;
    font-size: .78rem;
    margin-top: .2rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-menu__panel a {
    border-radius: 8px;
    color: var(--lp-ink);
    display: block;
    font-size: .88rem;
    font-weight: 650;
    padding: .55rem .65rem;
    text-decoration: none;
}

.account-menu__panel a:hover {
    background: var(--lp-cloud);
}

/* Buttons */
.button,
.entry-content .wp-element-button,
.entry-content .wp-block-button__link,
.lexipad-registration-form button,
.auth-card input[type="submit"] {
    align-items: center;
    background: var(--lp-blue);
    border: 1px solid var(--lp-blue);
    border-radius: 11px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 750;
    gap: .55rem;
    justify-content: center;
    min-height: 48px;
    padding: .72rem 1.15rem;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.button svg,
.text-link svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 18px;
}

.button:hover,
.entry-content .wp-element-button:hover,
.entry-content .wp-block-button__link:hover,
.lexipad-registration-form button:hover,
.auth-card input[type="submit"]:hover {
    background: var(--lp-blue-dark);
    border-color: var(--lp-blue-dark);
    box-shadow: 0 10px 24px rgba(53, 104, 244, .2);
    color: #fff;
    transform: translateY(-1px);
}

.button--small {
    border-radius: 9px;
    font-size: .88rem;
    min-height: 42px;
    padding: .52rem .9rem;
}

.button--ghost {
    background: transparent;
    border-color: var(--lp-line);
    color: var(--lp-ink);
}

.button--ghost:hover {
    background: var(--lp-white);
    border-color: #c9d3e5;
    color: var(--lp-ink);
}

/* Home hero */
.hero {
    align-items: center;
    display: grid;
    gap: clamp(2.5rem, 7vw, 6rem);
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
    min-height: min(780px, calc(100vh - 76px));
    padding-block: clamp(4.5rem, 9vw, 8rem);
    position: relative;
}

.hero::before {
    background: radial-gradient(circle, rgba(53, 104, 244, .1) 0 1px, transparent 1.5px);
    background-size: 24px 24px;
    content: "";
    height: 240px;
    left: -13vw;
    opacity: .75;
    pointer-events: none;
    position: absolute;
    top: 11%;
    width: 260px;
}

.eyebrow {
    align-items: center;
    color: var(--lp-blue-dark);
    display: flex;
    font-size: .77rem;
    font-weight: 800;
    gap: .55rem;
    letter-spacing: .11em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.eyebrow > span {
    background: var(--lp-blue);
    border-radius: 99px;
    display: inline-block;
    height: 3px;
    width: 24px;
}

.eyebrow--light {
    color: #b9c9ff;
}

.eyebrow--light > span {
    background: #8da8ff;
}

.hero h1 {
    font-size: clamp(3rem, 5.5vw, 5rem);
    font-weight: 820;
    letter-spacing: -.065em;
    line-height: .98;
    margin: 0;
}

.hero h1 span {
    background: linear-gradient(100deg, var(--lp-blue), var(--lp-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    color: var(--lp-ink-soft);
    font-size: clamp(1.06rem, 1.6vw, 1.22rem);
    line-height: 1.7;
    margin: 1.7rem 0 0;
    max-width: 650px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 2rem;
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 0;
}

.hero__trust li {
    align-items: center;
    color: var(--lp-ink-soft);
    display: inline-flex;
    font-size: .88rem;
    font-weight: 650;
    gap: .4rem;
}

.hero__trust svg {
    fill: none;
    height: 18px;
    stroke: var(--lp-mint);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    width: 18px;
}

.hero-demo {
    min-height: 520px;
    position: relative;
}

.hero-demo::before {
    background: linear-gradient(145deg, #e9efff, #f2edff);
    border-radius: 48% 52% 43% 57% / 55% 38% 62% 45%;
    content: "";
    inset: 5% 0 0 4%;
    position: absolute;
    transform: rotate(-5deg);
}

.hero-demo__orb {
    border-radius: 50%;
    filter: blur(1px);
    position: absolute;
}

.hero-demo__orb--one {
    background: rgba(43, 191, 155, .35);
    height: 80px;
    right: 3%;
    top: 4%;
    width: 80px;
}

.hero-demo__orb--two {
    background: rgba(255, 122, 103, .25);
    bottom: 2%;
    height: 110px;
    left: 1%;
    width: 110px;
}

.demo-card {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 25px;
    box-shadow: var(--lp-shadow-lg);
    left: 50%;
    overflow: hidden;
    padding: 1.55rem;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) rotate(1.4deg);
    width: min(390px, 82%);
    z-index: 2;
}

.demo-card header {
    align-items: center;
    color: var(--lp-ink-soft);
    display: flex;
    font-size: .8rem;
    justify-content: space-between;
}

.demo-card header strong {
    color: var(--lp-ink);
}

.demo-card__progress {
    background: #e6eaf3;
    border-radius: 99px;
    height: 6px;
    margin: .7rem 0 2.3rem;
    overflow: hidden;
}

.demo-card__progress span {
    background: linear-gradient(90deg, var(--lp-blue), var(--lp-violet));
    border-radius: inherit;
    display: block;
    height: 100%;
    width: 42%;
}

.demo-card__label {
    color: var(--lp-blue-dark);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .09em;
    margin: 0 0 .7rem;
    text-align: center;
    text-transform: uppercase;
}

.demo-card h2 {
    font-size: clamp(1.8rem, 4vw, 2.45rem);
    letter-spacing: -.035em;
    margin: 0;
    text-align: center;
}

.demo-card__pronunciation {
    color: var(--lp-ink-soft);
    font-size: .82rem;
    margin: .25rem 0 1.5rem;
    text-align: center;
}

.demo-card__answer {
    background: var(--lp-cloud);
    border: 1px solid var(--lp-line);
    border-radius: 10px;
    color: var(--lp-ink-soft);
    padding: .75rem 1rem;
    text-align: center;
}

.demo-card footer {
    align-items: center;
    background: #edfaf6;
    border-radius: 11px;
    display: grid;
    gap: 0 .65rem;
    grid-template-columns: auto 1fr auto;
    margin-top: .8rem;
    padding: .75rem;
}

.demo-card footer > span {
    align-items: center;
    background: var(--lp-mint);
    border-radius: 50%;
    color: #fff;
    display: flex;
    grid-row: span 2;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.demo-card footer svg {
    fill: none;
    height: 17px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    width: 17px;
}

.demo-card footer strong {
    color: #17735c;
    font-size: .88rem;
}

.demo-card footer small {
    color: #428877;
    font-size: .7rem;
}

.language-chip,
.streak-chip {
    align-items: center;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 13px;
    box-shadow: var(--lp-shadow-sm);
    display: flex;
    font-size: .78rem;
    font-weight: 750;
    gap: .55rem;
    padding: .6rem .75rem;
    position: absolute;
    z-index: 3;
}

.language-chip span {
    align-items: center;
    border-radius: 8px;
    color: #fff;
    display: flex;
    font-size: .65rem;
    height: 30px;
    justify-content: center;
    width: 34px;
}

.language-chip--de {
    left: 0;
    top: 19%;
    transform: rotate(-5deg);
}

.language-chip--de span {
    background: var(--lp-blue);
}

.language-chip--en {
    right: -1%;
    top: 29%;
    transform: rotate(5deg);
}

.language-chip--en span {
    background: var(--lp-violet);
}

.streak-chip {
    bottom: 11%;
    right: 1%;
    transform: rotate(-3deg);
}

.streak-chip strong {
    color: var(--lp-coral);
    font-size: 1.55rem;
}

.streak-chip span {
    color: var(--lp-ink-soft);
    font-size: .66rem;
    line-height: 1.3;
}

/* Sections */
.feature-section,
.school-section {
    padding-block: clamp(5rem, 10vw, 9rem);
}

.section-heading {
    margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
    max-width: 760px;
    text-align: center;
}

.section-heading .eyebrow {
    justify-content: center;
}

.section-heading h2,
.school-panel h2,
.process-copy h2 {
    font-size: clamp(2.25rem, 4.5vw, 4rem);
    letter-spacing: -.055em;
    line-height: 1.04;
    margin: 0;
}

.section-heading > p:last-child,
.school-panel > div > p:last-child,
.process-copy > p:last-child {
    color: var(--lp-ink-soft);
    font-size: 1.08rem;
    margin: 1.25rem auto 0;
    max-width: 650px;
}

.feature-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-md);
    min-height: 310px;
    overflow: hidden;
    padding: 1.8rem;
    position: relative;
    transition: box-shadow .2s ease, transform .2s ease;
}

.feature-card:hover {
    box-shadow: var(--lp-shadow-sm);
    transform: translateY(-4px);
}

.feature-card--blue {
    background: linear-gradient(145deg, #f4f7ff, #eaf0ff);
}

.feature-card--violet {
    background: linear-gradient(145deg, #f8f6ff, #eeeaff);
}

.feature-card--green {
    background: linear-gradient(145deg, #f1fbf8, #e7f8f2);
}

.feature-card__icon,
.content-card__icon,
.portal-card__icon,
.empty-state__icon {
    align-items: center;
    background: var(--lp-white);
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(35, 52, 98, .08);
    color: var(--lp-blue);
    display: inline-flex;
    height: 50px;
    justify-content: center;
    width: 50px;
}

.feature-card--violet .feature-card__icon {
    color: var(--lp-violet);
}

.feature-card--green .feature-card__icon {
    color: #169776;
}

.feature-card__icon svg,
.content-card__icon svg,
.portal-card__icon svg,
.empty-state__icon svg {
    fill: none;
    height: 25px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 25px;
}

.feature-card h3 {
    font-size: 1.35rem;
    letter-spacing: -.025em;
    margin: 3.4rem 0 .7rem;
}

.feature-card p {
    color: var(--lp-ink-soft);
    margin: 0;
}

.feature-card__number {
    bottom: -1.7rem;
    color: rgba(23, 33, 59, .045);
    font-size: 7.5rem;
    font-weight: 900;
    line-height: 1;
    position: absolute;
    right: .7rem;
}

.process-section {
    background: #17213b;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.process-section::after {
    border: 70px solid rgba(116, 87, 232, .18);
    border-radius: 50%;
    content: "";
    height: 460px;
    position: absolute;
    right: -180px;
    top: -180px;
    width: 460px;
}

.process-section__inner {
    align-items: center;
    display: grid;
    gap: clamp(3rem, 8vw, 7rem);
    grid-template-columns: 1fr 1fr;
    padding-block: clamp(5rem, 10vw, 8.5rem);
    position: relative;
    z-index: 1;
}

.process-copy h2 {
    color: #fff;
}

.process-copy > p:last-child {
    color: #b8c0d3;
    margin-left: 0;
}

.process-list {
    counter-reset: steps;
    list-style: none;
    margin: 0;
    padding: 0;
}

.process-list li {
    align-items: flex-start;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto 1fr;
    padding: 1.35rem 0;
    position: relative;
}

.process-list li + li {
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.process-list li > span {
    align-items: center;
    background: rgba(53, 104, 244, .2);
    border: 1px solid rgba(141, 168, 255, .35);
    border-radius: 12px;
    color: #c5d2ff;
    display: flex;
    font-weight: 800;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.process-list strong {
    color: #fff;
    display: block;
    font-size: 1.05rem;
}

.process-list p {
    color: #aeb8cd;
    margin: .2rem 0 0;
}

.school-panel {
    align-items: center;
    background: linear-gradient(145deg, #f4f7ff, #f7f4ff);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-lg);
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
    padding: clamp(2rem, 5vw, 4.5rem);
}

.school-panel > div > p:last-child {
    margin-left: 0;
}

.school-panel__stats {
    display: grid;
    gap: .8rem;
}

.school-panel__stats > div {
    align-items: center;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(223, 229, 240, .9);
    border-radius: 14px;
    display: grid;
    gap: .8rem;
    grid-template-columns: 75px 1fr;
    padding: 1rem 1.2rem;
}

.school-panel__stats strong {
    color: var(--lp-blue);
    font-size: 1.9rem;
    line-height: 1;
}

.school-panel__stats span {
    color: var(--lp-ink-soft);
    font-size: .9rem;
    font-weight: 650;
}

.front-page-content {
    padding-bottom: 6rem;
}

/* Page content and archives */
.page-heading,
.archive-heading {
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
    max-width: 820px;
}

.page-heading h1,
.archive-heading h1,
.portal-heading h1,
.error-page h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    letter-spacing: -.06em;
    line-height: 1.02;
    margin: 0;
}

.archive-description {
    color: var(--lp-ink-soft);
    font-size: 1.08rem;
    margin-top: 1rem;
}

.page-article--app .entry-content {
    max-width: none;
}

.page-article--app .entry-content > .lexipad-learning,
.page-article--app .entry-content > .lexipad-institution-portal,
.page-article--app .entry-content > .lexipad-teacher-app {
    max-width: none;
}

.entry-content {
    overflow-wrap: anywhere;
}

.entry-content > * {
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
}

.entry-content > .alignwide {
    max-width: 1080px;
}

.entry-content > .alignfull {
    max-width: none;
}

.entry-content p,
.entry-content li {
    color: #3f4b64;
}

.entry-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    letter-spacing: -.04em;
    margin-top: 2.5rem;
}

.entry-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--lp-blue);
    margin-block: 2rem;
    padding: .5rem 0 .5rem 1.5rem;
}

.entry-content img,
.single-article__image img {
    border-radius: var(--lp-radius-md);
}

.single-article__image {
    margin: 0 0 2.5rem;
}

.content-card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card {
    background: var(--lp-white);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-md);
    display: flex;
    flex-direction: column;
    min-height: 265px;
    padding: 1.5rem;
    transition: box-shadow .2s ease, transform .2s ease;
}

.content-card:hover {
    box-shadow: var(--lp-shadow-sm);
    transform: translateY(-3px);
}

.content-card__icon {
    background: var(--lp-cloud-blue);
    box-shadow: none;
}

.content-card__meta {
    color: var(--lp-ink-soft);
    font-size: .78rem;
    margin: 0;
}

.content-card h2 {
    font-size: 1.22rem;
    letter-spacing: -.025em;
    line-height: 1.25;
    margin: 1.5rem 0 .65rem;
}

.content-card h2 a {
    color: var(--lp-ink);
    text-decoration: none;
}

.content-card__excerpt {
    color: var(--lp-ink-soft);
    font-size: .9rem;
}

.content-card__excerpt p {
    margin: 0;
}

.text-link {
    align-items: center;
    display: inline-flex;
    font-size: .86rem;
    font-weight: 750;
    gap: .35rem;
    margin-top: auto;
    padding-top: 1rem;
    text-decoration: none;
}

.navigation.pagination {
    margin-top: 2.5rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    justify-content: center;
}

.nav-links .page-numbers {
    align-items: center;
    border: 1px solid var(--lp-line);
    border-radius: 8px;
    color: var(--lp-ink);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    min-width: 40px;
    padding: 0 .7rem;
    text-decoration: none;
}

.nav-links .current,
.nav-links a:hover {
    background: var(--lp-blue);
    border-color: var(--lp-blue);
    color: #fff;
}

.empty-state,
.auth-required {
    background: var(--lp-cloud);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-md);
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
}

.empty-state__icon {
    margin-bottom: 1rem;
}

.empty-state h2,
.auth-required h1 {
    margin: 0 0 .5rem;
}

.empty-state p,
.auth-required p {
    color: var(--lp-ink-soft);
}

.error-page {
    padding-block: clamp(6rem, 13vw, 11rem);
    text-align: center;
}

.error-page__code {
    background: linear-gradient(100deg, var(--lp-blue), var(--lp-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(5rem, 14vw, 10rem);
    font-weight: 900;
    letter-spacing: -.08em;
    line-height: .8;
    margin: 0 0 2rem;
}

.error-page > p:not(.error-page__code) {
    color: var(--lp-ink-soft);
    margin: 1rem auto 2rem;
    max-width: 560px;
}

/* Portal */
.portal-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.portal-heading h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
}

.portal-heading p:last-child {
    color: var(--lp-ink-soft);
    margin: .7rem 0 0;
}

.portal-heading__avatar {
    border: 5px solid var(--lp-cloud-blue);
    border-radius: 50%;
}

.portal-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-card {
    align-items: center;
    background: var(--lp-white);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-md);
    color: var(--lp-ink);
    display: grid;
    gap: 1rem;
    grid-template-columns: auto 1fr auto;
    min-height: 128px;
    padding: 1.25rem;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.portal-card:hover {
    border-color: #bccaff;
    box-shadow: var(--lp-shadow-sm);
    color: var(--lp-ink);
    transform: translateY(-2px);
}

.portal-card__icon {
    background: var(--lp-cloud-blue);
    box-shadow: none;
    height: 56px;
    width: 56px;
}

.portal-card strong,
.portal-card small {
    display: block;
}

.portal-card strong {
    font-size: 1.05rem;
}

.portal-card small {
    color: var(--lp-ink-soft);
    font-size: .82rem;
    margin-top: .25rem;
}

.portal-card__arrow svg {
    fill: none;
    height: 21px;
    stroke: #8d99b0;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 21px;
}

.portal-note {
    background: #fff8e9;
    border: 1px solid #f1dca9;
    border-radius: 14px;
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
}

.portal-note p {
    color: #76633d;
    margin: .25rem 0 0;
}

.portal-content {
    margin-top: 3rem;
}

/* Authentication and plugin forms */
.auth-layout {
    align-items: stretch;
    display: grid;
    gap: 0;
    grid-template-columns: 1fr minmax(400px, .85fr);
}

.auth-intro {
    background: linear-gradient(145deg, #17213b, #25365f);
    border-radius: var(--lp-radius-lg) 0 0 var(--lp-radius-lg);
    color: #fff;
    padding: clamp(2.5rem, 6vw, 5rem);
}

.auth-intro h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4rem);
    letter-spacing: -.055em;
    line-height: 1.02;
    margin: 0;
}

.auth-intro > p:not(.eyebrow) {
    color: #bec7da;
    font-size: 1.05rem;
    margin: 1.2rem 0 2.2rem;
}

.auth-intro ul {
    display: grid;
    gap: .8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.auth-intro li {
    align-items: center;
    display: flex;
    gap: .6rem;
}

.auth-intro li svg {
    fill: none;
    height: 19px;
    stroke: #6ce0c2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    width: 19px;
}

.auth-card {
    background: var(--lp-white);
    border: 1px solid var(--lp-line);
    border-left: 0;
    border-radius: 0 var(--lp-radius-lg) var(--lp-radius-lg) 0;
    padding: clamp(2.5rem, 6vw, 5rem);
}

.auth-card h2 {
    font-size: 2rem;
    letter-spacing: -.04em;
    margin: 0 0 1.5rem;
}

.auth-card form p,
.lexipad-registration-form p {
    margin: 0 0 1rem;
}

.auth-card label,
.lexipad-registration-form label {
    color: var(--lp-ink);
    font-size: .88rem;
    font-weight: 700;
}

.auth-card input[type="text"],
.auth-card input[type="password"],
.lexipad-registration-form input[type="text"],
.lexipad-registration-form input[type="email"],
.lexipad-registration-form input[type="password"],
.lexipad-registration-form input:not([type]),
.entry-content input[type="search"],
.entry-content select,
.entry-content textarea {
    background: #fff;
    border: 1px solid #bfc9da;
    border-radius: 10px;
    color: var(--lp-ink);
    min-height: 48px;
    padding: .7rem .8rem;
    width: 100%;
}

.auth-card input:focus,
.lexipad-registration-form input:focus,
.entry-content input:focus,
.entry-content select:focus,
.entry-content textarea:focus {
    border-color: var(--lp-blue);
    box-shadow: 0 0 0 3px rgba(53, 104, 244, .14);
    outline: none;
}

.auth-card .login-remember label {
    align-items: center;
    display: flex;
    font-weight: 550;
    gap: .45rem;
}

.auth-card input[type="submit"] {
    width: 100%;
}

.auth-card__links {
    display: flex;
    font-size: .82rem;
    justify-content: space-between;
    margin-top: 1rem;
}

.lexipad-registration-form {
    background: var(--lp-white);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-md);
    box-shadow: var(--lp-shadow-sm);
    margin: 0 auto;
    max-width: 680px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.lexipad-registration-form button {
    width: 100%;
}

.lexipad-notice {
    border-radius: 10px;
    margin: 0 auto 1rem;
    max-width: 680px;
    padding: .75rem 1rem;
}

.lexipad-notice--success {
    background: #edfaf6;
    border: 1px solid #bde9da;
}

.lexipad-notice--error {
    background: #fff2f0;
    border: 1px solid #ffc8c0;
}

/* Integrate the learning plugin */
.lexipad-app-page .content-shell {
    max-width: 1180px;
}

.lexipad-app-page .lexipad-learning {
    margin-top: 0;
}

.lexipad-app-page .lexipad-learning-header h2 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    letter-spacing: -.055em;
}

.lexipad-app-page .lexipad-package-card,
.lexipad-app-page .lexipad-card,
.lexipad-app-page .lexipad-feedback,
.lexipad-app-page .lexipad-completion,
.lexipad-app-page .lexipad-empty {
    border-color: var(--lp-line);
    box-shadow: var(--lp-shadow-sm);
}

/* Search */
.search-form {
    display: flex;
    gap: .5rem;
    margin-top: 1.5rem;
    max-width: 600px;
}

.search-form label {
    flex: 1;
}

.search-field {
    border: 1px solid #bfc9da;
    border-radius: 10px;
    min-height: 48px;
    padding: .65rem .8rem;
    width: 100%;
}

.search-submit {
    background: var(--lp-blue);
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: .65rem 1rem;
}

/* Footer */
.site-footer {
    background: #111a30;
    color: #fff;
    margin-top: auto;
    padding: 4rem max(20px, calc((100vw - 1180px) / 2));
}

.site-footer__grid {
    align-items: center;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.site-brand--footer {
    color: #fff;
}

.site-brand--footer:hover {
    color: #fff;
}

.site-footer__brand p {
    color: #9fabbe;
    font-size: .88rem;
    margin: .8rem 0 0;
}

.site-footer .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .menu a {
    color: #bec7d8;
    font-size: .84rem;
    text-decoration: none;
}

.site-footer .menu a:hover {
    color: #fff;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #77849c;
    display: flex;
    font-size: .76rem;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 1.2rem;
}

.site-footer__bottom p {
    margin: 0;
}

@media (max-width: 1120px) {
    .site-header__inner {
        gap: 1rem;
    }

    .site-navigation .menu-item > a {
        padding-inline: .5rem;
    }

    .account-menu__name {
        display: none;
    }
}

@media (max-width: 980px) {
    :root {
        --lp-shell: min(100% - 32px, 760px);
    }

    .site-header__inner {
        grid-template-columns: 1fr auto auto;
        min-height: 68px;
    }

    .navigation-toggle {
        display: block;
        grid-column: 2;
    }

    .has-js .site-navigation {
        align-items: stretch;
        background: rgba(255, 255, 255, .98);
        border-top: 1px solid var(--lp-line);
        display: none;
        flex-direction: column;
        left: 0;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        padding: 1rem 16px 1.5rem;
        position: absolute;
        right: 0;
        top: 100%;
    }

    .has-js .site-navigation.is-open {
        display: flex;
    }

    .site-navigation .menu {
        align-items: stretch;
        display: grid;
        width: 100%;
    }

    .site-navigation .menu + .menu {
        border-left: 0;
        border-top: 1px solid var(--lp-line);
        margin: .75rem 0 0;
        padding: .75rem 0 0;
    }

    .site-navigation .menu-item > a {
        font-size: 1rem;
        padding: .75rem;
    }

    .site-navigation .sub-menu {
        border: 0;
        box-shadow: none;
        display: block;
        margin-left: 1rem;
        padding: 0;
        position: static;
    }

    .site-account {
        grid-column: 3;
    }

    .account-login,
    .site-account > .button {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 5rem;
    }

    .hero__content {
        max-width: 720px;
    }

    .hero-demo {
        justify-self: center;
        max-width: 620px;
        min-height: 500px;
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 260px;
    }

    .process-section__inner,
    .school-panel,
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .school-panel__stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .school-panel__stats > div {
        display: block;
        text-align: center;
    }

    .school-panel__stats span {
        display: block;
        margin-top: .5rem;
    }

    .content-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-intro {
        border-radius: var(--lp-radius-lg) var(--lp-radius-lg) 0 0;
    }

    .auth-card {
        border-left: 1px solid var(--lp-line);
        border-radius: 0 0 var(--lp-radius-lg) var(--lp-radius-lg);
    }
}

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

@media (max-width: 680px) {
    :root {
        --lp-shell: calc(100% - 24px);
        --lp-radius-lg: 24px;
    }

    .site-brand__name {
        font-size: 1.1rem;
    }

    .site-brand__mark {
        height: 34px;
        width: 34px;
    }

    .account-menu__chevron {
        display: none;
    }

    .account-menu summary {
        border: 0;
        padding: 0;
    }

    .hero {
        gap: 2rem;
        padding-block: 3.8rem;
    }

    .hero h1 {
        font-size: clamp(2.75rem, 15vw, 4rem);
    }

    .hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero__actions .button {
        width: 100%;
    }

    .hero__trust {
        display: grid;
    }

    .hero-demo {
        min-height: 420px;
    }

    .demo-card {
        padding: 1.1rem;
        width: 88%;
    }

    .demo-card__progress {
        margin-bottom: 1.6rem;
    }

    .language-chip--de {
        left: -2%;
        top: 8%;
    }

    .language-chip--en {
        right: -1%;
        top: 19%;
    }

    .streak-chip {
        bottom: 2%;
    }

    .feature-section,
    .school-section {
        padding-block: 4.5rem;
    }

    .feature-card h3 {
        margin-top: 2.3rem;
    }

    .process-section__inner {
        padding-block: 4.5rem;
    }

    .school-panel {
        padding: 1.5rem;
    }

    .school-panel__stats,
    .content-card-grid,
    .portal-grid {
        grid-template-columns: 1fr;
    }

    .content-shell {
        padding-block: 3.5rem;
    }

    .portal-heading {
        align-items: flex-start;
    }

    .portal-heading__avatar {
        height: 54px;
        width: 54px;
    }

    .portal-card {
        grid-template-columns: auto 1fr;
    }

    .portal-card__arrow {
        display: none;
    }

    .auth-layout {
        width: calc(100% - 24px);
    }

    .auth-intro,
    .auth-card {
        padding: 1.5rem;
    }

    .auth-card__links,
    .site-footer__grid,
    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: .8rem;
    }

    .site-footer .menu {
        justify-content: flex-start;
    }

    .lexipad-app-page .lexipad-package-card {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .hero__actions,
    .navigation.pagination {
        display: none !important;
    }

    body {
        color: #000;
    }

    .content-shell {
        max-width: none;
        padding: 0;
        width: 100%;
    }
}
