/* === Reset & Grundlayout === */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --kanzlei-akzent: #0F5B66; /* Aquamarin / dunkelblau */
    --text-dunkel: #222222;
    --grau-hell: #e0e0e0;
    --panel-bg: #ffffff;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--text-dunkel);
    background-color: #f5f5f7;
}

/* === Links === */

a {
    color: var(--kanzlei-akzent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === Header & Navigation === */

header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--grau-hell);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */

.logo {
    font-family: "Times New Roman", Times, serif;
    font-weight: bold;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--kanzlei-akzent);
}

/* Navigation Desktop */

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

nav a {
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    color: var(--text-dunkel);
}

nav a.active,
nav a:hover {
    border-bottom-color: var(--kanzlei-akzent);
    color: var(--kanzlei-akzent);
}

/* Hamburger */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--kanzlei-akzent);
}

/* === Layout === */

main {
    max-width: 1000px;
    margin: 1.5rem auto 3rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 2.5rem;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--kanzlei-akzent);
}

p {
    margin-bottom: 0.75rem;
}

/* === Hero === */

.hero {
    background: var(--panel-bg);
    padding: 2rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555555;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.highlight-box {
    background-color: #e3f1f4;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    border: 1px solid #c3dde3;
}

/* === Cards === */

.card {
    background-color: var(--panel-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem; /* <<< wichtig: sonst doppelter Abstand */
}

/* Einheitliche Abstände in Cards */

.card h2,
.card h3 {
    margin-bottom: 1rem;
}

.card p:last-child,
.card ul:last-child {
    margin-bottom: 0;
}

.card p,
.card li {
    line-height: 1.6;
}

/* === Listen === */

ul {
    padding-left: 1.1rem;
}

.card ul {
    padding-left: 1.8rem;
    margin-top: 0.25rem;
}

.card li {
    margin-bottom: 0.35rem;
}

/* === Kontaktformular === */

.contact-form {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.7rem;
}

.contact-form label {
    font-size: 0.9rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #cccccc;
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--kanzlei-akzent);
    box-shadow: 0 0 0 1px rgba(15,91,102,0.15);
}

.contact-form button {
    margin-top: 0.4rem;
    padding: 0.55rem 1.2rem;
    border-radius: 4px;
    border: none;
    background-color: var(--kanzlei-akzent);
    color: #ffffff;
    font: inherit;
    cursor: pointer;
}

.contact-form button:hover {
    opacity: 0.9;
}

.contact-form .hint {
    font-size: 0.82rem;
    color: #666666;
}

/* Checkbox sauber ausgerichtet */

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.6rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-row input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

.checkbox-row label {
    flex: 1 1 auto;
    margin: 0;
}

.checkbox-row a {
    color: var(--kanzlei-akzent);
    text-decoration: underline;
}

/* Honeypot */

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* === Über mich === */

.about-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    column-gap: 2.25rem;
    align-items: flex-start;
}

.about-photo {
    text-align: center;
}

.about-photo img {
    display: block;
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    margin: 0 auto;
}

/* === Vita / Werdegang === */

.vita {
    display: grid;
    gap: 0.8rem;
}

.vita-row {
    display: grid;
    grid-template-columns: 90px minmax(0,1fr);
    gap: 1.5rem;
}

.vita-year {
    font-weight: 600;
    color: var(--kanzlei-akzent);
}

.vita-text {
    line-height: 1.5;
}

/* === Footer === */

footer {
    border-top: 1px solid var(--grau-hell);
    padding: 1rem 0;
    font-size: 0.85rem;
    background-color: #ffffff;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* === Responsive === */

@media (max-width: 768px) {

    .nav-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--grau-hell);
        background-color: #ffffff;
        gap: 0.5rem;
    }

    nav ul.open {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        row-gap: 1.25rem;
    }

    .about-photo img {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 600px) {

    .logo {
        white-space: normal;
    }

    .logo span {
        display: block;
    }

    .vita-row {
        grid-template-columns: 1fr;
    }
}