
:root {
    --color-bg: #f3f7fb;
    --color-surface: #ffffff;
    --color-surface-soft: #f7f9fc;
    --color-surface-strong: #edf2f7;
    --color-text: #152235;
    --color-text-muted: #5f6c7d;
    --color-border: rgba(21, 34, 53, 0.12);
    --color-border-strong: rgba(21, 34, 53, 0.2);
    --color-accent: #ee6c2f;
    --color-accent-strong: #ff8e46;
    --color-accent-green: #4eb76b;
    --color-dark: #0f1a2b;
    --color-dark-soft: #20344f;
    --color-white: #ffffff;
    --gradient-accent: linear-gradient(135deg, #ee6c2f 0%, #ffbe55 42%, #4eb76b 100%);
    --gradient-dark: linear-gradient(135deg, #152235 0%, #20344f 100%);
    --shadow-sm: 0 16px 35px rgba(15, 26, 43, 0.08);
    --shadow-md: 0 28px 70px rgba(15, 26, 43, 0.14);
    --shadow-lg: 0 32px 110px rgba(9, 17, 29, 0.24);
    --radius-xs: 12px;
    --radius-sm: 18px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --max-width: 1240px;
    --content-width: 760px;
    --header-height: 88px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 28px);
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text);
    background:
        radial-gradient(circle at 0% 0%, rgba(238, 108, 47, 0.08), transparent 28%),
        radial-gradient(circle at 100% 6%, rgba(78, 183, 107, 0.08), transparent 24%),
        var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: rgba(238, 108, 47, 0.18);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 5000;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--color-dark);
    color: var(--color-white);
}

.skip-link:focus {
    top: 1rem;
}

.container {
    width: min(100% - 2rem, var(--max-width));
    margin: 0 auto;
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.75rem, 5vw, 5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 760;
}

h3 {
    font-size: clamp(1.2rem, 1.5vw, 1.45rem);
    font-weight: 720;
}

p {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
}

strong {
    color: var(--color-text);
}

ul {
    margin: 0;
    padding: 0;
}

.text-link {
    font-weight: 700;
}

.surface-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.eyebrow::before {
    content: '';
    width: 1.5rem;
    height: 2px;
    border-radius: 999px;
    background: var(--gradient-accent);
}

.eyebrow--light {
    color: rgba(255, 255, 255, 0.78);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2.25rem;
}

.section-heading p {
    margin-top: 1rem;
    font-size: 1.05rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.2rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(15, 26, 43, 0.08);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient-dark);
    color: var(--color-white);
}

.btn-primary:hover {
    color: var(--color-white);
    box-shadow: 0 18px 40px rgba(15, 26, 43, 0.18);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-light {
    background: var(--color-white);
    color: var(--color-text);
}

.btn-light:hover {
    color: var(--color-text);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.btn-ghost-light:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.14);
}

.btn-small {
    min-height: 2.8rem;
    padding-inline: 1rem;
    font-size: 0.95rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(21, 34, 53, 0.08);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(15, 26, 43, 0.08);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-height);
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.logo img,
.footer-logo img {
    width: 56px;
    height: auto;
    flex: none;
}

.logo-copy,
.footer-logo span {
    display: grid;
    min-width: 0;
}

.logo-copy strong,
.footer-logo strong {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.logo-copy small,
.footer-logo small {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 3rem;
    height: 3rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.92);
    gap: 0.28rem;
}

.menu-button span,
.nav-toggle span {
    width: 1.2rem;
    height: 2px;
    background: var(--color-text);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-drawer {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
}

.nav-item {
    position: relative;
    list-style: none;
}

.nav-menu > li::marker,
.dropdown-menu > li::marker {
    /* NOTE: Keeps generated list markers out of the header if browser defaults leak into repeated static nav markup. */
    content: '';
}

.nav-item.is-active > .nav-link,
.nav-item.is-active > .nav-parent > .nav-link {
    background: rgba(21, 34, 53, 0.06);
    color: var(--color-text);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.9rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    color: var(--color-text);
}

.nav-link:hover {
    background: rgba(21, 34, 53, 0.05);
    color: var(--color-text);
}

.nav-parent {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid rgba(21, 34, 53, 0.08);
    background: rgba(21, 34, 53, 0.04);
}

.nav-toggle span {
    width: 0.8rem;
    height: 0.8rem;
    background: transparent;
    border-bottom: 2px solid var(--color-text);
    border-right: 2px solid var(--color-text);
    transform: rotate(45deg) translate(-2px, -2px);
}

.nav-item-has-children.is-open > .nav-parent .nav-toggle span {
    transform: rotate(225deg) translate(-1px, -1px);
}

.nav-item-has-children::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    /* NOTE: Bridges the intentional visual gap so desktop hover does not collapse before the dropdown is reached. */
    height: 0.85rem;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.85rem);
    left: 0;
    min-width: 18rem;
    padding: 0.65rem;
    list-style: none;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.dropdown-menu li + li {
    margin-top: 0.25rem;
}

.dropdown-menu a {
    display: block;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    color: var(--color-text);
    font-weight: 600;
}

.dropdown-menu a:hover,
.dropdown-menu a[aria-current="page"] {
    background: var(--color-surface-soft);
    color: var(--color-text);
}

@media (hover: hover) and (pointer: fine) {
    .nav-item-has-children:hover > .dropdown-menu,
    .nav-item-has-children:focus-within > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.nav-item-has-children.is-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-left: 0.6rem;
}

.nav-meta-link {
    font-weight: 700;
    color: var(--color-text-muted);
}

/* Heroes */
.hero-home,
.page-hero {
    position: relative;
    overflow: hidden;
}

.hero-home {
    min-height: min(960px, 100svh);
    padding: clamp(7rem, 12vw, 9rem) 0 5rem;
    background:
        linear-gradient(92deg, rgba(9, 17, 29, 0.92) 0%, rgba(9, 17, 29, 0.82) 42%, rgba(9, 17, 29, 0.3) 100%),
        var(--hero-image) center / cover no-repeat;
    color: var(--color-white);
}

.hero-home::after {
    content: '';
    position: absolute;
    inset: auto -10% -24% auto;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(78, 183, 107, 0.26), transparent 68%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 2rem;
    align-items: end;
}

.hero-copy,
.hero-panel {
    min-width: 0;
}

.hero-copy h1 {
    max-width: 12ch;
}

.hero-copy h1 span {
    display: block;
}

.hero-copy p {
    max-width: 41rem;
    margin-top: 1.1rem;
    font-size: clamp(1.05rem, 1.4vw, 1.28rem);
    color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.hero-pills,
.page-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.hero-pill,
.page-tag {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.93rem;
}

.hero-pill {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--color-white);
    backdrop-filter: blur(10px);
}

.hero-panel {
    position: relative;
    z-index: 1;
    padding: 1.6rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
}

.hero-panel h2 {
    font-size: clamp(1.6rem, 2.1vw, 2.1rem);
    margin-bottom: 1.1rem;
}

.hero-panel-list {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.hero-panel-list li {
    padding: 1rem 1rem 1rem 1.2rem;
    border-radius: 20px;
    background: var(--color-surface-soft);
    border: 1px solid rgba(21, 34, 53, 0.05);
}

.hero-panel-list strong {
    display: block;
    margin-bottom: 0.25rem;
}

.hero-panel-list span {
    color: var(--color-text-muted);
    overflow-wrap: break-word;
}

.hero-panel-actions {
    display: grid;
    gap: 0.55rem;
    margin-top: 1.1rem;
    font-weight: 700;
}

.page-hero {
    padding: calc(var(--header-height) + 3rem) 0 4rem;
    color: var(--color-white);
    background:
        linear-gradient(92deg, rgba(9, 17, 29, 0.88) 0%, rgba(9, 17, 29, 0.74) 42%, rgba(9, 17, 29, 0.24) 100%),
        var(--page-hero-image) center / cover no-repeat;
}

.page-hero__copy {
    max-width: 52rem;
}

.page-hero__copy h1 {
    margin-top: 0.2rem;
    max-width: 14ch;
}

.page-hero__copy p {
    margin-top: 1rem;
    max-width: 44rem;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.84);
}

.page-hero__copy--plain {
    max-width: 54rem;
}

.page-hero--plain {
    padding: calc(var(--header-height) + 2rem) 0 2.8rem;
    background:
        radial-gradient(circle at 0% 0%, rgba(238, 108, 47, 0.12), transparent 24%),
        radial-gradient(circle at 100% 8%, rgba(78, 183, 107, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 251, 0.96));
    color: var(--color-text);
}

.page-hero--plain .page-hero__copy p {
    color: var(--color-text-muted);
}

.page-hero--plain .page-tag {
    background: rgba(21, 34, 53, 0.05);
    color: var(--color-text);
    border: 1px solid rgba(21, 34, 53, 0.08);
}

.breadcrumbs {
    margin-bottom: 1rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.92rem;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.74);
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    opacity: 0.6;
}

.breadcrumbs a {
    color: inherit;
}

.page-hero--plain .breadcrumbs li {
    color: var(--color-text-muted);
}

.page-hero:not(.page-hero--plain) .page-tag {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

/* Sections */
.page-section {
    padding: clamp(4.25rem, 8vw, 6.25rem) 0;
}

body:not(.page-home) .page-section {
    /* 3rem/4.5rem keeps content pages dense enough to scan while preserving clear section separation. */
    padding: clamp(3rem, 5vw, 4.5rem) 0;
}

body:not(.page-home) .section-heading {
    margin-bottom: 1.6rem;
}

body:not(.page-home) .statik-overview-section {
    /* NOTE: 1.5-2rem removes the doubled section gap before "Leistungen" while keeping a visible pause after the overview card. */
    padding-bottom: clamp(1.5rem, 2vw, 2rem);
}

body:not(.page-home) .statik-services-section {
    /* NOTE: 2.25-3rem keeps the following soft section compact without visually merging it into the overview block. */
    padding-top: clamp(2.25rem, 3vw, 3rem);
}

body:not(.page-home) h2 {
    font-size: clamp(1.8rem, 2.35vw, 2.55rem);
}

.section-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(237, 242, 247, 0.6));
}

.overlap-section {
    margin-top: -3rem;
    position: relative;
    z-index: 2;
    padding-top: 0;
}

.stats-grid,
.pillar-grid,
.step-grid,
.target-grid-modern,
.feature-grid,
.contact-card-grid,
.link-card-grid {
    display: grid;
    gap: 1.25rem;
}

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

.stat-card {
    padding: 1.35rem 1.4rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow-md);
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.45rem;
}

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

.service-pillar {
    overflow: hidden;
}

.service-pillar__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.service-pillar__body {
    padding: 1.6rem;
}

.card-kicker,
.link-card__kicker,
.sidebar-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.service-pillar__body h3 {
    margin-bottom: 0.8rem;
}

.service-link-list {
    list-style: none;
    display: grid;
    gap: 0.7rem;
    margin: 1.35rem 0 1.5rem;
}

.service-link-list li a {
    display: block;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: var(--color-surface-soft);
    border: 1px solid transparent;
}

.service-link-list li a:hover {
    transform: translateY(-2px);
    border-color: rgba(238, 108, 47, 0.18);
    color: inherit;
}

.service-link-list strong {
    display: block;
    margin-bottom: 0.2rem;
}

.service-link-list span {
    color: var(--color-text-muted);
}

.step-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-grid.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card,
.target-card-modern,
.feature-card,
.location-card,
.link-card {
    padding: 1.4rem;
    border-radius: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

body:not(.page-home) .step-card,
body:not(.page-home) .feature-card,
body:not(.page-home) .link-card {
    padding: 1.25rem;
}

.step-card h3,
.feature-card h3 {
    /* NOTE: Long German card titles need to wrap before crossing compact card borders. */
    overflow-wrap: anywhere;
    hyphens: auto;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--gradient-accent);
    color: var(--color-white);
    font-weight: 800;
}

body:not(.page-home) .step-number {
    /* Slightly smaller markers keep process cards from becoming poster-sized on desktop. */
    width: 2.65rem;
    height: 2.65rem;
    margin-bottom: 0.8rem;
}

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

.target-card-modern {
    position: relative;
    overflow: hidden;
}

.target-card-modern::before,
.feature-card::before,
.location-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--gradient-accent);
}

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

.feature-grid.four-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.link-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.link-card-grid--balanced {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.link-card p {
    margin-bottom: 1.2rem;
}

.link-card__arrow {
    margin-top: auto;
    font-weight: 700;
    color: var(--color-accent);
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.cta-band {
    position: relative;
    overflow: hidden;
    padding: clamp(1.8rem, 3vw, 2.5rem);
    border-radius: var(--radius-lg);
    background: var(--gradient-dark);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.cta-band::after {
    content: '';
    position: absolute;
    inset: auto -5% -30% auto;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(78, 183, 107, 0.35), transparent 68%);
}

.split-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem 2rem;
    align-items: center;
}

.cta-band h2,
.cta-band p,
.page-cta h3,
.page-cta p {
    color: var(--color-white);
}

.cta-side {
    display: grid;
    justify-items: start;
    gap: 1rem;
}

.cta-side--centered {
    justify-items: center;
    text-align: center;
}

.cta-contact-list {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
}

/* Intro / sidebars */
.intro-grid,
.contact-layout,
.page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 340px;
    gap: 1.5rem 2rem;
    align-items: start;
}

.intro-card,
.contact-main-card {
    padding: 1.6rem;
}

.lead-inline {
    font-size: clamp(1.12rem, 1.5vw, 1.35rem);
    color: var(--color-text);
    line-height: 1.7;
}

.sidebar-stack,
.content-side {
    display: grid;
    gap: 1rem;
    align-content: start;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.sidebar-card,
.info-box,
.page-cta {
    position: relative;
    overflow: hidden;
    padding: 1.2rem 1.25rem;
    border-radius: 22px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.sidebar-card::before,
.info-box::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--gradient-accent);
}

.sidebar-card h3,
.info-box h4,
.page-cta h3 {
    margin-bottom: 0.65rem;
}

.sidebar-card p:last-child,
.info-box p:last-child,
.page-cta p:last-child {
    margin-bottom: 0;
}

.toc-card ul,
.subnav-card ul,
.mini-list {
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.toc-card a,
.subnav-card a {
    display: block;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: var(--color-surface-soft);
    border: 1px solid transparent;
    font-weight: 600;
    color: var(--color-text);
}

.toc-card a:hover,
.subnav-card a:hover,
.subnav-card a[aria-current="page"] {
    border-color: rgba(78, 183, 107, 0.18);
    background: rgba(78, 183, 107, 0.1);
    color: var(--color-text);
}

.mini-list li {
    position: relative;
    padding-left: 1.15rem;
}

.mini-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--gradient-accent);
}

.contact-mini {
    display: grid;
    gap: 0.55rem;
}

.contact-mini a {
    font-weight: 700;
}

.page-cta {
    background: var(--gradient-dark);
    border-color: transparent;
}

.page-cta::before {
    display: none;
}

.page-cta .btn {
    margin-top: 0.4rem;
    background: var(--color-white);
    color: var(--color-text);
}

/* Main content */
.content-main {
    min-width: 0;
}

.prose > * {
    margin: 0;
}

.prose > * + * {
    margin-top: 1rem;
}

.prose > .lead {
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-size: clamp(1.14rem, 1.45vw, 1.34rem);
    color: var(--color-text);
    line-height: 1.7;
}

.prose > h2 {
    margin-top: 2.1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(21, 34, 53, 0.1);
}

.prose > h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.prose p,
.prose li {
    max-width: 74ch;
}

.prose ul {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.prose ul li {
    position: relative;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 22px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 1.1rem;
    top: 1.18rem;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: var(--gradient-accent);
    box-shadow: 0 0 0 7px rgba(238, 108, 47, 0.12);
}

.prose ul li strong {
    display: inline;
}

.prose a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.legal-prose h3 {
    margin-top: 1.5rem;
}

/* Contact */
.contact-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
}

.contact-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.4rem;
}

.contact-note {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(21, 34, 53, 0.1);
}

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

.location-card {
    min-height: 100%;
}

.location-card.accent-card {
    background: linear-gradient(180deg, rgba(238, 108, 47, 0.08), rgba(255, 255, 255, 1));
}

.location-card p a {
    font-weight: 700;
}

/* Footer */
.site-footer {
    margin-top: 4rem;
    background: #101b2d;
    color: rgba(255, 255, 255, 0.82);
}

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

.site-footer a:hover {
    color: rgba(255, 255, 255, 0.92);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
    gap: 2rem;
    padding: 3rem 0 2rem;
}

.footer-brand p {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo strong,
.footer-heading {
    color: var(--color-white);
}

.footer-logo small {
    color: rgba(255, 255, 255, 0.64);
}

.footer-heading {
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    gap: 0.55rem;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 0 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.powered-by {
    opacity: 0.76;
}

/* Utilities */
.page-home .site-header {
    background: rgba(255, 255, 255, 0.74);
}

body:not(.page-home) .site-header {
    /* NOTE: Content pages should not stick while scrolling, but need a positioned header so dropdowns stack above the hero. */
    position: relative;
    z-index: 1000;
}

/* Responsive */
@media (max-width: 1100px) {
    .feature-grid.four-col,
    .step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .link-card-grid--balanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pillar-grid,
    .hero-grid,
    .intro-grid,
    .page-shell,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-stack,
    .content-side {
        position: static;
    }

    .contact-card-grid,
    .stats-grid,
    .target-grid-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .menu-button {
        display: inline-flex;
    }

    .nav-drawer {
        position: absolute;
        top: 100%;
        right: 0;
        bottom: auto;
        display: none;
        width: min(92vw, 420px);
        /* NOTE: Absolute positioning avoids mobile fixed-position clipping caused by the header backdrop filter. */
        height: calc(100vh - var(--header-height));
        padding: 1.1rem;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        background: rgba(255, 255, 255, 0.98);
        border-left: 1px solid var(--color-border);
        box-shadow: -18px 0 40px rgba(15, 26, 43, 0.12);
        transform: translateX(102%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .nav-drawer.is-open {
        display: flex;
        transform: translateX(0);
    }

    .nav-menu {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .nav-parent {
        justify-content: space-between;
    }

    .nav-link {
        width: 100%;
        padding-inline: 1rem;
        justify-content: flex-start;
        border-radius: 18px;
    }

    .nav-toggle {
        display: inline-flex;
        border-color: var(--color-border);
        background: var(--color-surface-soft);
    }

    .dropdown-menu {
        position: static;
        min-width: 100%;
        margin-top: 0.35rem;
        padding: 0.4rem 0.2rem 0.2rem;
        border: none;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .nav-item-has-children.is-open > .dropdown-menu {
        display: block;
    }

    .nav-actions {
        margin: 0.85rem 0 0;
        padding-top: 0.85rem;
        border-top: 1px solid rgba(21, 34, 53, 0.08);
        display: grid;
        gap: 0.65rem;
    }

    .split-cta,
    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .page-hero {
        padding-bottom: 3.2rem;
    }

    .page-hero__copy h1 {
        max-width: 100%;
    }

    .hero-home {
        min-height: auto;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 1.2rem, var(--max-width));
    }

    .stats-grid,
    .target-grid-modern,
    .feature-grid,
    .feature-grid.four-col,
    .link-card-grid--balanced,
    .step-grid,
    .step-grid.three-col,
    .contact-card-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .service-pillar__body,
    .intro-card,
    .contact-main-card,
    .step-card,
    .target-card-modern,
    .feature-card,
    .location-card,
    .link-card,
    .sidebar-card,
    .info-box,
    .page-cta,
    .stat-card,
    .prose > .lead,
    .cta-band {
        padding: 1.15rem;
    }

    .hero-copy h1 {
        /* 2.25rem keeps long German service terms readable on narrow phones without horizontal scroll. */
        font-size: 2.25rem;
        line-height: 1.12;
        max-width: 100%;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero-actions,
    .contact-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn-small {
        width: 100%;
    }

    .logo-copy small,
    .footer-logo small {
        display: none;
    }

    .footer-bottom-links {
        gap: 0.7rem 1rem;
    }
}

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