/* ═══════════════════════════════════════════════
   Stephan Ansperger – Executive Profile
   ═══════════════════════════════════════════════ */

:root {
    --dark: #0C0F1A;
    --dark-surface: #141724;
    --dark-border: #242840;
    --light: #F8F7F5;
    --light-surface: #FFFFFF;
    --light-border: #E8E6E2;
    --text-dark: #1A1A1A;
    --text-body: #3D3D3D;
    --text-muted: #7A7A7A;
    --text-light: #E8E6E2;
    --text-light-muted: #9A9AB0;
    --accent: #C8A86E;
    --accent-hover: #B89555;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --container: 1020px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--dark);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Language ── */
.lang-de { display: none; }

.lang-toggle {
    position: fixed;
    top: 24px;
    right: 28px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(12, 15, 26, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.lang-btn {
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-light-muted);
    cursor: pointer;
    padding: 2px 4px;
    border-bottom: 1.5px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.lang-btn:hover { color: var(--text-light); }

.lang-btn.active {
    color: var(--text-light);
    border-bottom-color: var(--accent);
}

.lang-sep {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.12);
    user-select: none;
}

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

/* ── Hero ── */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--dark);
    overflow: hidden;
}

.hero-photo {
    overflow: hidden;
    position: relative;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    filter: contrast(1.04) brightness(1.02);
}

.hero-photo-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to right, transparent 50%, var(--dark) 100%),
        linear-gradient(to bottom, transparent 60%, var(--dark) 100%),
        linear-gradient(to top, transparent 85%, rgba(12, 15, 26, 0.3) 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 72px;
}

.hero-location {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light-muted);
    margin-bottom: 36px;
}

.hero-name {
    font-size: clamp(42px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: var(--text-light);
    margin-bottom: 28px;
}

.hero-rule {
    width: 48px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 36px;
}

.hero-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-light-muted);
    max-width: 420px;
    margin-bottom: 56px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 13px 32px;
    background: var(--accent);
    color: var(--dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
}

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

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border: 1px solid var(--dark-border);
    color: var(--text-light-muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
    border-color: var(--text-light-muted);
    color: var(--text-light);
}

/* ── Sections ── */

.section {
    padding: 140px 0;
}

.section-light { background: var(--light); color: var(--text-dark); }
.section-dark { background: var(--dark); color: var(--text-light); }

.section-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 64px;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-light .section-header h2 { color: var(--text-dark); }
.section-dark .section-header h2 { color: var(--text-light); }

/* ── About ── */

.about-text {
    max-width: none;
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-body);
    letter-spacing: -0.005em;
    margin-bottom: 24px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ── Core Expertise ── */

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.expertise-card {
    padding: 40px 36px;
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    transition: border-color 0.3s;
}

.expertise-card:hover {
    border-color: rgba(200, 168, 110, 0.2);
}

.expertise-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 24px;
    color: var(--accent);
    opacity: 0.8;
}

.expertise-icon svg { width: 100%; height: 100%; }

.expertise-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.expertise-card p {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--text-light-muted);
}

/* ── Selected Impact ── */

.impact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.impact-block {
    padding: 48px 0;
    border-bottom: 1px solid var(--light-border);
}

.impact-block:first-child { padding-top: 0; }
.impact-block:last-child { border-bottom: none; padding-bottom: 0; }

.impact-block h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.impact-block p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-body);
}

/* ── Contact ── */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 28px;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    transition: border-color 0.2s, transform 0.2s;
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.contact-card svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    margin-bottom: 4px;
}

.contact-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light-muted);
}

.contact-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
}

/* ── Legal Pages ── */

.legal-hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 100px;
}

.back-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light-muted);
    margin-bottom: 48px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text-light);
}

.legal-text h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 36px;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.legal-text h3:first-child {
    margin-top: 0;
}

.legal-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 8px;
}

.legal-text-dark h3 {
    color: var(--text-light);
}

.legal-text-dark p {
    color: var(--text-light-muted);
}

/* ── Footer ── */

.footer {
    padding: 28px 0;
    background: var(--dark);
    border-top: 1px solid var(--dark-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-size: 12px;
    color: var(--text-light-muted);
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 12px;
    color: var(--text-light-muted);
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--text-light);
}

/* ── Scroll Reveal ── */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */

@media (max-width: 1024px) {
    .container { padding: 0 36px; }
    .section { padding: 100px 0; }

    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-photo { height: 65vh; max-height: 560px; }
    .hero-photo img { object-position: center 12%; }
    .hero-photo-overlay {
        background:
            linear-gradient(to bottom, transparent 50%, var(--dark) 100%),
            linear-gradient(to top, transparent 80%, rgba(12, 15, 26, 0.25) 100%);
    }
    .hero-content { padding: 56px 36px 72px; }

    .expertise-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { padding: 0 24px; }
    .section { padding: 72px 0; }
    .section-header { margin-bottom: 40px; }

    .hero-content { padding: 40px 24px 56px; }
    .hero-photo { height: 55vh; max-height: 460px; }
    .hero-photo img { object-position: center 10%; }
    .hero-name { font-size: 36px; }
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-outline { justify-content: center; }

    .expertise-card { padding: 28px 24px; }
}
