/* Hausmeisterservice Thorben Tesche – Design system */

:root {
    --gold: #b58135;
    --gold-light: #cf9645;
    --anthrazit: #313131;

    --bg: #f4f1eb;
    --bg-elevated: #fffcf7;
    --bg-muted: #ebe6dc;
    --text: #313131;
    --text-muted: #5c5852;
    --border: rgba(49, 49, 49, 0.12);
    --shadow: 0 12px 32px rgba(49, 49, 49, 0.06);
    --focus: #b58135;

    --font: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
    --space: 1rem;
    --radius: 14px;
    --wrap: 72rem;
    --header: 4.25rem;

    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #1c1c1c;
    --bg-elevated: #262626;
    --bg-muted: #232323;
    --text: #f3efe8;
    --text-muted: #b8b3aa;
    --border: rgba(243, 239, 232, 0.12);
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

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

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    background: var(--anthrazit);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
}

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

.wrap {
    width: min(calc(100% - 2rem), var(--wrap));
    margin-inline: auto;
}

.section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section--tight {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section__head {
    max-width: 40rem;
    margin-bottom: 2.25rem;
}

.kicker {
    display: inline-block;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

h1,
h2,
h3 {
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

h1 {
    font-size: clamp(2.2rem, 6vw, 4.4rem);
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
    font-size: 1.2rem;
}

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

.lede {
    font-size: 1.15rem;
    max-width: 40rem;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: saturate(1.2) blur(16px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    width: min(calc(100% - 1.5rem), var(--wrap));
    margin-inline: auto;
    min-height: var(--header);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.brand .logo {
    width: auto;
}

.brand__full .logo {
    height: 48px;
    width: auto;
}

.brand__mark .logo {
    height: 38px;
    width: auto;
}

.brand__mark {
    display: none;
}

.logo--dark {
    display: none;
}

[data-theme="dark"] .logo--light {
    display: none;
}

[data-theme="dark"] .logo--dark {
    display: block;
}

.nav {
    margin-left: auto;
}

.nav__list {
    display: flex;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav a {
    display: block;
    padding: 0.5rem 0.7rem;
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-radius: 8px;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--text);
    background: var(--bg-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.theme-switch {
    display: flex;
    margin: 0;
    padding: 0.18rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-elevated);
}

.theme-switch legend {
    padding: 0;
}

.theme-switch label {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    cursor: pointer;
    color: var(--text-muted);
}

.theme-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-switch label:has(input:checked),
.theme-switch label:has(input:focus-visible) {
    color: var(--text);
    background: var(--bg-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.85rem;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 560;
    text-decoration: none;
    cursor: pointer;
}

.btn--primary {
    background: var(--anthrazit);
    color: #fff;
}

[data-theme="dark"] .btn--primary {
    background: var(--gold);
    color: #1a1a1a;
}

.btn--primary:hover {
    background: var(--gold);
    color: #1a1a1a;
}

.btn--ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn--header {
    background: var(--anthrazit);
    color: #fff;
    min-height: 2.4rem;
    padding: 0.45rem 0.95rem;
    font-size: 0.92rem;
}

[data-theme="dark"] .btn--header {
    background: var(--gold);
    color: #1a1a1a;
}

.nav-toggle {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--text);
    cursor: pointer;
}

.nav-toggle__close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
    display: block;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.icon--sm {
    width: 1.05rem;
    height: 1.05rem;
}

.icon--gold {
    color: var(--gold);
}

/* Hero */

.hero {
    display: grid;
    gap: 2rem;
    padding: clamp(2.2rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.hero__copy h1 {
    margin-bottom: 0.85rem;
}

.hero__copy .lede {
    margin-bottom: 1.6rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__media {
    position: relative;
}

.hero__media img {
    width: 100%;
    height: 100%;
    max-height: 36rem;
    object-fit: cover;
    object-position: 50% 18%;
    border-radius: calc(var(--radius) + 4px);
    background: var(--bg-muted);
}

.hero__caption {
    margin-top: 0.7rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Cards */

.feature-grid {
    display: grid;
    gap: 1.1rem;
}

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card a.card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.card a.card__link:hover {
    color: inherit;
}

.card a.card__link:hover .card__title {
    color: var(--gold);
}

.card__media {
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--bg-muted);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__body {
    padding: 1.25rem 1.3rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.card__title {
    margin: 0;
}

.card__body p {
    margin: 0;
}

.card__more {
    margin-top: auto;
    padding-top: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--gold);
    font-weight: 560;
    font-size: 0.95rem;
}

.compact-grid {
    display: grid;
    gap: 0.9rem;
}

.tile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    padding: 1.1rem 1.15rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    min-height: 7.5rem;
}

.tile:hover {
    border-color: color-mix(in srgb, var(--gold) 55%, var(--border));
    color: inherit;
}

.tile__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--gold);
    background: color-mix(in srgb, var(--gold) 12%, var(--bg));
}

.tile h3 {
    margin-bottom: 0.25rem;
}

.tile p {
    margin: 0;
    font-size: 0.95rem;
}

/* Personal / audience / CTA */

.personal {
    display: grid;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: calc(var(--radius) + 4px);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    text-decoration: none;
    font-size: 0.95rem;
}

.chip:hover {
    border-color: var(--gold);
}

.cta-band {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    padding: 1.8rem 2rem;
    border-radius: calc(var(--radius) + 4px);
    background: var(--anthrazit);
    color: #f7f3ec;
}

[data-theme="dark"] .cta-band {
    background: #141414;
    border: 1px solid var(--border);
}

.cta-band p {
    color: rgba(247, 243, 236, 0.78);
    margin: 0;
}

.cta-band h2 {
    margin-bottom: 0.35rem;
}

.cta-band .btn--primary {
    background: var(--gold);
    color: #1a1a1a;
}

/* Inner pages */

.page-hero {
    padding: clamp(2.4rem, 6vw, 4.5rem) 0 1.5rem;
}

.page-hero h1 {
    max-width: 18ch;
}

.prose {
    max-width: 44rem;
}

.prose h2,
.prose h3 {
    margin-top: 2rem;
}

.prose ul,
.prose ol {
    color: var(--text-muted);
    padding-left: 1.2rem;
}

.prose li + li {
    margin-top: 0.35rem;
}

.split {
    display: grid;
    gap: 1.5rem;
}

.panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
}

.steps {
    display: grid;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    padding-left: 3rem;
    position: relative;
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--gold);
    font-weight: 650;
    letter-spacing: 0.04em;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 0.35rem;
    color: var(--border);
}

.breadcrumbs a {
    text-decoration: none;
}

/* FAQ */

.faq {
    display: grid;
    gap: 0.7rem;
}

.faq details {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.2rem 1rem;
}

.faq summary {
    cursor: pointer;
    font-weight: 560;
    padding: 0.95rem 0;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq details p {
    margin: 0 0 1rem;
}

/* Forms */

.form {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    gap: 1rem;
}

.field label,
.field .label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 560;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 2.9rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
}

.field textarea {
    min-height: 9rem;
    resize: vertical;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.form-status--ok {
    background: color-mix(in srgb, #2f7d4a 12%, var(--bg-elevated));
}

.form-status--err {
    background: color-mix(in srgb, #b42318 10%, var(--bg-elevated));
}

.contact-grid {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.contact-hero {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.contact-hero .lede {
    margin-bottom: 0;
}

.contact-hero__media {
    margin: 0;
}

.contact-hero__media picture {
    display: block;
}

.contact-hero__media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    background: var(--bg-muted);
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.contact-list li:last-child {
    margin-bottom: 0;
}

.field label:has(input[type="checkbox"]) {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-weight: 400;
}

.field input[type="checkbox"] {
    width: 1.15rem;
    min-height: 1.15rem;
    margin-top: 0.25rem;
    flex: 0 0 auto;
}

.split img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
}

.contact-list a {
    text-decoration: none;
    font-weight: 560;
    overflow-wrap: anywhere;
}

.footer-contact a,
.legal a {
    overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
    margin-top: 2rem;
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-muted);
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

.site-footer h2 {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.9rem;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li + li {
    margin-top: 0.4rem;
}

.site-footer a {
    text-decoration: none;
}

.site-footer address {
    font-style: normal;
    color: var(--text-muted);
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.4rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
    color: var(--text-muted);
}

.footer-bar a {
    margin-left: 1rem;
}

.brand--footer .brand__full .logo {
    height: 42px;
}

/* 404 */

.error-page {
    min-height: 60vh;
    display: grid;
    align-content: center;
    padding: 4rem 0;
}

.error-page .kicker {
    font-size: 1rem;
}

/* Legal */

.legal {
    max-width: 46rem;
}

.legal h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
}

/* Responsive */

@media (max-width: 860px) {
    .site-header .brand__full {
        display: none;
    }

    .site-header .brand__mark {
        display: block;
    }

    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .nav {
        position: absolute;
        left: 0;
        right: 0;
        top: var(--header);
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        display: none;
        margin: 0;
    }

    .nav.is-open {
        display: block;
    }

    .nav__list {
        flex-direction: column;
        padding: 0.6rem 1rem 1rem;
    }

    .nav a {
        padding: 0.85rem 0.4rem;
        font-size: 1.05rem;
    }

    .btn--header {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .site-header .brand__mark .logo {
        height: 46px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__media img {
        width: 100%;
        height: auto;
        min-height: 22rem;
        max-height: 28rem;
        object-fit: cover;
        object-position: 50% 18%;
    }

    .contact-hero__media img {
        max-height: 20rem;
        object-fit: cover;
        object-position: 50% 62%;
    }
}

@media (min-width: 700px) {
    .section {
        padding: clamp(2.4rem, 4vw, 3.75rem) 0;
    }

    .section--tight {
        padding: clamp(1.6rem, 3vw, 2.6rem) 0;
    }

    .hero {
        padding: clamp(1.4rem, 3vw, 2.5rem) 0 clamp(2rem, 3.5vw, 3.1rem);
    }

    .page-hero {
        padding: clamp(1.6rem, 3vw, 2.8rem) 0 1.1rem;
    }

    .section__head {
        margin-bottom: 1.55rem;
    }

    .card__media {
        aspect-ratio: 16 / 10;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .compact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid,
    .split,
    .personal {
        grid-template-columns: 1.15fr 0.85fr;
    }

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

@media (min-width: 960px) {
    .hero {
        grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
        align-items: center;
        gap: 3rem;
    }

    .hero__media img {
        min-height: 29.5rem;
        max-height: 33rem;
    }

    .contact-hero,
    .contact-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(14rem, 0.68fr);
        gap: 2.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 860px) {
    .footer-nav {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .brand--footer .brand__full .logo {
        height: 52px;
    }

    .footer-bar {
        margin-top: 1.5rem;
    }
}
