:root {
    --bg: #f7f5f2;
    --surface: #ffffff;
    --surface-muted: #f0ede8;
    --ink: #1f2933;
    --muted: #66727f;
    --line: #ddd8d0;
    --brand: #225464;
    --brand-strong: #173d49;
    --accent: #9c4057;
    --accent-soft: #f7e8ec;
    --ok-bg: #edf7f1;
    --ok-line: #c7e7d2;
    --ok-text: #17613b;
    --warn-bg: #fff8e8;
    --warn-line: #f1d28c;
    --warn-text: #7a5200;
    --danger-bg: #fff0f2;
    --danger-line: #efc3cc;
    --danger-text: #8c2638;
    --shadow: 0 12px 28px rgba(28, 38, 48, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    letter-spacing: 0;
}

a {
    color: inherit;
}

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

.app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    background: var(--bg);
}

.sidebar {
    min-height: 100vh;
    position: sticky;
    top: 0;
    align-self: start;
    padding: 24px 18px;
    color: #ffffff;
    background: var(--brand-strong);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    line-height: 1.12;
}

.logo span {
    color: #f2c2cc;
}

.logo::after {
    content: "Kostenlos · Verifiziert · Sicher";
    display: block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.74);
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav a,
.mobile-tabbar a {
    text-decoration: none;
    font-weight: 700;
}

.nav a {
    display: block;
    padding: 12px 13px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.86);
}

.nav a:hover,
.nav a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.sidebar::after {
    content: "Keine Abo-Falle. Keine Kinderfotos. Kein Premium-Zwang.";
    margin-top: auto;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.45;
}

.main {
    min-width: 0;
}

.topbar {
    min-height: 74px;
    padding: 16px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 245, 242, 0.94);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar strong {
    font-size: 20px;
    font-weight: 800;
}

.badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--brand);
    background: #ffffff;
    font-size: 13px;
    font-weight: 800;
    white-space: normal;
}

.content {
    width: 100%;
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.admin-app .content {
    grid-template-columns: minmax(0, 1fr);
}

.admin-menu {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.admin-menu summary {
    cursor: pointer;
    color: var(--brand-strong);
    font-weight: 800;
}

.admin-menu nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.admin-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-muted);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.admin-menu a.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
}

.hero {
    margin-bottom: 20px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #efe8df;
    box-shadow: var(--shadow);
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 14px;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: 0;
}

.hero p {
    max-width: 760px;
    margin: 0 0 20px;
    color: #455463;
    font-size: 18px;
    line-height: 1.55;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.card h2,
.card h3 {
    margin-top: 0;
    letter-spacing: 0;
}

.card p {
    color: #3e4b58;
    line-height: 1.55;
}

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

.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff;
    box-shadow: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.btn:hover {
    background: var(--brand-strong);
}

.btn.secondary {
    color: var(--brand);
    background: #e6eef0;
}

.btn.secondary:hover {
    background: #d8e5e8;
}

input,
textarea,
select {
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(34, 84, 100, 0.14);
}

form p {
    margin: 0 0 14px;
}

.form-hint {
    margin-top: -8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

label {
    color: #273541;
    font-weight: 700;
}

ul,
ol {
    line-height: 1.7;
}

.notice {
    margin: 14px 0;
    padding: 14px 15px;
    border: 1px solid var(--warn-line);
    border-radius: 8px;
    background: var(--warn-bg);
    color: var(--warn-text);
    line-height: 1.5;
}

.notice.success {
    border-color: var(--ok-line);
    background: var(--ok-bg);
    color: var(--ok-text);
}

.flash {
    margin-bottom: 16px;
    padding: 13px 15px;
    border: 1px solid #b8d9e1;
    border-radius: 8px;
    background: #edf7fa;
    color: var(--brand);
    font-weight: 700;
}

.flash.success {
    border-color: var(--ok-line);
    background: var(--ok-bg);
    color: var(--ok-text);
}

.flash.error {
    border-color: var(--danger-line);
    background: var(--danger-bg);
    color: var(--danger-text);
}

.flash.warning {
    border-color: var(--warn-line);
    background: var(--warn-bg);
    color: var(--warn-text);
}

.right-panel {
    position: sticky;
    top: 96px;
}

.profile {
    padding: 0;
    overflow: hidden;
}

.profile h3,
.profile p,
.profile form {
    margin-left: 18px;
    margin-right: 18px;
}

.profile .btn {
    margin-bottom: 18px;
}

.profile-preview {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: 18px 0;
}

.avatar {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--line);
    background: var(--surface-muted);
    color: var(--brand);
    font-size: 52px;
}

.profile-preview .avatar {
    min-height: 84px;
    height: 84px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-form-section {
    margin: 22px 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.profile-form-section h3 {
    margin-top: 0;
}

.form-help {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.45;
}

.check-block {
    margin: 14px 0 18px;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
}

.check-option {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-muted);
    line-height: 1.35;
}

.check-option input {
    margin-top: 2px;
}

.check-group-section {
    margin: 14px 0;
}

.check-group-section h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.search-advanced {
    margin: 14px 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-muted);
}

.search-advanced summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--brand);
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 18px 14px;
}

.profile-detail .chip-list,
.profile-detail-section .chip-list {
    margin-left: 0;
    margin-right: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 700;
}

.profile-detail {
    padding-bottom: 18px;
}

.profile-detail-compact {
    padding: 22px;
    overflow: visible;
}

.profile-detail-compact h2,
.profile-detail-compact h3,
.profile-detail-compact p,
.profile-detail-compact form {
    margin-left: 0;
    margin-right: 0;
}

.profile-detail-header {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.profile-detail-photo-card {
    max-width: 280px;
}

.profile-detail-photo-frame {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-muted);
    color: var(--brand);
    font-size: 58px;
}

.profile-detail-photo-frame .profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-detail-photo-caption {
    margin-top: 10px;
}

.profile-detail-photo-caption h2 {
    margin: 0;
    color: var(--brand-strong);
    font-size: 1.45rem;
    line-height: 1.15;
}

.profile-detail-photo-caption p {
    margin: 4px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.profile-detail-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.profile-detail-panel {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 250, 246, 0.88);
}

.profile-detail-panel h3 {
    margin: 0 0 10px;
    color: var(--brand-strong);
    font-size: 1.05rem;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.profile-info-item {
    padding: 8px 9px;
    border-radius: 10px;
    background: var(--surface-muted);
}

.profile-info-item span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.profile-info-item strong {
    display: block;
    margin-top: 2px;
    color: var(--ink);
    font-size: 0.94rem;
    line-height: 1.25;
}

.profile-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.profile-detail-panel-full {
    margin-top: 14px;
}

.profile-detail-compact .chip-list {
    margin: 8px 0 0;
}

.profile-detail-compact .profile-detail-section {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 250, 246, 0.88);
}

.profile-detail-compact .match-detail h3 {
    margin: 0;
    font-size: 1.05rem;
}

.profile-detail-compact .match-detail ul,
.profile-detail-compact .match-detail p {
    margin: 9px 0 0;
    line-height: 1.5;
}

.profile-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}

.profile-detail-actions .btn {
    margin-bottom: 0;
}

.profile-detail-section {
    margin: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.profile-detail-section h3 {
    margin-top: 0;
}

.match-summary {
    margin: 12px 18px 14px;
}

.match-summary strong,
.match-detail h3 {
    color: var(--brand);
}

.match-bar {
    height: 8px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf0;
}

.match-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #7eb4bf;
}

.match-detail ul {
    margin-bottom: 0;
}

.chat-card {
    padding-bottom: 18px;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
}

.message-bubble {
    width: min(76%, 620px);
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.message-bubble p {
    margin: 0;
}

.message-bubble.own {
    align-self: flex-end;
    border-color: #c7dce2;
    background: #edf7fa;
}

.message-bubble.other {
    align-self: flex-start;
    background: var(--surface-muted);
}

.message-bubble.system {
    align-self: center;
    max-width: 720px;
    background: var(--warn-bg);
    border-color: var(--warn-line);
    color: var(--warn-text);
}

.chat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.chat-overview-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 0.86rem;
    line-height: 1.2;
    color: var(--muted);
    background: var(--surface-muted);
}

.status-active {
    color: var(--ok-text);
    border-color: var(--ok-line);
    background: var(--ok-bg);
}

.status-ended,
.status-expired {
    color: var(--muted);
    background: var(--surface-muted);
}

.status-reactivation-requested {
    color: var(--warn-text);
    border-color: var(--warn-line);
    background: var(--warn-bg);
}

.inline-form {
    margin-top: 10px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.table th,
.table td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
    font-size: 14px;
    word-break: break-word;
}

.table th {
    background: #f5f2ed;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-user-table {
    min-width: 980px;
    table-layout: fixed;
}

.admin-user-table td:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-user-table td:last-child form {
    margin: 0;
}

.admin-user-table td:last-child .btn {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
}

.admin-profile-photo,
.admin-profile-placeholder {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-profile-photo {
    display: block;
    object-fit: cover;
}

.admin-profile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-muted);
    color: var(--brand);
    font-size: 24px;
}

.admin-users-compact {
    overflow-x: auto;
}

.admin-user-compact-table {
    min-width: 1120px;
    table-layout: auto;
}

.admin-user-compact-table th,
.admin-user-compact-table td {
    padding: 7px 8px;
    vertical-align: top;
    font-size: 12.5px;
    line-height: 1.35;
}

.admin-user-compact-table th {
    font-size: 11px;
}

.admin-users-compact .admin-profile-photo,
.admin-users-compact .admin-profile-placeholder {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 18px;
}

.admin-user-photo-cell {
    width: 46px;
}

.admin-user-identity {
    min-width: 116px;
}

.admin-user-identity strong,
.admin-user-identity span,
.admin-user-identity small,
.admin-user-compact-profile span {
    display: block;
}

.admin-user-identity span,
.admin-user-identity small,
.admin-user-compact-profile,
.admin-user-precheck-compact span {
    color: var(--muted);
}

.admin-user-contact {
    max-width: 210px;
    word-break: break-word;
}

.admin-user-compact-profile {
    display: grid;
    gap: 2px;
    min-width: 230px;
}

.admin-user-status-badges,
.admin-user-precheck-compact,
.admin-user-action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.admin-user-status-badge,
.admin-user-precheck-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-user-status-active,
.admin-user-precheck-badge-green {
    border-color: var(--ok-line);
    background: var(--ok-bg);
    color: var(--ok-text);
}

.admin-user-status-blocked,
.admin-user-precheck-badge-red {
    border-color: var(--danger-line);
    background: var(--danger-bg);
    color: var(--danger-text);
}

.admin-user-precheck-badge-yellow {
    border-color: var(--warn-line);
    background: var(--warn-bg);
    color: var(--warn-text);
}

.admin-user-role-admin {
    border-color: rgba(34, 84, 100, 0.28);
    background: rgba(34, 84, 100, 0.08);
    color: var(--brand-strong);
}

.admin-user-precheck-compact a {
    color: var(--brand);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-user-actions-cell {
    min-width: 190px;
}

.admin-user-action-stack form {
    margin: 0;
}

.admin-user-action-btn {
    min-height: 28px;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 11.5px;
    white-space: nowrap;
}

.admin-user-protected-note {
    color: var(--muted);
    font-style: italic;
    white-space: nowrap;
}

.admin-user-detail-row td:last-child {
    display: table-cell;
}

.admin-user-detail-row td {
    padding-top: 0;
    background: rgba(247, 245, 242, 0.62);
}

.admin-user-row-details {
    padding: 5px 0 7px;
}

.admin-user-row-details summary {
    cursor: pointer;
    width: max-content;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-user-detail-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.85fr) minmax(210px, 0.75fr);
    gap: 12px;
    margin-top: 8px;
}

.admin-user-detail-columns section {
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.admin-user-detail-columns h3 {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.25;
}

.admin-user-detail-grid {
    display: grid;
    gap: 6px;
}

.admin-user-detail-grid div {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.admin-user-detail-grid span {
    color: var(--muted);
    font-size: 11.5px;
}

.admin-user-detail-grid strong {
    min-width: 0;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.admin-user-detail-grid-compact div {
    grid-template-columns: 92px minmax(0, 1fr);
}

.admin-user-precheck-detail {
    display: grid;
    gap: 7px;
}

.admin-user-precheck-detail strong {
    font-size: 12.5px;
}

.admin-user-precheck-detail-green strong {
    color: var(--ok-text);
}

.admin-user-precheck-detail-yellow strong {
    color: var(--warn-text);
}

.admin-user-precheck-detail-red strong {
    color: var(--danger-text);
}

.admin-user-precheck-detail ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.42;
}

@media (max-width: 1100px) {
    .admin-user-detail-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

.mobile-tabbar {
    display: none;
}

.text-page {
    display: grid;
    gap: 18px;
}

.seo-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 24px;
    box-shadow: var(--shadow);
}

.seo-section h2 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.25;
}

.seo-section p {
    margin: 0 0 12px;
    color: #3e4b58;
    line-height: 1.65;
}

.seo-section p:last-child {
    margin-bottom: 0;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.link-grid a,
.text-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid #c7dce2;
    border-radius: 8px;
    background: #edf7fa;
    color: var(--brand);
    text-decoration: none;
    font-weight: 800;
}

.text-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.steps div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8f6f2;
}

.steps strong,
.steps span {
    display: block;
}

.steps strong {
    margin-bottom: 6px;
}

.steps span {
    color: var(--muted);
    line-height: 1.45;
}

@media (max-width: 1180px) {
    .content {
        grid-template-columns: minmax(0, 1fr);
    }

    .right-panel {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .right-panel br {
        display: none;
    }
}

@media (max-width: 860px) {
    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .app {
        display: block;
    }

    .sidebar {
        min-height: auto;
        position: static;
        padding: 18px;
    }

    .sidebar::after,
    .sidebar .nav {
        display: none;
    }

    .logo {
        font-size: 22px;
    }

    .topbar {
        min-height: 66px;
        padding: 14px 18px;
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-user-status {
        justify-content: flex-start;
        max-width: 100%;
        text-align: left;
    }

    .content {
        padding: 18px;
    }

    .profile-detail-compact {
        padding: 18px;
    }

    .profile-detail-header,
    .profile-detail-grid,
    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-detail-photo-card {
        max-width: 280px;
    }

    .hero {
        padding: 24px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
    }

    .grid,
    .right-panel {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 18px;
    }

    .message-bubble {
        width: 90%;
    }

    .mobile-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        box-shadow: 0 -10px 24px rgba(28, 38, 48, 0.08);
    }

    .mobile-tabbar a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        color: var(--muted);
        font-size: 13px;
    }

    .mobile-tabbar a.active {
        color: var(--brand);
        background: #e7eff1;
    }
}

@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .content,
    .hero,
    .seo-section,
    .card {
        width: 100%;
    }

    .content {
        gap: 16px;
    }

    .seo-section {
        padding: 18px;
    }

    .seo-section h2 {
        font-size: 21px;
    }

    .cta-row,
    .text-links {
        flex-direction: column;
    }

    .cta-row .btn,
    .link-grid a,
    .text-links a {
        width: 100%;
    }

    .link-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    input,
    textarea,
    select {
        width: 100%;
    }

    .right-panel {
        position: static;
    }
}

@media (max-width: 520px) {
    .topbar strong {
        font-size: 18px;
    }

    .badge {
        font-size: 12px;
    }

    .topbar-status-line {
        font-size: 11px;
    }

    .btn {
        width: 100%;
        margin-top: 8px;
    }

    .hero .btn {
        margin-right: 0;
    }

    .profile-preview {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .profile-preview .avatar {
        min-height: 68px;
        height: 68px;
    }

    .profile-detail-photo-card {
        max-width: 100%;
    }

    .profile-detail-photo-frame {
        max-width: 260px;
    }

    .profile-detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .message-bubble {
        width: 100%;
    }
}

/* Design refinement from the visual reference, using the existing class names. */
:root {
    --bg: #f7f1ea;
    --surface: #fffaf6;
    --surface-muted: #f7eee6;
    --ink: #1f2933;
    --muted: #66727f;
    --line: #eadfd7;
    --brand: #225464;
    --brand-strong: #173d49;
    --teal-soft: #e7eff1;
    --accent: #ef6f7d;
    --accent-strong: #9c4057;
    --accent-soft: #f2c2cc;
    --gold: #f2a33a;
    --ok-bg: #edf7f1;
    --ok-line: #c7e7d2;
    --ok-text: #17613b;
    --warn-bg: #fff8e8;
    --warn-line: #f1d28c;
    --warn-text: #7a5200;
    --danger-bg: #fff0f2;
    --danger-line: #efc3cc;
    --danger-text: #8c2638;
    --shadow: 0 18px 44px rgba(23, 61, 73, 0.11);
    --shadow-soft: 0 10px 24px rgba(23, 61, 73, 0.08);
}

html,
body {
    background:
        linear-gradient(135deg, rgba(255, 250, 246, 0.98), rgba(247, 241, 234, 0.98)),
        var(--bg);
}

body {
    color: var(--ink);
}

.app {
    grid-template-columns: 292px minmax(0, 1fr);
    background:
        linear-gradient(180deg, rgba(255, 250, 246, 0.9), rgba(247, 241, 234, 0.86)),
        var(--bg);
}

.sidebar {
    padding: 34px 20px 24px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, #174654 0%, #0b5360 55%, #173d49 100%);
    box-shadow: 12px 0 36px rgba(23, 61, 73, 0.16);
    gap: 28px;
}

.logo {
    position: relative;
    padding: 32px 2px 4px;
    font-size: 28px;
    letter-spacing: 0;
}

.logo::before {
    content: "♥";
    position: absolute;
    top: 0;
    left: 44px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 8px 18px rgba(239, 111, 125, 0.32);
    font-size: 13px;
}

.logo span {
    color: var(--accent-soft);
}

.logo::after {
    content: "Kostenlos - Verifiziert - Sicher";
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.nav {
    gap: 8px;
}

.nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.88);
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav a[data-icon]::before {
    content: attr(data-icon);
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    line-height: 1;
}

.nav a span {
    min-width: 0;
}

.nav a:hover,
.nav a.active {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.nav a:hover::before,
.nav a.active::before {
    background: rgba(242, 194, 204, 0.24);
}

.sidebar::after {
    padding: 20px 18px;
    border-color: rgba(242, 194, 204, 0.26);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    min-height: 72px;
    padding: 16px 32px;
    border-bottom: 1px solid rgba(234, 223, 215, 0.86);
    background: rgba(255, 250, 246, 0.88);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.74);
}

.topbar strong {
    max-width: 72%;
    color: var(--brand-strong);
    font-size: 19px;
    overflow-wrap: anywhere;
}

.badge {
    border-color: rgba(34, 84, 100, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--brand);
    box-shadow: var(--shadow-soft);
}

.topbar-user-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px 10px;
    max-width: 58%;
    text-align: right;
}

.topbar-status-line {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.content {
    padding: 34px;
    grid-template-columns: minmax(0, 1fr) 308px;
    gap: 24px;
}

.user-app .content {
    grid-template-columns: minmax(0, 1fr);
}

.public-app .content,
.home-app .content {
    grid-template-columns: minmax(0, 1fr);
}

.public-app .right-panel,
.home-app .right-panel {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.public-app .right-panel br,
.home-app .right-panel br {
    display: none;
}

.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 34px;
    border-color: rgba(234, 223, 215, 0.9);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 250, 246, 0.98), rgba(246, 230, 222, 0.9)),
        var(--surface);
    box-shadow: var(--shadow);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(239, 111, 125, 0.1), rgba(34, 84, 100, 0) 42%),
        linear-gradient(300deg, rgba(242, 163, 58, 0.1), rgba(255, 255, 255, 0) 48%);
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--brand-strong);
    font-size: 42px;
}

.hero p {
    color: #485867;
}

.home-hero {
    min-height: 470px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 28px;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin: 0 0 12px;
    padding: 7px 12px;
    border: 1px solid rgba(239, 111, 125, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 800;
}

.hero .hero-kicker {
    margin: 0 0 12px;
}

.hero-message {
    margin-bottom: 14px;
    color: var(--brand-strong);
    font-weight: 800;
    line-height: 1.06;
}

.hero-message span,
.hero-message strong {
    display: block;
    line-height: 1.06;
    letter-spacing: 0;
}

.hero-message span {
    font-size: 44px;
}

.hero-message strong {
    color: var(--accent);
    font-size: 44px;
}

.home-hero h1 {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.45;
}

.home-hero p:not(.hero-kicker) {
    max-width: 620px;
}

.hero-visual {
    position: relative;
    min-height: 340px;
    border-radius: 30px;
    background:
        linear-gradient(140deg, rgba(255, 250, 246, 0.8), rgba(242, 194, 204, 0.34)),
        var(--surface);
    border: 1px solid rgba(234, 223, 215, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), var(--shadow-soft);
}

.hero-visual::before,
.hero-visual::after {
    content: "♥";
    position: absolute;
    color: var(--accent);
    opacity: 0.5;
    font-size: 30px;
}

.hero-visual::before {
    top: 44px;
    right: 44px;
}

.hero-visual::after {
    left: 44px;
    bottom: 44px;
    color: var(--gold);
    font-size: 24px;
}

.family-symbol {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 220px;
    height: 190px;
    transform: translate(-50%, -45%);
}

.family-symbol::before,
.family-symbol::after {
    content: "";
    position: absolute;
    border-radius: 999px 999px 34px 34px;
    box-shadow: 0 16px 28px rgba(23, 61, 73, 0.13);
}

.family-symbol::before {
    left: 20px;
    bottom: 0;
    width: 88px;
    height: 116px;
    background: linear-gradient(180deg, #f2c2cc, #ef6f7d);
}

.family-symbol::after {
    right: 14px;
    bottom: 0;
    width: 104px;
    height: 136px;
    background: linear-gradient(180deg, #2c7180, #225464);
}

.family-symbol span {
    position: absolute;
    z-index: 2;
    display: block;
    border-radius: 50%;
    background: #f6c18b;
    box-shadow: 0 10px 18px rgba(82, 46, 28, 0.12);
}

.family-symbol span:nth-child(1) {
    left: 42px;
    top: 26px;
    width: 58px;
    height: 58px;
}

.family-symbol span:nth-child(2) {
    right: 44px;
    top: 6px;
    width: 66px;
    height: 66px;
}

.family-symbol span:nth-child(3) {
    left: 91px;
    top: 76px;
    width: 50px;
    height: 50px;
    background: #f5cc99;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.trust-row span {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(34, 84, 100, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--brand);
    font-size: 14px;
    font-weight: 800;
}

.trust-row span::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(239, 111, 125, 0.14);
}

.card,
.seo-section {
    border-color: rgba(234, 223, 215, 0.92);
    border-radius: 18px;
    background: rgba(255, 250, 246, 0.94);
    box-shadow: var(--shadow-soft);
}

.card {
    padding: 24px;
}

.right-panel .card {
    background:
        linear-gradient(180deg, rgba(255, 250, 246, 1), rgba(247, 238, 230, 0.82));
}

.card h2,
.card h3,
.seo-section h2 {
    color: var(--brand-strong);
}

.card p,
.seo-section p {
    color: #455463;
}

.seo-section {
    padding: 26px;
}

.seo-section:nth-of-type(2),
.seo-section:nth-of-type(3),
.seo-section:nth-of-type(4),
.seo-section:nth-of-type(5),
.seo-section:nth-of-type(6) {
    position: relative;
}

.seo-section:nth-of-type(2)::before,
.seo-section:nth-of-type(3)::before,
.seo-section:nth-of-type(4)::before,
.seo-section:nth-of-type(5)::before,
.seo-section:nth-of-type(6)::before {
    content: "";
    width: 36px;
    height: 36px;
    display: block;
    margin-bottom: 14px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)),
        var(--teal-soft);
    box-shadow: inset 0 0 0 1px rgba(34, 84, 100, 0.08);
}

.seo-section:nth-of-type(3)::before,
.seo-section:nth-of-type(5)::before {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0)),
        rgba(242, 194, 204, 0.62);
}

.seo-section:nth-of-type(4)::before,
.seo-section:nth-of-type(6)::before {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0)),
        rgba(242, 163, 58, 0.24);
}

.btn {
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 14px;
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(239, 111, 125, 0.22);
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn:hover {
    background: #e45f6e;
    box-shadow: 0 14px 28px rgba(239, 111, 125, 0.28);
    transform: translateY(-1px);
}

.btn.secondary {
    border: 1px solid rgba(34, 84, 100, 0.16);
    background: rgba(255, 255, 255, 0.68);
    color: var(--brand);
    box-shadow: none;
}

.btn.secondary:hover {
    background: var(--teal-soft);
    box-shadow: 0 10px 20px rgba(34, 84, 100, 0.08);
}

input,
textarea,
select {
    min-height: 44px;
    border-color: rgba(34, 84, 100, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(239, 111, 125, 0.13);
}

.notice {
    border-radius: 14px;
    background: #fff8e8;
}

.flash {
    border-radius: 14px;
    background: #edf7fa;
    box-shadow: var(--shadow-soft);
}

.steps {
    gap: 14px;
}

.steps div {
    border-color: rgba(234, 223, 215, 0.92);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
}

.link-grid a,
.text-links a {
    border-color: rgba(34, 84, 100, 0.14);
    border-radius: 12px;
    background: rgba(231, 239, 241, 0.72);
    color: var(--brand);
}

.home-topic-link-grid a {
    display: block;
    min-height: 0;
    padding: 14px;
    line-height: 1.45;
}

.home-topic-link-grid a strong,
.home-topic-link-grid a span {
    display: block;
}

.home-topic-link-grid a strong {
    margin-bottom: 6px;
}

.home-topic-link-grid a span {
    color: #455463;
    font-size: 0.94rem;
    font-weight: 600;
}

.table th {
    background: #f7eee6;
}

.mobile-tabbar {
    border-color: rgba(234, 223, 215, 0.94);
}

.mobile-tabbar a {
    border-radius: 14px;
}

.mobile-tabbar a.active {
    color: var(--brand);
    background: rgba(231, 239, 241, 0.92);
}

.site-footer {
    margin: 0 34px 28px;
    padding: 18px 0 0;
    border-top: 1px solid rgba(234, 223, 215, 0.92);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 13px;
}

.footer-brand {
    color: var(--brand);
    font-weight: 800;
    white-space: nowrap;
}

.footer-brand span {
    color: var(--accent);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--brand);
}

.admin-app .content {
    grid-template-columns: minmax(0, 1fr);
}

.admin-app .site-footer {
    margin-right: 34px;
}

@media (max-width: 1180px) {
    .home-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
    }

    .hero-visual {
        min-height: 260px;
    }
}

@media (max-width: 860px) {
    .app {
        display: block;
        background: var(--bg);
    }

    .sidebar {
        padding: 16px 18px;
        border-radius: 0 0 22px 22px;
        box-shadow: 0 12px 30px rgba(23, 61, 73, 0.12);
    }

    .logo {
        padding: 0 0 0 34px;
        font-size: 21px;
    }

    .logo::before {
        left: 0;
        top: 3px;
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .logo::after {
        margin-top: 6px;
        font-size: 11px;
    }

    .topbar {
        position: static;
        padding: 14px 18px;
        gap: 8px;
    }

    .topbar strong {
        max-width: none;
        font-size: 17px;
    }

    .badge {
        min-height: 30px;
        font-size: 12px;
    }

    .content {
        padding: 18px;
    }

    .hero {
        padding: 24px;
        border-radius: 20px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-message span,
    .hero-message strong {
        font-size: 34px;
    }

    .hero-visual {
        min-height: 200px;
    }

    .family-symbol {
        width: 180px;
        height: 154px;
    }

    .family-symbol::before {
        width: 70px;
        height: 90px;
    }

    .family-symbol::after {
        width: 82px;
        height: 106px;
    }

    .family-symbol span:nth-child(1) {
        left: 38px;
        top: 24px;
        width: 46px;
        height: 46px;
    }

    .family-symbol span:nth-child(2) {
        right: 38px;
        width: 52px;
        height: 52px;
    }

    .family-symbol span:nth-child(3) {
        left: 78px;
        top: 68px;
        width: 42px;
        height: 42px;
    }

    .right-panel {
        grid-template-columns: 1fr;
    }

    .public-app .right-panel,
    .home-app .right-panel {
        grid-template-columns: 1fr;
    }

    .mobile-tabbar {
        background: rgba(255, 250, 246, 0.96);
    }

    .site-footer {
        margin: 0 18px 92px;
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (max-width: 768px) {
    .home-hero {
        gap: 18px;
    }

    .seo-section,
    .card {
        border-radius: 16px;
    }

    .trust-row {
        gap: 8px;
    }

    .trust-row span {
        flex: 1 1 120px;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .content {
        padding: 14px;
    }

    .hero {
        padding: 20px;
        border-radius: 18px;
    }

    .hero-message span,
    .hero-message strong {
        font-size: 28px;
    }

    .home-hero h1 {
        font-size: 15px;
    }

    .hero .hero-kicker {
        display: none;
    }

    .hero p {
        font-size: 15px;
    }

    .home-hero p:not(.hero-kicker) {
        margin-bottom: 14px;
        line-height: 1.45;
    }

    .hero-visual {
        min-height: 150px;
        border-radius: 22px;
    }

    .family-symbol {
        transform: translate(-50%, -45%) scale(0.78);
    }

    .cta-row {
        gap: 8px;
        margin-top: 14px;
    }

    .trust-row {
        flex-wrap: nowrap;
        gap: 6px;
        margin-top: 14px;
    }

    .trust-row span {
        flex: 1 1 0;
        min-height: 34px;
        padding: 5px 6px;
        gap: 5px;
        font-size: 12px;
    }

    .trust-row span::before {
        width: 7px;
        height: 7px;
        box-shadow: 0 0 0 3px rgba(239, 111, 125, 0.14);
    }

    .btn {
        min-height: 46px;
        margin-top: 0;
        padding: 11px 14px;
    }

    .card,
    .seo-section {
        padding: 18px;
    }

    .mobile-tabbar {
        gap: 3px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .mobile-tabbar a {
        min-height: 44px;
        font-size: 12px;
    }
}

/* Closer alignment with the reference: compact hero and small card row. */
.home-app .content {
    padding: 30px 32px 26px;
}

.home-app .content > div {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.home-app .home-hero {
    grid-column: 1 / -1;
    min-height: auto;
    margin-bottom: 10px;
    padding: 30px 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    grid-template-areas:
        "copy visual"
        "actions visual";
    gap: 16px 30px;
    align-items: center;
    border-radius: 22px;
}

.home-app .hero-copy {
    grid-area: copy;
    max-width: 560px;
}

.home-app .hero-actions {
    grid-area: actions;
}

.home-app .hero-visual {
    grid-area: visual;
    min-height: 280px;
    border-radius: 26px;
}

.home-app .hero-message {
    margin-bottom: 12px;
}

.home-app .hero-message span,
.home-app .hero-message strong {
    font-size: 40px;
    line-height: 1.08;
}

.home-app .home-hero h1 {
    margin-bottom: 10px;
    font-size: 15px;
}

.home-app .home-hero p:not(.hero-kicker) {
    max-width: 520px;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.52;
}

.home-app .hero-actions .cta-row {
    margin-top: 0;
    gap: 10px;
}

.home-app .hero-actions .btn {
    min-height: 42px;
    padding: 10px 17px;
    border-radius: 12px;
    font-size: 14px;
}

.home-app .trust-row {
    margin-top: 13px;
    gap: 10px;
}

.home-app .trust-row span {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
}

.home-app .seo-section {
    grid-column: span 1;
    min-height: 0;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-app .seo-section h2 {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
}

.home-app .seo-section p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.48;
}

.home-app .seo-section:nth-of-type(-n+5)::before {
    content: "";
    width: 34px;
    height: 34px;
    display: block;
    margin-bottom: 8px;
    border-radius: 11px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
        var(--teal-soft);
    box-shadow: inset 0 0 0 1px rgba(34, 84, 100, 0.08);
    flex: 0 0 auto;
}

.home-app .seo-section:nth-of-type(-n+5) {
    height: 158px;
    overflow: hidden;
}

.home-app .seo-section:nth-of-type(-n+5) p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.home-app .seo-section:nth-of-type(-n+5) .text-links {
    display: none;
}

.home-app .seo-section:nth-of-type(2)::before,
.home-app .seo-section:nth-of-type(5)::before {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
        rgba(242, 194, 204, 0.64);
}

.home-app .seo-section:nth-of-type(3)::before {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
        rgba(242, 163, 58, 0.26);
}

.home-app .seo-section:nth-of-type(6),
.home-app .seo-section:nth-of-type(7) {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 20px;
}

.home-app .seo-section:nth-of-type(6) h2,
.home-app .seo-section:nth-of-type(7) h2 {
    font-size: 20px;
}

.home-app .seo-section:nth-of-type(6) p,
.home-app .seo-section:nth-of-type(7) p {
    font-size: 15px;
}

.home-app .right-panel {
    margin-top: 4px;
}

.home-app .right-panel .card {
    min-height: 110px;
    padding: 18px;
    border-radius: 12px;
}

.home-app .right-panel .card h3 {
    font-size: 16px;
}

.home-app .right-panel .card p {
    font-size: 13px;
}

@media (max-width: 1180px) {
    .home-app .content > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-app .home-hero {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "copy"
            "visual"
            "actions";
        gap: 16px;
    }

    .home-app .seo-section:nth-of-type(-n+5) {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .home-app .content {
        padding: 14px;
    }

    .home-app .content > div {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-app .home-hero {
        padding: 18px;
        border-radius: 18px;
        gap: 13px;
    }

    .home-app .hero-message span,
    .home-app .hero-message strong {
        font-size: 25px;
    }

    .home-app .hero-visual {
        min-height: 140px;
    }

    .home-app .seo-section {
        grid-column: 1 / -1;
        min-height: auto;
        padding: 15px;
    }

    .home-app .seo-section h2 {
        font-size: 16px;
    }

    .home-app .seo-section p {
        font-size: 13.5px;
    }

    .home-app .seo-section:nth-of-type(6),
    .home-app .seo-section:nth-of-type(7) {
        padding: 16px;
    }

    .home-app .hero-actions .cta-row {
        flex-direction: column;
    }

    .home-app .right-panel {
        grid-template-columns: 1fr;
    }
}

/* Compact sidebar refinement: closer to the slim app navigation in the reference. */
@media (min-width: 861px) {
    .app {
        grid-template-columns: 218px minmax(0, 1fr);
    }

    .sidebar {
        padding: 18px 14px 14px;
        gap: 12px;
    }

    .logo {
        padding: 22px 0 0;
        font-size: 21px;
        line-height: 1.08;
    }

    .logo::before {
        left: 32px;
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .logo::after {
        margin-top: 6px;
        font-size: 11px;
        line-height: 1.25;
    }

    .nav {
        gap: 3px;
    }

    .nav a {
        min-height: 32px;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 10px;
        font-size: 12.5px;
        line-height: 1.15;
    }

    .nav a[data-icon]::before {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
        border-radius: 6px;
        font-size: 11px;
    }

    .sidebar::after {
        padding: 9px 10px;
        border-radius: 12px;
        font-size: 11.5px;
        line-height: 1.32;
    }
}

/* Design fine-tuning: public pages start higher and feel less oversized. */
.public-app .topbar {
    display: none;
}

.public-app .content {
    padding-top: 18px;
}

.home-app .content {
    padding-top: 18px;
}

.home-app .home-hero {
    padding: 24px 28px;
    margin-bottom: 4px;
    gap: 12px 24px;
}

.home-app .hero-visual {
    min-height: 238px;
}

.home-app .hero-message {
    margin-bottom: 9px;
}

.home-app .hero-message span,
.home-app .hero-message strong {
    font-size: 38px;
}

.home-app .home-hero p:not(.hero-kicker) {
    font-size: 14.5px;
    line-height: 1.46;
}

.home-app .hero-actions .btn {
    min-height: 38px;
    padding: 9px 15px;
}

.home-app .trust-row {
    margin-top: 10px;
}

.home-app .trust-row span {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
}

.home-app .content > div {
    gap: 12px;
}

.home-app .seo-section:nth-of-type(-n+5) {
    height: 146px;
    padding: 14px;
}

.home-app .seo-section:nth-of-type(-n+5)::before {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
}

.home-app .seo-section h2 {
    font-size: 14px;
}

.home-app .seo-section p {
    font-size: 12px;
    line-height: 1.42;
}

.home-app .seo-section:nth-of-type(6),
.home-app .seo-section:nth-of-type(7) {
    padding: 18px;
}

.home-app .right-panel {
    margin-top: 0;
}

.home-app .right-panel .card {
    min-height: 94px;
    padding: 15px;
}

@media (max-width: 860px) {
    .public-app .topbar {
        display: none;
    }

    .public-app .content,
    .home-app .content {
        padding-top: 14px;
    }
}

@media (max-width: 640px) {
    .home-app .home-hero {
        padding: 16px;
        gap: 11px;
    }

    .home-app .hero-message span,
    .home-app .hero-message strong {
        font-size: 24px;
    }

    .home-app .home-hero p:not(.hero-kicker) {
        font-size: 14px;
    }

    .home-app .hero-visual {
        min-height: 126px;
    }

    .home-app .seo-section:nth-of-type(-n+5) {
        height: auto;
        min-height: 118px;
    }
}

/* Responsive polish for the compact design pass. */
@media (max-width: 860px) {
    .home-app .home-hero {
        padding: 18px;
        gap: 9px;
        margin-bottom: 2px;
    }

    .home-app .hero-message {
        margin-bottom: 6px;
    }

    .home-app .hero-message span,
    .home-app .hero-message strong {
        font-size: 30px;
        line-height: 1.05;
    }

    .home-app .home-hero h1 {
        margin-bottom: 6px;
        font-size: 14px;
    }

    .home-app .home-hero p:not(.hero-kicker) {
        font-size: 13.5px;
        line-height: 1.4;
    }

    .home-app .hero-visual {
        min-height: 118px;
        border-radius: 18px;
    }

    .home-app .hero-actions .cta-row {
        gap: 7px;
    }

    .home-app .trust-row {
        margin-top: 7px;
        gap: 6px;
    }

    .home-app .trust-row span {
        min-height: 28px;
        padding: 5px 8px;
        font-size: 11.5px;
    }
}

@media (max-width: 640px) {
    .home-app .home-hero {
        padding: 14px;
        gap: 8px;
    }

    .home-app .hero-message span,
    .home-app .hero-message strong {
        font-size: 22px;
    }

    .home-app .home-hero p:not(.hero-kicker) {
        font-size: 13.5px;
    }

    .home-app .hero-visual {
        min-height: 82px;
    }

    .home-app .seo-section:nth-of-type(-n+5) {
        min-height: 108px;
        padding: 12px;
    }
}

/* Small readability additions for public legal and guide pages. */
.legal-page,
.guide-page {
    max-width: 980px;
}

.legal-hero,
.guide-hero {
    margin-bottom: 0;
}

.legal-page .seo-section ul,
.guide-page .seo-section ul {
    margin: 0;
    padding-left: 20px;
    color: #455463;
}

.legal-page .seo-section li,
.guide-page .seo-section li {
    margin-bottom: 6px;
}

/* Compact long-form legal and guide pages. */
.text-page {
    max-width: 980px;
}

.text-page .hero,
.legal-page .hero,
.guide-page .hero,
.legal-hero,
.guide-hero {
    padding: 26px 30px;
    margin-bottom: 16px;
    border-radius: 20px;
}

.text-page .hero h1,
.legal-page .hero h1,
.guide-page .hero h1 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 2.6vw, 2.75rem);
    line-height: 1.06;
}

.text-page .hero p,
.legal-page .hero p,
.guide-page .hero p {
    max-width: 760px;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.text-page .seo-section,
.legal-page .seo-section,
.guide-page .seo-section {
    padding: 20px 24px;
    margin-bottom: 0;
    border-radius: 16px;
}

.text-page .seo-section h2,
.legal-page .seo-section h2,
.guide-page .seo-section h2 {
    margin-bottom: 9px;
    font-size: clamp(1.2rem, 1.55vw, 1.55rem);
    line-height: 1.2;
}

.text-page .seo-section p,
.text-page .seo-section li,
.legal-page .seo-section p,
.legal-page .seo-section li,
.guide-page .seo-section p,
.guide-page .seo-section li {
    font-size: 0.95rem;
    line-height: 1.6;
}

.text-page .seo-section p {
    margin-bottom: 10px;
}

.text-page .seo-section ul,
.legal-page .seo-section ul,
.guide-page .seo-section ul {
    margin-top: 8px;
    margin-bottom: 0;
    padding-left: 22px;
}

.legal-page .seo-section::before,
.guide-page .seo-section::before {
    display: none;
}

@media (max-width: 768px) {
    .text-page .hero,
    .legal-page .hero,
    .guide-page .hero,
    .legal-hero,
    .guide-hero {
        padding: 22px 20px;
        border-radius: 18px;
    }

    .text-page .hero h1,
    .legal-page .hero h1,
    .guide-page .hero h1 {
        font-size: 2rem;
    }

    .text-page .seo-section,
    .legal-page .seo-section,
    .guide-page .seo-section {
        padding: 18px;
        border-radius: 14px;
    }

    .text-page .seo-section h2,
    .legal-page .seo-section h2,
    .guide-page .seo-section h2 {
        font-size: 1.28rem;
    }
}

/* Final compact override for long public text pages.
   Limited to public legal/guide content pages. Homepage, sidebar, dashboard,
   search, profile, chat and admin layouts stay unchanged. */
.public-app:not(.home-app) .content {
    padding-top: 12px !important;
    padding-right: 24px !important;
    padding-bottom: 24px !important;
    padding-left: 24px !important;
}

.public-app:not(.home-app) .text-page,
.public-app:not(.home-app) .legal-page,
.public-app:not(.home-app) .guide-page {
    max-width: 920px !important;
    gap: 12px !important;
}

.public-app:not(.home-app) .text-page .hero,
.public-app:not(.home-app) .legal-page .hero,
.public-app:not(.home-app) .guide-page .hero,
.public-app:not(.home-app) .legal-hero,
.public-app:not(.home-app) .guide-hero {
    padding: 18px 22px !important;
    margin-bottom: 10px !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-soft) !important;
}

.public-app:not(.home-app) .text-page .hero h1,
.public-app:not(.home-app) .legal-page .hero h1,
.public-app:not(.home-app) .guide-page .hero h1,
.public-app:not(.home-app) .legal-hero h1,
.public-app:not(.home-app) .guide-hero h1 {
    max-width: 760px !important;
    margin: 0 0 7px !important;
    font-size: clamp(1.55rem, 2.1vw, 2.15rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.01em !important;
}

.public-app:not(.home-app) .text-page .hero p,
.public-app:not(.home-app) .legal-page .hero p,
.public-app:not(.home-app) .guide-page .hero p,
.public-app:not(.home-app) .legal-hero p,
.public-app:not(.home-app) .guide-hero p {
    max-width: 760px !important;
    margin: 0 !important;
    font-size: 0.92rem !important;
    line-height: 1.48 !important;
}

.public-app:not(.home-app) .text-page .seo-section,
.public-app:not(.home-app) .legal-page .seo-section,
.public-app:not(.home-app) .guide-page .seo-section {
    padding: 14px 18px !important;
    margin: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 18px rgba(23, 61, 73, 0.06) !important;
}

.public-app:not(.home-app) .text-page .seo-section::before,
.public-app:not(.home-app) .legal-page .seo-section::before,
.public-app:not(.home-app) .guide-page .seo-section::before {
    display: none !important;
    content: none !important;
}

.public-app:not(.home-app) .text-page .seo-section h2,
.public-app:not(.home-app) .legal-page .seo-section h2,
.public-app:not(.home-app) .guide-page .seo-section h2 {
    margin: 0 0 6px !important;
    font-size: clamp(1.02rem, 1.35vw, 1.28rem) !important;
    line-height: 1.22 !important;
}

.public-app:not(.home-app) .text-page .seo-section p,
.public-app:not(.home-app) .legal-page .seo-section p,
.public-app:not(.home-app) .guide-page .seo-section p,
.public-app:not(.home-app) .text-page .seo-section li,
.public-app:not(.home-app) .legal-page .seo-section li,
.public-app:not(.home-app) .guide-page .seo-section li {
    font-size: 0.88rem !important;
    line-height: 1.48 !important;
}

.public-app:not(.home-app) .text-page .seo-section p,
.public-app:not(.home-app) .legal-page .seo-section p,
.public-app:not(.home-app) .guide-page .seo-section p {
    margin: 0 0 7px !important;
}

.public-app:not(.home-app) .text-page .seo-section p:last-child,
.public-app:not(.home-app) .legal-page .seo-section p:last-child,
.public-app:not(.home-app) .guide-page .seo-section p:last-child {
    margin-bottom: 0 !important;
}

.public-app:not(.home-app) .text-page .seo-section ul,
.public-app:not(.home-app) .legal-page .seo-section ul,
.public-app:not(.home-app) .guide-page .seo-section ul,
.public-app:not(.home-app) .text-page .seo-section ol,
.public-app:not(.home-app) .legal-page .seo-section ol,
.public-app:not(.home-app) .guide-page .seo-section ol {
    margin: 4px 0 0 !important;
    padding-left: 19px !important;
    line-height: 1.48 !important;
}

.public-app:not(.home-app) .text-page .seo-section li,
.public-app:not(.home-app) .legal-page .seo-section li,
.public-app:not(.home-app) .guide-page .seo-section li {
    margin-bottom: 3px !important;
}

.public-app:not(.home-app) .text-page .text-links,
.public-app:not(.home-app) .legal-page .text-links,
.public-app:not(.home-app) .guide-page .text-links {
    gap: 7px !important;
}

.public-app:not(.home-app) .text-page .text-links a,
.public-app:not(.home-app) .legal-page .text-links a,
.public-app:not(.home-app) .guide-page .text-links a {
    min-height: 34px !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
    font-size: 0.86rem !important;
}

@media (max-width: 860px) {
    .public-app:not(.home-app) .content {
        padding: 10px 14px 86px !important;
    }

    .public-app:not(.home-app) .text-page,
    .public-app:not(.home-app) .legal-page,
    .public-app:not(.home-app) .guide-page {
        max-width: 100% !important;
        gap: 10px !important;
    }

    .public-app:not(.home-app) .text-page .hero,
    .public-app:not(.home-app) .legal-page .hero,
    .public-app:not(.home-app) .guide-page .hero,
    .public-app:not(.home-app) .legal-hero,
    .public-app:not(.home-app) .guide-hero {
        padding: 15px 16px !important;
        margin-bottom: 8px !important;
        border-radius: 14px !important;
    }

    .public-app:not(.home-app) .text-page .hero h1,
    .public-app:not(.home-app) .legal-page .hero h1,
    .public-app:not(.home-app) .guide-page .hero h1,
    .public-app:not(.home-app) .legal-hero h1,
    .public-app:not(.home-app) .guide-hero h1 {
        font-size: clamp(1.35rem, 7vw, 1.75rem) !important;
        line-height: 1.12 !important;
    }

    .public-app:not(.home-app) .text-page .hero p,
    .public-app:not(.home-app) .legal-page .hero p,
    .public-app:not(.home-app) .guide-page .hero p,
    .public-app:not(.home-app) .legal-hero p,
    .public-app:not(.home-app) .guide-hero p {
        font-size: 0.88rem !important;
        line-height: 1.42 !important;
    }

    .public-app:not(.home-app) .text-page .seo-section,
    .public-app:not(.home-app) .legal-page .seo-section,
    .public-app:not(.home-app) .guide-page .seo-section {
        padding: 12px 13px !important;
        border-radius: 12px !important;
    }

    .public-app:not(.home-app) .text-page .seo-section h2,
    .public-app:not(.home-app) .legal-page .seo-section h2,
    .public-app:not(.home-app) .guide-page .seo-section h2 {
        font-size: 1.05rem !important;
        line-height: 1.18 !important;
    }

    .public-app:not(.home-app) .text-page .seo-section p,
    .public-app:not(.home-app) .legal-page .seo-section p,
    .public-app:not(.home-app) .guide-page .seo-section p,
    .public-app:not(.home-app) .text-page .seo-section li,
    .public-app:not(.home-app) .legal-page .seo-section li,
    .public-app:not(.home-app) .guide-page .seo-section li {
        font-size: 0.86rem !important;
        line-height: 1.44 !important;
    }
}

@media (max-width: 520px) {
    .public-app:not(.home-app) .content {
        padding: 8px 10px 84px !important;
    }

    .public-app:not(.home-app) .text-page .hero,
    .public-app:not(.home-app) .legal-page .hero,
    .public-app:not(.home-app) .guide-page .hero,
    .public-app:not(.home-app) .legal-hero,
    .public-app:not(.home-app) .guide-hero {
        padding: 13px 14px !important;
        border-radius: 12px !important;
    }

    .public-app:not(.home-app) .text-page .seo-section,
    .public-app:not(.home-app) .legal-page .seo-section,
    .public-app:not(.home-app) .guide-page .seo-section {
        padding: 11px 12px !important;
    }
}

/* Stronger compact override for long public text pages.
   This intentionally reduces legal/guide headings much further while keeping
   the sidebar, homepage, dashboard, search, profile, chat and admin untouched. */
.public-app:not(.home-app) .text-page .hero,
.public-app:not(.home-app) .legal-page .hero,
.public-app:not(.home-app) .guide-page .hero,
.public-app:not(.home-app) .legal-hero,
.public-app:not(.home-app) .guide-hero {
    padding: 12px 16px !important;
    margin-bottom: 8px !important;
    border-radius: 13px !important;
}

.public-app:not(.home-app) .text-page .hero h1,
.public-app:not(.home-app) .legal-page .hero h1,
.public-app:not(.home-app) .guide-page .hero h1,
.public-app:not(.home-app) .legal-hero h1,
.public-app:not(.home-app) .guide-hero h1 {
    margin: 0 0 5px !important;
    font-size: clamp(1.08rem, 1.35vw, 1.38rem) !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
}

.public-app:not(.home-app) .text-page .hero p,
.public-app:not(.home-app) .legal-page .hero p,
.public-app:not(.home-app) .guide-page .hero p,
.public-app:not(.home-app) .legal-hero p,
.public-app:not(.home-app) .guide-hero p {
    font-size: 0.82rem !important;
    line-height: 1.38 !important;
}

.public-app:not(.home-app) .text-page,
.public-app:not(.home-app) .legal-page,
.public-app:not(.home-app) .guide-page {
    max-width: 900px !important;
    gap: 8px !important;
}

.public-app:not(.home-app) .text-page .seo-section,
.public-app:not(.home-app) .legal-page .seo-section,
.public-app:not(.home-app) .guide-page .seo-section {
    padding: 10px 14px !important;
    border-radius: 11px !important;
}

.public-app:not(.home-app) .text-page .seo-section h2,
.public-app:not(.home-app) .legal-page .seo-section h2,
.public-app:not(.home-app) .guide-page .seo-section h2 {
    margin: 0 0 4px !important;
    font-size: clamp(0.86rem, 1.05vw, 1rem) !important;
    line-height: 1.18 !important;
}

.public-app:not(.home-app) .text-page .seo-section p,
.public-app:not(.home-app) .legal-page .seo-section p,
.public-app:not(.home-app) .guide-page .seo-section p,
.public-app:not(.home-app) .text-page .seo-section li,
.public-app:not(.home-app) .legal-page .seo-section li,
.public-app:not(.home-app) .guide-page .seo-section li {
    font-size: 0.81rem !important;
    line-height: 1.4 !important;
}

.public-app:not(.home-app) .text-page .seo-section p,
.public-app:not(.home-app) .legal-page .seo-section p,
.public-app:not(.home-app) .guide-page .seo-section p {
    margin: 0 0 5px !important;
}

.public-app:not(.home-app) .text-page .seo-section ul,
.public-app:not(.home-app) .legal-page .seo-section ul,
.public-app:not(.home-app) .guide-page .seo-section ul,
.public-app:not(.home-app) .text-page .seo-section ol,
.public-app:not(.home-app) .legal-page .seo-section ol,
.public-app:not(.home-app) .guide-page .seo-section ol {
    margin-top: 3px !important;
    padding-left: 17px !important;
    line-height: 1.4 !important;
}

.public-app:not(.home-app) .text-page .seo-section li,
.public-app:not(.home-app) .legal-page .seo-section li,
.public-app:not(.home-app) .guide-page .seo-section li {
    margin-bottom: 2px !important;
}

.public-app:not(.home-app) .text-page .text-links a,
.public-app:not(.home-app) .legal-page .text-links a,
.public-app:not(.home-app) .guide-page .text-links a {
    min-height: 30px !important;
    padding: 6px 9px !important;
    font-size: 0.8rem !important;
}

@media (max-width: 860px) {
    .public-app:not(.home-app) .text-page,
    .public-app:not(.home-app) .legal-page,
    .public-app:not(.home-app) .guide-page {
        gap: 8px !important;
    }

    .public-app:not(.home-app) .text-page .hero,
    .public-app:not(.home-app) .legal-page .hero,
    .public-app:not(.home-app) .guide-page .hero,
    .public-app:not(.home-app) .legal-hero,
    .public-app:not(.home-app) .guide-hero {
        padding: 11px 13px !important;
        margin-bottom: 7px !important;
        border-radius: 12px !important;
    }

    .public-app:not(.home-app) .text-page .hero h1,
    .public-app:not(.home-app) .legal-page .hero h1,
    .public-app:not(.home-app) .guide-page .hero h1,
    .public-app:not(.home-app) .legal-hero h1,
    .public-app:not(.home-app) .guide-hero h1 {
        font-size: clamp(1rem, 4.4vw, 1.22rem) !important;
        line-height: 1.12 !important;
    }

    .public-app:not(.home-app) .text-page .hero p,
    .public-app:not(.home-app) .legal-page .hero p,
    .public-app:not(.home-app) .guide-page .hero p,
    .public-app:not(.home-app) .legal-hero p,
    .public-app:not(.home-app) .guide-hero p {
        font-size: 0.8rem !important;
        line-height: 1.36 !important;
    }

    .public-app:not(.home-app) .text-page .seo-section,
    .public-app:not(.home-app) .legal-page .seo-section,
    .public-app:not(.home-app) .guide-page .seo-section {
        padding: 9px 11px !important;
        border-radius: 10px !important;
    }

    .public-app:not(.home-app) .text-page .seo-section h2,
    .public-app:not(.home-app) .legal-page .seo-section h2,
    .public-app:not(.home-app) .guide-page .seo-section h2 {
        font-size: 0.92rem !important;
        line-height: 1.16 !important;
    }

    .public-app:not(.home-app) .text-page .seo-section p,
    .public-app:not(.home-app) .legal-page .seo-section p,
    .public-app:not(.home-app) .guide-page .seo-section p,
    .public-app:not(.home-app) .text-page .seo-section li,
    .public-app:not(.home-app) .legal-page .seo-section li,
    .public-app:not(.home-app) .guide-page .seo-section li {
        font-size: 0.8rem !important;
        line-height: 1.36 !important;
    }
}

@media (max-width: 520px) {
    .public-app:not(.home-app) .text-page .hero,
    .public-app:not(.home-app) .legal-page .hero,
    .public-app:not(.home-app) .guide-page .hero,
    .public-app:not(.home-app) .legal-hero,
    .public-app:not(.home-app) .guide-hero {
        padding: 10px 11px !important;
        border-radius: 10px !important;
    }

    .public-app:not(.home-app) .text-page .hero h1,
    .public-app:not(.home-app) .legal-page .hero h1,
    .public-app:not(.home-app) .guide-page .hero h1,
    .public-app:not(.home-app) .legal-hero h1,
    .public-app:not(.home-app) .guide-hero h1 {
        font-size: 1.02rem !important;
    }

    .public-app:not(.home-app) .text-page .seo-section,
    .public-app:not(.home-app) .legal-page .seo-section,
    .public-app:not(.home-app) .guide-page .seo-section {
        padding: 8px 10px !important;
    }

    .public-app:not(.home-app) .text-page .seo-section h2,
    .public-app:not(.home-app) .legal-page .seo-section h2,
    .public-app:not(.home-app) .guide-page .seo-section h2 {
        font-size: 0.88rem !important;
    }
}


/* Hero image override: replaces the old family-symbol with the new image and aligns it closer to the text. */
.hero-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-family-image {
    width: 100%;
    max-width: 340px;
    height: 245px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(23, 61, 73, 0.14);
}

.home-app .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
    gap: 12px 0 !important;
}

.home-app .hero-image-wrap {
    min-height: 238px !important;
    margin-left: -62px;
    padding: 10px;
}

.hero-image-wrap .family-symbol,
.family-symbol {
    display: none !important;
}

@media (max-width: 1180px) {
    .home-app .home-hero {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .home-app .hero-image-wrap {
        margin-left: 0;
    }

    .hero-family-image {
        max-width: 520px;
        height: auto;
    }
}

@media (max-width: 640px) {
    .home-app .hero-image-wrap {
        min-height: 130px !important;
        padding: 6px;
    }

    .hero-family-image {
        max-width: 100%;
        height: auto;
        border-radius: 16px;
    }
}


/* Final hero image positioning: larger and moved further left as requested. */
@media (min-width: 1181px) {
    .home-app .home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
        gap: 12px 0 !important;
    }

    .home-app .hero-image-wrap {
        margin-left: -62px !important;
        padding: 8px !important;
    }

    .home-app .hero-family-image {
        max-width: 340px !important;
        height: 245px !important;
        border-radius: 22px !important;
    }
}


/* Homepage: show the platform process directly under the hero before the topic cards. */
.home-app .how-it-works-section {
    grid-column: 1 / -1 !important;
    min-height: auto !important;
    height: auto !important;
    padding: 18px 20px !important;
}

.home-app .how-it-works-section h2 {
    font-size: 20px !important;
    margin-bottom: 14px !important;
}

.home-app .how-it-works-section .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.home-app .how-it-works-section .steps div {
    min-height: 94px;
    padding: 14px;
}

.home-app .how-it-works-section .steps strong {
    color: var(--brand-strong);
    font-size: 14px;
}

.home-app .how-it-works-section .steps span {
    font-size: 12.5px;
    line-height: 1.42;
}

@media (max-width: 1180px) {
    .home-app .how-it-works-section .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-app .how-it-works-section {
        padding: 15px !important;
    }

    .home-app .how-it-works-section .steps {
        grid-template-columns: 1fr;
    }
}


/* Correction after moving "So funktioniert die Plattform":
   The process block stays directly under the hero.
   The five topic cards below it stay as five compact side-by-side cards. */
@media (min-width: 1181px) {
    .home-app .how-it-works-section {
        grid-column: 1 / -1 !important;
        height: auto !important;
        min-height: auto !important;
        padding: 18px 20px !important;
    }

    .home-app .how-it-works-section .steps {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .home-app .content > div > .seo-section:not(.how-it-works-section):nth-of-type(2),
    .home-app .content > div > .seo-section:not(.how-it-works-section):nth-of-type(3),
    .home-app .content > div > .seo-section:not(.how-it-works-section):nth-of-type(4),
    .home-app .content > div > .seo-section:not(.how-it-works-section):nth-of-type(5),
    .home-app .content > div > .seo-section:not(.how-it-works-section):nth-of-type(6) {
        grid-column: span 1 !important;
        height: 146px !important;
        min-height: 0 !important;
        padding: 14px !important;
    }

    .home-app .content > div > .seo-section:not(.how-it-works-section):nth-of-type(7) {
        grid-column: 1 / -1 !important;
        height: auto !important;
        min-height: auto !important;
        padding: 18px !important;
    }
}

@media (max-width: 1180px) {
    .home-app .how-it-works-section {
        grid-column: 1 / -1 !important;
    }

    .home-app .how-it-works-section .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .home-app .how-it-works-section .steps {
        grid-template-columns: 1fr !important;
    }
}


/* Robust homepage card layout: explicit classes instead of fragile nth-of-type order. */
@media (min-width: 1181px) {
    .home-app .content > div {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }

    .home-app .how-it-works-section,
    .home-app .home-links-section {
        grid-column: 1 / -1 !important;
        height: auto !important;
        min-height: auto !important;
    }

    .home-app .home-topic-card {
        grid-column: span 1 !important;
        height: 146px !important;
        min-height: 0 !important;
        padding: 14px !important;
        overflow: hidden !important;
    }

    .home-app .home-topic-card h2 {
        margin: 0 0 6px !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
    }

    .home-app .home-topic-card p {
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.42 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 4 !important;
        overflow: hidden !important;
    }

    .home-app .home-topic-card .text-links {
        display: none !important;
    }

    .home-app .home-links-section {
        padding: 18px !important;
    }
}

@media (max-width: 1180px) {
    .home-app .home-topic-card,
    .home-app .home-links-section,
    .home-app .how-it-works-section {
        grid-column: 1 / -1 !important;
        height: auto !important;
    }
}
/* Homepage topic cards: compact five-card row without clipped text. */
@media (min-width: 1181px) {
    .home-app .content > div > .seo-section.home-topic-card:not(.how-it-works-section) {
        grid-column: span 1 !important;
        height: 192px !important;
        min-height: 192px !important;
        padding: 15px !important;
        gap: 0 !important;
        overflow: hidden !important;
    }

    .home-app .content > div > .seo-section.home-topic-card:not(.how-it-works-section)::before {
        width: 28px !important;
        height: 28px !important;
        margin-bottom: 5px !important;
        flex: 0 0 auto !important;
    }

    .home-app .content > div > .seo-section.home-topic-card:not(.how-it-works-section) h2 {
        flex: 0 0 auto !important;
        min-height: 0 !important;
        margin: 0 0 3px !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
        overflow: visible !important;
    }

    .home-app .content > div > .seo-section.home-topic-card:not(.how-it-works-section) p {
        flex: 0 1 auto !important;
        display: -webkit-box !important;
        overflow: hidden !important;
        max-height: 63px !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 4 !important;
        line-clamp: 4 !important;
        margin: 0 !important;
        font-size: 11.5px !important;
        line-height: 1.36 !important;
        text-overflow: ellipsis !important;
    }
}

@media (max-width: 1180px) {
    .home-app .home-topic-card {
        height: auto !important;
        min-height: 150px !important;
        gap: 0 !important;
    }

    .home-app .home-topic-card h2 {
        min-height: 0 !important;
        margin-bottom: 3px !important;
    }
}

@media (max-width: 640px) {
    .home-app .home-topic-card {
        min-height: 118px !important;
        padding: 12px !important;
    }

    .home-app .home-topic-card p {
        max-height: none !important;
        -webkit-line-clamp: 5 !important;
        line-clamp: 5 !important;
    }
}


/* Homepage topic heading links: only the headings are clickable, cards stay unchanged. */
.home-app .home-topic-card .home-topic-title-link {
    color: var(--brand-strong);
    text-decoration: none;
}

.home-app .home-topic-card .home-topic-title-link:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Final compact topic-card text fit. Keeps the five cards equal and prevents hard clipping. */
@media (min-width: 1181px) {
    .home-app .content > div > .seo-section.home-topic-card {
        grid-column: span 1 !important;
        height: 190px !important;
        min-height: 190px !important;
        padding: 14px !important;
        gap: 0 !important;
        overflow: hidden !important;
    }

    .home-app .content > div > .seo-section.home-topic-card::before {
        width: 26px !important;
        height: 26px !important;
        margin-bottom: 5px !important;
        flex: 0 0 auto !important;
    }

    .home-app .content > div > .seo-section.home-topic-card h2 {
        margin: 0 0 3px !important;
        font-size: 13.5px !important;
        line-height: 1.18 !important;
    }

    .home-app .content > div > .seo-section.home-topic-card p {
        margin: 0 !important;
        font-size: 11.4px !important;
        line-height: 1.34 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 4 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

@media (max-width: 1180px) {
    .home-app .home-topic-card h2 {
        margin-bottom: 4px !important;
    }
}

.public-app.topic-app .content {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start;
}

.public-app.topic-app .topic-layout {
    align-items: start;
}

.public-app.topic-app .topic-principle {
    margin: 12px 0 0 !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-app.topic-app .topic-principle h2 {
    margin: 0 !important;
    font-size: 0.98rem !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}

.public-app.topic-app .topic-principle p {
    margin: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
}

@media (max-width: 520px) {
    .public-app.topic-app .topic-principle {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

/* Public topic and guide pages: first page title slightly quieter than the global hero. */
.public-app.topic-app .hero h1,
.public-app.topic-app .text-page .hero h1,
.public-app:not(.home-app) .guide-page .hero h1,
.public-app:not(.home-app) .guide-hero h1,
.public-app:not(.home-app) .ratgeber-layout .hero h1 {
    margin-bottom: 6px !important;
    font-size: clamp(1.45rem, 1.85vw, 1.95rem) !important;
    line-height: 1.12 !important;
}

@media (max-width: 768px) {
    .public-app.topic-app .hero h1,
    .public-app.topic-app .text-page .hero h1,
    .public-app:not(.home-app) .guide-page .hero h1,
    .public-app:not(.home-app) .guide-hero h1,
    .public-app:not(.home-app) .ratgeber-layout .hero h1 {
        font-size: 1.55rem !important;
    }
}

/* Ratgeber structure: two-level category navigation and prepared vertical ad sidebar. */
.ratgeber-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
    gap: 18px;
    align-items: start;
}

.ratgeber-main {
    min-width: 0;
}

.ratgeber-kicker {
    margin: 0 0 6px !important;
    font-size: 0.82rem !important;
    font-weight: 800;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0 !important;
}

.ratgeber-category-list {
    display: grid;
    gap: 10px;
}

.ratgeber-category {
    border: 1px solid rgba(34, 84, 100, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.56);
    overflow: hidden;
}

.ratgeber-category summary {
    cursor: pointer;
    display: grid;
    gap: 4px;
    padding: 13px 15px;
    list-style: none;
}

.ratgeber-category summary::-webkit-details-marker {
    display: none;
}

.ratgeber-category summary strong {
    color: var(--brand-strong);
    font-size: 0.98rem;
    line-height: 1.25;
}

.ratgeber-category summary span {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.42;
}

.ratgeber-category summary::after {
    content: "+";
    justify-self: end;
    margin-top: -38px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--brand);
    background: rgba(34, 84, 100, 0.08);
    font-weight: 800;
}

.ratgeber-category[open] summary::after {
    content: "-";
}

.ratgeber-category ul {
    margin: 0;
    padding: 0 15px 14px;
    display: grid;
    gap: 8px;
    list-style: none;
}

.ratgeber-category li {
    display: grid;
    gap: 2px;
    padding: 9px 0;
    border-top: 1px solid rgba(34, 84, 100, 0.1);
}

.ratgeber-category li a {
    color: var(--brand-strong);
    font-weight: 800;
    text-decoration: none;
    line-height: 1.25;
}

.ratgeber-category li a:hover {
    text-decoration: underline;
}

.ratgeber-category li span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.42;
}

.ratgeber-ad-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 12px;
}

.ratgeber-ad-slot {
    min-height: 210px;
    padding: 16px;
    border: 1px dashed rgba(34, 84, 100, 0.28);
    border-radius: 14px;
    background: rgba(255, 250, 246, 0.72);
    color: var(--muted);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}

.ratgeber-ad-slot-small {
    min-height: 150px;
}

.ratgeber-ad-slot span {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0 !important;
}

.ratgeber-ad-slot strong {
    color: var(--brand-strong);
    font-size: 1rem;
}

.ratgeber-ad-slot p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
}

.ratgeber-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.ratgeber-teaser-card {
    padding: 13px;
    border: 1px solid rgba(34, 84, 100, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
}

.ratgeber-teaser-card h3 {
    margin: 0 0 6px;
    color: var(--brand-strong);
    font-size: 0.98rem;
    line-height: 1.22;
}

.ratgeber-teaser-card p {
    margin: 0 0 9px !important;
    font-size: 0.86rem !important;
    line-height: 1.42 !important;
}

.ratgeber-teaser-card a {
    color: var(--brand);
    font-weight: 800;
    font-size: 0.84rem;
    text-decoration: none;
}

.ratgeber-teaser-card a:hover {
    text-decoration: underline;
}

.nav-main-details summary {
    cursor: pointer;
    list-style: none;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    line-height: 1.2;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav-main-details summary::-webkit-details-marker {
    display: none;
}

.nav-main-details summary::marker {
    content: "";
}

.nav-main-details summary[data-icon]::before {
    content: attr(data-icon);
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    line-height: 1;
}

.nav-main-details summary span {
    min-width: 0;
}

.nav-main-details summary:hover,
.nav-main-details.active summary,
.nav-main-details[open] summary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.nav-main-details summary:hover::before,
.nav-main-details.active summary::before,
.nav-main-details[open] summary::before {
    background: rgba(242, 194, 204, 0.24);
}

.nav-main-subnav {
    margin: -2px 0 6px 16px;
    padding: 0 0 0 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    display: grid;
    gap: 2px;
}

.nav .nav-main-subnav a {
    min-height: 0;
    padding: 4px 5px;
    border: 0;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    box-shadow: none;
    font-size: 12px;
    line-height: 1.25;
}

.nav .nav-main-subnav a:hover,
.nav .nav-main-subnav a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    transform: none;
}

@media (min-width: 861px) {
    .nav-main-details summary {
        min-height: 32px;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 10px;
        font-size: 12.5px;
        line-height: 1.15;
    }

    .nav-main-details summary[data-icon]::before {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
        border-radius: 6px;
        font-size: 11px;
    }
}

.nav-ratgeber-tree {
    margin: -2px 0 6px 16px;
    padding: 0 0 0 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    display: grid;
    gap: 3px;
}

.nav-ratgeber-tree.collapsed {
    display: none;
}

.nav-ratgeber-category {
    color: rgba(255, 255, 255, 0.76);
}

.nav-ratgeber-category summary {
    cursor: pointer;
    list-style: none;
    padding: 4px 4px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 10.8px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-ratgeber-category summary::-webkit-details-marker {
    display: none;
}

.nav-ratgeber-category summary::before {
    content: "+";
    display: inline-block;
    width: 13px;
    color: rgba(255, 255, 255, 0.62);
}

.nav-ratgeber-category[open] summary::before {
    content: "-";
}

.nav-ratgeber-category.active summary,
.nav-ratgeber-category summary:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-ratgeber-articles {
    display: grid;
    gap: 2px;
    padding: 1px 0 5px 14px;
}

.nav .nav-ratgeber-articles a {
    min-height: 0;
    padding: 4px 5px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.68);
    font-size: 10.6px;
    font-weight: 650;
    line-height: 1.24;
}

.nav .nav-ratgeber-articles a:hover,
.nav .nav-ratgeber-articles a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
}

@media (min-width: 861px) {
    .sidebar:has(.nav-ratgeber-tree),
    .sidebar:has(.nav-themen-details[open]) {
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.24) rgba(11, 83, 96, 0.18);
    }

    .sidebar:has(.nav-ratgeber-tree)::-webkit-scrollbar,
    .sidebar:has(.nav-themen-details[open])::-webkit-scrollbar {
        width: 8px;
    }

    .sidebar:has(.nav-ratgeber-tree)::-webkit-scrollbar-track,
    .sidebar:has(.nav-themen-details[open])::-webkit-scrollbar-track {
        background: rgba(11, 83, 96, 0.18);
    }

    .sidebar:has(.nav-ratgeber-tree)::-webkit-scrollbar-thumb,
    .sidebar:has(.nav-themen-details[open])::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.22);
        border: 2px solid rgba(23, 70, 84, 0.42);
        border-radius: 999px;
    }

    .sidebar:has(.nav-ratgeber-tree)::-webkit-scrollbar-thumb:hover,
    .sidebar:has(.nav-themen-details[open])::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.32);
    }
}

@media (max-width: 980px) {
    .ratgeber-layout {
        grid-template-columns: 1fr;
    }

    .ratgeber-ad-sidebar {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ratgeber-ad-slot,
    .ratgeber-ad-slot-small {
        min-height: 120px;
    }
}

@media (max-width: 640px) {
    .ratgeber-teaser-grid {
        grid-template-columns: 1fr;
    }

    .ratgeber-category summary {
        padding: 11px 12px;
    }

    .ratgeber-category ul {
        padding: 0 12px 12px;
    }

    .ratgeber-category summary::after {
        margin-top: -34px;
    }

    .ratgeber-ad-sidebar {
        grid-template-columns: 1fr;
    }

    .ratgeber-ad-slot,
    .ratgeber-ad-slot-small {
        min-height: 96px;
        padding: 12px;
    }
}

/* Final override: public Themen- und Ratgeber-Seitentitel kompakter.
   Betrifft nicht Startseite und nicht Adminbereich. */
.public-app:not(.home-app) .hero h1,
.public-app:not(.home-app) .text-page .hero h1,
.public-app:not(.home-app) .legal-page .hero h1,
.public-app:not(.home-app) .guide-page .hero h1,
.public-app:not(.home-app) .legal-hero h1,
.public-app:not(.home-app) .guide-hero h1,
.public-app:not(.home-app) .ratgeber-layout .hero h1,
.public-app:not(.home-app) .ratgeber-main .hero h1,
.public-app:not(.home-app) .topic-layout .hero h1 {
    margin: 0 0 6px !important;
    font-size: clamp(1.42rem, 1.8vw, 1.88rem) !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
}

@media (max-width: 768px) {
    .public-app:not(.home-app) .hero h1,
    .public-app:not(.home-app) .text-page .hero h1,
    .public-app:not(.home-app) .legal-page .hero h1,
    .public-app:not(.home-app) .guide-page .hero h1,
    .public-app:not(.home-app) .legal-hero h1,
    .public-app:not(.home-app) .guide-hero h1,
    .public-app:not(.home-app) .ratgeber-layout .hero h1,
    .public-app:not(.home-app) .ratgeber-main .hero h1,
    .public-app:not(.home-app) .topic-layout .hero h1 {
        font-size: 1.5rem !important;
    }
}
