/*
 * AH-WEB 2027 – Cloudrexx Theme
 * Grundgerüst V0.17 – Hero-Raster, Ausrichtung und Projekte
 * Basis: Cloudrexx Lava-Struktur + AH-WEB WebsiteCheck Designsprache
 */
:root {
    --ahw-navy: #030617;
    --ahw-navy-alt: #060b26;
    --ahw-gold: #f8b700;
    --ahw-ink: #172038;
    --ahw-muted: #566078;
    --ahw-line: #dce0e7;
    --ahw-paper: #ffffff;
    --ahw-soft: #f4f6f9;
    --ahw-focus: #2965aa;
    --ahw-container: 1180px;
    --ahw-container-wide: 1320px;
    --ahw-container-narrow: 820px;
    --ahw-gutter: clamp(1.25rem, 3.2vw, 2.5rem);
    --ahw-section-space: clamp(4rem, 8vw, 7rem);
    --ahw-radius: 6px;
    --ahw-header-height: 96px;
    --ahw-shadow: 0 18px 50px rgba(3, 6, 23, .10);
    --ahw-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
    /* Einheitliche Lesetypografie für Inhaltsbereiche */
    --ahw-text-size: 18px;
    --ahw-lead-size: 20px;
    --ahw-small-size: 15px;
    --ahw-label-size: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ahw-site {
    margin: 0;
    background: var(--ahw-paper);
    color: var(--ahw-ink);
    font-family: var(--ahw-font);
    font-size: var(--ahw-text-size);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; }

.ahw-container {
    width: 100%;
    max-width: calc(var(--ahw-container) + (var(--ahw-gutter) * 2));
    margin-inline: auto;
    padding-inline: var(--ahw-gutter);
}
.ahw-container--wide {
    max-width: calc(var(--ahw-container-wide) + (var(--ahw-gutter) * 2));
}
.ahw-container--narrow {
    max-width: calc(var(--ahw-container-narrow) + (var(--ahw-gutter) * 2));
}

.ahw-skip-link {
    position: fixed;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    background: var(--ahw-paper);
    color: var(--ahw-navy);
    padding: .75rem 1rem;
    border-radius: var(--ahw-radius);
    box-shadow: var(--ahw-shadow);
}
.ahw-skip-link:focus { top: 1rem; }

/* Header */
.ahw-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(3, 6, 23, .98);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ahw-header-inner {
    min-height: var(--ahw-header-height);
    display: flex;
    align-items: center;
    gap: 2rem;
}
.ahw-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}
.ahw-brand img {
    display: block;
    width: 188px;
    height: 62px;
    object-fit: contain;
}
.ahw-navigation-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    min-width: 0;
}
@media (min-width: 1081px) {
    /* Bootstrap setzt .collapse global auf overflow:hidden. Auf Desktop muss
       der Wrapper offen bleiben, sonst werden Cloudrexx-Untermenüs abgeschnitten. */
    .ahw-navigation-wrap.collapse {
        display: flex !important;
        height: auto !important;
        overflow: visible !important;
    }
    .ahw-main-nav,
    .ahw-main-nav > .ahw-nav-list {
        overflow: visible;
    }
    .ahw-nav-item > ul {
        z-index: 1200;
    }
}
.ahw-main-nav { min-width: 0; }
.ahw-main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ahw-main-nav > .ahw-nav-list {
    display: flex;
    align-items: center;
    gap: .15rem;
}
.ahw-nav-item { position: relative; }
.ahw-nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .65rem .82rem;
    color: rgba(255, 255, 255, .86);
    font-weight: 650;
    font-size: .95rem;
    text-decoration: none;
    border-radius: 4px;
    position: relative;
    transition: background-color .18s ease, color .18s ease;
}
.ahw-nav-link:hover,
.ahw-nav-link:focus-visible {
    color: var(--ahw-gold);
    background: rgba(255, 255, 255, .045);
    text-decoration: none;
}

/* Der aktive Navigationspfad wird sowohl über Cloudrexx-Klassen als auch
   über die kleine URL-Erkennung in ahweb.js markiert. */
.ahw-main-nav > .ahw-nav-list > .ahw-nav-item > .ahw-nav-link::after {
    content: "";
    position: absolute;
    left: .82rem;
    right: .82rem;
    bottom: 3px;
    height: 2px;
    background: var(--ahw-gold);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .18s ease;
}
.ahw-main-nav > .ahw-nav-list > .ahw-nav-item > .ahw-nav-link:hover::after,
.ahw-main-nav > .ahw-nav-list > .ahw-nav-item > .ahw-nav-link:focus-visible::after {
    transform: scaleX(.45);
}
.ahw-nav-item.active > .ahw-nav-link,
.ahw-nav-link.active,
.ahw-nav-item.is-current > .ahw-nav-link,
.ahw-nav-item.is-current-ancestor > .ahw-nav-link {
    color: var(--ahw-gold);
    background: rgba(248, 183, 0, .075);
    text-decoration: none;
}
.ahw-main-nav > .ahw-nav-list > .ahw-nav-item.active > .ahw-nav-link::after,
.ahw-main-nav > .ahw-nav-list > .ahw-nav-item.is-current > .ahw-nav-link::after,
.ahw-main-nav > .ahw-nav-list > .ahw-nav-item.is-current-ancestor > .ahw-nav-link::after,
.ahw-main-nav > .ahw-nav-list > .ahw-nav-item > .ahw-nav-link.active::after {
    transform: scaleX(1);
}
.ahw-nav-item > ul {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: min(310px, 86vw);
    padding: .65rem;
    background: var(--ahw-navy-alt);
    border: 1px solid rgba(255, 255, 255, .10);
    border-top: 3px solid var(--ahw-gold);
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.ahw-nav-item > ul .ahw-nav-link {
    min-height: auto;
    padding: .72rem .8rem;
    font-size: var(--ahw-small-size);
    font-weight: 600;
}
.ahw-nav-item > ul .ahw-nav-item.is-current > .ahw-nav-link,
.ahw-nav-item > ul .ahw-nav-link.active {
    color: var(--ahw-gold);
    background: rgba(255, 255, 255, .065);
}
.ahw-nav-item:hover > ul,
.ahw-nav-item:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.ahw-nav-item > ul .ahw-nav-item > ul {
    top: -.65rem;
    left: calc(100% + .65rem);
}

.ahw-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .72rem 1.05rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .16s ease, filter .16s ease, background-color .16s ease;
}
.ahw-button:hover { text-decoration: none; transform: translateY(-1px); }
.ahw-button--gold { background: var(--ahw-gold); color: var(--ahw-navy); }
.ahw-button--gold:hover { color: var(--ahw-navy); filter: brightness(.96); }
.ahw-header-check { white-space: nowrap; font-size: 1rem; }

.ahw-menu-toggle {
    display: none;
    width: 48px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 4px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.ahw-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
}
.ahw-menu-toggle[aria-expanded="true"] span:nth-child(1),
.ahw-menu-toggle:not(.collapsed) span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ahw-menu-toggle[aria-expanded="true"] span:nth-child(2),
.ahw-menu-toggle:not(.collapsed) span:nth-child(2) { opacity: 0; }
.ahw-menu-toggle[aria-expanded="true"] span:nth-child(3),
.ahw-menu-toggle:not(.collapsed) span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ahw-submenu-toggle { display: none; }

/* Page shell */
.ahw-main { min-height: 55vh; }
.ahw-home-content { min-height: 40vh; }

/* Content-Manager-Fläche: Der Seiteninhalt selbst kommt aus Cloudrexx.
   Keine Containerbreite hier setzen – einzelne CMS-Sektionen dürfen vollflächig sein. */
.ahw-cms-content {
    width: 100%;
    min-height: 40vh;
}
.ahw-cms-content > :first-child { margin-top: 0; }
.ahw-cms-content > :last-child { margin-bottom: 0; }

/* Startseite – Problemerkennung */
.ahw-problems {
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 8%, rgba(248,183,0,.08) 0, rgba(248,183,0,.025) 18%, transparent 40%),
        var(--ahw-paper);
}
.ahw-problems__head {
    max-width: 800px;
    margin-bottom: clamp(2.4rem, 5vw, 4rem);
}
.ahw-problems__eyebrow {
    margin: 0 0 .8rem;
    color: #7b5a00;
    font-size: var(--ahw-label-size);
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.ahw-problems__title {
    margin: 0;
    max-width: 800px;
    color: var(--ahw-ink);
    font-size: clamp(2rem, 4vw, 3.45rem);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -.04em;
}
.ahw-problems__intro {
    max-width: 720px;
    margin: 1.25rem 0 0;
    color: var(--ahw-muted);
    font-size: var(--ahw-lead-size);
    line-height: 1.7;
}
.ahw-problems__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(2rem, 5vw, 5rem);
    border-top: 1px solid var(--ahw-line);
}
.ahw-problem {
    position: relative;
    min-height: 178px;
    padding: 2rem .25rem 2rem 1.35rem;
    border-bottom: 1px solid var(--ahw-line);
}
.ahw-problem::before {
    content: "";
    position: absolute;
    top: 2.15rem;
    left: 0;
    width: 4px;
    height: 34px;
    border-radius: 999px;
    background: var(--ahw-gold);
}
.ahw-problem h3 {
    margin: 0 0 .65rem;
    color: var(--ahw-ink);
    font-size: clamp(1.2rem, 1.8vw, 1.48rem);
    line-height: 1.25;
    letter-spacing: -.02em;
}
.ahw-problem p {
    margin: 0;
    max-width: 520px;
    color: var(--ahw-muted);
    font-size: var(--ahw-text-size);
    line-height: 1.65;
}
.ahw-problem--wide {
    grid-column: 1 / -1;
    display: block;
    min-height: auto;
    padding-right: .25rem;
}
.ahw-problem--wide h3 {
    max-width: 760px;
}
.ahw-problem--wide p {
    max-width: 760px;
}
.ahw-problems__closing {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: clamp(3rem, 5vw, 4.5rem) 0 0;
    padding-top: clamp(1.3rem, 2vw, 1.8rem);
    border-top: 1px solid rgba(23,32,56,.08);
    color: var(--ahw-ink);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 750;
}
.ahw-problems__closing::before {
    content: "";
    width: 48px;
    height: 3px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--ahw-gold);
}

@media (max-width: 760px) {
    .ahw-problems__grid { grid-template-columns: 1fr; }
    .ahw-problem,
    .ahw-problem--wide {
        grid-column: auto;
        min-height: auto;
        padding: 1.65rem .15rem 1.65rem 1.2rem;
    }
    .ahw-problem--wide {
        display: block;
    }
    .ahw-problem--wide h3 {
        margin-bottom: .65rem;
    }
    .ahw-problem::before { top: 1.82rem; height: 30px; }
    .ahw-problems__closing { align-items: flex-start; }
}

/* Startseite – AH-WEB 5-Perspektiven-Methode */
.ahw-method {
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 18%, rgba(47,76,145,.09) 0, rgba(47,76,145,.035) 20%, transparent 42%),
        var(--ahw-soft);
}
.ahw-method__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: end;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}
.ahw-method__eyebrow {
    margin: 0 0 .8rem;
    color: #7b5a00;
    font-size: var(--ahw-label-size);
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.ahw-method__title {
    margin: 0;
    max-width: 780px;
    color: var(--ahw-ink);
    font-size: clamp(2.35rem, 5vw, 4.55rem);
    font-weight: 770;
    line-height: 1.02;
    letter-spacing: -.048em;
}
.ahw-method__lead {
    margin: 1.4rem 0 0;
    max-width: 760px;
    color: var(--ahw-muted);
    font-size: var(--ahw-lead-size);
    line-height: 1.72;
}
.ahw-method__aside {
    margin: 0;
    padding: 1.5rem 0 1.5rem 1.5rem;
    border-left: 4px solid var(--ahw-gold);
    color: var(--ahw-ink);
    font-size: var(--ahw-text-size);
    line-height: 1.7;
}
.ahw-method__steps {
    counter-reset: ahw-method-step;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ahw-line);
    border-bottom: 1px solid var(--ahw-line);
}
.ahw-method__step {
    counter-increment: ahw-method-step;
    position: relative;
    min-height: 260px;
    padding: 2rem clamp(1.1rem, 2.2vw, 1.9rem) 2.15rem;
    border-right: 1px solid var(--ahw-line);
}
.ahw-method__step:last-child {
    border-right: 0;
}
.ahw-method__step::before {
    content: "0" counter(ahw-method-step);
    display: block;
    margin-bottom: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--ahw-gold);
    font-size: clamp(2rem, 2.5vw, 2.6rem);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.02em;
}
.ahw-method__step h3 {
    margin: 0 0 .7rem;
    color: var(--ahw-ink);
    font-size: clamp(1.32rem, 1.7vw, 1.55rem);
    line-height: 1.22;
    letter-spacing: -.025em;
}
.ahw-method__step p {
    margin: 0;
    color: var(--ahw-muted);
    font-size: var(--ahw-text-size);
    line-height: 1.66;
}
.ahw-method__foot {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    margin-top: clamp(2.4rem, 5vw, 4rem);
}
.ahw-method__foot p {
    max-width: 760px;
    margin: 0;
    color: var(--ahw-ink);
    font-size: var(--ahw-text-size);
    line-height: 1.7;
}
@media (max-width: 1050px) {
    .ahw-method__intro {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .ahw-method__aside {
        max-width: 760px;
    }
    .ahw-method__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ahw-method__step {
        min-height: 220px;
        border-bottom: 1px solid var(--ahw-line);
    }
    .ahw-method__step:nth-child(2n) {
        border-right: 0;
    }
    .ahw-method__step:last-child {
        grid-column: 1 / -1;
        min-height: auto;
        border-bottom: 0;
    }
}
@media (max-width: 640px) {
    .ahw-method__steps {
        grid-template-columns: 1fr;
    }
    .ahw-method__step,
    .ahw-method__step:last-child {
        grid-column: auto;
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--ahw-line);
    }
    .ahw-method__step:last-child {
        border-bottom: 0;
    }
    .ahw-method__step::before {
        margin-bottom: 1.8rem;
    }
    .ahw-method__foot {
        align-items: stretch;
        flex-direction: column;
    }
    .ahw-method__foot .ahw-button {
        width: 100%;
    }
}


/* Startseite – konkrete Lösungsfelder aus Kundensicht */
.ahw-solutions {
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 88%, rgba(248,183,0,.055) 0, rgba(248,183,0,.018) 18%, transparent 38%),
        var(--ahw-paper);
}
.ahw-solutions__head {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .75fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: end;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}
.ahw-solutions__eyebrow {
    margin: 0 0 .8rem;
    color: #7b5a00;
    font-size: var(--ahw-label-size);
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.ahw-solutions__title {
    margin: 0;
    max-width: 820px;
    color: var(--ahw-ink);
    font-size: clamp(2.35rem, 5vw, 4.55rem);
    font-weight: 770;
    line-height: 1.02;
    letter-spacing: -.048em;
}
.ahw-solutions__intro {
    margin: 0;
    max-width: 620px;
    color: var(--ahw-muted);
    font-size: var(--ahw-lead-size);
    line-height: 1.72;
}
.ahw-solutions__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(2.5rem, 6vw, 6rem);
    border-top: 1px solid var(--ahw-line);
}
.ahw-solution {
    position: relative;
    min-height: 310px;
    padding: clamp(2.1rem, 4vw, 3.25rem) .2rem clamp(2.3rem, 4vw, 3.5rem);
    border-bottom: 1px solid var(--ahw-line);
}
.ahw-solution__number {
    display: block;
    margin: 0 0 clamp(2rem, 4vw, 3.1rem);
    color: var(--ahw-gold);
    font-size: 1.08rem;
    font-weight: 850;
    letter-spacing: .08em;
}
.ahw-solution h3 {
    margin: 0 0 .9rem;
    max-width: 560px;
    color: var(--ahw-ink);
    font-size: clamp(1.65rem, 3vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}
.ahw-solution p {
    margin: 0;
    max-width: 590px;
    color: var(--ahw-muted);
    font-size: var(--ahw-text-size);
    line-height: 1.7;
}
.ahw-solution__links {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1.15rem;
    margin-top: 1.6rem;
}
.ahw-solution__links a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--ahw-ink) !important;
    font-size: 1.05rem;
    font-weight: 780;
    text-decoration: none;
}
.ahw-solution__links a::after {
    content: "→";
    color: var(--ahw-gold);
    font-size: 1.08em;
    transition: transform .18s ease;
}
.ahw-solution__links a:hover,
.ahw-solution__links a:focus-visible {
    color: #243b75 !important;
}
.ahw-solution__links a:hover::after,
.ahw-solution__links a:focus-visible::after {
    transform: translateX(3px);
}
.ahw-solutions__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: clamp(2.6rem, 5vw, 4.2rem);
}
.ahw-solutions__foot p {
    margin: 0;
    max-width: 760px;
    color: var(--ahw-ink);
    font-size: var(--ahw-text-size);
    line-height: 1.65;
}
.ahw-solutions__foot strong {
    font-weight: 800;
}
@media (max-width: 900px) {
    .ahw-solutions__head {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .ahw-solutions__intro {
        max-width: 760px;
    }
}
@media (max-width: 700px) {
    .ahw-solutions__grid {
        grid-template-columns: 1fr;
    }
    .ahw-solution {
        min-height: auto;
    }
    .ahw-solution__number {
        margin-bottom: 1.6rem;
    }
    .ahw-solutions__foot {
        align-items: stretch;
        flex-direction: column;
    }
    .ahw-solutions__foot .ahw-button {
        width: 100%;
    }
}

/* Layout system for all new AH-WEB content. Full-width sections own their
   background; inner content is constrained through the container classes. */
.ahw-section {
    position: relative;
    padding-block: var(--ahw-section-space);
}
.ahw-section--compact { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.ahw-section--paper { background: var(--ahw-paper); }
.ahw-section--soft { background: var(--ahw-soft); }
.ahw-section--navy { background: var(--ahw-navy); color: rgba(255,255,255,.82); }
.ahw-section--navy :where(h1,h2,h3,h4) { color: #fff; }
.ahw-section--navy a:not(.ahw-button) { color: #fff; }
.ahw-section--gold { background: var(--ahw-gold); color: var(--ahw-navy); }
.ahw-section__head {
    max-width: 820px;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.ahw-section__head > :last-child { margin-bottom: 0; }
.ahw-prose { max-width: var(--ahw-container-narrow); }
.ahw-prose > :first-child { margin-top: 0; }
.ahw-prose > :last-child { margin-bottom: 0; }

.ahw-page-head {
    background: var(--ahw-navy);
    color: #fff;
    border-top: 1px solid rgba(255,255,255,.04);
}
.ahw-page-head-inner { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.ahw-eyebrow {
    margin: 0 0 .8rem;
    color: var(--ahw-gold);
    font-size: var(--ahw-label-size);
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.ahw-page-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .9rem;
    color: var(--ahw-gold);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.ahw-page-context a {
    color: inherit;
    text-decoration: none;
}
.ahw-page-context a:hover,
.ahw-page-context a:focus-visible {
    color: #fff;
    text-decoration: underline;
}
.ahw-page-context__separator {
    color: rgba(255,255,255,.42);
}
.ahw-page-head h1 {
    margin: 0;
    max-width: 900px;
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -.04em;
}
.ahw-main .ahw-page-head h1 { color: #fff; }
.ahw-page-section { padding-block: var(--ahw-section-space); }
.ahw-content-prose { max-width: var(--ahw-container-narrow); }

/* Default content typography – only inside AH-WEB content area */
.ahw-main h1,
.ahw-main h2,
.ahw-main h3,
.ahw-main h4 {
    color: var(--ahw-ink);
    line-height: 1.15;
    letter-spacing: -.025em;
}
.ahw-main h2 { margin: 2.5rem 0 1rem; font-size: clamp(1.7rem, 3vw, 2.45rem); }
.ahw-main h3 { margin: 2rem 0 .8rem; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.ahw-main p { margin: 0 0 1.15rem; }
.ahw-main ul, .ahw-main ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.ahw-main a:not(.ahw-button) { color: #243b75; }
.ahw-main a:not(.ahw-button):hover { color: var(--ahw-navy); }
.ahw-main blockquote {
    margin: 2rem 0;
    padding: .8rem 0 .8rem 1.4rem;
    border-left: 4px solid var(--ahw-gold);
    color: var(--ahw-muted);
    font-size: 1.08rem;
}

/* Subnavigation, ready for later use */
.ahw-subnav-list { list-style: none; margin: 0; padding: 0; }
.ahw-subnav-list ul { list-style: none; margin: .4rem 0 0 1rem; padding: 0; }
.ahw-subnav-item a {
    display: block;
    padding: .55rem 0;
    color: var(--ahw-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--ahw-line);
}

/* Reusable layout primitives */
.ahw-grid {
    display: grid;
    gap: clamp(1.25rem, 2.5vw, 2rem);
}
.ahw-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ahw-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ahw-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ahw-card {
    background: var(--ahw-paper);
    border: 1px solid var(--ahw-line);
    border-radius: var(--ahw-radius);
    padding: clamp(1.4rem, 3vw, 2rem);
}
.ahw-card > :first-child { margin-top: 0; }
.ahw-card > :last-child { margin-bottom: 0; }
.ahw-kicker {
    margin: 0 0 .7rem;
    color: var(--ahw-gold);
    font-size: var(--ahw-label-size);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ahw-lead {
    max-width: 760px;
    color: var(--ahw-muted);
    font-size: var(--ahw-lead-size);
    line-height: 1.65;
}
.ahw-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: center;
}
.ahw-button--outline {
    border-color: rgba(23,32,56,.22);
    background: transparent;
    color: var(--ahw-ink);
}
.ahw-section--navy .ahw-button--outline {
    border-color: rgba(255,255,255,.28);
    color: #fff;
}

/* Startseite – freundlicher Blauverlauf mit ruhigen Glow-Flächen */
.ahw-home-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 14% 18%, rgba(76, 112, 189, .30) 0, rgba(76, 112, 189, .12) 18%, transparent 42%),
        radial-gradient(circle at 84% 24%, rgba(54, 85, 158, .24) 0, rgba(54, 85, 158, .09) 20%, transparent 44%),
        linear-gradient(135deg, #1a2748 0%, #101a39 42%, #08102b 72%, #050a20 100%);
    color: #fff;
    border-bottom: 3px solid var(--ahw-gold);
}
.ahw-home-hero::before,
.ahw-home-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(2px);
}
.ahw-home-hero::before {
    width: clamp(280px, 34vw, 620px);
    aspect-ratio: 1;
    left: -10%;
    top: -26%;
    background: radial-gradient(circle, rgba(255,255,255,.10) 0%, rgba(124,153,217,.07) 44%, transparent 70%);
}
.ahw-home-hero::after {
    width: clamp(260px, 30vw, 560px);
    aspect-ratio: 1;
    right: -8%;
    bottom: -34%;
    background: radial-gradient(circle, rgba(248,183,0,.07) 0%, rgba(88,114,181,.08) 38%, transparent 70%);
}
.ahw-home-hero__inner {
    position: relative;
    z-index: 1;
    padding-top: clamp(5.5rem, 10vw, 9rem);
    padding-bottom: clamp(5.5rem, 9vw, 8rem);
}
.ahw-home-hero__eyebrow {
    margin: 0 0 1.15rem;
    color: var(--ahw-gold);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.ahw-home-hero .ahw-home-hero__title,
.ahw-home-hero .ahw-home-hero__title span {
    margin: 0;
    max-width: 1020px;
    color: #f8f9ff !important;
    font-size: clamp(3rem, 7vw, 6.4rem);
    font-weight: 780;
    line-height: .98;
    letter-spacing: -.055em;
    text-wrap: balance;
    text-shadow: 0 2px 22px rgba(3,6,23,.18);
}
.ahw-home-hero__title span {
    display: block;
}
.ahw-home-hero__lead {
    max-width: 900px;
    margin: clamp(2rem, 4vw, 3rem) 0 0;
    color: rgba(255,255,255,.90);
    font-size: var(--ahw-lead-size);
    line-height: 1.58;
}
.ahw-home-hero__usp {
    max-width: 900px;
    margin: clamp(2rem, 4vw, 3rem) 0 0;
    padding: .3rem 0 .3rem 1.35rem;
    border-left: 4px solid var(--ahw-gold);
    color: rgba(255,255,255,.98);
    font-size: clamp(1.38rem, 2vw, 1.62rem);
    line-height: 1.45;
}
.ahw-home-hero__usp strong {
    color: var(--ahw-gold);
    font-weight: 800;
}
.ahw-home-hero__text {
    max-width: 820px;
    margin: 1.75rem 0 0;
    color: rgba(255,255,255,.78);
    font-size: var(--ahw-text-size);
    line-height: 1.7;
}
.ahw-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .85rem;
    margin-top: 2.25rem;
}
.ahw-home-hero__actions .ahw-button {
    min-height: 52px;
    padding: .88rem 1.25rem;
}
.ahw-button--hero-outline {
    border-color: rgba(255,255,255,.42);
    background: rgba(255,255,255,.035);
    color: #fff;
}
.ahw-button--hero-outline:hover,
.ahw-button--hero-outline:focus-visible {
    border-color: var(--ahw-gold);
    background: rgba(248,183,0,.08);
    color: var(--ahw-gold);
}
.ahw-home-hero__note {
    margin: 1rem 0 0;
    color: rgba(255,255,255,.67);
    font-size: .92rem;
}

@media (max-width: 720px) {
    .ahw-home-hero {
        background:
            radial-gradient(circle at 12% 12%, rgba(76,112,189,.28) 0, rgba(76,112,189,.10) 24%, transparent 48%),
            linear-gradient(150deg, #1a2748 0%, #101a39 52%, #070e26 100%);
    }
    .ahw-home-hero__inner {
        padding-top: 4.4rem;
        padding-bottom: 4.5rem;
    }
    .ahw-home-hero .ahw-home-hero__title,
    .ahw-home-hero .ahw-home-hero__title span {
        font-size: clamp(2.65rem, 13vw, 4.3rem);
        line-height: 1.02;
    }
    .ahw-home-hero__lead {
        margin-top: 1.75rem;
        font-size: 1.08rem;
    }
    .ahw-home-hero__usp {
        margin-top: 1.75rem;
        padding-left: 1rem;
        font-size: 1.18rem;
    }
    .ahw-home-hero__text {
        font-size: 1rem;
    }
    .ahw-home-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }
    .ahw-home-hero__actions .ahw-button {
        width: 100%;
    }
    .ahw-home-hero__note {
        font-size: .88rem;
    }
}

/* Footer */
.ahw-site-footer {
    background: var(--ahw-navy);
    color: rgba(255, 255, 255, .78);
    border-top: 4px solid var(--ahw-gold);
    padding-top: clamp(3.5rem, 7vw, 5.75rem);
}
.ahw-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr) minmax(160px, 1fr);
    gap: clamp(2.5rem, 5vw, 5.5rem);
    padding-bottom: 3.6rem;
}
.ahw-brand--footer img { width: 170px; height: auto; }
.ahw-footer-brand p {
    max-width: 440px;
    margin: 1.4rem 0 0;
    color: rgba(255, 255, 255, .64);
    font-size: 1rem;
}
.ahw-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
}
.ahw-footer-column h2 {
    margin: 0 0 .55rem;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.ahw-footer-column a { color: rgba(255, 255, 255, .76); text-decoration: none; font-size: 1.02rem; line-height: 1.6; }
.ahw-footer-column a:hover { color: var(--ahw-gold); }
.ahw-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.2rem;
    border-top: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.50);
    font-size: .82rem;
}

/* Accessible focus */
.ahw-site :where(a, button, input, textarea, select, summary):focus-visible {
    outline: 3px solid var(--ahw-focus);
    outline-offset: 4px;
}

@media (max-width: 1080px) {
    :root { --ahw-header-height: 82px; }
    .ahw-site-header { box-shadow: 0 10px 28px rgba(3, 6, 23, .12); }
    .ahw-brand img { width: 154px; height: 51px; }
    .ahw-menu-toggle { display: block; }
    .ahw-navigation-wrap {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        bottom: auto;
        margin: 0;
        padding: .85rem 20px 1.25rem;
        max-height: calc(100vh - var(--ahw-header-height) - 12px);
        overflow-y: auto;
        background: var(--ahw-navy);
        border-top: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 22px 38px rgba(3, 6, 23, .22);
    }
    .ahw-navigation-wrap.collapse { display: none; }
    .ahw-navigation-wrap.collapse.in { display: block; }
    .ahw-navigation-wrap.collapsing {
        display: block;
        height: 0;
        overflow: hidden;
        transition: height .18s ease;
    }
    .ahw-main-nav > .ahw-nav-list { display: block; }
    .ahw-nav-item { border-bottom: 1px solid rgba(255,255,255,.09); }
    .ahw-nav-link { min-height: 50px; padding: .78rem 3rem .78rem .15rem; font-size: 1.03rem; }
    .ahw-main-nav > .ahw-nav-list > .ahw-nav-item > .ahw-nav-link::after {
        left: 0;
        right: auto;
        bottom: 6px;
        width: 34px;
        transform-origin: left center;
    }
    .ahw-main-nav > .ahw-nav-list > .ahw-nav-item > .ahw-nav-link:hover::after,
    .ahw-main-nav > .ahw-nav-list > .ahw-nav-item > .ahw-nav-link:focus-visible::after {
        transform: scaleX(.45);
    }
    .ahw-main-nav > .ahw-nav-list > .ahw-nav-item.is-current > .ahw-nav-link,
    .ahw-main-nav > .ahw-nav-list > .ahw-nav-item.is-current-ancestor > .ahw-nav-link,
    .ahw-main-nav > .ahw-nav-list > .ahw-nav-item.active > .ahw-nav-link {
        color: var(--ahw-gold);
        background: transparent;
    }
    .ahw-nav-item > ul,
    .ahw-nav-item > ul .ahw-nav-item > ul {
        position: static;
        width: auto;
        display: block;
        margin: 0 0 .75rem .85rem;
        padding: .15rem 0 .25rem .85rem;
        background: transparent;
        border: 0;
        border-left: 2px solid rgba(248,183,0,.45);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .ahw-submenu-toggle { display: none !important; }
    .ahw-header-check { width: 100%; margin-top: 1rem; min-height: 46px; }
    .ahw-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .ahw-header-inner { min-height: 76px; }
    :root { --ahw-header-height: 76px; }
    .ahw-brand img { width: 136px; height: 45px; }
    .ahw-menu-toggle { width: 44px; height: 42px; }
    .ahw-navigation-wrap { padding-inline: 16px; }
    .ahw-grid--2,
    .ahw-grid--3,
    .ahw-grid--4 { grid-template-columns: 1fr; }
    .ahw-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .ahw-footer-bottom { flex-direction: column; }
    .ahw-page-head-inner { padding-block: 3.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* V0.15 – zentrale Typografie: weniger Grössensprünge, bessere Lesbarkeit */
@media (max-width: 720px) {
    :root {
        --ahw-text-size: 17px;
        --ahw-lead-size: 18px;
        --ahw-small-size: 14px;
        --ahw-label-size: 13px;
    }
    .ahw-method__step::before {
        font-size: 1.8rem;
        margin-bottom: 1.35rem;
    }
    .ahw-solution__number { font-size: 1rem; }
}

/* V0.16 – einheitliche Indexzahlen, klare H3-Hierarchie, goldene CTA-Buttons */
:root {
    --ahw-index-size: clamp(2rem, 2.5vw, 2.6rem);
    --ahw-index-gap: clamp(1.7rem, 3vw, 2.5rem);
}

/* Nummerierte Inhaltsbausteine verwenden überall dieselbe Typografie. */
.ahw-site .ahw-method__step::before,
.ahw-site .ahw-solution__number {
    display: block;
    margin: 0 0 var(--ahw-index-gap);
    color: var(--ahw-gold);
    font-size: var(--ahw-index-size);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.02em;
}

/* H3 müssen als echte Zwischenüberschriften erkennbar sein. */
.ahw-site .ahw-problem h3,
.ahw-site .ahw-method__step h3,
.ahw-site .ahw-solution h3 {
    color: var(--ahw-ink);
    font-weight: 760;
    line-height: 1.22;
    letter-spacing: -.025em;
}
.ahw-site .ahw-problem h3 {
    margin: 0 0 .75rem;
    font-size: clamp(1.35rem, 1.6vw, 1.55rem);
}
.ahw-site .ahw-method__step h3 {
    margin: 0 0 .8rem;
    font-size: clamp(1.4rem, 1.65vw, 1.6rem);
}
.ahw-site .ahw-solution h3 {
    margin: 0 0 .9rem;
    font-size: clamp(1.5rem, 2vw, 1.9rem);
}

/* AH-WEB Standard: normale CTA- und Aktionsbuttons sind Gold mit Navy-Schrift. */
.ahw-site .ahw-button,
.ahw-site .ahw-button--gold,
.ahw-site .ahw-button--outline,
.ahw-site .ahw-button--hero-outline,
.ahw-site .ahw-section--navy .ahw-button--outline {
    border-color: var(--ahw-gold);
    background: var(--ahw-gold);
    color: var(--ahw-navy);
}
.ahw-site .ahw-button:hover,
.ahw-site .ahw-button:focus-visible,
.ahw-site .ahw-button--gold:hover,
.ahw-site .ahw-button--outline:hover,
.ahw-site .ahw-button--hero-outline:hover,
.ahw-site .ahw-button--hero-outline:focus-visible,
.ahw-site .ahw-section--navy .ahw-button--outline:hover,
.ahw-site .ahw-section--navy .ahw-button--outline:focus-visible {
    border-color: var(--ahw-gold);
    background: var(--ahw-gold);
    color: var(--ahw-navy);
    filter: brightness(.96);
}

@media (max-width: 720px) {
    :root {
        --ahw-index-size: 1.85rem;
        --ahw-index-gap: 1.35rem;
    }
}

/* V0.17 – Hero neu gewichtet, CTA-Zeilen sauber ausgerichtet, Projektbeispiele */

/* Der Startseiten-Hero nutzt auf grossen Screens bewusst auch die rechte Fläche. */
.ahw-home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .72fr);
    gap: clamp(3.5rem, 8vw, 8rem);
    align-items: center;
}
.ahw-home-hero__primary,
.ahw-home-hero__side {
    min-width: 0;
}
.ahw-home-hero__primary .ahw-home-hero__eyebrow {
    margin-bottom: 1.35rem;
}
.ahw-home-hero__primary .ahw-home-hero__title,
.ahw-home-hero__primary .ahw-home-hero__title span {
    max-width: 820px;
    font-size: clamp(3.25rem, 5.6vw, 5.6rem);
}
.ahw-home-hero__primary .ahw-home-hero__lead {
    max-width: 780px;
    margin-top: clamp(2.25rem, 4vw, 3.2rem);
    line-height: 1.65;
}
.ahw-home-hero__primary .ahw-home-hero__actions {
    margin-top: clamp(2.7rem, 5vw, 3.8rem);
    gap: 1rem;
}
.ahw-home-hero__primary .ahw-home-hero__note {
    margin-top: 1.1rem;
}
.ahw-home-hero__side {
    position: relative;
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid rgba(255,255,255,.16);
    border-top: 3px solid var(--ahw-gold);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
    box-shadow: 0 24px 60px rgba(0,0,0,.16);
}
.ahw-home-hero__side-label {
    margin: 0 0 1.25rem;
    color: var(--ahw-gold);
    font-size: var(--ahw-label-size);
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.ahw-home-hero__side .ahw-home-hero__usp {
    max-width: none;
    margin: 0;
    padding: 0;
    border-left: 0;
    font-size: clamp(1.55rem, 2.15vw, 2rem);
    line-height: 1.35;
}
.ahw-home-hero__side .ahw-home-hero__text {
    max-width: none;
    margin: 1.65rem 0 0;
    padding-top: 1.65rem;
    border-top: 1px solid rgba(255,255,255,.13);
    color: rgba(255,255,255,.78);
    line-height: 1.72;
}

/* Abschlusszeilen von Methode und Leistungsfeldern: gemeinsame Rasterlogik. */
.ahw-method__foot,
.ahw-solutions__foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: clamp(2rem, 6vw, 6rem);
}
.ahw-method__foot p,
.ahw-solutions__foot p {
    max-width: 820px;
}
.ahw-method__foot .ahw-button,
.ahw-solutions__foot .ahw-button {
    justify-self: end;
    white-space: nowrap;
}

/* Startseite – Projekte als Beleg statt Leistungsversprechen. */
.ahw-projects {
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 12%, rgba(61,92,168,.22) 0, rgba(61,92,168,.07) 22%, transparent 45%),
        linear-gradient(145deg, #101a39 0%, #070d26 58%, #030617 100%);
    color: rgba(255,255,255,.82);
    border-top: 3px solid var(--ahw-gold);
}
.ahw-projects__head {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .75fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: end;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}
.ahw-projects__eyebrow {
    margin: 0 0 .8rem;
    color: var(--ahw-gold);
    font-size: var(--ahw-label-size);
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.ahw-projects__title {
    margin: 0;
    max-width: 820px;
    color: #fff;
    font-size: clamp(2.35rem, 5vw, 4.55rem);
    font-weight: 770;
    line-height: 1.02;
    letter-spacing: -.048em;
}
.ahw-projects__intro {
    margin: 0;
    max-width: 620px;
    color: rgba(255,255,255,.72);
    font-size: var(--ahw-lead-size);
    line-height: 1.72;
}
.ahw-projects__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}
.ahw-project {
    display: flex;
    min-height: 360px;
    padding: clamp(2rem, 3vw, 2.65rem);
    flex-direction: column;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 12px;
    background: rgba(255,255,255,.045);
}
.ahw-project__status {
    align-self: flex-start;
    margin: 0 0 2rem;
    padding: .38rem .62rem;
    border: 1px solid rgba(248,183,0,.48);
    border-radius: 999px;
    color: var(--ahw-gold);
    font-size: var(--ahw-small-size);
    font-weight: 750;
    line-height: 1.2;
}
.ahw-project h3 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(1.55rem, 2vw, 1.9rem);
    font-weight: 760;
    line-height: 1.2;
    letter-spacing: -.025em;
}
.ahw-project__meta {
    margin: 0 0 1.2rem;
    color: var(--ahw-gold);
    font-size: var(--ahw-small-size);
    font-weight: 760;
    line-height: 1.5;
}
.ahw-project__text {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: var(--ahw-text-size);
    line-height: 1.7;
}
.ahw-projects__foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    margin-top: clamp(2.8rem, 5vw, 4.5rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid rgba(255,255,255,.12);
}
.ahw-projects__foot p {
    margin: 0;
    max-width: 820px;
    color: rgba(255,255,255,.78);
    font-size: var(--ahw-text-size);
    line-height: 1.7;
}
.ahw-projects__foot .ahw-button {
    justify-self: end;
    white-space: nowrap;
}

@media (max-width: 1050px) {
    .ahw-home-hero__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .ahw-home-hero__side {
        max-width: 780px;
    }
    .ahw-projects__head {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .ahw-projects__grid {
        grid-template-columns: 1fr 1fr;
    }
    .ahw-project:last-child {
        grid-column: 1 / -1;
        min-height: auto;
    }
}

@media (max-width: 700px) {
    .ahw-home-hero__grid {
        gap: 2.2rem;
    }
    .ahw-home-hero__side {
        padding: 1.65rem;
        border-radius: 10px;
    }
    .ahw-method__foot,
    .ahw-solutions__foot,
    .ahw-projects__foot {
        grid-template-columns: 1fr;
        align-items: stretch;
        row-gap: 1.5rem;
    }
    .ahw-method__foot .ahw-button,
    .ahw-solutions__foot .ahw-button,
    .ahw-projects__foot .ahw-button {
        width: 100%;
        justify-self: stretch;
        white-space: normal;
    }
    .ahw-projects__grid {
        grid-template-columns: 1fr;
    }
    .ahw-project,
    .ahw-project:last-child {
        grid-column: auto;
        min-height: auto;
    }
}

/* V0.18 – vereinheitlichte Section-Intros und Kontrast im Praxisbereich */
/* Leistungen und Projekte folgen derselben Intro-Logik wie die Methode:
   links Kicker + Titel, rechts Erklärung mit goldener Akzentlinie. */
.ahw-site .ahw-solutions__head,
.ahw-site .ahw-projects__head {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .78fr);
    align-items: start;
}

.ahw-site .ahw-solutions__intro,
.ahw-site .ahw-projects__intro {
    align-self: start;
    margin-top: clamp(2.7rem, 4vw, 3.35rem);
    padding: .9rem 0 .9rem 1.5rem;
    border-left: 4px solid var(--ahw-gold);
}

/* Abschnittstitel im dunklen Praxisbereich dürfen nicht von der globalen
   Content-Typografie wieder dunkel eingefärbt werden. */
.ahw-site .ahw-main .ahw-projects__title {
    color: #fff;
}
.ahw-site .ahw-main .ahw-projects__intro {
    color: rgba(255,255,255,.78);
}

/* Ruhiger Abschluss der Introzone vor den Projektkarten. */
.ahw-site .ahw-projects__grid {
    padding-top: clamp(2.4rem, 4vw, 3.2rem);
    border-top: 1px solid rgba(255,255,255,.13);
}

/* Auf kleineren Ansichten stehen Introblöcke untereinander; dort braucht es
   keinen künstlichen vertikalen Versatz. Die Goldlinie bleibt als Führung. */
@media (max-width: 1050px) {
    .ahw-site .ahw-solutions__head,
    .ahw-site .ahw-projects__head {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    .ahw-site .ahw-solutions__intro,
    .ahw-site .ahw-projects__intro {
        margin-top: 0;
        max-width: 780px;
    }
}

/* V0.19 – Problemabschnitt folgt derselben Intro-Logik wie Methode und Leistungen. */
.ahw-site .ahw-problems__head {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .78fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: end;
    max-width: none;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}
.ahw-site .ahw-problems__head > div {
    min-width: 0;
}
.ahw-site .ahw-problems__intro {
    max-width: 760px;
}
.ahw-site .ahw-problems__aside {
    margin: 0;
    padding: 1.5rem 0 1.5rem 1.5rem;
    border-left: 4px solid var(--ahw-gold);
    color: var(--ahw-ink);
    font-size: var(--ahw-text-size);
    line-height: 1.7;
}
@media (max-width: 1050px) {
    .ahw-site .ahw-problems__head {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        align-items: start;
    }
    .ahw-site .ahw-problems__aside {
        max-width: 780px;
    }
}

/* V0.20 – Footer-Typografie besser lesbar, bestehende Gestaltung unverändert */
.ahw-site .ahw-footer-brand p {
    font-size: 1.08rem;
    line-height: 1.65;
}
.ahw-site .ahw-footer-column h2 {
    font-size: .94rem;
    line-height: 1.35;
}
.ahw-site .ahw-footer-column a {
    font-size: 1.10rem;
    line-height: 1.7;
}
.ahw-site .ahw-footer-bottom {
    font-size: .92rem;
    line-height: 1.55;
}

/* V0.21 – dauerhafte Lesegroessen fuer Hauptnavigation und Footer */
@media (min-width: 1081px) {
    .ahw-site .ahw-main-nav > .ahw-nav-list > .ahw-nav-item > .ahw-nav-link {
        font-size: 1.08rem;
        font-weight: 700;
        line-height: 1.35;
    }

    .ahw-site .ahw-header-check {
        font-size: 1.04rem;
    }
}

.ahw-site .ahw-footer-column h2 {
    font-size: 1.02rem;
    line-height: 1.35;
    letter-spacing: .12em;
}

.ahw-site .ahw-footer-column a {
    font-size: 1.16rem;
    line-height: 1.65;
}

.ahw-site .ahw-footer-brand p {
    font-size: 1.10rem;
    line-height: 1.65;
}

.ahw-site .ahw-footer-bottom {
    font-size: .98rem;
    line-height: 1.55;
}

/* V0.22 – Inhaltslinks als gut lesbare kompakte Gold-CTAs.
   Gilt u. a. auf Startseite und Lösungsübersicht. */
.ahw-site .ahw-solution__links {
    gap: .75rem;
    margin-top: 1.65rem;
}

.ahw-site .ahw-solution__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 44px;
    padding: .68rem 1rem;
    border: 1px solid var(--ahw-gold);
    border-radius: var(--ahw-radius);
    background: var(--ahw-gold);
    color: var(--ahw-navy) !important;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(248,183,0,.12);
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ahw-site .ahw-solution__links a::after {
    content: "→";
    color: var(--ahw-navy);
    font-size: 1.08em;
    line-height: 1;
    transition: transform .18s ease;
}

.ahw-site .ahw-solution__links a:hover,
.ahw-site .ahw-solution__links a:focus-visible {
    background: #ffc426;
    border-color: #ffc426;
    color: var(--ahw-navy) !important;
    transform: translateY(-1px);
    box-shadow: 0 9px 24px rgba(248,183,0,.18);
}

.ahw-site .ahw-solution__links a:hover::after,
.ahw-site .ahw-solution__links a:focus-visible::after {
    transform: translateX(3px);
}

.ahw-site .ahw-solution__links a:focus-visible {
    outline: 3px solid rgba(41,101,170,.35);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .ahw-site .ahw-solution__links a {
        width: 100%;
        justify-content: space-between;
        font-size: 1.04rem;
        padding: .76rem .95rem;
    }
}


/* V0.23 – klare Staffelung der Lösungsseite und kontrastreicher Abschluss.
   Bestehende Komponenten bleiben unverändert; diese Regeln gelten nur für
   die gekennzeichneten Bereiche der Seite "Lösungen". */
.ahw-site .ahw-solutions-page__combination {
    position: relative;
    background:
        radial-gradient(circle at 8% 88%, rgba(248,183,0,.035) 0, transparent 30%),
        var(--ahw-paper);
    border-top: 1px solid rgba(23,32,56,.08);
    border-bottom: 1px solid rgba(23,32,56,.08);
}

.ahw-site .ahw-solutions-page__check {
    border-top: 1px solid rgba(23,32,56,.07);
    border-bottom: 1px solid rgba(23,32,56,.07);
}

.ahw-site .ahw-solutions-page__cta {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 18%, rgba(67,101,182,.18) 0, rgba(67,101,182,.06) 24%, transparent 48%),
        linear-gradient(135deg, #182d5c 0%, #0e1b42 52%, #060b26 100%);
    border-top: 3px solid var(--ahw-gold);
}

.ahw-site .ahw-solutions-page__cta .ahw-method__eyebrow {
    color: var(--ahw-gold);
}

.ahw-site .ahw-main .ahw-solutions-page__cta .ahw-method__title {
    color: #fff !important;
}

.ahw-site .ahw-solutions-page__cta .ahw-method__lead,
.ahw-site .ahw-solutions-page__cta .ahw-method__aside,
.ahw-site .ahw-solutions-page__cta .ahw-method__foot p {
    color: rgba(255,255,255,.88);
}

.ahw-site .ahw-solutions-page__cta .ahw-method__aside {
    border-left-color: var(--ahw-gold);
}

.ahw-site .ahw-solutions-page__cta .ahw-method__foot {
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid rgba(255,255,255,.16);
}

.ahw-site .ahw-solutions-page__cta .ahw-method__foot strong {
    color: #fff;
}

/* Der Wechsel zwischen hellen Inhaltsblöcken soll auch in langen Ansichten
   klar erkennbar bleiben. */
.ahw-site .ahw-solutions-page__method,
.ahw-site .ahw-solutions-page__combination,
.ahw-site .ahw-solutions-page__check,
.ahw-site .ahw-solutions-page__cta {
    scroll-margin-top: calc(var(--ahw-header-height) + 1rem);
}

/* V0.24 – FINAL / eingefrorene globale Lesegroessen.
   Diese Werte gelten verbindlich fuer Header, Footer und kompakte Inhalts-CTAs.
   Kuenftige Inhaltsseiten duerfen diese Regeln nicht ueberschreiben. */
:root {
    --ahw-nav-primary-size: 1.50rem;
    --ahw-header-cta-size: 1.28rem;
    --ahw-footer-heading-size: 1.10rem;
    --ahw-footer-link-size: 1.50rem;
    --ahw-footer-claim-size: 1.08rem;
    --ahw-footer-meta-size: .98rem;
    --ahw-inline-cta-size: 1.50rem;
}

@media (min-width: 1081px) {
    .ahw-site .ahw-main-nav > .ahw-nav-list > .ahw-nav-item > .ahw-nav-link {
        font-size: var(--ahw-nav-primary-size);
        font-weight: 700;
        line-height: 1.25;
    }

    .ahw-site .ahw-header-check {
        font-size: var(--ahw-header-cta-size);
        font-weight: 800;
    }
}

.ahw-site .ahw-footer-column h2 {
    font-size: var(--ahw-footer-heading-size);
    line-height: 1.35;
    letter-spacing: .12em;
}

.ahw-site .ahw-footer-column a {
    font-size: var(--ahw-footer-link-size);
    line-height: 1.55;
}

.ahw-site .ahw-footer-brand p {
    font-size: var(--ahw-footer-claim-size);
    line-height: 1.6;
}

.ahw-site .ahw-footer-bottom {
    font-size: var(--ahw-footer-meta-size);
    line-height: 1.55;
}

.ahw-site .ahw-solution__links a {
    font-size: var(--ahw-inline-cta-size);
    min-height: 48px;
    padding: .72rem 1.08rem;
}

@media (max-width: 1080px) {
    .ahw-site .ahw-solution__links a {
        font-size: 1.18rem;
    }
}

@media (max-width: 640px) {
    .ahw-site .ahw-solution__links a {
        font-size: 1.10rem;
        padding: .78rem 1rem;
    }
}

/* V0.25 – Cloudrexx Kontaktformular.
   Ausschliesslich fuer das native Formularmodul. Die in V0.24 eingefrorenen
   Header-, Footer- und CTA-Groessen bleiben unveraendert. */
.ahw-site #contactForm,
.ahw-site form[class*="contactForm_"] {
    float: none;
    width: min(calc(100% - (2 * var(--ahw-gutter))), 980px);
    max-width: 980px;
    margin: clamp(3rem, 6vw, 5.5rem) auto clamp(4rem, 8vw, 7rem);
    padding: clamp(1.75rem, 4vw, 3rem);
    border: 1px solid rgba(23,32,56,.12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(3,6,23,.07);
    color: var(--ahw-ink);
    overflow: visible;
}

.ahw-site #contactForm fieldset,
.ahw-site form[class*="contactForm_"] fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ahw-site #contactForm h1,
.ahw-site #contactForm h2,
.ahw-site #contactForm h3,
.ahw-site form[class*="contactForm_"] h1,
.ahw-site form[class*="contactForm_"] h2,
.ahw-site form[class*="contactForm_"] h3 {
    margin: 0 0 1.75rem;
    color: var(--ahw-ink);
    font-weight: 800;
    line-height: 1.15;
}

/* Alte Lava-Formularregeln (float, 250px Labelversatz) neutralisieren. */
.ahw-site #contactForm p,
.ahw-site #contactForm > fieldset > div,
.ahw-site form[class*="contactForm_"] p,
.ahw-site form[class*="contactForm_"] > fieldset > div {
    float: none;
    width: 100%;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
    gap: .65rem 1.5rem;
    align-items: start;
}

.ahw-site #contactForm p label,
.ahw-site #contactForm label,
.ahw-site form[class*="contactForm_"] p label,
.ahw-site form[class*="contactForm_"] label {
    float: none;
    width: auto;
    margin: 0;
    padding: .78rem 0 0;
    color: var(--ahw-ink);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.ahw-site #contactForm input[type="text"],
.ahw-site #contactForm input[type="email"],
.ahw-site #contactForm input[type="tel"],
.ahw-site #contactForm input[type="url"],
.ahw-site #contactForm input[type="number"],
.ahw-site #contactForm select,
.ahw-site #contactForm textarea,
.ahw-site form[class*="contactForm_"] input[type="text"],
.ahw-site form[class*="contactForm_"] input[type="email"],
.ahw-site form[class*="contactForm_"] input[type="tel"],
.ahw-site form[class*="contactForm_"] input[type="url"],
.ahw-site form[class*="contactForm_"] input[type="number"],
.ahw-site form[class*="contactForm_"] select,
.ahw-site form[class*="contactForm_"] textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 50px;
    margin: 0;
    padding: .78rem .9rem;
    border: 1px solid rgba(23,32,56,.24);
    border-radius: 7px;
    background: #fff;
    color: var(--ahw-ink);
    font-family: var(--ahw-font);
    font-size: 1.05rem;
    line-height: 1.45;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.ahw-site #contactForm textarea,
.ahw-site form[class*="contactForm_"] textarea {
    min-height: 170px;
    resize: vertical;
}

.ahw-site #contactForm input:focus,
.ahw-site #contactForm select:focus,
.ahw-site #contactForm textarea:focus,
.ahw-site form[class*="contactForm_"] input:focus,
.ahw-site form[class*="contactForm_"] select:focus,
.ahw-site form[class*="contactForm_"] textarea:focus {
    outline: 0;
    border-color: var(--ahw-gold);
    box-shadow: 0 0 0 4px rgba(248,183,0,.15);
}

.ahw-site #contactForm .is_required,
.ahw-site form[class*="contactForm_"] .is_required {
    color: #b42318;
    font-weight: 800;
}

.ahw-site #contactForm .contactFormGroup,
.ahw-site form[class*="contactForm_"] .contactFormGroup {
    float: none;
    width: 100%;
}

.ahw-site #contactForm input[type="checkbox"],
.ahw-site form[class*="contactForm_"] input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin: .15rem .5rem 0 0;
    accent-color: var(--ahw-gold);
}

.ahw-site #contactForm input[type="submit"],
.ahw-site #contactForm input[type="reset"],
.ahw-site #contactForm button,
.ahw-site form[class*="contactForm_"] input[type="submit"],
.ahw-site form[class*="contactForm_"] input[type="reset"],
.ahw-site form[class*="contactForm_"] button {
    float: none;
    width: auto;
    min-height: 48px;
    margin: .6rem .65rem 0 0;
    padding: .78rem 1.15rem;
    border: 1px solid var(--ahw-gold);
    border-radius: var(--ahw-radius);
    background: var(--ahw-gold);
    color: var(--ahw-navy);
    font-family: var(--ahw-font);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 7px 20px rgba(248,183,0,.13);
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ahw-site #contactForm input[type="submit"]:hover,
.ahw-site #contactForm input[type="reset"]:hover,
.ahw-site #contactForm button:hover,
.ahw-site form[class*="contactForm_"] input[type="submit"]:hover,
.ahw-site form[class*="contactForm_"] input[type="reset"]:hover,
.ahw-site form[class*="contactForm_"] button:hover {
    background: #ffc426;
    border-color: #ffc426;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(248,183,0,.2);
}

.ahw-site #contactFormError {
    box-sizing: border-box;
    width: min(calc(100% - (2 * var(--ahw-gutter))), 980px);
    margin: 1.5rem auto 0;
    padding: 1rem 1.1rem;
    border-left: 4px solid #b42318;
    background: #fff1f0;
    color: #7a271a;
}

/* Inhalt aus "Seiteninhalt oberhalb Formular" / Erfolgsinhalt. */
.ahw-site .ahw-contact-form-success {
    background: var(--ahw-soft);
}

@media (max-width: 760px) {
    .ahw-site #contactForm,
    .ahw-site form[class*="contactForm_"] {
        width: calc(100% - (2 * var(--ahw-gutter)));
        padding: 1.35rem;
    }

    .ahw-site #contactForm p,
    .ahw-site #contactForm > fieldset > div,
    .ahw-site form[class*="contactForm_"] p,
    .ahw-site form[class*="contactForm_"] > fieldset > div {
        grid-template-columns: 1fr;
        gap: .45rem;
    }

    .ahw-site #contactForm p label,
    .ahw-site #contactForm label,
    .ahw-site form[class*="contactForm_"] p label,
    .ahw-site form[class*="contactForm_"] label {
        padding-top: 0;
    }

    .ahw-site #contactForm input[type="submit"],
    .ahw-site #contactForm input[type="reset"],
    .ahw-site #contactForm button,
    .ahw-site form[class*="contactForm_"] input[type="submit"],
    .ahw-site form[class*="contactForm_"] input[type="reset"],
    .ahw-site form[class*="contactForm_"] button {
        width: 100%;
        margin-right: 0;
    }
}

/* V0.26 – Kontaktformular: klare Feldreihenfolge und ruhiges Zweispalten-Raster.
   Ausschliesslich Formular-Modul. Eingefrorene Header-/Footer-/CTA-Typografie bleibt unveraendert. */
.ahw-site #contactForm fieldset,
.ahw-site form[class*="contactForm_"] fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 1.6rem;
    align-items: start;
}

.ahw-site #contactForm fieldset > h1,
.ahw-site #contactForm fieldset > h2,
.ahw-site #contactForm fieldset > h3,
.ahw-site #contactForm fieldset > legend,
.ahw-site form[class*="contactForm_"] fieldset > h1,
.ahw-site form[class*="contactForm_"] fieldset > h2,
.ahw-site form[class*="contactForm_"] fieldset > h3,
.ahw-site form[class*="contactForm_"] fieldset > legend {
    grid-column: 1 / -1;
    width: 100%;
}

/* Jede normale Formularzeile ist intern Label -> Feld, egal in welcher Reihenfolge
   Cloudrexx die Elemente im Markup ausgibt. */
.ahw-site #contactForm fieldset > p,
.ahw-site #contactForm fieldset > .contactFormGroup,
.ahw-site form[class*="contactForm_"] fieldset > p,
.ahw-site form[class*="contactForm_"] fieldset > .contactFormGroup {
    display: flex;
    flex-direction: column;
    gap: .52rem;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

.ahw-site #contactForm fieldset > p label,
.ahw-site #contactForm fieldset > .contactFormGroup label,
.ahw-site form[class*="contactForm_"] fieldset > p label,
.ahw-site form[class*="contactForm_"] fieldset > .contactFormGroup label {
    order: 1;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--ahw-ink);
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.35;
}

.ahw-site #contactForm fieldset > p input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="reset"]),
.ahw-site #contactForm fieldset > p select,
.ahw-site #contactForm fieldset > p textarea,
.ahw-site #contactForm fieldset > .contactFormGroup input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="reset"]),
.ahw-site #contactForm fieldset > .contactFormGroup select,
.ahw-site #contactForm fieldset > .contactFormGroup textarea,
.ahw-site form[class*="contactForm_"] fieldset > p input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="reset"]),
.ahw-site form[class*="contactForm_"] fieldset > p select,
.ahw-site form[class*="contactForm_"] fieldset > p textarea,
.ahw-site form[class*="contactForm_"] fieldset > .contactFormGroup input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="reset"]),
.ahw-site form[class*="contactForm_"] fieldset > .contactFormGroup select,
.ahw-site form[class*="contactForm_"] fieldset > .contactFormGroup textarea {
    order: 2;
    width: 100%;
    min-width: 0;
}

/* Mehrzeilige Anfrage, Einwilligung, CAPTCHA/Fehler und Aktionen erhalten die volle Breite. */
.ahw-site #contactForm fieldset > p:has(textarea),
.ahw-site #contactForm fieldset > .contactFormGroup:has(textarea),
.ahw-site #contactForm fieldset > p:has(input[type="checkbox"]),
.ahw-site #contactForm fieldset > .contactFormGroup:has(input[type="checkbox"]),
.ahw-site #contactForm fieldset > p:has(input[type="submit"]),
.ahw-site #contactForm fieldset > .contactFormGroup:has(input[type="submit"]),
.ahw-site form[class*="contactForm_"] fieldset > p:has(textarea),
.ahw-site form[class*="contactForm_"] fieldset > .contactFormGroup:has(textarea),
.ahw-site form[class*="contactForm_"] fieldset > p:has(input[type="checkbox"]),
.ahw-site form[class*="contactForm_"] fieldset > .contactFormGroup:has(input[type="checkbox"]),
.ahw-site form[class*="contactForm_"] fieldset > p:has(input[type="submit"]),
.ahw-site form[class*="contactForm_"] fieldset > .contactFormGroup:has(input[type="submit"]) {
    grid-column: 1 / -1;
}

.ahw-site #contactForm fieldset > p:has(input[type="checkbox"]),
.ahw-site #contactForm fieldset > .contactFormGroup:has(input[type="checkbox"]),
.ahw-site form[class*="contactForm_"] fieldset > p:has(input[type="checkbox"]),
.ahw-site form[class*="contactForm_"] fieldset > .contactFormGroup:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: flex-start;
    gap: .7rem;
    padding: .35rem 0;
}

.ahw-site #contactForm fieldset > p:has(input[type="checkbox"]) input[type="checkbox"],
.ahw-site #contactForm fieldset > .contactFormGroup:has(input[type="checkbox"]) input[type="checkbox"],
.ahw-site form[class*="contactForm_"] fieldset > p:has(input[type="checkbox"]) input[type="checkbox"],
.ahw-site form[class*="contactForm_"] fieldset > .contactFormGroup:has(input[type="checkbox"]) input[type="checkbox"] {
    order: 1;
    flex: 0 0 auto;
    margin-top: .16rem;
}

.ahw-site #contactForm fieldset > p:has(input[type="checkbox"]) label,
.ahw-site #contactForm fieldset > .contactFormGroup:has(input[type="checkbox"]) label,
.ahw-site form[class*="contactForm_"] fieldset > p:has(input[type="checkbox"]) label,
.ahw-site form[class*="contactForm_"] fieldset > .contactFormGroup:has(input[type="checkbox"]) label {
    order: 2;
    width: auto;
    font-weight: 600;
}

/* Der Zuruecksetzen-Knopf bringt hier keinen Nutzen und konkurriert mit dem Haupt-CTA. */
.ahw-site #contactForm input[type="reset"],
.ahw-site form[class*="contactForm_"] input[type="reset"] {
    display: none !important;
}

.ahw-site #contactForm input[type="submit"],
.ahw-site form[class*="contactForm_"] input[type="submit"] {
    min-width: 230px;
    margin-left: auto;
}

@media (max-width: 760px) {
    .ahw-site #contactForm fieldset,
    .ahw-site form[class*="contactForm_"] fieldset {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .ahw-site #contactForm fieldset > p,
    .ahw-site #contactForm fieldset > .contactFormGroup,
    .ahw-site form[class*="contactForm_"] fieldset > p,
    .ahw-site form[class*="contactForm_"] fieldset > .contactFormGroup {
        grid-column: 1;
    }

    .ahw-site #contactForm input[type="submit"],
    .ahw-site form[class*="contactForm_"] input[type="submit"] {
        width: 100%;
        min-width: 0;
        margin-left: 0;
    }
}


/* =========================================================
   AH-WEB v0.27 – Rechtliche Inhaltsseiten
   Aktivierung pro Seite über: Zusätzliche CSS-Klasse = ahw-legal-page
   Globale Header-/Footer- und CTA-Typografie bleibt unverändert.
   ========================================================= */
.ahw-legal-page .ahw-cms-content {
    width: min(100% - (2 * var(--ahw-gutter)), 1120px);
    margin-inline: auto;
    padding-block: clamp(3.25rem, 6vw, 5.75rem);
    color: var(--ahw-ink);
}

.ahw-legal-page .ahw-cms-content > :first-child {
    margin-top: 0;
}

.ahw-legal-page .ahw-cms-content h1 {
    margin: 0 0 1rem;
    color: var(--ahw-ink);
    font-size: clamp(2.35rem, 5vw, 4.3rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.ahw-legal-page .ahw-cms-content h2 {
    margin: clamp(2.6rem, 5vw, 4.5rem) 0 .9rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--ahw-line);
    color: var(--ahw-ink);
    font-size: clamp(1.5rem, 2.7vw, 2.15rem);
    line-height: 1.15;
    letter-spacing: -.025em;
}

.ahw-legal-page .ahw-cms-content h3 {
    margin: 2rem 0 .65rem;
    color: var(--ahw-ink);
    font-size: clamp(1.28rem, 2vw, 1.52rem);
    line-height: 1.3;
}

.ahw-legal-page .ahw-cms-content h4 {
    margin: 1.5rem 0 .5rem;
    color: var(--ahw-ink);
    font-size: 1.16rem;
    line-height: 1.35;
}

.ahw-legal-page .ahw-cms-content p,
.ahw-legal-page .ahw-cms-content li {
    font-size: clamp(1.12rem, 1.45vw, 1.20rem);
    line-height: 1.75;
}

.ahw-legal-page .ahw-cms-content p {
    margin: 0 0 1rem;
}

.ahw-legal-page .ahw-cms-content ul,
.ahw-legal-page .ahw-cms-content ol {
    margin: .75rem 0 1.35rem;
    padding-left: 1.35rem;
}

.ahw-legal-page .ahw-cms-content li + li {
    margin-top: .45rem;
}

.ahw-legal-page .ahw-cms-content a:not(.ahw-button) {
    color: var(--ahw-ink);
    font-weight: 750;
    text-decoration-color: var(--ahw-gold);
    text-decoration-thickness: 2px;
    text-underline-offset: .18em;
}

.ahw-legal-page .ahw-cms-content a:not(.ahw-button):hover,
.ahw-legal-page .ahw-cms-content a:not(.ahw-button):focus-visible {
    color: #000;
    text-decoration-color: var(--ahw-gold);
}

.ahw-legal-page .ahw-legal-kicker {
    margin: 0 0 .85rem;
    color: #7c5a00;
    font-size: .86rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ahw-legal-page .ahw-legal-lead {
    max-width: 900px;
    margin-bottom: 2.25rem;
    color: var(--ahw-muted);
    font-size: clamp(1.12rem, 2.1vw, 1.32rem);
    line-height: 1.65;
}

.ahw-legal-page .ahw-legal-meta,
.ahw-legal-page .ahw-legal-card,
.ahw-legal-page .ahw-legal-notice {
    margin: 1.4rem 0 2rem;
    padding: clamp(1.25rem, 2.4vw, 1.8rem);
    border: 1px solid var(--ahw-line);
    border-radius: var(--ahw-radius);
    background: var(--ahw-soft);
}

.ahw-legal-page .ahw-legal-notice {
    border-left: 4px solid var(--ahw-gold);
}

.ahw-legal-page .ahw-legal-meta p:last-child,
.ahw-legal-page .ahw-legal-card p:last-child,
.ahw-legal-page .ahw-legal-notice p:last-child {
    margin-bottom: 0;
}

.ahw-legal-page .ahw-legal-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 2rem;
    margin: 1.5rem 0 2rem;
}

.ahw-legal-page .ahw-legal-contact > div {
    padding: 1.25rem 0;
    border-top: 1px solid var(--ahw-line);
}

.ahw-legal-page .ahw-legal-contact strong {
    display: block;
    margin-bottom: .35rem;
}

.ahw-legal-page .ahw-cms-content table {
    width: 100%;
    margin: 1.25rem 0 2rem;
    border-collapse: collapse;
    font-size: 1rem;
}

.ahw-legal-page .ahw-cms-content th,
.ahw-legal-page .ahw-cms-content td {
    padding: .85rem 1rem;
    border: 1px solid var(--ahw-line);
    text-align: left;
    vertical-align: top;
}

.ahw-legal-page .ahw-cms-content th {
    background: var(--ahw-soft);
    font-weight: 800;
}

@media (max-width: 720px) {
    .ahw-legal-page .ahw-legal-contact {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


/* =========================================================
   AH-WEB v0.28 – Legal-Seiten Feinschliff
   Nur Lesebreite und Typografie der rechtlichen Seiten.
   Eingefrorene Header-/Footer-/CTA-Typografie bleibt unverändert.
   ========================================================= */
.ahw-site.ahw-legal-page .ahw-cms-content {
    width: min(100% - (2 * var(--ahw-gutter)), 1120px);
}
.ahw-site.ahw-legal-page .ahw-cms-content p,
.ahw-site.ahw-legal-page .ahw-cms-content li {
    font-size: clamp(1.12rem, 1.45vw, 1.20rem);
    line-height: 1.75;
}
.ahw-site.ahw-legal-page .ahw-cms-content h3 {
    font-size: clamp(1.28rem, 2vw, 1.52rem);
}
.ahw-site.ahw-legal-page .ahw-cms-content h4 {
    font-size: 1.16rem;
}
@media (max-width: 720px) {
    .ahw-site.ahw-legal-page .ahw-cms-content {
        width: 100%;
    }
    .ahw-site.ahw-legal-page .ahw-cms-content p,
    .ahw-site.ahw-legal-page .ahw-cms-content li {
        font-size: 1.05rem;
    }
}
