/* ==========================================================================
   Gemeinsames Stylesheet für index.html, datenschutz.html, impressum.html
   Bewusst ohne externe Schriften/CDNs: keine Datenübertragung an Dritte.
   ========================================================================== */

:root {
    --ink: #13202c;
    --ink-soft: #3d4b58;
    --muted: #6b7782;
    --line: #dfe3e6;
    --surface: #f6f5f1;
    --white: #ffffff;
    --accent: #1f7a5c;
    --accent-dark: #165c45;
    --accent-tint: #e6f2ed;

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 10px;
    --max: 1120px;
    --gutter: clamp(16px, 4vw, 40px);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

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

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

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

h1,
h2,
h3 {
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 0.6em;
}

h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 750;
}

h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    font-weight: 700;
}

h3 {
    font-size: 1.15rem;
    font-weight: 650;
}

p {
    margin: 0 0 1em;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

/* --- Header ------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav > .btn {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    color: var(--ink);
}

/* --- Buttons ----------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

.btn-ghost {
    border-color: var(--line);
    color: var(--ink);
    background: var(--white);
}

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

/* --- Hero -------------------------------------------------------------- */

.hero {
    padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--ink-soft);
    max-width: 34em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.hero-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
}

.hero-card dl {
    margin: 0;
    display: grid;
    gap: 1.1rem;
}

.hero-card dt {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.hero-card dd {
    margin: 0.15rem 0 0;
    font-weight: 600;
}

/* --- Sections ---------------------------------------------------------- */

.section {
    padding: clamp(64px, 9vw, 112px) 0;
}

.section-alt {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    max-width: 640px;
    margin-bottom: 2.8rem;
}

.section-head p {
    color: var(--ink-soft);
    font-size: 1.08rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
}

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

.card ul {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-tint);
    color: var(--accent);
    display: grid;
    place-items: center;
    margin-bottom: 1.1rem;
}

.icon svg {
    width: 22px;
    height: 22px;
}

/* --- Ablauf ------------------------------------------------------------ */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps li {
    counter-increment: step;
    border-top: 2px solid var(--ink);
    padding-top: 1.2rem;
}

.steps li::before {
    content: "0" counter(step);
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.steps p {
    color: var(--ink-soft);
    margin: 0;
}

/* --- Projekte ---------------------------------------------------------- */

.projects {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.project {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    background: var(--white);
}

.project .tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-tint);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.8rem;
}

.project p {
    font-size: 0.93rem;
    color: var(--ink-soft);
    margin: 0;
}

/* --- Über mich --------------------------------------------------------- */

.about {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
}

.portrait {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 0;
}

.facts li {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

/* --- Kontakt ----------------------------------------------------------- */

.contact {
    background: var(--ink);
    color: var(--white);
    border-radius: 14px;
    padding: clamp(32px, 6vw, 64px);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: center;
}

.contact h2 {
    color: var(--white);
}

.contact p {
    color: #c5ced6;
    margin: 0;
}

.contact-actions {
    display: grid;
    gap: 0.8rem;
}

.contact .btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: #4a5a68;
}

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

.contact small {
    color: #9aa7b2;
    font-size: 0.82rem;
}

.contact small a {
    color: #c5ced6;
}

/* --- Footer ------------------------------------------------------------ */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: var(--ink-soft);
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
    color: var(--ink);
    text-decoration: underline;
}

/* --- Rechtstexte ------------------------------------------------------- */

.legal {
    padding: clamp(48px, 7vw, 88px) 0;
}

.legal .container {
    max-width: 780px;
}

.legal h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.legal h2 {
    font-size: 1.35rem;
    margin-top: 2.4rem;
}

.legal h3 {
    font-size: 1.05rem;
    margin-top: 1.6rem;
}

.legal p,
.legal li {
    color: var(--ink-soft);
}

.legal address {
    font-style: normal;
    color: var(--ink);
    margin-bottom: 1em;
}

.legal .stand {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Platzhalter sichtbar markieren, damit vor dem Livegang nichts übersehen wird */
.ph {
    background: #fff3c4;
    color: var(--ink);
    border-radius: 3px;
    padding: 0 0.2em;
    white-space: nowrap;
}

.legal .ph {
    white-space: normal;
}

/* --- Responsive -------------------------------------------------------- */

@media (max-width: 960px) {
    .projects {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .hero-grid,
    .about,
    .contact {
        grid-template-columns: 1fr;
    }

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

    .portrait {
        max-width: 320px;
    }

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

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem var(--gutter) 1rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 0.7rem 0;
    }
}

@media (max-width: 600px) {
    .cards,
    .projects {
        grid-template-columns: 1fr;
    }
}

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