* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: #f3f6fb;
    color: #111827;
    line-height: 1.7;
    min-height: 100vh;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(243, 246, 251, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #dbe3ee;
    padding: 18px 0;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.brand {
    text-align: center;
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.brand p {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 2px;
}

/* Navigation */

.nav-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    padding: 12px 14px;
}

.main-nav a {
    text-decoration: none;
    color: #475569;
    padding: 10px 14px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    background: #e8eef8;
    color: #1d4ed8;
}

.main-nav a.active {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

/* Seitenlayout */

.page-section {
    padding: 48px 0 56px;
}

.page-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.main-content {
    min-width: 0;
}

/* Boxen */

.hero-box,
.content-box,
.info-box,
.footer-box,
.sidebar-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.hero-box {
    padding: 40px;
}

.content-box {
    padding: 32px;
    margin-bottom: 24px;
}

.info-box {
    padding: 24px;
}

.footer-box {
    padding: 18px 22px;
}

.sidebar-box {
    padding: 24px;
    width: 100%;
    align-self: start;
    position: sticky;
    top: 120px;
}

/* Hero */

.hero-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px 28px;
    align-items: start;
}

.hero-left {
    grid-column: 1;
    grid-row: 1;
}

.hero-right {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.hero-bottom {
    grid-column: 1 / 3;
    grid-row: 2;
}

.profile-photo {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 20px;
    border: 1px solid #dbe3ee;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    object-fit: cover;
}

/* Typografie */

h1,
h2,
h3 {
    color: #0f172a;
}

h2 {
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 14px;
}

h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

p {
    margin-bottom: 14px;
    color: #475569;
}

ul {
    padding-left: 22px;
}

li {
    margin-bottom: 10px;
    color: #475569;
}

/* Labels */

.tag {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Buttons */

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.button {
    display: inline-block;
    text-decoration: none;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-weight: 600;
}

.button-primary {
    background: #2563eb;
    color: #ffffff;
}

.button-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.button-secondary {
    background: #eef2ff;
    color: #1e3a8a;
    border-color: #dbeafe;
}

.button-secondary:hover {
    background: #e0e7ff;
    transform: translateY(-1px);
}

button.button {
    font: inherit;
    cursor: pointer;
}

/* Karten */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.small-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 22px;
    border: 1px solid #e2e8f0;
}

.small-card h4 {
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
}

.timeline-item {
    padding: 18px 0;
    border-bottom: 1px solid #e2e8f0;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item h3 {
    margin-bottom: 8px;
}

/* Sidebar */

.sidebar-box h3 {
    margin-bottom: 16px;
}

.sidebar-section {
    margin-bottom: 18px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section p {
    margin-bottom: 8px;
}

.sidebar-links {
    padding-left: 18px;
}

.sidebar-links li {
    margin-bottom: 8px;
}

.sidebar-links a {
    color: #2563eb;
    text-decoration: none;
}

.sidebar-links a:hover {
    text-decoration: underline;
}

/* Formular */

.contact-form {
    margin-top: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 8px;
    color: #334155;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font: inherit;
    color: #111827;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 180px;
}

.honeypot {
    display: none;
}

.message-box {
    margin: 20px 0;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.success-box {
    background: #ecfdf5;
    color: #166534;
}

.error-box {
    background: #fef2f2;
    color: #991b1b;
}

/* Rechtliches */

.legal-details {
    margin: 14px 0 24px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    overflow: hidden;
}

.legal-details summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 18px;
    font-weight: 600;
    color: #1d4ed8;
}

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

.legal-details summary:hover {
    background: #eff6ff;
}

.legal-reveal {
    padding: 0 18px 18px;
    color: #475569;
}

/* Footer */

.site-footer {
    padding: 6px 0 40px;
}

.footer-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-box p {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-box a {
    text-decoration: none;
    color: #2563eb;
}

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

/* Responsive */

@media (max-width: 900px) {

    .hero-layout,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero-left,
    .hero-right,
    .hero-bottom {
        grid-column: auto;
        grid-row: auto;
    }

    .hero-right {
        justify-content: center;
    }

    .profile-photo {
        max-width: 180px;
    }
}

@media (max-width: 800px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-box {
        position: static;
    }

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

@media (max-width: 700px) {
    .site-header {
        padding: 14px 0;
    }

    .header-inner {
        gap: 14px;
    }

    .main-nav {
        padding: 10px;
        border-radius: 20px;
    }

    .main-nav a {
        padding: 9px 12px;
    }
}

@media (max-width: 640px) {

    .hero-box,
    .content-box,
    .info-box,
    .sidebar-box {
        padding: 22px;
        border-radius: 20px;
    }

    h2 {
        font-size: 1.7rem;
    }

    .profile-photo {
        border-radius: 16px;
    }
}