/* Grunddesign – skandinavische Basis */
:root {
    --background: #f4f1ea;
    --surface: #ffffff;
    --surface-soft: #ebe6dc;
    --text: #201f1c;
    --muted: #6f6a61;
    --accent: #d3951f;
    --accent-dark: #a86f0c;
    --dark: #1d211f;
    --line: rgba(32, 31, 28, 0.11);
    --max-width: 1180px;
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Arial Narrow", "Aptos Narrow", Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
}

a { color: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 0.9rem max(1.25rem, calc((100% - var(--max-width)) / 2 + 1.25rem));
    background: rgba(244, 241, 234, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: grid;
    color: var(--text);
    text-decoration: none;
    line-height: 1;
}

.brand-kicker {
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-name {
    font-size: 2.27rem;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.brand-name span {
    color: var(--accent);
}



.main-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.main-nav a,
.site-footer a {
    text-decoration: none;
}

.main-nav a { font-weight: 700; }

.nav-contact {
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--text);
    border-radius: 999px;
}

.hero {
    max-width: var(--max-width);
    min-height: 720px;
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 7rem) 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.hero-inner { max-width: 820px; }

.hero-brand-line {
    margin: 0 0 1.5rem;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.05;
}

.hero-brand-line .hero-brand-first {
    display: block;
    color: var(--accent);
}






.hero-brand-line .hero-brand-second {
    display: block;
    margin-left: 80px;
    color: var(--text);
}






h1 {
    margin: 0;
    max-width: 920px;
    font-size: clamp(2.4rem, 4.2vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero-text {
    max-width: 700px;
    margin: 1.75rem 0 2rem;
    font-size: clamp(1.18rem, 1.6vw, 1.38rem);
    color: var(--muted);
}


.hero-slogan {
    margin: 1.25rem 0 0;
    font-weight: 700;
}

.hero-panel {
    display: grid;
    align-self: stretch;
    border-left: 1px solid var(--line);
}

.hero-panel span {
    display: flex;
    align-items: center;
    padding: 1rem 0 1rem 1.5rem;
    border-bottom: 1px solid var(--line);
}

.hero-panel span:last-child { border-bottom: 0; }

.button {
    display: inline-block;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.button-primary {
    background: var(--dark);
    color: white;
}

.button-secondary {
    background: #e8e2d8;
    color: var(--text);
}

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 7rem) 1.25rem;
}

.section h2 {
    margin-top: 0;
    font-size: clamp(2.1rem, 3.8vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.eyebrow {
    margin: 0 0 0.9rem;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.88rem;
    font-weight: 700;
}

.section-split,
.about-section {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 2rem 4rem;
}

.section-intro {
    max-width: 760px;
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: 1.2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 14px 40px rgba(32, 31, 28, 0.065);
}

.text-link::after {
    content: " →";
    color: var(--accent);
}

.about-copy { font-size: 1.2rem; }

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem 3rem;
    padding: 2.5rem max(1.25rem, calc((100% - var(--max-width)) / 2));
    background: var(--dark);
    color: white;
}

.site-footer p { margin: 0.3rem 0 0; }
.site-footer nav { display: flex; gap: 1rem; }

.footer-copy {
    grid-column: 1 / -1;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
}

.admin-link {
    position: fixed;
    left: 14px;
    bottom: 14px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    text-decoration: none;
    background: rgba(29, 33, 31, 0.72);
    color: white;
    opacity: 0.45;
}

@media (max-width: 900px) {
    .hero,
    .section-split,
    .about-section {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-panel {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .hero-panel span { padding-left: 0; }
}

@media (max-width: 700px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.8rem 1rem;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-project-grid,
    .contact-grid,
    .grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }

    .footer-copy { grid-column: auto; }
}

/* Verwaltungsbereich */
.admin-setup {
    max-width: 680px;
}

.form-stack {
    display: grid;
    gap: 1rem;
}

.form-stack label {
    display: grid;
    gap: 0.4rem;
    font-weight: 700;
}

.form-stack input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(37, 35, 31, 0.22);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.form-stack input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.form-stack .button {
    border: 0;
    cursor: pointer;
    justify-self: start;
    background: var(--dark);
    color: #fff;
}

.message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 10px;
}

.message-error {
    background: #f9dddd;
    color: #741d1d;
}


/* Anmeldung und Dashboard */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1rem max(1.25rem, calc((100% - var(--max-width)) / 2));
    background: var(--dark);
    color: #fff;
}

.admin-header .eyebrow {
    margin-bottom: 0.2rem;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user a {
    color: #fff;
}

.admin-dashboard {
    max-width: var(--max-width);
}

.admin-actions {
    margin-top: 2rem;
}

.admin-action {
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-action:hover,
.admin-action:focus {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(37, 35, 31, 0.13);
}

.admin-stats {
    margin-top: 1.25rem;
}

.admin-stats .card {
    display: grid;
    gap: 0.25rem;
}

.admin-stats strong {
    font-size: 2rem;
}

.admin-stats span {
    color: var(--muted);
}


/* Projektverwaltung */
.admin-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 2rem;
}

.button-dark {
    border: 0;
    background: var(--dark);
    color: #fff;
}

.form-stack select,
.form-stack textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(37, 35, 31, 0.22);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.form-stack textarea {
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 45px rgba(37, 35, 31, 0.08);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(37, 35, 31, 0.09);
}

.admin-table th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

.status-draft {
    background: #eee5cc;
}

.status-published {
    background: #dcebdc;
}

.status-archived {
    background: #e6e6e6;
}

@media (max-width: 760px) {
    .admin-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}


.table-action {
    font-weight: 700;
    text-decoration: none;
}

.table-action:hover,
.table-action:focus {
    text-decoration: underline;
}


/* Projektbilder */
.message-success {
    background: #dcebdc;
    color: #1f5a2a;
}

.form-hint {
    margin: -0.25rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-media-section {
    margin-top: 2rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.media-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 45px rgba(37, 35, 31, 0.08);
}

.media-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.media-card-body {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
}

.media-card-body span {
    color: var(--muted);
}

.table-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
}


/* Bildverwaltung */
.media-actions {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.media-actions form {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.media-actions button {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(37, 35, 31, 0.2);
    border-radius: 8px;
    background: #f3efe8;
    color: var(--text);
    cursor: pointer;
}

.media-actions button:hover,
.media-actions button:focus {
    background: #e6ded2;
}

.media-actions .danger {
    background: #f7dddd;
    color: #7a1d1d;
}


/* Öffentliche Projekte und Galerie */
.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.text-link {
    font-weight: 700;
    text-decoration: none;
}

.public-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.public-project-card {
    overflow: hidden;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: var(--background);
    box-shadow: none;
}

.public-project-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.public-project-card img,
.project-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-placeholder {
    display: grid;
    place-items: center;
    background: #d9c8b2;
    color: var(--dark);
}

.public-project-card-body {
    padding: 1.25rem;
}

.public-project-card-body h2,
.public-project-card-body h3 {
    margin-top: 0;
}

.project-meta {
    color: var(--muted);
}



.project-detail-head {
    max-width: 900px;
    margin-bottom: 1.75rem;
}

.project-lead {
    max-width: 850px;
    font-size: 1.2rem;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.gallery-item {
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: none;
    cursor: pointer;
}

.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery-item:hover img,
.gallery-item:focus img {
    transform: scale(1.025);
}

.project-copy-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.92);
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: min(88vw, 1500px);
    max-height: 84vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
    position: fixed;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 2rem;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 72px;
    font-size: 3rem;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-counter {
    position: fixed;
    bottom: 1rem;
    color: #fff;
}

.lightbox-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .public-project-grid,
    .project-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-copy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-project-grid,
    .project-gallery {
        grid-template-columns: 1fr;
    }

    .lightbox-nav {
        width: 44px;
        height: 60px;
    }
}


/* Veröffentlichte Seitentexte */
.section-intro {
    max-width: 820px;
    margin-bottom: 2rem;
    font-size: 1.08rem;
}


/* Kontaktdaten */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.contact-grid a {
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 700px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero-Slogan */
.hero .eyebrow {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    font-weight: 800;
}

@media (min-width: 900px) {
    .hero .eyebrow {
        font-size: 1.35rem;
    }
}
/* Verwaltung der Leistungsbereiche */
.category-create-form {
    display: flex;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-create-form label {
    flex: 1;
}

.category-list {
    display: grid;
    gap: 1rem;
}

.category-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    align-items: end;
    gap: 1rem;
}

.category-name-form {
    display: flex;
    align-items: end;
    gap: 0.75rem;
}

.category-name-form label {
    flex: 1;
}

.category-name-form button,
.category-actions button {
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(37, 35, 31, 0.2);
    border-radius: 8px;
    background: #f3efe8;
    cursor: pointer;
}

.category-actions {
    display: flex;
    gap: 0.5rem;
}

.category-actions form {
    display: flex;
    gap: 0.4rem;
}

.category-actions .danger {
    background: #f7dddd;
    color: #7a1d1d;
}

.category-meta {
    color: var(--muted);
    padding-bottom: 0.65rem;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .category-create-form,
    .category-name-form {
        align-items: stretch;
        flex-direction: column;
    }

    .category-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .category-meta {
        padding-bottom: 0;
    }
}

/* Öffentliches Kontaktformular */
.contact-form-page {
    max-width: var(--max-width);
}

.contact-request-form {
    position: relative;
    margin-top: 2rem;
}


.contact-request-form .contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


.contact-request-form .privacy-consent {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
}

.contact-request-form .privacy-consent input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    flex: 0 0 auto;
    width: 22px;
    min-width: 22px;
    max-width: 22px;
    height: 22px;
    min-height: 22px;
    max-height: 22px;
    margin: 0.25rem 0 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--background);
    cursor: pointer;
}

.contact-request-form .privacy-consent span {
    display: block;
    flex: 1 1 auto;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

/* Detailansicht Kontaktanfragen */
.request-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 1.5rem;
}

.request-message-card h2 {
    margin-top: 0;
}

.request-message {
    font-size: 1.05rem;
    white-space: normal;
}

.request-meta-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    margin: 0 0 1.5rem;
}

.request-meta-list dt {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.request-meta-list dd {
    margin: 0;
}

.request-status-form {
    margin-top: 1.5rem;
}

.status-neu {
    background: #f4dddd;
}

.status-bearbeitet {
    background: #eee5cc;
}

.status-erledigt {
    background: #dcebdc;
}

@media (max-width: 850px) {
    .request-detail-grid {
        grid-template-columns: 1fr;
    }
}


/* Dashboard-Statistiken */
.dashboard-statistics { margin-top: 3rem; }
.dashboard-section-heading { margin-bottom: 1.4rem; }
.dashboard-section-heading h2 { margin: 0; }

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.dashboard-summary-card {
    min-height: 96px;
    padding: 1.2rem 1.4rem;
}

.dashboard-summary-card strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 2rem;
    line-height: 1;
}

.dashboard-summary-card span { color: var(--muted); }

.dashboard-tree-card { padding: 1.5rem; }
.dashboard-tree-card h3 { margin: 0 0 1.2rem; }

.dashboard-tree-grid {
    display: grid;
    grid-template-columns: minmax(130px,1.4fr) minmax(85px,.8fr) minmax(150px,1.25fr) minmax(70px,.7fr) minmax(110px,1fr) minmax(80px,.8fr);
    gap: .8rem;
    align-items: center;
}

.dashboard-tree-header {
    padding: 0 1rem .7rem;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dashboard-tree { display: grid; gap: .65rem; }

.dashboard-tree-level {
    border: 1px solid rgba(0,0,0,.07);
    border-radius: .9rem;
    background: #fff;
    overflow: hidden;
}

.dashboard-tree-level > summary {
    padding: 1rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
}

.dashboard-tree-level > summary::-webkit-details-marker { display: none; }

.dashboard-tree-label::before {
    content: '›';
    display: inline-block;
    margin-right: .55rem;
    transition: transform .18s ease;
}

.dashboard-tree-level[open] > summary .dashboard-tree-label::before { transform: rotate(90deg); }
.dashboard-tree-year > summary { background: rgba(246,241,231,.55); }

.dashboard-tree-children {
    display: grid;
    gap: .55rem;
    padding: .7rem;
    border-top: 1px solid rgba(0,0,0,.06);
}

.dashboard-tree-month { background: rgba(255,255,255,.82); }

.dashboard-project-list {
    margin: 0 .75rem .75rem;
    border-top: 1px solid rgba(0,0,0,.06);
}

.dashboard-project-grid {
    display: grid;
    grid-template-columns: minmax(180px,1.5fr) minmax(150px,1.25fr) minmax(65px,.55fr) minmax(105px,.85fr) minmax(80px,.7fr);
    gap: .8rem;
    align-items: center;
}

.dashboard-project-header,
.dashboard-project-row { padding: .85rem 1rem; }

.dashboard-project-header {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dashboard-project-row + .dashboard-project-row { border-top: 1px solid rgba(0,0,0,.06); }
.dashboard-project-row a { font-weight: 700; }

@media (max-width: 950px) {
    .dashboard-tree-card { overflow-x: auto; }
    .dashboard-tree-header, .dashboard-tree, .dashboard-project-list { min-width: 830px; }
}

@media (max-width: 700px) {
    .dashboard-summary-grid { grid-template-columns: 1fr; }
}
/* Ende Dashboard-Statistiken */

/* Lesefreundliche Typografie */
body {
    font-size: 18px;
    line-height: 1.7;
}

p,
li,
.contact-grid,
.about-copy,
.section-intro {
    max-width: 72ch;
}

.hero-text,
.section-intro,
.about-copy,
.contact-heading p,
.contact-grid p {
    font-size: clamp(1.12rem, 1.25vw, 1.28rem);
    line-height: 1.75;
}

h1,
.section h2 {
    text-wrap: balance;
}

h1 {
    max-width: 18ch;
}

.section h2 {
    max-width: 16ch;
}

.public-project-card-body h3,
.contact-grid h3 {
    font-size: clamp(1.3rem, 1.8vw, 1.6rem);
    line-height: 1.25;
}

.main-nav a,
.button,
.text-link {
    font-size: 1rem;
}

@media (max-width: 700px) {
    body {
        font-size: 17px;
    }

    h1 {
        font-size: clamp(2.35rem, 10vw, 3.5rem);
    }

    .section h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* Projekt-PDF-Ansicht */
.project-export-actions {
    margin: 1.25rem 0 0;
}

.project-pdf-page {
    background: #e9e6df;
}

.project-pdf-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(233, 230, 223, 0.95);
    backdrop-filter: blur(10px);
}

.project-pdf-toolbar button {
    border: 0;
    cursor: pointer;
}

.project-pdf-document {
    width: min(210mm, calc(100% - 2rem));
    margin: 1rem auto 3rem;
    padding: 18mm;
    background: #fff;
    color: #201f1c;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.project-pdf-header,
.project-pdf-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.project-pdf-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(32, 31, 28, 0.18);
}

.project-pdf-brand {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
}

.project-pdf-brand span {
    color: var(--accent);
}

.project-pdf-slogan,
.project-pdf-label,
.project-pdf-meta {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.project-pdf-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.project-pdf-title {
    margin: 2rem 0 1.5rem;
}

.project-pdf-title h1 {
    max-width: none;
    font-size: 2.6rem;
    line-height: 1.05;
}

.project-pdf-cover {
    margin: 0 0 1.75rem;
}

.project-pdf-cover img {
    display: block;
    width: 100%;
    max-height: 115mm;
    object-fit: cover;
    border-radius: 10px;
}

.project-pdf-lead {
    margin: 0 0 1.75rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--accent);
    background: #f5f2eb;
    font-size: 1.08rem;
}

.project-pdf-copy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
    gap: 2rem;
}

.project-pdf-copy-grid h2,
.project-pdf-gallery h2 {
    font-size: 1.35rem;
    margin: 0 0 0.75rem;
}

.project-pdf-copy-grid p {
    margin-top: 0;
}

.project-pdf-copy-grid aside {
    padding: 1rem;
    border-radius: 10px;
    background: #f5f2eb;
}

.project-pdf-gallery {
    margin-top: 2rem;
}

.project-pdf-image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.project-pdf-image-grid figure {
    margin: 0;
    break-inside: avoid;
}

.project-pdf-image-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.project-pdf-image-grid figcaption {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.project-pdf-footer {
    margin-top: 2rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(32, 31, 28, 0.18);
    color: var(--muted);
    font-size: 0.75rem;
}

@media (max-width: 700px) {
    .project-pdf-document {
        width: calc(100% - 1rem);
        padding: 1.25rem;
    }

    .project-pdf-header,
    .project-pdf-footer {
        flex-direction: column;
    }

    .project-pdf-copy-grid,
    .project-pdf-image-grid {
        grid-template-columns: 1fr;
    }
}

@page {
    size: A4;
    margin: 14mm;
}

@media print {
    body.project-pdf-page {
        background: #fff;
        font-size: 10.5pt;
    }

    .project-pdf-toolbar {
        display: none !important;
    }

    .project-pdf-document {
        width: auto;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .project-pdf-title h1 {
        font-size: 25pt;
    }

    .project-pdf-cover img {
        max-height: 100mm;
    }

    .project-pdf-image-grid {
        gap: 5mm;
    }

    .project-pdf-header,
    .project-pdf-title,
    .project-pdf-cover,
    .project-pdf-lead,
    .project-pdf-copy-grid,
    .project-pdf-gallery,
    .project-pdf-footer {
        break-inside: avoid;
    }
}

/* Barrierefreiheit und Lesbarkeit */
.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 2000;
    padding: 0.8rem 1rem;
    border-radius: 0.6rem;
    background: var(--dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

a, button, input, select, textarea, summary { outline-offset: 4px; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid #8a5a00;
}

.main-nav a,
.button,
.form-actions button,
.gallery-item,
.dashboard-tree-level > summary {
    min-height: 44px;
}

.main-nav a,
.button {
    display: inline-flex;
    align-items: center;
}

.main-nav a:not(.nav-contact) {
    padding: 0.55rem 0.2rem;
}

.text-link,
.contact-grid a,
.project-meta,
.section-intro,
.hero-text,
.about-copy,
.contact-heading p {
    color: #4f4b45;
}

.contact-request-form input,
.contact-request-form textarea,
.contact-request-form select {
    min-height: 48px;
    font-size: 1.08rem;
}

.contact-request-form textarea { min-height: 190px; }
.contact-request-form label { font-size: 1.05rem; }


.message { border: 1px solid currentColor; }


.public-project-card a { height: 100%; }
.public-project-card a:focus-visible { outline-offset: -4px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *:not(.hero-top-projects-track), *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 700px) {
    .main-nav a,
    .button {
        min-height: 48px;
    }
}
/* Rechtliche Seiten */
.legal-card {
    max-width: 900px;
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: transparent;
    box-shadow: none;
}

.legal-card h2 {
    margin: 2rem 0 0.7rem;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    line-height: 1.2;
    max-width: none;
    text-wrap: normal;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p {
    max-width: 70ch;
}

.legal-card a {
    font-weight: 700;
}

/* Einheitliche Admin-Navigation und klare Bedienstruktur */
.admin-body { background: #f4f1ea; }

.admin-shell-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1rem max(1.25rem, calc((100% - var(--max-width)) / 2));
    background: var(--dark);
    color: #fff;
}
.admin-shell-brand { display: grid; line-height: 1.2; }
.admin-shell-kicker {
    margin-bottom: .2rem;
    color: #e7b95f;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.admin-shell-user { display: flex; align-items: center; gap: 1rem; }
.admin-shell-user a { color: #fff; }

.admin-shell-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    overflow-x: auto;
    padding: 0 max(1.25rem, calc((100% - var(--max-width)) / 2));
    border-bottom: 1px solid rgba(32,31,28,.13);
    background: #fff;
    box-shadow: 0 5px 18px rgba(32,31,28,.055);
}
.admin-shell-nav a {
    position: relative;
    min-height: 50px;
    padding: .85rem 1rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}
.admin-shell-nav a:hover,
.admin-shell-nav a:focus-visible,
.admin-shell-nav a.is-active {
    background: #f5efe3;
}
.admin-shell-nav a.is-active { color: #7c5206; }
.admin-shell-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0;
    height: 3px;
    background: var(--accent);
}
.admin-shell-backbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.25rem 0;
}
.admin-back-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}
.admin-back-link:hover,
.admin-back-link:focus-visible { color: var(--accent-dark); }

.admin-dashboard-clear { padding-top: 3rem; }
.admin-welcome { max-width: 760px; margin-bottom: 2rem; }
.admin-welcome h1 {
    max-width: none;
    margin-bottom: .8rem;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
}
.admin-menu-list {
    display: grid;
    gap: .8rem;
    max-width: 920px;
}
.admin-menu-list > a {
    min-height: 92px;
    padding: 1.2rem 1.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(32,31,28,.12);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(32,31,28,.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.admin-menu-list > a:hover,
.admin-menu-list > a:focus-visible {
    transform: translateX(5px);
    border-color: rgba(168,111,12,.45);
    box-shadow: 0 14px 32px rgba(32,31,28,.09);
}
.admin-menu-list > a > span:first-child { display: grid; gap: .2rem; }
.admin-menu-list strong { font-size: 1.2rem; }
.admin-menu-list small { color: var(--muted); font-size: .98rem; }
.admin-menu-list > a > span:last-child {
    color: var(--accent-dark);
    font-size: 1.35rem;
}

@media (max-width: 760px) {
    .admin-shell-header {
        align-items: flex-start;
        flex-direction: column;
        gap: .8rem;
    }
    .admin-shell-user {
        width: 100%;
        justify-content: space-between;
    }
    .admin-shell-nav { padding-inline: .5rem; }
    .admin-shell-nav a { padding-inline: .8rem; }
}
/* Kontakt ist ein normaler Navigationspunkt und kein Sonderbutton */
.main-nav .nav-contact,
.main-nav a[href*="kontakt"] {
    padding: 0.5rem 0.2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
}

.main-nav .nav-contact:hover,
.main-nav .nav-contact:focus-visible,
.main-nav a[href*="kontakt"]:hover,
.main-nav a[href*="kontakt"]:focus-visible {
    background: transparent;
    color: var(--accent-dark);
    transform: none;
    box-shadow: none;
}

/* Kompakter oeffentlicher Kontaktbereich */
.contact-grid {
    gap: 0.75rem;
}

.contact-grid .card {
    padding: 1.25rem 1.35rem;
}

.contact-grid h3 {
    margin-bottom: 0.65rem;
}

.contact-grid p {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
    line-height: 1.55;
}
/* Ende kompakter oeffentlicher Kontaktbereich */

/* TOP-Projektbilder: 3 feste 4:3-Fenster, autarker rechter Bereich */
.hero-no-top-projects {
    grid-template-columns: 1fr;
}

.hero-top-projects {
    align-self: start;
    justify-self: end;
    width: 320px;
    max-width: 100%;
    min-width: 0;
}

.hero-top-projects-viewport {
    --top-gap: 0.75rem;
    width: 100%;
    height: var(--top-viewport-height, auto);
    overflow: hidden;
}

.hero-top-projects-track {
    display: grid;
    gap: var(--top-gap);
    will-change: transform;
}

.hero-top-projects-track.is-rotating {
    transition: transform 2.5s ease-in-out;
}

.hero-top-project-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--accent);
    border-radius: 14px;
    background: var(--surface);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(32, 31, 28, 0.055);
    opacity: 1;
    transition: opacity 2.5s ease-in-out, transform 0.22s ease;
}

.hero-top-project-card.is-leaving {
    opacity: 0;
}

.hero-top-project-card.is-entering {
    opacity: 0;
}

.hero-top-project-card.is-entering.is-visible {
    opacity: 1;
}

.hero-top-project-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.hero-top-project-card:hover,
.hero-top-project-card:focus-visible {
    transform: translateY(-2px);
}

.hero-top-project-card:hover img,
.hero-top-project-card:focus-visible img {
    transform: scale(1.025);
}

.hero-top-project-card:focus-visible {
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .hero-top-projects {
        justify-self: start;
        width: min(100%, 420px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-top-projects-track.is-rotating,
    .hero-top-project-card,
    .hero-top-project-card img {
        transition: none;
    }
}

/* Admin: TOP-Bilder */
.top-project-settings {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    justify-content: start;
    gap: 0.55rem 0.75rem;
    margin-bottom: 1.5rem;
}

.top-project-settings label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
    font-weight: 700;
}

.top-project-settings input[type="number"] {
    width: 62px;
    height: 40px;
    padding: 0.25rem 0.35rem;
    border: 2px solid var(--accent);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    text-align: center;
}

.top-project-settings .button {
    min-height: 40px;
    padding: 0.55rem 0.9rem;
}

.top-project-settings .form-hint {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    margin: 0;
}

.media-top-form {
    margin-top: 0.35rem;
}

.media-top-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    font-weight: 700;
}

.media-top-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-dark);
}

.status-top {
    border: 1px solid var(--accent);
    background: #fff7e8;
    color: #7c5206;
    font-weight: 800;
}

@media (max-width: 700px) {
    .top-project-settings {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .top-project-settings label {
        flex-wrap: wrap;
    }

    .top-project-settings .form-hint {
        grid-column: 1;
    }
}
/* Ende Admin: TOP-Bilder */

/* TOP-Projektbilder mit lokalem Swiper 14.2.0 */
.hero-top-projects-viewport.swiper {
    width: 100%;
    overflow: hidden;
}

.hero-top-projects-track.swiper-wrapper {
    display: flex;
    gap: 0;
    will-change: transform;
}

.hero-top-project-card.swiper-slide {
    flex-shrink: 0;
    margin: 0;
    opacity: 1;
}

.hero-top-projects-track.swiper-wrapper.is-rotating {
    transition: none;
}
/* Ende TOP-Projektbilder mit Swiper */

/* Versteckter Admin-Zugang */
.admin-link {
    opacity: 0;
    background: transparent;
    color: transparent;
}

.admin-link:hover,
.admin-link:focus-visible {
    opacity: 1;
    background: rgba(29, 33, 31, 0.82);
    color: #fff;
}
/* Ende versteckter Admin-Zugang */
/* Zentrale CMS-Schriftgrößen */
/*
 * HIER können später alle fünf Stufen zentral angepasst werden.
 *
 * Überschriften:
 * - Sehr groß entspricht ungefähr dem früheren Standard.
 * - Groß entspricht ungefähr dem bisherigen "Klein".
 * - Standard ist bewusst deutlich ruhiger gesetzt.
 *
 * Fließtext:
 * - Standard bleibt exakt bei der bisherigen Größe.
 */
:root {
    --cms-heading-klein: 0.70em;
    --cms-heading-mittel: 0.76em;
    --cms-heading-standard: 0.82em;
    --cms-heading-gross: 0.90em;
    --cms-heading-sehr-gross: 1.00em;

    --cms-content-klein: 0.90em;
    --cms-content-mittel: 0.95em;
    --cms-content-standard: 1.00em;
    --cms-content-gross: 1.05em;
    --cms-content-sehr-gross: 1.10em;
}

.cms-font-heading-klein { font-size: var(--cms-heading-klein); }
.cms-font-heading-mittel { font-size: var(--cms-heading-mittel); }
.cms-font-heading-standard { font-size: var(--cms-heading-standard); }
.cms-font-heading-gross { font-size: var(--cms-heading-gross); }
.cms-font-heading-sehr-gross { font-size: var(--cms-heading-sehr-gross); }

.cms-font-content-klein { font-size: var(--cms-content-klein); }
.cms-font-content-mittel { font-size: var(--cms-content-mittel); }
.cms-font-content-standard { font-size: var(--cms-content-standard); }
.cms-font-content-gross { font-size: var(--cms-content-gross); }
.cms-font-content-sehr-gross { font-size: var(--cms-content-sehr-gross); }

[class*="cms-font-heading-"],
[class*="cms-font-content-"] {
    line-height: inherit;
}
/* Ende zentrale CMS-Schriftgrößen */
/* Mobilnummer im Header */
.site-header {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    align-items: center;
}

.header-mobile {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.header-mobile-icon {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-mobile:hover,
.header-mobile:focus-visible { color: var(--accent-dark); }
.main-nav { justify-self: end; }

@media (max-width: 900px) {
    .site-header { grid-template-columns: auto auto; }
    .header-mobile { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
    .main-nav { justify-self: end; }
}

@media (max-width: 700px) {
    .site-header { display: grid; grid-template-columns: 1fr; align-items: start; }
    .brand, .header-mobile, .main-nav { grid-column: 1; justify-self: start; }
    .header-mobile { grid-row: auto; }
}

/* Kontaktdaten auf der Formularseite */
.contact-page-details {
    margin: 1.5rem 0 1.75rem;
    padding: 1.25rem 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 3rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.contact-page-details p { margin: 0.25rem 0; }
.contact-page-details a { text-decoration: none; }
.contact-page-details-title { margin: 0 0 0.55rem; font-weight: 700; }
.contact-form-lead { margin: 0 0 1rem; font-weight: 700; }
@media (max-width: 700px) { .contact-page-details { grid-template-columns: 1fr; } }

/* Startseite – ruhiges einheitliches Layout */

/* Kopfbereich: weniger Leerraum, drei TOP-Bilder bleiben erhalten */
.hero {
    min-height: 0;
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Leistungen und Über mich nicht mehr versetzt als Magazinraster */
#leistungen.section-split,
.about-section {
    display: block;
}

#leistungen > .eyebrow,
#leistungen > h2,
#leistungen > .section-intro,
.about-section > .eyebrow,
.about-section > h2,
.about-section > .section-intro {
    max-width: 760px;
}

#leistungen > h2,
.about-section > h2 {
    margin-top: 0.45rem;
}

#leistungen > .section-intro,
.about-section > .section-intro {
    margin-top: 1.25rem;
}

/* Bereiche insgesamt kompakter und mit gleicher vertikaler Ruhe */
#leistungen,
#projekte,
.about-section {
    padding-top: clamp(3.5rem, 6vw, 5rem);
    padding-bottom: clamp(3.5rem, 6vw, 5rem);
}


/* Projekte: Einleitung gehört sichtbar zur Überschrift */
#projekte .section-heading-row {
    margin-bottom: 1rem;
}

#projekte > .section-intro {
    max-width: 760px;
    margin: 0 0 2rem;
}


/* Kontaktformular – konsolidierte finale Gestaltung */
.contact-form-page .contact-request-form {
    background: #ebe8df;
    border: 1px solid var(--accent);
    border-radius: 2rem;
    box-shadow: none;
    padding: 1.75rem;
}

.contact-form-page .contact-request-form input:not([type="checkbox"]):not([type="radio"]),
.contact-form-page .contact-request-form textarea,
.contact-form-page .contact-request-form select {
    background: var(--background);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    color: var(--text);
    box-shadow: none;
}

.contact-form-page .contact-request-form input:not([type="checkbox"]):not([type="radio"]):focus,
.contact-form-page .contact-request-form textarea:focus,
.contact-form-page .contact-request-form select:focus {
    background: var(--background);
    border-color: var(--line);
    box-shadow: none;
    outline: none;
}

.contact-form-page .contact-request-form input::placeholder,
.contact-form-page .contact-request-form textarea::placeholder {
    color: rgba(38, 34, 28, 0.55);
}

.contact-form-page .form-row,
.contact-form-page .form-grid {
    gap: 1rem;
}

.contact-form-page .form-note,
.contact-form-page .form-hint,
.contact-form-page .privacy-note {
    color: #5d584f;
}

.contact-form-page button,
.contact-form-page .button,
.contact-form-page .btn {
    border-radius: 999px;
}

@media (max-width: 720px) {
    .contact-form-page .contact-request-form {
        padding: 1.25rem;
        border-radius: 1.4rem;
    }
}

/* Leistungskacheln – finaler zentraler Stand */
#leistungen .service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

#leistungen .service-card {
    min-height: 0;
    display: block;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 18px;
    box-shadow: none;
}

#leistungen .service-card-image {
    width: 100%;
    aspect-ratio: 16 / 6;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#leistungen .service-card h3 {
    position: static;
    width: auto;
    margin: 0;
    padding: 0.9rem 1.15rem 1rem;
    background: var(--background);
    text-align: left;
    font-size: 1.35rem;
    line-height: 1.2;
}

@media (max-width: 900px) {
    #leistungen .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    #leistungen .service-grid {
        grid-template-columns: 1fr;
    }
}

/* Unterseiten – Zurueck-Link */
.subpage-back {
    margin-bottom: 2.25rem;
}

.subpage-back .text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.subpage-back .text-link::after {
    content: none;
    display: none;
}

/* Menue-Anker unter Sticky-Header
   Der Abstand wird zentral nur am Scroll-Container gesetzt.
   Ein zusaetzliches scroll-margin an den Zielbereichen wuerde
   denselben Abstand ein zweites Mal addieren. */
html {
    scroll-padding-top: 8rem;
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: 9.5rem;
    }
}


/* Zentraler Standard fuer oeffentliche Unterseiten */
.section > .subpage-back {
    position: static;
    margin: calc(-1 * clamp(2.5rem, 5vw, 4.5rem)) 0 3rem;
}

.contact-form-page > .section-intro {
    margin-top: 1.75rem;
}

.contact-form-page .contact-request-form {
    max-width: 900px;
}

/* Stabile Seitenbreite bei kurzer Projektuebersicht */
html { scrollbar-gutter: stable; }

/* CMS: Kontaktinformationen an Formularbreite ausrichten */
.contact-form-page .contact-page-details {
    max-width: 900px;
}

/* Globale Akzentvariante fuer Schaltflaechen */
.button.button-accent,
.form-stack .button.button-accent {
    background: var(--accent);
    color: #fff;
    border: 0;
}
.button.button-accent:hover,
.button.button-accent:focus-visible,
.form-stack .button.button-accent:hover,
.form-stack .button.button-accent:focus-visible {
    background: var(--accent-dark);
    color: #fff;
}

/* Globaler Hinweistext unter separaten Informationsbloecken */
.content-note {
    margin: 1.25rem 0 0;
    color: var(--accent);
    font-weight: 600;
}
