:root {
    --text: #1f1f1f;
    --muted: #6f6f6f;
    --line: #dddddd;
    --blue: #1f78b8;
    --bg: #ffffff;
    --bg-soft: #fafafa;
    --max-width: 1200px;
}

/* RESET */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

/* LAYOUT */
.container {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
}

/* HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    min-height: 92px;
}

/* LOGO */
.logo img {
    height: 72px;
    width: auto;
}

/* NAVIGATION */
nav {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    position: relative;
    text-decoration: none;
    font-weight: 500;
    color: var(--text);
    padding-bottom: 5px;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
}

/* MAIN */
main {
    padding: 50px 0;
}

/* TYPO */
h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin: 0 0 20px;
    line-height: 1.1;
}

h2 {
    font-size: 1.5rem;
    margin: 40px 0 16px;
    line-height: 1.2;
}

p {
    color: #2b2b2b;
    margin: 0 0 16px;
}

ul {
    padding-left: 22px;
}

/* HERO / STARTSEITE */
.hero {
    padding: 30px 0 30px;
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 74%, #fafafa 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(320px, 500px) minmax(320px, 520px);
    align-items: center;
    justify-content: space-between;
    gap: 72px;
}

.hero-copy h1 {
    margin: 0 0 22px;
    font-size: clamp(2.5rem, 4.4vw, 4.3rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    max-width: 8.5ch;
}

.hero-copy p {
    margin: 0;
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 36rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.hero-points li {
    border: 1px solid #d8d8d8;
    background: #ffffff;
    padding: 11px 16px;
    border-radius: 999px;
    font-size: 0.96rem;
    color: #3f3f3f;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* INTRO / STARTSEITE */
.intro {
    padding: 26px 0 82px;
}

.intro-box {
    border-top: 1px solid var(--line);
    padding-top: 34px;
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 42px;
}

.intro-text p {
    margin: 0;
    color: #4f4f4f;
    font-size: 1rem;
    max-width: 46rem;
}

.quick-links {
    display: grid;
    gap: 14px;
}

.quick-link {
    display: block;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 17px 18px;
    background: #ffffff;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-link:hover {
    border-color: #c6d8e6;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.quick-link strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.quick-link span {
    color: var(--muted);
    font-size: 0.95rem;
}

/* STANDARD-INHALT */
.content-narrow {
    max-width: 1000px;
}

.image-block {
    margin: 0 0 34px;
}

.image-block img {
    max-width: 380px;
    width: 100%;
    border-radius: 8px;
}

.signature-block img {
    max-width: 340px;
    width: 100%;
}

.lead {
    font-size: 1.08rem;
    color: #2b2b2b;
    max-width: 860px;
}

.note {
    font-size: 1.02rem;
    color: #3a3a3a;
    max-width: 760px;
}

.name-line {
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.qualifications {
    line-height: 1.9;
    font-size: 1.02rem;
    margin: 0;
    padding-left: 28px;
    max-width: 920px;
}

/* LEISTUNGSSEITE */
.service-item {
    margin-bottom: 32px;
}

.service-item h2 {
    font-size: 1.4rem;
    margin: 0 0 8px;
}

.service-item p {
    margin: 0;
}

/* GALERIE / THUMBNAILS */
.leistung {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 35px;
}

.leistung-thumb img {
    width: 120px;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.leistung-thumb img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* LIGHTBOX OHNE JS */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 30px;
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    max-width: 92%;
    max-height: 92%;
    width: auto;
    height: auto;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 32px;
    font-size: 42px;
    line-height: 1;
    color: #ffffff;
    text-decoration: none;
}

/* KONTAKT */
.contact-block {
    line-height: 1.9;
    font-size: 1.05rem;
}

.contact-link {
    color: #2b2b2b;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--line);
    padding: 25px 0;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--muted);
}

footer a {
    color: var(--muted);
    text-decoration: none;
    margin: 0 4px;
}

footer a:hover {
    text-decoration: underline;
}

/* MOBILE */
@media (max-width: 980px) {
    .hero-grid,
    .intro-box {
        grid-template-columns: 1fr;
    }

.hero {
    padding-top: 54px;
    padding-bottom: 48px;
}

    .hero-copy h1 {
        max-width: none;
    }

    .hero-visual {
        order: 2;
    }

    .hero-copy {
        order: 1;
    }

    .hero-visual img {
        max-width: 460px;
    }
}

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        min-height: auto;
        padding: 16px 0;
    }

    .logo img {
        height: 58px;
    }

    nav {
        gap: 18px;
        justify-content: flex-start;
    }

.leistung {
    grid-template-columns: 90px 1fr;
    gap: 14px;
    align-items: start;
}

.leistung-thumb img {
    width: 90px;
    height: auto;
}
}

@media (max-width: 720px) {
    .container {
        width: min(var(--max-width), calc(100% - 28px));
    }

    nav a::after {
        bottom: -4px;
    }

    .hero {
        padding: 40px 0 38px;
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .hero-points li {
        font-size: 0.92rem;
    }

    .lightbox {
        padding: 18px;
    }

    .lightbox-close {
        top: 14px;
        right: 18px;
        font-size: 34px;
    }
}