/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f8f6f3;
    --color-bg-dark: #1a1a1a;
    --color-text: #1a1a1a;
    --color-text-light: #ffffff;
    --color-text-muted: #5c5c5c;
    --color-accent: #ceaa5b;
    --color-accent-light: rgba(206, 170, 91, 0.12);
    --color-accent-dark: #b8954d;
    --color-border: #e8e4de;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 720px;
    --spacing-section: 100px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 24px 0;
    position: sticky;
    top: 0;
    background-color: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

header nav {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 44px;
    width: auto;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
}

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

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background-color: var(--color-text);
    transition: transform 0.2s ease;
}

/* Hero */
.hero {
    padding: 100px 0 var(--spacing-section);
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
}

.hero h1 {
    font-size: clamp(1.625rem, 4vw, 2.25rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text);
    max-width: 640px;
}

.hero h1 strong {
    font-weight: 600;
    color: var(--color-accent-dark);
}

.hero .subline {
    margin-top: 24px;
    font-size: 1.125rem;
    color: var(--color-accent-dark);
    font-weight: 500;
}

/* Sections */
.section {
    padding: var(--spacing-section) 0;
    border-top: 1px solid var(--color-border);
}

.section--alt {
    background-color: var(--color-bg-alt);
}

/* Section Header with Icon */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.section-header--center {
    flex-direction: column;
    text-align: center;
}

.section-icon {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-dark);
    margin-bottom: 0;
    padding: 8px 16px;
    background-color: var(--color-accent-light);
    border-radius: 4px;
}

.section-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
    max-width: 600px;
    margin-top: 24px;
}

/* Focus List */
.focus-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 24px;
}

.focus-list li {
    font-size: 1.125rem;
    color: var(--color-text);
    padding: 20px 24px;
    position: relative;
    border-left: 3px solid var(--color-accent);
    background: linear-gradient(90deg, var(--color-accent-light) 0%, transparent 100%);
    transition: all 0.2s ease;
}

.focus-list li:hover {
    border-left-color: var(--color-accent-dark);
    padding-left: 32px;
}

/* Profile Grid */
.profile-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 480px) {
    .profile-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.profile-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-tags li {
    font-size: 0.875rem;
    padding: 8px 16px;
    background-color: var(--color-accent-light);
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    color: var(--color-accent-dark);
    font-weight: 500;
}

.section--alt .profile-tags li {
    background-color: var(--color-accent-light);
}

.profile-item p {
    font-size: 1rem;
    color: var(--color-text);
}

/* Contact Section */
.section--contact {
    text-align: center;
    background-color: var(--color-bg-dark);
    border-top: none;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.contact-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-accent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-top: 16px;
    margin-bottom: 4px;
}

.contact-role {
    font-size: 0.875rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.section--contact .section-label {
    background-color: rgba(206, 170, 91, 0.2);
    color: var(--color-accent);
}

.section--contact .section-text {
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-button {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-bg-dark);
    text-decoration: none;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    border: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(206, 170, 91, 0.3);
}

/* Footer */
footer {
    padding: 48px 0;
    background-color: var(--color-bg-dark);
    text-align: center;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-menu a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: var(--color-accent);
}

footer p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 640px) {
    :root {
        --spacing-section: 64px;
    }

    header {
        padding: 16px 0;
    }

    .hero {
        padding: 48px 0 var(--spacing-section);
    }

    .logo img {
        height: 36px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.25rem;
    }
}

/* Legal Pages (Impressum, Datenschutz) */
.legal-page {
    padding-top: 60px;
    padding-bottom: var(--spacing-section);
}

.legal-page h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 3px solid var(--color-accent);
}

.legal-page h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-page p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.legal-page a {
    color: var(--color-accent-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-page a:hover {
    color: var(--color-accent);
}

.legal-page h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-page ul {
    margin-left: 24px;
    margin-bottom: 16px;
    color: var(--color-text-muted);
}

.legal-page ul li {
    margin-bottom: 8px;
}

/* 404 Error Page */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-page .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1;
    opacity: 0.3;
}

.error-page h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 16px;
    margin-bottom: 16px;
}

.error-page p {
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

/* Barrierefreiheit Toggle */
.a11y-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 1000;
}

.a11y-toggle:hover {
    transform: scale(1.1);
    background-color: var(--color-accent-dark);
}

.a11y-toggle svg {
    width: 24px;
    height: 24px;
    color: white;
}

.a11y-panel {
    position: fixed;
    bottom: 88px;
    right: 24px;
    width: 280px;
    background-color: var(--color-bg);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.a11y-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.a11y-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}

.a11y-panel-header span {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text);
}

.a11y-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
}

.a11y-options {
    padding: 12px;
}

.a11y-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.a11y-option:hover {
    background-color: var(--color-bg-alt);
}

.a11y-option.active {
    background-color: var(--color-accent-light);
}

.a11y-option svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.a11y-option span {
    font-size: 0.875rem;
    color: var(--color-text);
}

/* Barrierefreiheit Modes */
body.high-contrast {
    --color-bg: #000000;
    --color-bg-alt: #1a1a1a;
    --color-text: #ffffff;
    --color-text-muted: #cccccc;
    --color-border: #444444;
}

body.high-contrast header {
    background-color: rgba(0, 0, 0, 0.95);
}

body.high-contrast .a11y-panel {
    background-color: #1a1a1a;
    border: 1px solid #444;
}

body.large-font {
    font-size: 125%;
}

body.large-font .hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
}

body.large-font .section-text,
body.large-font .focus-list li {
    font-size: 1.25rem;
}

body.large-font .nav-menu a,
body.large-font .footer-menu a {
    font-size: 1rem;
}

body.large-line-height {
    line-height: 2.2;
}

body.large-line-height .section-text,
body.large-line-height .focus-list li,
body.large-line-height .legal-page p {
    line-height: 2.4;
}
