/* style.css */
@font-face {
    font-family: 'Karla';
    src: url('./Karla/Karla-VariableFont_wght.woff2') format('woff2');
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: 'Karla';
    src: url('./Karla/Karla-Italic-VariableFont_wght.woff2') format('woff2');
    font-style: italic;
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --bg: #fcf7f0;
    --surface: #fcf7f0;
    --text: #232323;
    --muted: #232323;
    --line: #d9dde3;
    --primary: #1f3a5f;
    --primary-hover: #17304f;
    --header-fade-duration: 0.35s;
    --header-fade-ease: ease;
    --nav-panel-top: calc(100% + 0.45rem);
}

* {
    box-sizing: border-box;
}

html {
    background: #000000;
}

body {
    margin: 0;
    font-family: 'Karla', sans-serif;
    font-size: 19px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    padding-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

.site-header {
    --header-bg: var(--surface);
    --header-fg: var(--text);
    --header-panel-bg: var(--surface);
    --header-panel-border: var(--line);
    --header-toggle-bg: #000000;
    --header-toggle-fg: #ffffff;
    background: var(--surface);
    border-bottom: none;
    color: var(--header-fg);
    position: sticky;
    top: 0;
    z-index: 1100;
    background-color: var(--header-bg);
    transition: background-color var(--header-fade-duration) var(--header-fade-ease), color var(--header-fade-duration) var(--header-fade-ease), transform 0.3s ease;
    will-change: transform;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.55rem 0;
}

.brand a {
    display: inline-block;
}

.brand img {
    display: block;
    max-height: 56px;
    width: auto;
    transition: opacity 0.25s ease;
}

.main-nav > ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    transition: color var(--header-fade-duration) var(--header-fade-ease), background-color var(--header-fade-duration) var(--header-fade-ease), border-color var(--header-fade-duration) var(--header-fade-ease);
}

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

.hamburger {
    position: relative;
    display: block;
    width: 40px;
    height: 4px;
    background: currentColor;
    border-radius: 999px;
    transition: background-color var(--header-fade-duration) var(--header-fade-ease);
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 40px;
    height: 4px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.2s ease, top 0.2s ease, background-color var(--header-fade-duration) var(--header-fade-ease);
}

.hamburger::before {
    top: -12px;
}

.hamburger::after {
    top: 12px;
}

.main-nav.is-open .hamburger {
    background: transparent;
}

.main-nav.is-open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.main-nav.is-open .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.main-nav a {
    color: var(--header-fg);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--header-fade-duration) var(--header-fade-ease);
}

.main-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 2px;
}

.main-nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 2px;
}

.site-header.nav-compact .container {
    flex-wrap: nowrap;
    align-items: center;
}

.site-header.nav-compact .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0.75rem;
    border-radius: 6px;
}

.site-header.nav-compact .main-nav {
    width: auto;
    margin-left: auto;
    position: relative;
}

.site-header.nav-compact .main-nav > ul {
    flex-direction: column;
    gap: 0;
    width: min(92vw, 360px);
    margin-top: 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--header-panel-border);
    border-radius: 10px;
    background: var(--header-panel-bg);
    position: absolute;
    right: 0;
    top: var(--nav-panel-top);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    transition: background-color var(--header-fade-duration) var(--header-fade-ease), border-color var(--header-fade-duration) var(--header-fade-ease);
}

.js .site-header.nav-compact .main-nav > ul {
    display: none;
}

.js .site-header.nav-compact .main-nav.is-open > ul {
    display: flex;
}

.site-header.nav-compact .main-nav li {
    width: 100%;
}

.site-header.is-scrolled {
    --header-bg: #000000;
    --header-fg: #ffffff;
    --header-panel-bg: #000000;
    --header-panel-border: #333333;
    --header-toggle-bg: #ffffff;
    --header-toggle-fg: #000000;
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.hero {
    background: var(--surface);
    border-bottom: none;
    padding: 4.5rem 0 3rem;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.hero-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 2rem;
    align-items: start;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

.hero h1 {
    margin: 0 0 1.2rem;
    font-size: clamp(36px, 8vw, 52px);
    line-height: 1.2;
    max-width: none;
    text-align: left;
}

.hero p {
    max-width: none;
    color: var(--muted);
    margin: 0;
}

.hero-content p + p {
    margin-top: 1rem;
}

.hero-content .button {
    margin-top: 1.6rem;
}

.hero-portrait {
    margin: 0;
    justify-self: end;
}

.hero-portrait img {
    display: block;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1067 / 1600;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    border: none;
    box-shadow: 12px 12px 24px rgba(0, 0, 0, 0.18);
}

.button {
    display: inline-block;
    justify-self: start;
    background: #ffc1c1;
    color: var(--text);
    text-decoration: none;
    padding: 1rem 1.35rem;
    font-size: 1.15rem;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid currentColor;
    transition: background-color 0.25s ease;
}

.button:hover,
.button:focus-visible {
    background: var(--bg);
}

@media (max-width: 900px) {
    .hero-intro {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 0;
        align-items: center;
        text-align: center;
    }

    .hero h1 {
        text-align: center;
    }

    .hero p {
        max-width: 38ch;
    }

    .button {
        justify-self: center;
    }

    .hero-portrait {
        justify-self: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-text h1,
    .about-text h2 {
        font-size: 44px;
        text-align: center;
    }

    .about-image {
        order: 2;
        justify-self: center;
        width: 100%;
        max-width: 420px;
    }

    .about-image img {
        width: 100%;
    }
}

.section {
    padding: 2.5rem 0;
}

.section-no-padding {
    padding: 0;
}

.about-section {
    padding: 3rem 0;
}

.service-overview h1 {
    margin-top: 0;
    margin-bottom: 0.45rem;
}

.service-overview > .container > p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.service-overview .cards {
    margin-top: 1.2rem;
}

.service-overview {
    padding: 2.5rem 0;
}

.service-overview .card {
    justify-content: center;
    align-items: center;
}

.service-overview .card h3 {
    margin: 0;
}

.service-content {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.service-section {
    max-width: 760px;
}

.service-section h2 {
    margin: 0 0 0.55rem;
    font-size: 26px;
}

.service-section p {
    margin: 0;
}

.service-section p + p {
    margin-top: 0.75rem;
}

.service-list,
.process-list {
    margin: 0.85rem 0 0;
    padding-left: 1.35rem;
}

.service-list li,
.process-list li {
    margin-top: 0.35rem;
}

.service-cta {
    margin-top: 2rem;
    margin-bottom: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.25fr;
    align-items: center;
    gap: 2rem;
}

.about-text h1 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 56px;
    line-height: 1.2;
}

.about-text p {
    margin: 0;
    color: var(--muted);
}

.about-image {
    margin: 0;
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: none;
    box-shadow: 12px 12px 24px rgba(0, 0, 0, 0.18);
}

.section h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.section-alt {
    background: var(--bg);
    border-top: none;
    border-bottom: none;
}

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--surface);
    border: 2px solid var(--text);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(31, 58, 95, 0.08);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 22px;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.card-link {
    text-decoration: none;
    color: inherit;
    width: min(100%, 900px);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

#leistungen h2 {
    text-align: center;
    font-size: 26px;
}

.card-link h3 {
    color: var(--text);
}

.card-link:hover,
.card-link:focus-visible {
    border-color: var(--text);
    background: #ffc1c1;
    box-shadow: 0 10px 22px rgba(31, 58, 95, 0.2);
    transform: translateY(-2px);
}

.card-link:active {
    transform: translateY(0);
}

.detail-header {
    background: var(--surface);
    border-bottom: none;
    padding: 2rem 0;
}

.detail-header h2 {
    margin: 0 0 0.6rem;
    font-size: 1.9rem;
}

.detail-header p {
    margin: 0;
    max-width: 700px;
    color: var(--muted);
}

.detail-content {
    padding: 2rem 0 2.5rem;
}

.detail-content h3 {
    margin-bottom: 0.5rem;
}

.detail-content p {
    margin-top: 0;
    color: var(--muted);
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.site-footer {
    background: #000000;
    border-top: none;
    color: #ffffff;
    padding: 1.5rem 0;
    font-size: 0.95rem;
}

.site-footer .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.site-footer p {
    margin: 0.2rem 0;
    color: #ffffff;
}

.site-footer p:first-child {
    justify-self: start;
    text-align: left;
}

.site-footer p:nth-child(2) {
    justify-self: center;
    text-align: center;
}

.site-footer p:last-child {
    justify-self: end;
    text-align: right;
}

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

.site-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .site-footer .container {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .site-footer p:first-child,
    .site-footer p:nth-child(2),
    .site-footer p:last-child {
        justify-self: center;
        text-align: center;
    }
}

.js .reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.js .reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.27s;
}

.reveal-delay-2 {
    transition-delay: 0.35s;
}

.reveal-delay-3 {
    transition-delay: 0.40s;
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 700px) {
    .site-header .container {
        flex-wrap: nowrap;
        align-items: center;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        padding: 0.75rem;
        border-radius: 6px;
    }

    .main-nav {
        width: auto;
        margin-left: auto;
        position: relative;
    }

    .main-nav > ul {
        flex-direction: column;
        gap: 0.35rem;
        width: min(92vw, 360px);
        margin-top: 0;
        padding: 0.85rem 0.9rem;
        border: 1px solid var(--header-panel-border);
        border-radius: 10px;
        background: var(--header-panel-bg);
        position: absolute;
        right: 0;
        top: var(--nav-panel-top);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    }

    .js .main-nav > ul {
        display: none;
    }

    .js .main-nav.is-open > ul {
        display: flex;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav > ul > li > a {
        display: block;
        width: 100%;
        padding: 0.65rem 0;
        font-size: 1.28rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

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

    .detail-header h2 {
        font-size: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-text h1,
    .about-text h2 {
        font-size: 44px;
        text-align: center;
    }

    .about-image {
        order: 2;
        justify-self: center;
        width: 100%;
        max-width: 420px;
    }

    .about-image img {
        width: 100%;
    }

}
