/* 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);
    
}

a { color: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    
    justify-content: space-between;
    
    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,
.about-content-layout-with-image {
    /* Gemeinsames Raster: Startseitenbilder und Werkstattfoto. */
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: clamp(2rem, 4vw, 3.5rem);
}

.hero {
    max-width: var(--max-width);
    
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 7rem) 1.25rem;
    display: grid;
    align-items: start;
}

.hero-inner { max-width: 820px; }

















h1 {
    margin: 0;
    
    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;
}







.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 {
    
    
    color: var(--muted);
    
}



.card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--surface-soft);
    box-shadow: 0 14px 40px rgba(32, 31, 28, 0.065);
}

/* Einheitliche Abschnittsueberschriften innerhalb wiederverwendbarer Inhaltskarten. */
.section .card > h2 {
    margin: 0 0 1rem;
    max-width: none;
    font-size: clamp(1.45rem, 1.8vw, 1.9rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
    hyphens: auto;
}


.text-link::after {
    content: " →";
    color: var(--accent);
}



.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;
    
    
    
}

@media (max-width: 900px) {
    .hero,
    .about-content-layout-with-image,
    .section-split,
    .about-section {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    

    
}

@media (max-width: 700px) {
    .site-header {
        
        flex-direction: column;
    }

    .main-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.8rem 1rem;
    }

    

    .public-project-grid{
        grid-template-columns: 1fr;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }

    .footer-copy { grid-column: auto; }
}

/* Verwaltungsbereich */


.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 */

























/* Projektverwaltung */


.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);
}







.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) {
    

    .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;
}




















/* Bildverwaltung */











/* Öffentliche Projekte und Galerie */


.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;
}

/* Einheitliche Typografie aller oeffentlichen Projektkarten – unabhaengig von Seiten-H2 */
.section .public-project-card-body h2,
.section .public-project-card-body h3 {
    margin: 0 0 0.9rem;
    max-width: none;
    font-size: clamp(1.45rem, 1.8vw, 1.9rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-wrap: pretty;
}

/* Auch frei gepflegte Fliesstexte und Metadaten duerfen keine Karten sprengen. */
.public-project-card-body,
.card {
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.project-meta {
    color: var(--muted);
}



.project-detail-head {
    max-width: 900px;
    margin-bottom: 1.75rem;
}



.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.gallery-item {
    padding: 0;
    border: 1px solid var(--accent);
    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: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.project-copy-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

/* PDF-Exportaktion auf der öffentlichen Projektseite (gemeinsame Regel). */


/* Einheitliche, hintergrundfreie Textbloecke fuer Projektinformationen. */
.project-copy-section {
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.project-copy-section h2 {
    margin: 0 0 0.8rem;
    max-width: none;
    font-size: clamp(1.45rem, 1.8vw, 1.9rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.project-copy-section p {
    margin: 0;
}

/* Projektkopf: dieselbe kompakte Titelskala wie vergleichbare Seitenabschnitte. */
.project-detail-head h1 {
    font-size: clamp(2.1rem, 3.2vw, 3.1rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
    hyphens: auto;
}


.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) {
    

    .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 */




@media (max-width: 700px) {
    
}

/* 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 */
























/* Ö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;
}








/* 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,
.section-intro {
    max-width: 72ch;
}

.hero-text,
.section-intro{
    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: none;
}



.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);
    }
}

/* 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,
.project-meta,
.section-intro,
.hero-text{
    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 */





























/* 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 */







/* 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%;
    /* Drei sichtbare 4:3-Bilder mit jeweils 12px Abstand:
       Platz vor der Swiper-Initialisierung reservieren (kein Layoutsprung). */
    aspect-ratio: 320 / 744;
    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 */



















/* Ende Admin: TOP-Bilder */

/* Swiper-Kernlayout fuer das TOP-Projektkarussell; statt des kompletten Swiper-Bundles. */
.hero-top-projects-viewport.swiper {
    display: block;
    position: relative;
    overflow: hidden;
    padding: 0;
    z-index: 1;
    list-style: none;
}
.hero-top-projects-viewport.swiper.swiper-vertical > .swiper-wrapper {
    flex-direction: column;
}
.hero-top-projects-viewport.swiper > .swiper-wrapper {
    box-sizing: content-box;
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    transition-property: transform;
    transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
    transform: translateZ(0);
    z-index: 1;
}
.hero-top-projects-viewport.swiper.swiper-vertical {
    touch-action: pan-x;
}
.hero-top-projects-viewport.swiper .swiper-slide {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    transition-property: transform;
}
.hero-top-projects-viewport.swiper.swiper-backface-hidden .swiper-slide {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* 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-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-grid {
    gap: 1rem;
}


.contact-form-page .form-hint{
    color: #5d584f;
}

.contact-form-page button,
.contact-form-page .button{
    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;
}
/* Zentrale Bilddarstellung mit Bildunterschrift (keine Leistungskachel). */
.site-photo-caption { margin: 0; min-width: 0; }
.site-photo-open { display: block; border-radius: var(--radius); overflow: hidden; }
.site-photo-caption img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--accent); border-radius: var(--radius); }
.site-photo-caption figcaption { padding-top: 0.7rem; color: var(--text); text-align: center; overflow-wrap: anywhere; }
.about-content-layout-with-image { display: grid; align-items: center; }
.about-content-copy { min-width: 0; }
.about-content-copy .section-intro { margin-bottom: 0; }
@media (max-width: 760px) { .about-content-layout-with-image { grid-template-columns: minmax(0, 1fr); } }
