:root {
    color-scheme: light;
    --bg: #f5f8fc;
    --surface: #f8fbff;
    --surface-strong: #ffffff;
    --ink: #132033;
    --muted: #637083;
    --line: #dfe7f1;
    --primary: #1f7ae0;
    --primary-dark: #155fbc;
    --blue: #1f7ae0;
    --amber: #b87821;
    --rose: #a24b4b;
    --green-soft: #e7f6ef;
    --blue-soft: #eaf4ff;
    --amber-soft: #f4e6d1;
    --shadow: 0 18px 42px rgba(38, 68, 106, 0.12);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Finalized entry page and municipality dashboard */
.login-entry-page {
    min-width: 320px;
    background: #ffffff;
    color: #101936;
}

.login-entry-page .login-page {
    position: relative;
}

.login-public-nav {
    position: absolute;
    z-index: 4;
    top: 24px;
    right: clamp(24px, 3vw, 42px);
    display: flex;
    align-items: center;
    gap: 24px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    text-shadow: 0 1px 12px rgba(6, 19, 18, 0.45);
}

.login-public-nav a {
    border-bottom: 2px solid transparent;
    padding: 7px 0;
}

.login-public-nav a:hover,
.login-public-nav a:focus-visible {
    border-bottom-color: rgba(255, 255, 255, 0.92);
}

.login-public-nav .login-contact-link {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 7px;
    background: rgba(5, 20, 18, 0.24);
    backdrop-filter: blur(10px);
}

.login-entry-page .login-form-panel {
    width: min(100%, 390px);
}

.login-scroll-link {
    position: absolute;
    z-index: 4;
    right: clamp(24px, 3vw, 42px);
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 850;
    text-shadow: 0 1px 12px rgba(6, 19, 18, 0.55);
}

.login-scroll-link span {
    font-size: 1.2rem;
}

.login-information {
    scroll-margin-top: 24px;
    padding: clamp(66px, 8vw, 104px) clamp(24px, 7vw, 112px);
    background: #ffffff;
}

.login-information-inner {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.45fr);
    gap: clamp(48px, 7vw, 110px);
    width: min(100%, 1240px);
    margin: 0 auto;
}

.login-section-intro h2,
.login-section-intro p,
.login-benefit-grid h3,
.login-benefit-grid p,
.login-municipality-contact h2,
.login-municipality-contact p {
    margin: 0;
}

.login-section-intro h2 {
    max-width: 480px;
    margin-top: 10px;
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: 1.08;
}

.login-section-intro > p:last-child {
    max-width: 520px;
    margin-top: 20px;
    color: #536078;
    font-size: 1.05rem;
    line-height: 1.65;
}

.login-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    align-items: start;
}

.login-benefit-grid article {
    min-width: 0;
}

.login-benefit-grid article > span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
}

.login-benefit-grid article > span.blue {
    background: #075dce;
}

.login-benefit-grid article > span.green {
    background: #0b9e52;
}

.login-benefit-grid article > span.orange {
    background: #f46a0a;
}

.login-benefit-grid h3 {
    font-size: 1.15rem;
}

.login-benefit-grid p {
    margin-top: 10px;
    color: #536078;
    font-size: 0.94rem;
    line-height: 1.58;
}

.login-municipality-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(44px, 6vw, 72px) max(24px, calc((100% - 1240px) / 2));
    background: #eef5ff;
}

.login-municipality-contact > div {
    max-width: 760px;
}

.login-municipality-contact h2 {
    margin-top: 9px;
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    line-height: 1.12;
}

.login-municipality-contact p:not(.eyebrow) {
    margin-top: 14px;
    color: #536078;
    line-height: 1.6;
}

.login-municipality-contact .button {
    flex: 0 0 auto;
    min-height: 50px;
    padding-inline: 24px;
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px max(24px, calc((100% - 1240px) / 2));
    background: #ffffff;
    color: #5c687d;
    font-size: 0.82rem;
}

.login-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.municipal-dashboard-main {
    padding: 18px clamp(20px, 2vw, 30px) 32px;
}

.municipal-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 320px);
    gap: 20px;
    align-items: start;
    width: min(100%, 1320px);
    margin: 0 auto;
}

.municipal-dashboard-primary {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.municipal-dashboard-main .municipal-welcome h1 {
    font-size: clamp(1.9rem, 2.4vw, 2.25rem);
}

.municipal-dashboard-main .municipal-welcome p {
    margin-top: 6px;
    font-size: 0.98rem;
}

.municipal-dashboard-main .municipal-overview {
    margin-top: 0;
}

.municipal-dashboard-main .municipal-overview h2 {
    font-size: 1rem;
}

.municipal-dashboard-main .municipal-stat-grid {
    gap: 12px;
    margin-top: 8px;
}

.municipal-dashboard-main .municipal-stat-card {
    grid-template-columns: 40px 28px minmax(0, 1fr);
    gap: 6px;
    min-height: 78px;
    padding: 12px;
}

.municipal-dashboard-main .municipal-stat-card span {
    grid-row: 1;
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
}

.municipal-dashboard-main .municipal-stat-card strong {
    font-size: 1.65rem;
}

.municipal-dashboard-main .municipal-stat-card small {
    min-width: 0;
    max-width: 100%;
    font-size: 0.66rem;
    line-height: 1.1;
    overflow-wrap: normal;
    hyphens: manual;
}

.municipal-dashboard-main .municipal-module-grid {
    gap: 12px;
}

.municipal-dashboard-main .municipal-module-card {
    gap: 10px;
    min-height: 178px;
    padding: 18px 20px;
}

.municipal-dashboard-main .municipal-module-icon {
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
}

.municipal-dashboard-main .municipal-module-card strong {
    font-size: 1.08rem;
}

.municipal-dashboard-main .municipal-module-card small {
    max-width: 88%;
    font-size: 0.87rem;
    line-height: 1.45;
}

.municipal-dashboard-main .municipal-module-card em {
    right: 18px;
    bottom: 14px;
    font-size: 1.75rem;
}

.municipal-dashboard-main .municipal-side-panels {
    grid-template-columns: 1fr;
    gap: 14px;
}

.municipal-dashboard-main .municipal-panel {
    padding: 15px;
}

.municipal-dashboard-main .municipal-panel-heading {
    margin-bottom: 6px;
}

.municipal-dashboard-main .municipal-activity-row {
    grid-template-columns: 36px minmax(0, 1fr) minmax(46px, auto) 12px;
    gap: 3px 8px;
    min-height: 58px;
    padding: 7px 0;
}

.municipal-dashboard-main .municipal-activity-row > span {
    width: 30px;
    height: 30px;
    font-size: 0.88rem;
}

.municipal-dashboard-main .municipal-activity-row strong {
    font-size: 0.84rem;
}

.municipal-dashboard-main .municipal-activity-row small,
.municipal-dashboard-main .municipal-activity-row time {
    font-size: 0.74rem;
}

.municipal-dashboard-main .municipal-task-list {
    margin-top: 6px;
}

.municipal-dashboard-main .municipal-task-row {
    grid-template-columns: 34px minmax(0, 1fr) 38px;
    gap: 3px 10px;
    min-height: 56px;
    padding: 7px 0;
}

.municipal-dashboard-main .municipal-task-row > span {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.municipal-dashboard-main .municipal-task-row strong {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    font-size: 0.86rem;
    line-height: 1.2;
}

.municipal-dashboard-main .municipal-task-row small {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    font-size: 0.76rem;
    line-height: 1.25;
}

.municipal-dashboard-main .municipal-task-row em {
    grid-column: 3;
    grid-row: 1 / span 2;
    min-width: 34px;
    height: 32px;
}

.municipal-task-empty {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 62px;
    padding-top: 10px;
    color: #526077;
}

.municipal-task-empty > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #e7f8ef;
    color: #0b9e52;
    font-weight: 900;
}

.municipal-task-empty strong,
.municipal-task-empty small {
    display: block;
}

.municipal-task-empty strong {
    color: #101936;
    font-size: 0.9rem;
}

.municipal-task-empty small {
    margin-top: 3px;
    font-size: 0.78rem;
}

.municipal-dashboard-main .municipal-quick-panel {
    padding-bottom: 10px;
}

.municipal-dashboard-main .municipal-quick-access {
    display: grid;
    margin-top: 8px;
}

.municipal-dashboard-main .municipal-quick-link {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 12px;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: 7px 2px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-top: 1px solid #e7edf5;
    background: transparent;
    color: #101936;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.municipal-dashboard-main .municipal-quick-link:first-child {
    border-top: 0;
}

.municipal-dashboard-main .municipal-quick-link > span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 900;
}

.municipal-dashboard-main .municipal-quick-link strong {
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.2;
}

.municipal-dashboard-main .municipal-quick-link em {
    color: #59677d;
    font-size: 1.25rem;
    font-style: normal;
    line-height: 1;
}

.municipal-dashboard-main .municipal-quick-link.blue > span {
    background: #eaf4ff;
    color: #075dce;
}

.municipal-dashboard-main .municipal-quick-link.green > span {
    background: #e7f8ef;
    color: #0b9e52;
}

.municipal-dashboard-main .municipal-quick-link.orange > span {
    background: #fff0e4;
    color: #ff7416;
}

.municipal-dashboard-main .municipal-quick-link:hover,
.municipal-dashboard-main .municipal-quick-link:focus-visible {
    color: #075dce;
}

.dashboard-drawer-layer {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    background: rgba(16, 25, 54, 0.18);
    outline: 0;
}

.dashboard-drawer {
    display: flex;
    flex-direction: column;
    width: min(560px, 100vw);
    height: 100dvh;
    overflow: hidden;
    border-left: 1px solid #dce5f0;
    background: #ffffff;
    box-shadow: -20px 0 52px rgba(28, 50, 82, 0.18);
    animation: dashboard-drawer-enter 180ms ease-out;
}

.dashboard-drawer-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    min-height: 82px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid #e5ebf3;
}

.dashboard-drawer-heading h2 {
    margin: 0;
    color: #101936;
    font-size: 1.4rem;
    letter-spacing: 0;
}

.dashboard-drawer-back {
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #075dce;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
}

.dashboard-drawer-close {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #101936;
    cursor: pointer;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
}

.dashboard-drawer-tabs {
    flex: 0 0 auto;
}

.dashboard-drawer-form,
.dashboard-report-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 24px 28px 30px;
}

.dashboard-drawer-form.municipal-editor-form {
    gap: 20px;
}

.dashboard-drawer .dashboard-drawer-actions {
    position: static;
    bottom: auto;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
    margin-top: 12px;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-top: 18px;
    border-top: 1px solid #e1e8f1;
    background: transparent;
}

.dashboard-report-list > p {
    margin: 0 0 18px;
    color: #526077;
    font-size: 0.9rem;
    line-height: 1.5;
}

.dashboard-report-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 16px;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 68px;
    padding: 11px 4px;
    border: 0;
    border-top: 1px solid #e7edf5;
    background: transparent;
    color: #101936;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.dashboard-report-row:first-of-type {
    border-top: 0;
}

.dashboard-report-row > span:first-child {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #fff0e4;
    color: #ff7416;
    font-weight: 900;
}

.dashboard-report-row strong,
.dashboard-report-row small {
    display: block;
}

.dashboard-report-row strong {
    font-size: 0.9rem;
}

.dashboard-report-row small {
    margin-top: 4px;
    color: #59677d;
    font-size: 0.76rem;
}

.dashboard-report-row em {
    color: #59677d;
    font-size: 1.4rem;
    font-style: normal;
}

@keyframes dashboard-drawer-enter {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@media (max-width: 620px) {
    .dashboard-drawer {
        width: 100vw;
    }

    .dashboard-drawer-heading {
        min-height: 72px;
        padding: 18px 18px 14px;
    }

    .dashboard-drawer-form,
    .dashboard-report-list {
        padding: 20px 18px 24px;
    }

    .dashboard-drawer .dashboard-drawer-actions {
        margin-top: 10px;
        padding-top: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-drawer {
        animation: none;
    }
}

.municipal-plus-section {
    padding: 16px;
    border: 1px solid #e3e7ed;
    border-radius: 8px;
    background: #f5f6f8;
}

.municipal-plus-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.municipal-plus-heading h2,
.municipal-plus-heading p {
    margin: 0;
}

.municipal-plus-heading h2 {
    margin-top: 2px;
    color: #343d4d;
    font-size: 1.02rem;
}

.municipal-plus-heading > span {
    color: #7a8494;
    font-size: 0.75rem;
    font-weight: 800;
}

.municipal-plus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.municipal-plus-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid #dfe3e9;
    border-radius: 7px;
    background: #fafafa;
    color: #7d8796;
}

.municipal-plus-card > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #eceef2;
    font-weight: 900;
}

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

.municipal-plus-card strong {
    color: #555e6d;
    font-size: 0.85rem;
}

.municipal-plus-card small {
    margin-top: 3px;
    font-size: 0.72rem;
    line-height: 1.3;
}

.municipal-plus-card b {
    padding: 4px 7px;
    border-radius: 5px;
    background: #dfe3e9;
    color: #616b7a;
    font-size: 0.66rem;
}

.citizen-dashboard-profile > span:not(.municipal-avatar) {
    display: flex;
    align-items: center;
}

.citizen-interest-card {
    width: 100%;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.citizen-interest-card:hover,
.citizen-interest-card:focus-visible {
    border-color: #b8c7d9;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(37, 61, 94, 0.08);
}

.citizen-interest-card.selected {
    border-color: #8db7ea;
    background: #f3f8ff;
}

.citizen-interest-card.selected > span {
    background: #e3f0ff;
    color: #075dce;
}

.citizen-interest-card.selected b {
    background: #dbeafe;
    color: #075dce;
}

.citizen-interest-message {
    margin: 10px 0 0;
    color: #526077;
    font-size: 0.76rem;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .municipal-dashboard-layout {
        grid-template-columns: minmax(0, 1fr) minmax(285px, 310px);
    }

    .municipal-dashboard-main .municipal-side-panels .municipal-panel:first-child {
        grid-column: auto;
    }
}

@media (max-width: 900px) {
    .login-information-inner {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .municipal-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .municipal-dashboard-main .municipal-side-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .citizen-dashboard-app {
        padding-bottom: 70px;
    }
}

@media (max-width: 680px) {
    .login-public-nav {
        position: relative;
        top: auto;
        right: auto;
        grid-column: 1;
        grid-row: 1;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        font-size: 0.76rem;
    }

    .login-public-nav a:first-child {
        display: none;
    }

    .login-entry-page .login-hero-panel {
        grid-row: 2;
        min-height: 38vh;
    }

    .login-entry-page .login-form-panel {
        grid-row: 3;
        width: 100%;
    }

    .login-scroll-link {
        display: none;
    }

    .login-information {
        padding: 56px 20px;
    }

    .login-benefit-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .login-benefit-grid article > span {
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }

    .login-benefit-grid p {
        margin-top: 3px;
    }

    .login-municipality-contact {
        align-items: stretch;
        flex-direction: column;
        padding: 48px 20px;
    }

    .login-municipality-contact .button {
        width: 100%;
    }

    .login-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px 20px;
    }

    .municipal-dashboard-main .municipal-stat-grid,
    .municipal-dashboard-main .municipal-module-grid,
    .municipal-dashboard-main .municipal-side-panels,
    .municipal-plus-grid {
        grid-template-columns: 1fr;
    }

    .municipal-dashboard-main .municipal-module-card {
        min-height: 164px;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

.link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

button,
input,
select,
textarea {
    font: inherit;
    min-width: 0;
}

.app-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 100vh;
}

.app-shell.public-home-shell {
    display: block;
    background: #ffffff;
}

.public-home-shell .sidebar,
.public-home-shell .topbar {
    display: none;
}

.public-home-shell .content-frame {
    width: 100%;
    padding: 0;
}

.sidebar {
    position: sticky;
    top: 98px;
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 98px);
    padding: 26px 20px;
    background: #ffffff;
    border-right: 1px solid var(--line);
}

.app-shell:not(.public-home-shell):not(.auth-shell) .sidebar > .brand {
    display: none;
}

.app-shell:not(.public-home-shell):not(.auth-shell) .main-nav {
    margin-top: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
}

.brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    font-size: 1.45rem;
    font-weight: 850;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
}

.brand strong {
    color: var(--ink);
    font-size: 1.45rem;
    line-height: 1.05;
}

.brand small {
    font-size: 1rem;
    font-weight: 700;
}

.dorfmitte-logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: #075dce;
    text-decoration: none;
}

.dorfmitte-logo-art {
    position: relative;
    display: block;
    flex: 0 0 auto;
    height: 68px;
    aspect-ratio: 1687 / 528;
    container-type: inline-size;
}

.dorfmitte-logo-image {
    position: absolute;
    inset: 0;
    display: block;
    background: currentColor;
    -webkit-mask: url("/images/dorfmitte-logo-generic-transparent.png") center / contain no-repeat;
    mask: url("/images/dorfmitte-logo-generic-transparent.png") center / contain no-repeat;
}

.dorfmitte-logo.has-tenant .dorfmitte-logo-image {
    -webkit-mask-image: url("/images/dorfmitte-logo-tenant-transparent.png");
    mask-image: url("/images/dorfmitte-logo-tenant-transparent.png");
}

.dorfmitte-logo .dorfmitte-logo-art small {
    position: absolute;
    top: 65%;
    left: 47.6%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40.4%;
    height: 32.5%;
    padding: 0 4%;
    overflow: hidden;
    color: currentColor;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 6.5cqw;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dorfmitte-logo .dorfmitte-logo-art small.medium {
    font-size: 4.2cqw;
}

.dorfmitte-logo .dorfmitte-logo-art small.long {
    font-size: 3.3cqw;
    line-height: 0.92;
    white-space: normal;
}

.dorfmitte-logo.on-dark {
    color: #ffffff;
}

.dorfmitte-logo.compact {
    width: fit-content;
}

.dorfmitte-logo.compact .dorfmitte-logo-art {
    height: 54px;
}

.brand.dorfmitte-logo {
    color: #075dce;
}

.login-brand.dorfmitte-logo {
    width: fit-content;
    margin-bottom: 2px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.login-brand.dorfmitte-logo .dorfmitte-logo-art {
    height: clamp(72px, 8vw, 96px);
}

.main-nav {
    display: grid;
    gap: 7px;
    margin-top: 38px;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 8px;
    color: #101a2c;
    font-weight: 750;
}

.main-nav .nav-disabled {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 8px;
    color: #a6afbe;
    cursor: not-allowed;
    font-weight: 750;
    opacity: 0.72;
}

.main-nav a.active,
.main-nav a:hover {
    background: #eaf2ff;
    color: #075dcc;
}

.nav-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    color: currentColor;
    font-weight: 850;
}

.main-nav a span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.main-nav .nav-disabled span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.nav-section {
    display: block;
    margin: 18px 14px 6px;
    color: #6d7a90;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.tenant-panel {
    display: grid;
    gap: 6px;
    margin-top: auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.tenant-panel span,
.tenant-panel strong {
    font-size: 0.92rem;
}

.auth-panel {
    margin-top: 12px;
}

.auth-panel a {
    color: var(--primary);
    font-weight: 800;
}

.app-shell.auth-shell {
    grid-template-columns: 1fr;
    background: #0f1b19;
}

.app-shell.auth-shell .sidebar,
.app-shell.auth-shell .topbar {
    display: none;
}

.app-shell.auth-shell .content-frame {
    width: 100%;
    min-height: 100vh;
    padding: 0;
}

.app-shell.auth-shell .main-content {
    grid-column: 1;
    grid-row: 1;
}

.main-content {
    grid-column: 2;
    grid-row: 2;
    overflow-x: hidden;
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    min-height: 98px;
    padding: 14px clamp(22px, 3vw, 38px);
    background: #075dce;
    color: #ffffff;
    border-bottom: 0;
    box-shadow: 0 8px 22px rgba(4, 73, 162, 0.18);
}

.topbar strong {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1;
    overflow-wrap: anywhere;
}

.topbar-brand.dorfmitte-logo {
    color: #ffffff;
}

.topbar-brand.dorfmitte-logo .dorfmitte-logo-art {
    height: 60px;
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #ffffff;
}

.topbar-profile > span:not(.topbar-avatar) {
    display: grid;
    gap: 2px;
}

.topbar-profile small,
.topbar-logout {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.84rem;
    font-weight: 700;
}

.topbar-bell,
.topbar-avatar {
    display: grid;
    place-items: center;
    color: #ffffff;
}

.topbar-bell {
    position: relative;
    width: 38px;
    height: 38px;
    font-size: 1.8rem;
}

.topbar-bell em {
    position: absolute;
    top: -2px;
    right: -2px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ff7a1a;
    color: #ffffff;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
}

.topbar-avatar {
    width: 46px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 900;
}

.heading-actions,
.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.topbar .icon-button {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.topbar .icon-button em {
    background: #ff7a1a;
}

.topbar .button.primary {
    background: #ffffff;
    color: #075dce;
}

.topbar .button.primary:hover {
    background: #edf5ff;
}

.content-frame {
    width: min(1120px, calc(100% - 48px));
    max-width: 100%;
    margin: 0 auto;
    padding: 28px 0 52px;
    overflow-x: hidden;
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
    margin-bottom: 22px;
}

.page-heading.narrow {
    max-width: 920px;
}

.page-heading h1,
.detail-main h1,
.empty-state h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2rem, 4vw, 3.05rem);
    line-height: 1.06;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.page-heading p,
.lead {
    max-width: min(680px, 100%);
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.button,
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 15px;
    cursor: pointer;
    font-weight: 750;
    line-height: 1.2;
}

.button {
    min-width: 0;
    white-space: normal;
    text-align: center;
}

.button.primary {
    background: var(--primary);
    color: white;
}

.button.primary:hover {
    background: var(--primary-dark);
}

.button.secondary {
    background: var(--surface-strong);
    border-color: var(--line);
    color: var(--ink);
}

.icon-button {
    position: relative;
    width: 42px;
    padding: 0;
    background: var(--surface-strong);
    border-color: var(--line);
}

.icon-button em {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--rose);
    color: white;
    font-size: 0.74rem;
    font-style: normal;
}

.quick-stats,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.quick-stats article,
.metric-card {
    min-height: 104px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
}

.quick-stats span,
.metric-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: 850;
}

.quick-stats p,
.metric-card p {
    margin: 0;
    color: var(--muted);
}

.start-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.start-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.start-heading p:not(.eyebrow) {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

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

.start-menu-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas:
        "icon title"
        "icon text";
    column-gap: 12px;
    align-items: center;
    min-height: 104px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: 0 8px 20px rgba(35, 43, 39, 0.05);
}

.start-menu-item:hover {
    border-color: rgba(45, 106, 95, 0.45);
    box-shadow: 0 10px 24px rgba(35, 43, 39, 0.08);
}

.start-menu-item strong {
    grid-area: title;
    font-size: 1.03rem;
}

.start-menu-item small {
    grid-area: text;
    color: var(--muted);
    line-height: 1.45;
}

.start-icon {
    display: grid;
    grid-area: icon;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--green-soft);
    color: var(--primary-dark);
    font-weight: 850;
}

.start-menu-item.primary-item .start-icon {
    background: var(--primary);
    color: white;
}

.start-menu-item.admin-item .start-icon {
    background: var(--blue-soft);
    color: var(--blue);
}

.start-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: stretch;
    margin-top: 22px;
}

.start-overview article,
.start-overview a {
    display: grid;
    align-content: center;
    min-height: 82px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.start-overview strong {
    color: var(--primary-dark);
    font-size: 1.45rem;
}

.start-overview span {
    color: var(--muted);
}

.start-overview a {
    color: var(--primary);
    font-weight: 800;
}

.village-hero {
    position: relative;
    min-height: 246px;
    display: grid;
    place-items: end center;
    padding: 28px 0 0;
}

.village-sketch {
    position: absolute;
    inset: 0 auto auto 0;
    width: min(760px, 72vw);
    height: 150px;
    overflow: hidden;
    border-bottom-right-radius: 68% 100%;
    background: linear-gradient(160deg, rgba(223, 240, 255, 0.88), rgba(248, 252, 255, 0.25));
}

.village-sketch span {
    position: absolute;
    left: 110px;
    bottom: 22px;
    width: 260px;
    height: 54px;
    border-bottom: 3px solid #aec7de;
}

.village-sketch span::before,
.village-sketch span::after {
    content: "";
    position: absolute;
    bottom: 0;
    border: 3px solid #aec7de;
    background: transparent;
}

.village-sketch span::before {
    left: 34px;
    width: 58px;
    height: 34px;
    border-bottom: 0;
    transform: skewX(-18deg);
}

.village-sketch span::after {
    left: 150px;
    width: 42px;
    height: 72px;
    border-bottom: 0;
    clip-path: polygon(50% 0, 100% 34%, 100% 100%, 0 100%, 0 34%);
}

.village-hero-actions {
    position: absolute;
    top: 32px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.village-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.village-brand.compact {
    position: static;
}

.village-logout {
    min-height: 42px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(31, 122, 224, 0.08);
}

.village-logo {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 3px solid var(--primary);
    border-radius: 18px;
    color: var(--primary);
    font-size: 2rem;
    font-weight: 900;
}

.village-brand strong,
.village-brand small {
    display: block;
}

.village-brand strong {
    color: var(--primary);
    font-size: 2.45rem;
    line-height: 1;
}

.village-brand small {
    color: var(--ink);
    font-size: 1.72rem;
    font-weight: 700;
}

.village-brand.compact .village-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    font-size: 1.45rem;
}

.village-brand.compact strong {
    font-size: 1.5rem;
}

.village-brand.compact small {
    font-size: 1rem;
    color: var(--primary);
}

.village-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
    text-align: center;
}

.village-hero-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.7rem);
    letter-spacing: 0;
}

.village-hero-copy p {
    margin: 10px auto 0;
    max-width: 560px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.55;
}

.village-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.village-module-card {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 12px;
    min-height: 250px;
    padding: 28px 22px 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(31, 122, 224, 0.06);
    text-align: center;
}

.village-module-card:hover {
    border-color: rgba(31, 122, 224, 0.42);
    box-shadow: 0 16px 36px rgba(31, 122, 224, 0.12);
}

.module-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: var(--blue-soft);
    color: var(--primary);
    font-size: 2rem;
    font-weight: 900;
}

.module-icon.small {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 1rem;
}

.village-module-card strong {
    color: var(--primary);
    font-size: 1.24rem;
}

.village-module-card small {
    color: var(--ink);
    line-height: 1.52;
}

.module-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 32px;
    margin-top: auto;
    border: 1px solid rgba(31, 122, 224, 0.5);
    border-radius: 8px;
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1;
}

.village-module-card.locked {
    min-height: 210px;
    opacity: 0.52;
    background: #fbfcfe;
    pointer-events: none;
}

.village-module-card.locked .module-icon {
    background: #edf1f6;
    color: #8a94a3;
}

.coming-soon {
    margin-top: auto;
    color: #7a8492;
    font-size: 0.9rem;
    font-weight: 700;
}

.village-news-panel {
    margin-top: 18px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(31, 122, 224, 0.06);
}

.village-news-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 58px;
    border-top: 1px solid var(--line);
}

.village-news-row strong {
    color: var(--ink);
    font-size: 0.98rem;
}

.village-news-row time {
    color: var(--muted);
    font-size: 0.9rem;
}

.citizen-app {
    min-height: 100vh;
    padding-bottom: 0;
    background: #f6f8fc;
    color: #101936;
}

.citizen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 96px;
    padding: 16px clamp(20px, 3vw, 44px);
    background: #0863d6;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(4, 73, 162, 0.18);
}

.citizen-brand,
.citizen-profile,
.citizen-nav a,
.citizen-footer-links a,
.summary-item,
.citizen-action-card,
.citizen-latest-row,
.citizen-bottom-nav a {
    color: inherit;
    text-decoration: none;
}

.citizen-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.citizen-brand img {
    width: 62px;
    height: 62px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 15px;
    background: #ffffff;
    object-fit: contain;
}

.citizen-brand strong,
.citizen-brand small {
    display: block;
}

.citizen-brand strong {
    color: #ffffff;
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 900;
    line-height: 0.95;
}

.citizen-brand small {
    width: max-content;
    margin-top: 7px;
    padding: 2px 11px 3px;
    border-radius: 999px;
    background: #ffffff;
    color: #0b58c4;
    font-size: 0.9rem;
    font-weight: 900;
}

.citizen-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
}

.citizen-profile a {
    padding-left: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.88rem;
    font-weight: 800;
}

.citizen-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 900;
}

.citizen-shell {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    max-width: 1480px;
    margin: 0 auto;
}

.citizen-sidebar {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 96px);
    padding: 26px 18px 20px;
    border-right: 1px solid #e6edf6;
    background: #ffffff;
}

.citizen-nav {
    display: grid;
    gap: 8px;
}

.citizen-nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 8px;
    color: #303a56;
    font-size: 0.95rem;
    font-weight: 780;
}

.citizen-nav a.active,
.citizen-nav a:hover {
    background: #edf5ff;
    color: #0863d6;
}

.citizen-nav span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: currentColor;
    font-size: 1.22rem;
    font-weight: 900;
    line-height: 1;
}

.citizen-nav hr {
    width: 100%;
    margin: 10px 0;
    border: 0;
    border-top: 1px solid #e6edf6;
}

.citizen-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: auto;
    color: #6f7890;
    font-size: 0.78rem;
}

.citizen-main {
    padding: 34px clamp(22px, 3.2vw, 46px) 46px;
}

.citizen-welcome {
    display: grid;
    gap: 8px;
}

.citizen-welcome h1 {
    margin: 0;
    color: #101936;
    font-size: clamp(2.15rem, 4vw, 3.15rem);
    letter-spacing: 0;
    line-height: 1.04;
}

.citizen-welcome p {
    margin: 0;
    color: #5d677d;
    font-size: 1.12rem;
}

.citizen-summary {
    max-width: 730px;
    margin-top: 24px;
}

.citizen-summary > p {
    margin: 0 0 13px;
    color: #121a35;
    font-weight: 900;
}

.citizen-summary-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e6edf6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(37, 61, 94, 0.08);
}

.summary-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 4px 13px;
    align-items: center;
    min-height: 98px;
    padding: 18px 24px;
    border-right: 1px solid #e8eef6;
}

.summary-item:last-child {
    border-right: 0;
}

.summary-item span {
    display: grid;
    grid-row: span 2;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 900;
}

.summary-item strong {
    font-size: 1.85rem;
    line-height: 1;
}

.summary-item small {
    color: #101936;
    font-size: 0.87rem;
    font-weight: 760;
    line-height: 1.25;
}

.summary-item.blue span,
.citizen-action-card.blue .action-icon {
    background: #0863d6;
}

.summary-item.blue strong,
.citizen-action-card.blue em {
    color: #0863d6;
}

.summary-item.green span,
.citizen-action-card.green .action-icon {
    background: #0aa35a;
}

.summary-item.green strong,
.citizen-action-card.green em {
    color: #0aa35a;
}

.summary-item.orange span,
.citizen-action-card.orange .action-icon {
    background: #ff7a00;
}

.summary-item.orange strong,
.citizen-action-card.orange em {
    color: #ff7a00;
}

.citizen-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 30px;
    align-items: start;
    margin-top: 26px;
}

.citizen-primary-stack {
    display: grid;
    gap: 18px;
}

.citizen-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.citizen-action-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 13px;
    min-height: 222px;
    padding: 26px 28px 24px;
    border: 1px solid #e6edf6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 13px 30px rgba(37, 61, 94, 0.07);
}

.citizen-action-card:hover {
    border-color: rgba(8, 99, 214, 0.25);
    box-shadow: 0 18px 36px rgba(37, 61, 94, 0.12);
    transform: translateY(-1px);
}

.action-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
}

.citizen-action-card strong {
    color: #101936;
    font-size: 1.24rem;
    line-height: 1.2;
}

.citizen-action-card small {
    max-width: 290px;
    color: #3e485e;
    font-size: 0.98rem;
    line-height: 1.52;
}

.citizen-action-card em {
    position: absolute;
    right: 24px;
    bottom: 20px;
    font-size: 2.15rem;
    font-style: normal;
    font-weight: 300;
    line-height: 1;
}

.citizen-extension-grid,
.municipality-extension-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.municipality-extension-grid {
    margin-top: 18px;
}

.extension-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 20px;
    gap: 16px;
    align-items: center;
    min-height: 96px;
    padding: 18px;
    border: 1px solid #e4ebf5;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(37, 61, 94, 0.06);
    color: #101936;
    cursor: pointer;
    text-align: left;
}

.extension-card:hover {
    border-color: rgba(8, 99, 214, 0.24);
    box-shadow: 0 16px 34px rgba(37, 61, 94, 0.1);
    transform: translateY(-1px);
}

.extension-plus {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px dashed #aeb8c8;
    border-radius: 8px;
    background: #fbfdff;
    color: #6d7789;
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
}

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

.extension-card strong {
    color: #101936;
    font-size: 0.98rem;
    line-height: 1.25;
}

.extension-card small {
    margin-top: 5px;
    color: #4e596d;
    font-size: 0.82rem;
    line-height: 1.35;
}

.extension-card .extension-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef3fa;
    color: #526077;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
}

.extension-card em {
    justify-self: end;
    color: #6d7789;
    font-size: 1.55rem;
    font-style: normal;
    font-weight: 300;
    line-height: 1;
}

.citizen-request-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.citizen-request-card em {
    color: #0863d6;
}

.municipality-upgrade-card {
    background: #ffffff;
}

.municipality-upgrade-card .extension-plus {
    background: #fbfbfd;
}

.municipality-upgrade-card em {
    color: #7a8494;
    font-size: 1.05rem;
}

.municipal-app {
    min-height: 100vh;
    background: #f7f9fd;
    color: #101936;
}

.municipal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
    padding: 10px clamp(22px, 3vw, 38px);
    background: #075dce;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(4, 73, 162, 0.18);
}

.municipal-brand,
.municipal-profile,
.municipal-nav a,
.municipal-footer-links a,
.municipal-stat-card,
.municipal-module-card,
.municipal-activity-row,
.municipal-task-row {
    color: inherit;
    text-decoration: none;
}

.municipal-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.municipal-brand.dorfmitte-logo .dorfmitte-logo-art {
    height: 60px;
}

.municipal-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.municipal-profile > span:not(.municipal-avatar) {
    display: grid;
    gap: 2px;
}

.municipal-profile strong {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1;
}

.municipal-profile small,
.municipal-logout {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.84rem;
    font-weight: 700;
}

.municipal-bell,
.municipal-avatar {
    display: grid;
    place-items: center;
    color: #ffffff;
}

.municipal-bell {
    width: 34px;
    height: 34px;
    font-size: 1.45rem;
}

.municipal-avatar {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 900;
}

.profile-menu {
    position: relative;
    flex: 0 0 auto;
    color: #101936;
}

.profile-menu > summary {
    box-sizing: border-box;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

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

.profile-menu > summary:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

.profile-menu-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 40;
    display: grid;
    width: 220px;
    max-width: calc(100vw - 28px);
    padding: 10px;
    border: 1px solid #e6edf6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(16, 25, 54, 0.18);
}

.profile-menu-identity {
    display: grid;
    gap: 3px;
    padding: 7px 9px 10px;
    border-bottom: 1px solid #dfe7f1;
}

.profile-menu-identity strong {
    color: #101936;
    font-size: 0.92rem;
    line-height: 1.25;
}

.profile-menu-identity small {
    color: #637083;
    font-size: 0.78rem;
    font-weight: 700;
}

.profile-menu-logout {
    margin-top: 6px;
    padding: 10px 9px;
    border-radius: 6px;
    color: #075dce;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.profile-menu-logout:hover,
.profile-menu-logout:focus-visible {
    background: #edf5ff;
}

.municipal-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    width: 100%;
    max-width: none;
    margin: 0;
}

.municipal-sidebar {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 84px);
    padding: 26px 20px 22px;
    border-right: 1px solid var(--line);
    background: #ffffff;
}

.municipal-nav {
    display: grid;
    gap: 7px;
}

.municipal-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 8px;
    color: #101a2c;
    font-weight: 750;
}

.municipal-nav .nav-disabled {
    display: flex;
    align-items: center;
    gap: 14px;
    width: auto;
    height: auto;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 8px;
    color: #a6afbe;
    cursor: not-allowed;
    font-weight: 750;
    opacity: 0.72;
}

.municipal-nav a.active,
.municipal-nav a:hover {
    background: #edf5ff;
    color: #075dce;
}

.municipal-nav span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: currentColor;
    font-weight: 850;
    line-height: 1;
}

.municipal-nav .nav-disabled span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: currentColor;
    font-weight: 850;
    line-height: 1;
}

.municipal-nav small {
    margin: 18px 14px 6px;
    color: #6d7a90;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.municipal-nav hr {
    width: 100%;
    margin: 10px 0;
    border: 0;
    border-top: 1px solid #e6edf6;
}

.municipal-footer-links {
    display: grid;
    gap: 9px;
    margin-top: auto;
    color: #536078;
    font-size: 0.83rem;
}

.municipal-main {
    padding: 28px max(24px, calc((100% - 1120px) / 2)) 40px;
}

.municipal-subpage-main {
    display: grid;
    gap: 22px;
    align-content: start;
    max-width: 1180px;
}

.municipal-page-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 22px;
}

.municipal-page-heading.narrow {
    max-width: 920px;
}

.municipal-page-heading h1,
.municipal-page-heading p {
    margin: 0;
}

.municipal-page-heading h1 {
    color: #101936;
    font-size: clamp(2rem, 3vw, 2.45rem);
    letter-spacing: 0;
    line-height: 1.08;
}

.municipal-page-heading p:not(.eyebrow) {
    margin-top: 10px;
    max-width: 720px;
    color: #48556d;
    font-size: 1.02rem;
    line-height: 1.55;
}

.municipal-page-heading .heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.municipal-form-layout > form,
.municipal-table-card,
.municipal-workbench .table-card,
.municipal-workbench .panel,
.municipal-form-layout .guidance-panel {
    border-color: #dfe7f1;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 61, 94, 0.06);
}

.municipal-form-layout > form {
    min-width: 0;
    padding: 20px;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
}

.municipal-form-layout .form-grid label,
.municipal-workbench .admin-editor label {
    color: #18233b;
    font-weight: 850;
}

.municipal-form-layout .form-grid input,
.municipal-form-layout .form-grid select,
.municipal-form-layout .form-grid textarea,
.municipal-workbench .admin-editor select,
.municipal-workbench .admin-editor textarea {
    border-color: #d8e3f1;
    background: #ffffff;
}

.form-layout .form-grid input.invalid,
.form-layout .form-grid select.invalid,
.form-layout .form-grid textarea.invalid,
.municipal-form-layout .form-grid input.input-validation-error,
.municipal-form-layout .form-grid select.input-validation-error,
.municipal-form-layout .form-grid textarea.input-validation-error,
.municipal-editor-form input.invalid,
.municipal-editor-form select.invalid,
.municipal-editor-form textarea.invalid {
    border-color: #dc2626;
    background: #fff7f7;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-layout .form-grid input.invalid:focus,
.form-layout .form-grid select.invalid:focus,
.form-layout .form-grid textarea.invalid:focus,
.municipal-editor-form input.invalid:focus,
.municipal-editor-form select.invalid:focus,
.municipal-editor-form textarea.invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.16);
}

.municipal-form-layout .form-actions {
    margin-top: 18px;
}

.validation-summary-errors,
.validation-errors {
    margin: 16px 0 0;
    padding: 14px 16px 14px 34px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff7f7;
    color: #991b1b;
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.45;
}

.validation-summary-errors:empty,
.validation-errors:empty {
    display: none;
}

.validation-summary-errors li,
.validation-errors li {
    margin: 3px 0;
}

.validation-message,
.field-validation-error {
    color: #b42318;
    font-size: 0.82rem;
    font-weight: 750;
}

.municipal-table-card {
    overflow: hidden;
}

.municipal-table-card table,
.municipal-workbench table {
    min-width: 760px;
}

.municipal-table-card thead,
.municipal-workbench thead {
    background: #f4f7fb;
}

.municipal-table-card th,
.municipal-workbench th {
    color: #1c2943;
    font-size: 0.85rem;
    font-weight: 900;
}

.municipal-table-card td,
.municipal-workbench td {
    color: #27344e;
}

.municipal-workbench {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.municipal-welcome h1,
.municipal-welcome p,
.municipal-overview h2,
.municipal-panel h2 {
    margin: 0;
}

.municipal-welcome h1 {
    color: #101936;
    font-size: clamp(2rem, 3vw, 2.45rem);
    letter-spacing: 0;
    line-height: 1.08;
}

.municipal-welcome p {
    margin-top: 10px;
    color: #48556d;
    font-size: 1.05rem;
}

.municipal-overview {
    margin-top: 26px;
}

.municipal-overview h2,
.municipal-panel h2 {
    color: #101936;
    font-size: 1.08rem;
}

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

.municipal-stat-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 6px 14px;
    align-items: center;
    min-height: 124px;
    padding: 22px 20px;
    border: 1px solid #e6edf6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(37, 61, 94, 0.06);
}

.municipal-stat-card span,
.municipal-module-icon {
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    line-height: 1;
}

.municipal-stat-card span {
    grid-row: span 2;
    width: 54px;
    height: 54px;
    font-size: 1.55rem;
}

.municipal-stat-card strong {
    font-size: 2rem;
    line-height: 1;
}

.municipal-stat-card small {
    color: #101936;
    font-size: 0.86rem;
    font-weight: 850;
    line-height: 1.25;
}

.municipal-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 28px;
    align-items: start;
    margin-top: 22px;
}

.municipal-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.municipal-module-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 16px;
    min-height: 256px;
    padding: 28px 26px 26px;
    border: 1px solid #e6edf6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 13px 30px rgba(37, 61, 94, 0.07);
}

.municipal-module-card:hover {
    border-color: rgba(7, 93, 206, 0.24);
    box-shadow: 0 18px 36px rgba(37, 61, 94, 0.12);
    transform: translateY(-1px);
}

.municipal-module-icon {
    width: 58px;
    height: 58px;
    font-size: 1.6rem;
}

.municipal-module-card strong {
    color: #101936;
    font-size: 1.35rem;
    line-height: 1.2;
}

.municipal-module-card small {
    max-width: 330px;
    color: #303b53;
    font-size: 0.98rem;
    line-height: 1.62;
}

.municipal-module-card em {
    position: absolute;
    right: 24px;
    bottom: 20px;
    font-size: 2.2rem;
    font-style: normal;
    font-weight: 300;
    line-height: 1;
}

.municipal-stat-card.blue span,
.municipal-module-card.blue .municipal-module-icon {
    background: #075dce;
}

.municipal-stat-card.blue strong,
.municipal-module-card.blue em {
    color: #075dce;
}

.municipal-stat-card.green span,
.municipal-module-card.green .municipal-module-icon {
    background: #0b9e52;
}

.municipal-stat-card.green strong,
.municipal-module-card.green em {
    color: #0b9e52;
}

.municipal-stat-card.orange span,
.municipal-module-card.orange .municipal-module-icon {
    background: #ff7416;
}

.municipal-stat-card.orange strong,
.municipal-module-card.orange em {
    color: #ff7416;
}

.municipal-side-panels {
    display: grid;
    gap: 16px;
}

.municipal-panel {
    padding: 20px;
    border: 1px solid #e6edf6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(37, 61, 94, 0.06);
}

.municipal-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.municipal-panel-heading a {
    color: #075dce;
    font-size: 0.86rem;
    font-weight: 850;
}

.municipal-activity-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) minmax(48px, auto) 14px;
    gap: 6px 12px;
    align-items: center;
    min-height: 72px;
    padding: 10px 0;
    border-top: 1px solid #edf2f8;
}

.municipal-activity-row:first-of-type {
    border-top: 0;
}

.municipal-activity-row > span {
    display: grid;
    grid-column: 1;
    grid-row: 1 / span 2;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    font-weight: 900;
}

.municipal-activity-row strong,
.municipal-activity-row small {
    display: block;
}

.municipal-activity-row strong {
    grid-column: 2;
    grid-row: 1;
    color: #101936;
    font-size: 0.92rem;
    line-height: 1.2;
    min-width: 0;
    overflow-wrap: anywhere;
}

.municipal-activity-row small {
    grid-column: 2;
    grid-row: 2;
    color: #4d596f;
    font-size: 0.83rem;
    line-height: 1.25;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.municipal-activity-row time {
    grid-column: 3;
    grid-row: 1 / span 2;
    color: #455068;
    font-size: 0.82rem;
    white-space: nowrap;
    justify-self: end;
}

.municipal-activity-row em {
    grid-column: 4;
    grid-row: 1 / span 2;
    color: #47536a;
    font-style: normal;
    font-size: 1.35rem;
    font-weight: 300;
    justify-self: end;
}

.municipal-activity-row.blue > span {
    background: #eaf4ff;
    color: #075dce;
}

.municipal-activity-row.green > span {
    background: #e7f8ef;
    color: #0b9e52;
}

.municipal-activity-row.orange > span {
    background: #fff0e4;
    color: #ff7416;
}

.municipal-task-list,
.municipal-plus-list {
    display: grid;
    margin-top: 12px;
}

.municipal-task-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 42px;
    gap: 5px 12px;
    align-items: center;
    min-height: 62px;
    padding: 10px 0;
    border-top: 1px solid #edf2f8;
}

.municipal-task-row:first-child {
    border-top: 0;
}

.municipal-task-row > span {
    display: grid;
    grid-row: span 2;
    place-items: center;
    width: 32px;
    height: 32px;
    font-size: 1.15rem;
    font-weight: 900;
}

.municipal-task-row strong,
.municipal-task-row small {
    display: block;
}

.municipal-task-row strong {
    color: #101936;
    font-size: 0.93rem;
}

.municipal-task-row small {
    color: #4d596f;
    font-size: 0.83rem;
}

.municipal-task-row em {
    display: grid;
    grid-row: span 2;
    place-items: center;
    min-width: 38px;
    height: 34px;
    border-radius: 8px;
    font-style: normal;
    font-weight: 900;
}

.municipal-task-row.blue > span,
.municipal-task-row.blue em {
    color: #075dce;
}

.municipal-task-row.blue em {
    background: #edf5ff;
}

.municipal-task-row.green > span,
.municipal-task-row.green em {
    color: #0b9e52;
}

.municipal-task-row.green em {
    background: #e7f8ef;
}

.municipal-task-row.orange > span,
.municipal-task-row.orange em {
    color: #ff7416;
}

.municipal-task-row.orange em {
    background: #fff0e4;
}

.municipal-plus-list {
    gap: 10px;
}

.municipal-plus-row {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px 76px;
    gap: 10px;
    align-items: center;
    min-height: 88px;
    padding: 14px 12px;
    border: 1px solid #edf2f8;
    border-radius: 8px;
    background: #ffffff;
    color: #101936;
    cursor: pointer;
    text-align: left;
}

.municipal-plus-row:hover {
    border-color: rgba(7, 93, 206, 0.2);
    box-shadow: 0 10px 24px rgba(37, 61, 94, 0.08);
}

.municipal-plus-row > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #f0f2f6;
    color: #4d596f;
    font-size: 1.35rem;
    font-weight: 900;
}

.municipal-plus-row strong,
.municipal-plus-row small,
.municipal-plus-row em {
    display: block;
}

.municipal-plus-row strong {
    color: #101936;
    font-size: 0.92rem;
}

.municipal-plus-row small {
    margin-top: 4px;
    color: #4d596f;
    font-size: 0.78rem;
    line-height: 1.35;
}

.municipal-plus-row b {
    justify-self: center;
    padding: 5px 9px;
    border-radius: 6px;
    background: #29344d;
    color: #ffffff;
    font-size: 0.72rem;
    letter-spacing: 0;
}

.municipal-plus-row em {
    justify-self: end;
    color: #1c2943;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

.municipal-workbench-shell {
    grid-template-columns: 300px minmax(0, 1fr) minmax(360px, 430px);
    width: 100%;
    max-width: none;
    overflow-x: hidden;
}

.municipal-workbench-shell.municipal-workbench-editor-hidden {
    grid-template-columns: 300px minmax(0, 1fr);
}

.municipal-feed-main {
    min-width: 0;
    padding: 28px 24px 36px max(24px, calc((100vw - 1420px) / 2));
}

.municipal-feed-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
}

.municipal-feed-heading h1,
.municipal-feed-heading p {
    margin: 0;
}

.municipal-feed-heading h1 {
    color: #101936;
    font-size: clamp(2rem, 3vw, 2.45rem);
    line-height: 1.08;
}

.municipal-feed-heading p {
    max-width: 720px;
    margin-top: 10px;
    color: #46536a;
    line-height: 1.55;
}

.municipal-new-post-button {
    min-width: 168px;
    min-height: 48px;
}

.municipal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.municipal-tabs button {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #e1e8f2;
    border-radius: 8px;
    background: #ffffff;
    color: #101936;
    cursor: pointer;
    font-weight: 850;
}

.municipal-tabs button.active {
    border-color: #075dce;
    color: #075dce;
}

.municipal-tabs span {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    margin-left: 7px;
    border-radius: 999px;
    background: #eef3fa;
    color: #41506b;
    font-size: 0.78rem;
}

.municipal-tabs button:nth-child(4) span {
    background: #e7f8ef;
    color: #0b7f43;
}

.municipal-feed-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.85fr) minmax(180px, 0.9fr) auto;
    gap: 10px;
    align-items: end;
    margin-top: 24px;
}

.municipal-feed-tools label {
    gap: 0;
}

.municipal-feed-tools label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.municipal-feed-tools input,
.municipal-feed-tools select {
    height: 48px;
    min-height: 48px;
    padding: 0 14px;
    background: #ffffff;
    line-height: 48px;
}

.municipal-feed-tools .button {
    height: 48px;
    min-height: 48px;
    padding: 0 18px;
    line-height: 1;
}

.municipal-post-table {
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 14px;
    border: 1px solid #e6edf6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(37, 61, 94, 0.06);
}

.municipal-post-header,
.municipal-post-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) 124px 124px 124px 118px;
    gap: 12px;
    align-items: center;
    min-width: 770px;
}

.municipal-post-header {
    min-height: 46px;
    padding: 0 16px;
    background: #f3f6fb;
    color: #24314b;
    font-size: 0.84rem;
    font-weight: 900;
}

.municipal-post-row {
    min-height: 74px;
    padding: 12px 16px;
    border-top: 1px solid #edf2f8;
    color: #101936;
}

.municipal-post-row:hover {
    background: #fbfdff;
}

.municipal-post-title {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.municipal-post-title strong,
.municipal-post-title small {
    display: block;
}

.municipal-post-title strong {
    overflow: hidden;
    color: #101936;
    font-size: 0.93rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.municipal-post-title small {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    color: #46536a;
    font-size: 0.78rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.municipal-post-thumb {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 8px;
    background: #edf2f8;
    color: #54637a;
    font-size: 1.35rem;
    font-weight: 900;
}

.municipal-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.municipal-post-row > span:not(.municipal-post-title) {
    color: #17223a;
    font-size: 0.84rem;
    line-height: 1.4;
}

.post-status {
    display: inline-flex;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 7px;
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 900;
}

.post-status.published {
    background: #e7f8ef;
    color: #0b7f43;
}

.post-status.planned {
    background: #e9f2ff;
    color: #075dce;
}

.post-status.open {
    background: #fff2e8;
    color: #d85a00;
}

.post-status.rejected {
    background: #fff0f0;
    color: #b42318;
}

.municipal-post-date {
    white-space: pre-line;
}

.municipal-post-actions {
    color: #1c2943;
    font-size: 1.08rem;
    letter-spacing: 5px;
    white-space: nowrap;
}

.municipal-post-button-row {
    width: 100%;
    border: 0;
    border-top: 1px solid #edf2f8;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.municipal-post-button-row.selected-row,
.municipal-post-row.selected-row {
    background: #f3f8ff;
}

.municipal-empty-row {
    min-width: 770px;
    padding: 28px 18px;
    border-top: 1px solid #edf2f8;
    color: #58677f;
    font-weight: 750;
}

.municipal-reports-table .municipal-post-thumb {
    background: #fff2e8;
    color: #ff7917;
}

.report-editor-summary {
    margin-bottom: 2px;
}

.municipal-pagination {
    display: grid;
    grid-template-columns: 1fr auto 160px;
    gap: 18px;
    align-items: center;
    margin-top: 18px;
    color: #40506a;
    font-size: 0.9rem;
}

.municipal-pagination div {
    display: flex;
    gap: 8px;
}

.municipal-pagination button,
.municipal-pagination select {
    min-width: 38px;
    min-height: 38px;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    background: #ffffff;
    color: #101936;
    font-weight: 850;
}

.municipal-pagination button.active {
    border-color: #075dce;
    color: #075dce;
}

.municipal-editor-panel {
    min-width: 0;
    min-height: calc(100vh - 98px);
    padding: 22px 22px 24px;
    border-left: 1px solid #e2e9f3;
    background: #ffffff;
    box-shadow: -10px 0 28px rgba(37, 61, 94, 0.08);
}

@media (max-width: 1320px) {
    .municipal-workbench-shell {
        grid-template-columns: 300px minmax(0, 1fr);
    }

    .municipal-editor-panel {
        grid-column: 2;
        min-height: auto;
        border-top: 1px solid #e2e9f3;
        border-left: 0;
        box-shadow: 0 -10px 28px rgba(37, 61, 94, 0.06);
    }
}

.municipal-editor-heading,
.municipal-editor-actions,
.municipal-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.municipal-editor-heading h2 {
    margin: 0;
    font-size: 1.08rem;
}

.municipal-editor-heading a,
.municipal-editor-close {
    color: #101936;
    font-size: 1.6rem;
    font-weight: 300;
}

.municipal-editor-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 1;
}

.municipal-editor-close:hover {
    color: #075dce;
}

.municipal-editor-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 18px -22px 18px;
    border-bottom: 1px solid #e6edf6;
}

.municipal-editor-tabs button {
    min-height: 42px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #27344e;
    cursor: pointer;
    font-weight: 850;
}

.municipal-editor-tabs button.active {
    border-bottom-color: #075dce;
    color: #075dce;
}

.municipal-editor-form {
    display: grid;
    gap: 16px;
}

.municipal-editor-form label {
    color: #18233b;
    font-size: 0.88rem;
}

.municipal-editor-form input,
.municipal-editor-form select,
.municipal-editor-form textarea {
    background: #ffffff;
}

.municipal-editor-form input[type="radio"],
.municipal-editor-form input[type="checkbox"] {
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
}

.municipal-editor-form textarea {
    min-height: 134px;
}

.municipal-editor-form label > small,
.municipal-editor-form legend small,
.municipal-editor-form textarea + small {
    color: #738096;
    font-size: 0.78rem;
    font-weight: 700;
}

.municipal-editor-form textarea + small {
    justify-self: end;
}

.municipal-upload-box {
    display: block;
    min-height: 70px;
    padding: 18px 14px;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    background: #fbfdff;
    color: #075dce;
    cursor: pointer;
    text-align: center;
    font-weight: 850;
}

.municipal-upload-field {
    position: relative;
}

.municipal-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.municipal-selected-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: -6px;
    padding: 8px 10px;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    background: #f7fbff;
    color: #40506c;
    font-size: 0.82rem;
    font-weight: 750;
}

.municipal-selected-file button {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    background: #ffffff;
    color: #075dce;
    cursor: pointer;
    font-weight: 850;
}

.municipal-file-button {
    width: fit-content;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    font-weight: 850;
}

.municipal-editor-form fieldset {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.municipal-editor-form legend {
    margin-bottom: 8px;
    color: #18233b;
    font-size: 0.88rem;
    font-weight: 850;
}

.municipal-editor-form fieldset label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #18233b;
    font-size: 0.85rem;
}

.municipal-publish-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 8px;
}

.municipal-publish-options legend {
    grid-column: 1 / -1;
}

.municipal-publish-options label {
    min-height: 38px;
    padding: 9px 10px;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    background: #ffffff;
    line-height: 1.2;
}

.municipal-publish-options label.disabled-choice {
    color: #8290a6;
    background: #f8fafc;
}

.municipal-publish-options input[type="radio"] {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    accent-color: #075dce;
}

.municipal-toggle-row {
    display: flex;
    flex-direction: row;
    color: #18233b;
}

.municipal-toggle-row span {
    display: grid;
    gap: 3px;
}

.municipal-toggle-row input {
    width: 42px;
    min-height: 24px;
    accent-color: #075dce;
}

.municipal-event-choice {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.municipal-event-choice button {
    min-height: 78px;
    padding: 10px;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    background: #ffffff;
    color: #1c2943;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.25;
}

.municipal-event-choice button.active {
    border-color: #075dce;
    background: #f6faff;
    color: #075dce;
}

.municipal-editor-actions {
    position: sticky;
    bottom: 0;
    margin: 4px -22px -24px;
    padding: 18px 22px 22px;
    border-top: 1px solid #e6edf6;
    background: #ffffff;
}

.municipal-editor-actions .button {
    flex: 1;
    justify-content: center;
}

.municipal-editor-preview {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dfe7f1;
    border-radius: 10px;
    background: #fbfdff;
}

.municipal-editor-preview h3 {
    margin: 0;
    color: #101936;
    font-size: 1.25rem;
    line-height: 1.2;
}

.municipal-editor-preview p {
    margin: 0;
    color: #40506c;
    line-height: 1.5;
    white-space: pre-wrap;
}

.municipal-editor-preview img {
    width: 100%;
    max-height: 240px;
    border-radius: 8px;
    object-fit: cover;
}

.municipal-editor-preview > small {
    color: #738096;
    font-weight: 750;
}

.municipal-editor-form .validation-message {
    color: #b42318;
    font-size: 0.78rem;
    font-weight: 750;
}

.citizen-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
    margin-bottom: 14px;
}

.citizen-section-heading h2 {
    margin: 0;
    color: #101936;
    font-size: 1.12rem;
}

.citizen-section-heading a {
    color: #0863d6;
    font-size: 0.88rem;
    font-weight: 850;
}

.citizen-latest-list {
    overflow: hidden;
    border: 1px solid #e6edf6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 13px 30px rgba(37, 61, 94, 0.07);
}

.citizen-latest-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto 16px;
    gap: 12px;
    align-items: center;
    min-height: 112px;
    padding: 16px 18px;
    border-bottom: 1px solid #edf2f8;
}

.citizen-latest-row:last-child {
    border-bottom: 0;
}

.citizen-latest-row strong,
.citizen-latest-row small {
    display: block;
}

.citizen-latest-row strong {
    color: #101936;
    font-size: 0.96rem;
    line-height: 1.25;
}

.citizen-latest-row small {
    margin-top: 4px;
    color: #566175;
    font-size: 0.88rem;
    line-height: 1.38;
}

.citizen-latest-row time {
    color: #5f6b80;
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
}

.citizen-latest-row em {
    color: #6d7789;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 300;
    line-height: 1;
}

.latest-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    font-size: 1.18rem;
    font-weight: 900;
}

.citizen-latest-row.blue .latest-icon {
    background: #eaf4ff;
    color: #0863d6;
}

.citizen-latest-row.green .latest-icon {
    background: #e8f8ef;
    color: #0aa35a;
}

.citizen-latest-row.orange .latest-icon {
    background: #fff0df;
    color: #ff7a00;
}

.citizen-bottom-nav {
    display: none;
}

.admin-overview-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.admin-overview-heading h1 {
    margin: 0;
    max-width: 680px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.admin-overview-heading p {
    max-width: 560px;
    color: var(--muted);
    line-height: 1.55;
}

.module-admin-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.back-link {
    color: var(--muted);
    font-weight: 800;
}

.module-admin-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.module-admin-title h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1.08;
}

.module-admin-title p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

.module-metrics article {
    display: grid;
    gap: 10px;
    min-height: 128px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: 0 10px 28px rgba(31, 122, 224, 0.06);
}

.module-metrics span,
.module-metrics small {
    color: var(--muted);
    font-weight: 700;
}

.module-metrics strong {
    color: var(--ink);
    font-size: 2rem;
    line-height: 1;
}

.module-list-panel {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: 0 10px 28px rgba(31, 122, 224, 0.06);
}

.module-list-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto 24px;
    gap: 14px;
    align-items: center;
    min-height: 76px;
    border-top: 1px solid var(--line);
}

.module-list-row strong,
.module-list-row small {
    display: block;
}

.module-list-row small {
    margin-top: 4px;
    color: var(--muted);
}

.module-list-row em {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 10px;
    background: #e8f7ec;
    color: #25864a;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
}

.row-menu {
    color: var(--muted);
    font-size: 1.35rem;
    line-height: 1;
    text-align: right;
}

.municipality-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.municipality-menu-item {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "icon"
        "title"
        "text"
        "button";
    justify-items: center;
    gap: 12px;
    align-content: start;
    min-height: 230px;
    padding: 26px 18px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: 0 10px 28px rgba(31, 122, 224, 0.06);
    text-align: center;
}

.municipality-menu-item:hover {
    border-color: rgba(45, 106, 95, 0.45);
    box-shadow: 0 10px 24px rgba(35, 43, 39, 0.08);
}

.municipality-menu-item strong {
    grid-area: title;
    color: var(--primary);
    font-size: 1.12rem;
}

.municipality-menu-item small {
    grid-area: text;
    color: var(--muted);
    line-height: 1.45;
}

.municipality-menu-item.primary-item .start-icon {
    background: var(--primary);
    color: white;
}

.municipality-menu-item .module-icon {
    grid-area: icon;
}

.municipality-menu-item .button {
    grid-area: button;
    width: 100%;
    margin-top: auto;
}

.municipality-menu-start {
    margin-bottom: 0;
}

.admin-utility-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.admin-utility-panel h2,
.admin-utility-panel p {
    margin: 0;
}

.admin-utility-panel h2 {
    font-size: 1.25rem;
}

.admin-utility-panel p:not(.eyebrow) {
    margin-top: 5px;
    color: var(--muted);
}

.status-active {
    background: var(--green-soft);
    color: #1d6a47;
}

.status-pending {
    background: var(--amber-soft);
    color: #805416;
}

.feed-layout,
.detail-layout,
.form-layout,
.map-layout,
.workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
    min-width: 0;
}

.feed-list,
.right-rail {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.section-title h2,
.panel h2,
.guidance-panel h2 {
    margin: 0;
    font-size: 1.1rem;
}

.section-title.compact {
    margin-bottom: 12px;
}

.segmented-control {
    display: inline-flex;
    min-height: 36px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.segmented-control button {
    min-width: 72px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    color: var(--muted);
    font-weight: 700;
}

.segmented-control button.active {
    background: var(--primary);
    color: white;
}

.feed-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
    gap: 10px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
}

.feed-filters label {
    gap: 5px;
    font-size: 0.82rem;
}

.feed-filters select {
    min-height: 40px;
    padding: 7px 9px;
}

.filter-summary {
    display: grid;
    min-width: 92px;
    min-height: 40px;
    align-content: center;
    color: var(--muted);
    font-size: 0.8rem;
}

.filter-summary strong {
    color: var(--ink);
    font-size: 1rem;
}

.filter-summary .link-button {
    margin-top: 3px;
    text-align: left;
    font-size: 0.78rem;
}

.feed-card,
.panel,
.guidance-panel,
.table-card,
.detail-main,
.detail-side > section {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: 0 8px 20px rgba(35, 43, 39, 0.05);
}

.feed-card {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 18px;
}

.feed-card-main {
    min-width: 0;
}

.feed-card h3 {
    margin: 10px 0 8px;
    font-size: 1.18rem;
}

.feed-card h3 a:hover {
    color: var(--primary);
}

.feed-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.feed-meta,
.feed-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.88rem;
}

.feed-footer {
    margin-top: 14px;
}

.type-badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 10px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
}

.type-badge.problem {
    background: #f1dfdf;
    color: var(--rose);
}

.type-badge.termin {
    background: var(--amber-soft);
    color: var(--amber);
}

.type-badge.schwarzesbrett {
    background: var(--green-soft);
    color: var(--primary-dark);
}

.vote-pill {
    display: grid;
    place-items: center;
    align-self: start;
    width: 72px;
    min-height: 72px;
    border-radius: 8px;
    background: var(--green-soft);
    color: var(--primary-dark);
}

.vote-pill strong {
    font-size: 1.5rem;
}

.vote-pill span {
    font-size: 0.78rem;
}

.panel,
.guidance-panel,
.detail-side > section {
    padding: 18px;
    overflow-wrap: break-word;
}

.notification {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.notification:first-of-type {
    border-top: 0;
}

.notification p,
.panel p,
.guidance-panel li {
    color: var(--muted);
    line-height: 1.5;
}

.notification.unread strong::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-radius: 50%;
    background: var(--rose);
}

.panel-action {
    margin-top: 12px;
}

.notification-list {
    display: grid;
    gap: 12px;
}

.notification-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: 0 8px 20px rgba(35, 43, 39, 0.05);
}

.notification-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.notification-card span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.mini-row,
.location-row {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 54px;
    border-top: 1px solid var(--line);
}

.mini-row span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--green-soft);
    color: var(--primary-dark);
    font-weight: 800;
}

.mini-row p,
.location-row p {
    margin: 0;
    color: var(--muted);
}

.form-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.form-layout > *,
.form-grid,
.form-card,
.form-card form,
.field,
.map-surface,
.detail-layout > *,
.map-layout > *,
.workbench > * {
    min-width: 0;
}

.form-card {
    overflow: hidden;
}

.form-card input,
.form-card select,
.form-card textarea,
.panel input,
.panel select,
.panel textarea {
    width: 100%;
}

.form-card h2,
.form-card h3,
.panel h2,
.panel h3,
.guidance-panel h2,
.guidance-panel h3 {
    overflow-wrap: anywhere;
}

.login-page {
    display: grid;
    grid-template-columns: minmax(390px, 560px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: clamp(14px, 2vh, 20px);
    align-content: center;
    align-items: start;
    min-height: 100svh;
    padding: clamp(16px, 2.4vw, 28px);
    background-image:
        linear-gradient(90deg, rgba(7, 18, 17, 0.92) 0%, rgba(9, 21, 19, 0.66) 34%, rgba(9, 21, 19, 0.08) 58%, rgba(9, 21, 19, 0) 100%),
        linear-gradient(0deg, rgba(7, 18, 17, 0.34), rgba(7, 18, 17, 0) 52%),
        url("/images/dorfmitte-login-hero.jpg");
    background-size: cover;
    background-position: right center;
}

.login-hero-panel {
    position: relative;
    display: grid;
    grid-column: 1;
    grid-row: 1;
    align-items: end;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.login-hero-copy {
    display: grid;
    gap: clamp(12px, 1.7vh, 17px);
    max-width: 680px;
    color: white;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    margin-bottom: 2px;
    padding: 9px 13px 9px 9px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 44px rgba(3, 10, 9, 0.22);
    backdrop-filter: blur(14px);
}

.login-brand-mark {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--primary);
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
}

.login-brand strong,
.login-brand small {
    display: block;
}

.login-brand strong {
    color: #ffffff;
    font-size: clamp(2rem, 3.2vw, 2.85rem);
    font-weight: 900;
    line-height: 0.95;
}

.login-brand small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
    font-weight: 800;
}

.login-hero-copy h1 {
    margin: 0;
    max-width: 560px;
    font-size: clamp(2.25rem, 3.25vw, 3.35rem);
    line-height: 1;
    letter-spacing: 0;
    overflow-wrap: break-word;
    hyphens: auto;
}

.login-hero-copy p {
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.04rem;
    line-height: 1.55;
}

.login-form-panel {
    display: grid;
    align-content: center;
    gap: 24px;
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    min-height: auto;
    margin-right: auto;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 8px;
    background: rgba(251, 250, 245, 0.94);
    box-shadow: 0 28px 80px rgba(5, 13, 12, 0.28);
    backdrop-filter: blur(18px);
}

@media (min-width: 981px) and (max-height: 900px) {
    .login-page {
        align-content: start;
        gap: 12px;
        padding: 18px 24px;
    }

    .login-brand-mark {
        width: 44px;
        height: 44px;
        font-size: 1.42rem;
    }

    .login-brand strong {
        font-size: 2.35rem;
    }

    .login-brand small {
        margin-top: 3px;
        font-size: 0.82rem;
    }

    .login-hero-copy h1 {
        max-width: 540px;
        font-size: 2.75rem;
        line-height: 1.02;
    }

    .login-hero-copy p {
        font-size: 0.98rem;
        line-height: 1.45;
    }

    .login-form-panel {
        gap: 16px;
        padding: 24px 28px;
    }

    .login-form-heading {
        gap: 5px;
    }

    .login-form-heading h2 {
        font-size: 1.8rem;
    }
}

.login-form-heading {
    display: grid;
    gap: 8px;
}

.login-form-heading h2 {
    margin: 0;
    font-size: 2.1rem;
    letter-spacing: 0;
}

.login-form-heading p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.login-form-grid {
    padding: 0;
    border: 0;
    background: transparent;
}

.login-actions {
    align-items: stretch;
}

.login-actions .button {
    min-height: 48px;
}

.register-page {
    display: grid;
    grid-template-columns: minmax(340px, 0.9fr) minmax(380px, 560px);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
    min-height: 100svh;
    padding: clamp(18px, 3vw, 42px);
    background-image:
        linear-gradient(90deg, rgba(7, 18, 17, 0.92) 0%, rgba(9, 21, 19, 0.72) 38%, rgba(9, 21, 19, 0.18) 70%, rgba(9, 21, 19, 0.08) 100%),
        url("/images/dorfmitte-login-hero.jpg");
    background-size: cover;
    background-position: right center;
}

.register-copy {
    display: grid;
    gap: 26px;
    max-width: 620px;
    color: #ffffff;
}

.register-copy h1 {
    margin: 0;
    max-width: 540px;
    font-size: clamp(2.5rem, 4.8vw, 4.7rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.register-copy p:not(.eyebrow) {
    max-width: 560px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    line-height: 1.62;
}

.register-benefits {
    display: grid;
    gap: 10px;
}

.register-benefits span {
    width: fit-content;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.register-form-panel {
    display: grid;
    gap: 22px;
    padding: clamp(24px, 3.2vw, 38px);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 8px;
    background: rgba(251, 250, 245, 0.95);
    box-shadow: 0 28px 80px rgba(5, 13, 12, 0.28);
    backdrop-filter: blur(18px);
}

.register-form-grid {
    padding: 0;
    border: 0;
    background: transparent;
}

@media (min-width: 981px) and (max-height: 900px) {
    .register-page {
        align-items: start;
        gap: 28px;
        padding: 18px 24px;
    }

    .register-copy {
        gap: 18px;
    }

    .register-copy h1 {
        font-size: 3rem;
    }

    .register-copy p:not(.eyebrow) {
        margin-top: 10px;
        font-size: 1rem;
        line-height: 1.45;
    }

    .register-benefits {
        gap: 8px;
    }

    .register-benefits span {
        padding: 8px 10px;
        font-size: 0.92rem;
    }

    .register-form-panel {
        gap: 16px;
        padding: 24px 28px;
    }
}

form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

label.full {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fffefb;
    color: var(--ink);
}

textarea {
    min-height: 132px;
    resize: vertical;
}

.success-message {
    padding: 14px 16px;
    border: 1px solid #bcd7c5;
    border-radius: 8px;
    background: var(--green-soft);
    color: var(--primary-dark);
    font-weight: 700;
}

.admin-editor {
    display: grid;
    gap: 14px;
}

.admin-editor p {
    margin: 4px 0 0;
}

.error-message {
    border-color: #e1b9b9;
    background: #f5dddd;
    color: var(--rose);
}

.error-message p {
    margin: 0;
}

.map-surface {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(45, 106, 95, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(45, 106, 95, 0.07) 1px, transparent 1px),
        #eef1e7;
    background-size: 44px 44px;
}

.leaflet-map {
    z-index: 0;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #e8eee8;
}

.picker-map {
    height: 320px;
}

.overview-map {
    min-height: 620px;
}

.dorfd-map-marker {
    display: grid;
    place-items: center;
    border: 3px solid white;
    border-radius: 50%;
    background: var(--rose);
    box-shadow: 0 8px 20px rgba(35, 43, 39, 0.24);
    color: white;
    font-weight: 900;
}

.problem-photo,
.feed-image {
    display: block;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.problem-photo {
    max-height: 520px;
    margin-top: 22px;
}

.feed-image {
    max-height: 300px;
    margin-top: 14px;
}

.map-surface.small {
    height: 240px;
}

.map-surface.large {
    min-height: 620px;
}

.map-picker p {
    color: var(--muted);
}

.street {
    position: absolute;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(200, 193, 181, 0.8);
}

.street.horizontal {
    height: 18px;
}

.street.vertical {
    width: 18px;
}

.park {
    position: absolute;
    border-radius: 8px;
    background: rgba(102, 147, 105, 0.22);
}

.map-marker {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    transform: translate(-50%, -50%);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: var(--shadow);
    color: white;
    font-weight: 900;
}

.marker-primary {
    background: var(--rose);
}

.marker-secondary {
    background: var(--blue);
}

.map-label {
    position: absolute;
    z-index: 1;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #384540;
    font-size: 0.78rem;
    font-weight: 800;
}

.map-list {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
}

.location-row {
    min-height: 68px;
}

.detail-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.detail-main {
    padding: clamp(18px, 3vw, 30px);
}

.detail-main h1 {
    margin-top: 12px;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.status-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 24px 0;
}

.status-strip span {
    display: grid;
    place-items: center;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.status-strip span.done {
    border-color: #bdd8c8;
    background: var(--green-soft);
    color: var(--primary-dark);
}

.detail-map {
    min-height: 340px;
}

.detail-side {
    display: grid;
    gap: 14px;
}

.vote-box {
    display: grid;
    gap: 10px;
}

.vote-box span {
    color: var(--primary-dark);
    font-size: 3rem;
    font-weight: 900;
}

.vote-box p {
    margin: 0;
    color: var(--muted);
}

.table-card {
    overflow: auto;
}

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

th,
td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 0.82rem;
}

td span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.88rem;
}

td a {
    color: var(--primary);
    font-weight: 800;
}

.action-row {
    display: block;
    width: 100%;
    min-height: 46px;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
    text-align: left;
    padding: 0 12px;
    font-weight: 800;
}

.forms-list,
.forms-group {
    display: grid;
    gap: 18px;
}

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

.form-card {
    display: grid;
    gap: 18px;
    align-content: space-between;
    min-height: 230px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: 0 8px 20px rgba(35, 43, 39, 0.05);
}

.form-card h3 {
    margin: 12px 0 8px;
}

.form-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.form-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.form-card-footer span {
    color: var(--muted);
    font-weight: 800;
}

.empty-state {
    display: grid;
    place-items: start;
    gap: 14px;
    min-height: 50vh;
    align-content: center;
}

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

    .topbar {
        grid-column: 1;
        grid-row: 1;
        min-height: 86px;
        padding: 14px 20px;
    }

    .sidebar {
        position: static;
        grid-column: 1;
        grid-row: 2;
        height: auto;
        padding: 14px 18px;
    }

    .main-content {
        grid-column: 1;
        grid-row: 3;
    }

    .main-nav {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        margin-top: 16px;
    }

    .main-nav a {
        justify-content: center;
        padding: 0 8px;
    }

    .tenant-panel {
        display: none;
    }

    .feed-layout,
    .detail-layout,
    .form-layout,
    .map-layout,
    .workbench {
        grid-template-columns: 1fr;
    }

    .quick-stats,
    .dashboard-grid,
    .forms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .start-menu,
    .municipality-menu,
    .village-module-grid,
    .start-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-home-shell .content-frame {
        width: 100%;
    }

    .citizen-header {
        min-height: 86px;
        padding: 14px 20px;
    }

    .municipal-header {
        min-height: 86px;
        padding: 14px 20px;
    }

    .municipal-shell {
        grid-template-columns: 1fr;
    }

    .municipal-workbench-shell {
        grid-template-columns: 1fr;
    }

    .municipal-sidebar {
        display: none;
    }

    .municipal-main {
        padding: 28px 22px 40px;
    }

    .municipal-content-layout {
        grid-template-columns: 1fr;
    }

    .municipal-side-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .municipal-side-panels .municipal-panel:first-child {
        grid-column: 1 / -1;
    }

    .municipal-feed-main {
        padding: 28px 22px 32px;
    }

    .municipal-editor-panel {
        grid-column: auto;
        min-height: auto;
        border-top: 1px solid #e2e9f3;
        border-left: 0;
        box-shadow: 0 -10px 28px rgba(37, 61, 94, 0.06);
    }

    .municipal-post-table {
        overflow-x: auto;
    }

    .municipal-post-header,
    .municipal-post-row {
        min-width: 890px;
    }

    .municipal-feed-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .citizen-shell {
        grid-template-columns: 1fr;
    }

    .citizen-sidebar {
        display: none;
    }

    .citizen-main {
        padding: 28px 22px 92px;
    }

    .citizen-summary {
        max-width: none;
    }

    .citizen-content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .citizen-latest {
        order: 2;
    }

    .citizen-bottom-nav {
        position: fixed;
        z-index: 40;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        min-height: 66px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        border-top: 1px solid #dbe5f1;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 -12px 32px rgba(37, 61, 94, 0.12);
        backdrop-filter: blur(16px);
    }

    .citizen-bottom-nav a {
        display: grid;
        place-items: center;
        gap: 3px;
        border-radius: 8px;
        color: #5e697d;
        font-size: 0.74rem;
        font-weight: 850;
    }

    .citizen-bottom-nav a.active {
        background: #edf5ff;
        color: #0863d6;
    }

    .citizen-bottom-nav span {
        font-size: 1.18rem;
        line-height: 1;
    }

    .village-brand {
        justify-self: end;
    }

    .village-hero-actions {
        position: relative;
        top: auto;
        right: auto;
        justify-self: end;
        margin-bottom: 32px;
    }

    .village-hero {
        place-items: start center;
        min-height: 300px;
    }

    .admin-overview-heading {
        align-items: start;
        flex-direction: column-reverse;
    }

    .module-admin-title {
        align-items: stretch;
        flex-direction: column;
    }

    .module-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .login-page {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 18px;
    }

    .login-hero-panel {
        grid-column: auto;
        grid-row: auto;
        min-height: 46vh;
        padding: 18px 10px;
    }

    .login-form-panel {
        grid-column: auto;
        grid-row: auto;
        min-height: auto;
        width: min(100%, 560px);
        margin: 0 auto;
        padding: 28px;
    }

    .register-page {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .register-copy,
    .register-form-panel {
        width: min(100%, 560px);
        margin: 0 auto;
    }
}

@media (max-width: 680px) {
    .content-frame {
        width: min(100% - 24px, 1180px);
        padding-top: 18px;
    }

    .public-home-shell .content-frame {
        width: 100%;
        padding-top: 0;
    }

    .citizen-app {
        padding-bottom: 70px;
    }

    .citizen-header {
        align-items: center;
        min-height: 74px;
        padding: 10px 14px;
    }

    .municipal-header {
        min-height: 74px;
        padding: 10px 14px;
    }

    .municipal-brand {
        gap: 10px;
    }

    .municipal-brand.dorfmitte-logo .dorfmitte-logo-art {
        height: 48px;
    }

    .municipal-profile > span:not(.municipal-avatar),
    .municipal-logout,
    .municipal-bell {
        display: none;
    }

    .topbar-profile > span:not(.topbar-avatar),
    .topbar-logout,
    .topbar-bell {
        display: none;
    }

    .municipal-avatar {
        width: 42px;
        height: 42px;
    }

    .topbar-avatar {
        width: 42px;
        height: 42px;
    }

    .municipal-main {
        padding: 24px 16px 34px;
    }

    .municipal-feed-main {
        padding: 24px 16px 28px;
    }

    .municipal-feed-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .municipal-new-post-button {
        width: 100%;
    }

    .municipal-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .municipal-tabs button {
        flex: 0 0 auto;
    }

    .municipal-feed-tools {
        grid-template-columns: 1fr;
    }

    .municipal-pagination {
        grid-template-columns: 1fr;
    }

    .municipal-pagination div {
        overflow-x: auto;
    }

    .municipal-event-choice {
        grid-template-columns: 1fr;
    }

    .municipal-welcome h1 {
        font-size: 2rem;
    }

    .municipal-stat-grid,
    .municipal-module-grid,
    .municipal-side-panels {
        grid-template-columns: 1fr;
    }

    .municipal-stat-card {
        min-height: 88px;
        padding: 16px;
    }

    .municipal-content-layout {
        gap: 20px;
    }

    .municipal-module-card {
        min-height: 202px;
        padding: 22px 20px;
    }

    .municipal-plus-row {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
    }

    .municipal-plus-row em {
        grid-column: 2 / -1;
        justify-self: start;
        text-align: left;
    }

    .citizen-brand {
        gap: 10px;
    }

    .citizen-brand img {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .citizen-brand strong {
        font-size: 1.7rem;
    }

    .citizen-brand small {
        margin-top: 4px;
        padding: 1px 8px 2px;
        font-size: 0.74rem;
    }

    .citizen-profile span:not(.citizen-avatar),
    .citizen-profile a {
        display: none;
    }

    .citizen-avatar {
        width: 38px;
        height: 38px;
    }

    .citizen-main {
        padding: 24px 16px 86px;
    }

    .citizen-welcome h1 {
        font-size: 2rem;
    }

    .citizen-welcome p {
        font-size: 1rem;
    }

    .citizen-summary-card {
        grid-template-columns: 1fr;
    }

    .summary-item {
        grid-template-columns: 48px minmax(0, 1fr);
        min-height: 78px;
        padding: 14px 16px;
        border-right: 0;
        border-bottom: 1px solid #e8eef6;
    }

    .summary-item:last-child {
        border-bottom: 0;
    }

    .summary-item span {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }

    .summary-item strong {
        font-size: 1.55rem;
    }

    .citizen-action-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .citizen-extension-grid,
    .municipality-extension-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .extension-card {
        grid-template-columns: 52px minmax(0, 1fr) 18px;
        min-height: 88px;
        padding: 14px;
    }

    .extension-plus {
        width: 46px;
        height: 46px;
    }

    .citizen-action-card {
        min-height: 172px;
        padding: 20px;
    }

    .action-icon {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
    }

    .citizen-action-card em {
        right: 18px;
        bottom: 16px;
    }

    .citizen-latest-row {
        grid-template-columns: 42px minmax(0, 1fr) 14px;
        min-height: 92px;
        padding: 14px;
    }

    .citizen-latest-row time {
        grid-column: 2;
        justify-self: start;
        text-align: left;
    }

    .citizen-latest-row em {
        grid-column: 3;
        grid-row: 1 / 3;
    }

    .topbar {
        min-height: 74px;
        padding: 10px 14px;
    }

    .topbar-brand.dorfmitte-logo .dorfmitte-logo-art {
        height: 48px;
    }

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

    .page-heading h1,
    .detail-main h1,
    .empty-state h1 {
        font-size: 2.1rem;
    }

    .heading-actions {
        width: 100%;
    }

    .heading-actions .button,
    .form-actions .button {
        flex: 1 1 150px;
    }

    .quick-stats,
    .dashboard-grid,
    .forms-grid,
    .start-menu,
    .municipality-menu,
    .village-module-grid,
    .module-metrics,
    .start-overview,
    .form-grid,
    .status-strip {
        grid-template-columns: 1fr;
    }

    .village-hero {
        min-height: 270px;
    }

    .village-brand {
        justify-self: start;
        gap: 10px;
    }

    .village-hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .village-logo {
        width: 58px;
        height: 58px;
        border-radius: 14px;
        font-size: 1.45rem;
    }

    .village-brand strong {
        font-size: 1.9rem;
    }

    .village-brand small {
        font-size: 1.25rem;
    }

    .village-module-card {
        min-height: 210px;
    }

    .village-news-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .village-news-row time {
        grid-column: 2;
    }

    .module-admin-heading {
        align-items: start;
        flex-direction: column-reverse;
    }

    .admin-utility-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .module-list-row {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .login-hero-panel {
        min-height: 42vh;
    }

    .login-brand {
        gap: 11px;
        padding: 9px 12px 9px 9px;
    }

    .login-brand-mark {
        width: 46px;
        height: 46px;
        font-size: 1.45rem;
    }

    .login-brand strong {
        font-size: 2rem;
    }

    .login-brand small {
        font-size: 0.82rem;
    }

    .login-hero-copy h1 {
        font-size: 2rem;
        line-height: 1.04;
    }

    .login-hero-copy p {
        font-size: 1rem;
    }

    .login-form-panel {
        padding: 22px 18px 30px;
    }

    .register-page {
        padding: 16px;
    }

    .register-copy {
        gap: 18px;
    }

    .register-copy h1 {
        font-size: 2.2rem;
        line-height: 1.03;
    }

    .register-copy p:not(.eyebrow) {
        font-size: 1rem;
    }

    .register-form-panel {
        padding: 22px 18px 30px;
    }

    .module-list-row em,
    .module-list-row .row-menu {
        grid-column: 2;
        justify-self: start;
    }

    .feed-filters {
        grid-template-columns: 1fr;
    }

    .main-nav {
        overflow-x: auto;
        grid-template-columns: repeat(6, minmax(112px, 1fr));
    }

    .feed-card {
        flex-direction: column;
    }

    .vote-pill {
        width: 100%;
        min-height: 54px;
        grid-template-columns: auto auto;
        gap: 6px;
    }

    .map-surface.large {
        min-height: 460px;
    }
}

/* Reference-based public entry and login page */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.login-reference-page {
    min-width: 320px;
    background: #ffffff;
    color: #101936;
}

.login-reference-hero {
    position: relative;
    height: clamp(450px, 64svh, 620px);
    min-height: 450px;
    padding: 18px clamp(42px, 3.35vw, 52px) 18px;
    background-image:
        linear-gradient(90deg, rgba(5, 23, 34, 0.96) 0%, rgba(7, 28, 43, 0.87) 25%, rgba(8, 30, 42, 0.46) 45%, rgba(8, 30, 42, 0.05) 66%, rgba(8, 30, 42, 0) 100%),
        url("/images/dorfmitte-login-hero.jpg");
    background-position: center center;
    background-size: cover;
    color: #ffffff;
}

.login-reference-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: min(100%, 580px);
    height: 100%;
}

.login-reference-brand.dorfmitte-logo .dorfmitte-logo-art {
    height: 54px;
}

.login-reference-hero h1 {
    max-width: 510px;
    margin: 12px 0 0;
    color: #ffffff;
    font-size: clamp(2.25rem, 3.2vw, 2.72rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.04;
}

.login-reference-intro {
    max-width: 530px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.48;
}

.login-reference-form-panel {
    width: 258px;
    margin-top: 10px;
    padding: 12px 16px 10px;
    border: 1px solid rgba(216, 224, 232, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 22px rgba(4, 18, 29, 0.22);
    color: #101936;
}

.login-reference-heading h2,
.login-reference-heading p,
.login-reference-register {
    margin: 0;
}

.login-reference-heading h2 {
    font-size: 1rem;
    line-height: 1.15;
}

.login-reference-heading p {
    margin-top: 3px;
    max-width: 100%;
    color: #075dce;
    font-size: 0.61rem;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.login-reference-form-panel form {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.login-reference-field {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 24px;
    align-items: center;
    min-height: 32px;
    border: 1px solid #d8e0ea;
    border-radius: 5px;
    background: #ffffff;
    color: #647085;
}

.login-reference-field:focus-within {
    border-color: #1f7ae0;
    box-shadow: 0 0 0 3px rgba(31, 122, 224, 0.12);
}

.login-reference-field > svg {
    grid-column: 1;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-reference-field input {
    grid-column: 2;
    width: 100%;
    min-height: 30px;
    padding: 5px 6px 5px 10px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #101936;
    font-size: 0.75rem;
}

.login-reference-field input::placeholder {
    color: #69758a;
    opacity: 1;
}

.login-reference-field:has(input.invalid) {
    border-color: #dc2626;
    background: #fff7f7;
}

.login-password-toggle {
    grid-column: 3;
    display: grid;
    place-items: center;
    width: 24px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #768196;
    cursor: pointer;
}

.login-password-toggle svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-reference-form-panel .validation-message {
    margin: -2px 0 0;
    color: #b91c1c;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.25;
}

.login-reference-submit {
    min-height: 32px;
    margin-top: 1px;
    padding: 6px 12px;
    border: 1px solid #0966d7;
    border-radius: 4px;
    background: #0874ee;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 850;
}

.login-reference-submit:hover,
.login-reference-submit:focus-visible {
    background: #075dce;
}

.login-reference-error {
    padding: 7px 8px;
    border-radius: 5px;
    background: #fff1f1;
    color: #991b1b;
    font-size: 0.67rem;
    font-weight: 750;
    line-height: 1.3;
}

.login-reference-register {
    margin-top: 7px;
    color: #424e62;
    font-size: 0.68rem;
    text-align: center;
}

.login-reference-register a,
.login-reference-forgot {
    color: #075dce;
    font-weight: 850;
}

.login-reference-forgot {
    display: block;
    width: fit-content;
    margin: 5px auto 0;
    font-size: 0.66rem;
}

.login-feature-band {
    min-height: 100px;
    padding: 6px 34px 8px;
    border-bottom: 1px solid #e6ebf2;
    background: #ffffff;
}

.login-feature-band h2 {
    margin: 0;
    color: #101936;
    font-size: 1.2rem;
    text-align: center;
}

.login-feature-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 900px);
    margin: 5px auto 0;
}

.login-feature-list article {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-width: 0;
    min-height: 48px;
    padding: 0 18px;
    border-left: 1px solid #e5eaf1;
}

.login-feature-list article:first-child {
    border-left: 0;
}

.login-feature-list svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: #075dce;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-feature-list h3,
.login-feature-list p {
    margin: 0;
}

.login-feature-list h3 {
    font-size: 0.8rem;
}

.login-feature-list p {
    margin-top: 2px;
    color: #4e5a6e;
    font-size: 0.61rem;
    line-height: 1.35;
}

.login-audience-band {
    min-height: 132px;
    padding: 8px 34px 10px;
    background: #f5f8fc;
}

.login-audience-grid {
    display: grid;
    grid-template-columns: 0.95fr 0.95fr 1.3fr;
    gap: 22px;
    width: min(100%, 1190px);
    margin: 0 auto;
}

.login-audience-grid > article {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    min-width: 0;
    min-height: 96px;
    padding: 10px 14px;
    border: 1px solid #e5ebf3;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.74);
}

.login-audience-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
}

.login-audience-icon.blue {
    background: #eaf4ff;
    color: #075dce;
}

.login-audience-icon.green {
    background: #e8f7ee;
    color: #17803d;
}

.login-audience-icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-audience-grid h2,
.login-audience-grid p {
    margin: 0;
}

.login-audience-grid h2 {
    font-size: 0.88rem;
}

.login-audience-grid p {
    margin-top: 3px;
    color: #4e5a6e;
    font-size: 0.63rem;
    line-height: 1.35;
}

.login-audience-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    min-height: 25px;
    margin-top: 7px;
    padding: 4px 12px;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: 0.64rem;
    font-weight: 850;
}

.login-audience-button.primary {
    background: #0874ee;
    color: #ffffff;
}

.login-audience-button.secondary {
    background: #ffffff;
    color: #17803d;
}

.login-audience-grid > .login-mobile-card {
    grid-template-columns: 54px minmax(0, 1fr) 72px auto;
    gap: 12px;
}

.login-mobile-card > img {
    display: block;
    width: 70px;
    height: 70px;
    padding: 3px;
    border: 1px solid #dce3ec;
    background: #ffffff;
    object-fit: contain;
}

.login-mobile-card > small {
    color: #3f4b5f;
    font-size: 0.57rem;
    font-weight: 700;
    line-height: 1.35;
}

.login-reference-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 38px;
    padding: 8px max(24px, calc((100% - 1190px) / 2));
    background: #ffffff;
    color: #657186;
    font-size: 0.7rem;
}

.login-reference-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-link-disabled {
    color: inherit;
    text-decoration: none;
    cursor: default;
}

@media (max-width: 960px) {
    .login-reference-hero {
        height: auto;
        min-height: 620px;
        padding-bottom: 28px;
        background-position: 58% center;
    }

    .login-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 0;
    }

    .login-feature-list article:nth-child(3) {
        border-left: 0;
    }

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

    .login-audience-grid > .login-mobile-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .login-reference-hero {
        min-height: 0;
        padding: 18px 18px 28px;
        background-position: 61% center;
        background-image:
            linear-gradient(90deg, rgba(5, 23, 34, 0.96) 0%, rgba(7, 28, 43, 0.88) 60%, rgba(8, 30, 42, 0.55) 100%),
            url("/images/dorfmitte-login-hero.jpg");
    }

    .login-reference-brand.dorfmitte-logo .dorfmitte-logo-art {
        height: 54px;
    }

    .login-reference-hero h1 {
        margin-top: 20px;
        font-size: 2.12rem;
        line-height: 1.05;
    }

    .login-reference-intro {
        font-size: 0.88rem;
    }

    .login-reference-intro br {
        display: none;
    }

    .login-reference-form-panel {
        width: 100%;
        max-width: 360px;
        margin-top: 18px;
        padding: 18px;
    }

    .login-reference-heading h2 {
        font-size: 1.12rem;
    }

    .login-reference-heading p,
    .login-reference-register,
    .login-reference-forgot {
        font-size: 0.75rem;
    }

    .login-reference-field {
        min-height: 42px;
    }

    .login-reference-field input {
        min-height: 40px;
        font-size: 0.88rem;
    }

    .login-reference-submit {
        min-height: 42px;
        font-size: 0.88rem;
    }

    .login-feature-band,
    .login-audience-band {
        padding-inline: 18px;
    }

    .login-feature-band {
        padding-top: 22px;
        padding-bottom: 24px;
    }

    .login-feature-list,
    .login-audience-grid {
        grid-template-columns: 1fr;
    }

    .login-feature-list article,
    .login-feature-list article:nth-child(3) {
        min-height: 62px;
        padding: 8px 4px;
        border-top: 1px solid #e5eaf1;
        border-left: 0;
    }

    .login-feature-list article:first-child {
        border-top: 0;
    }

    .login-feature-list h3 {
        font-size: 0.9rem;
    }

    .login-feature-list p {
        font-size: 0.72rem;
    }

    .login-audience-grid > article {
        min-height: 118px;
    }

    .login-audience-grid > .login-mobile-card {
        grid-column: auto;
        grid-template-columns: 54px minmax(0, 1fr) 72px;
    }

    .login-mobile-card > img {
        grid-column: 3;
        grid-row: 1;
    }

    .login-mobile-card > small {
        grid-column: 2 / -1;
        text-align: right;
    }

    .login-reference-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 18px;
    }
}
