/* ===================================
   thin/k management ag – Landing Page
   Flowing, narrative design
   Color: Navy Blue + Grey tones
   =================================== */

:root {
    --color-primary: #1a2a42;
    --color-accent: #3a7bd5;
    --color-accent-light: #5a9be6;
    --color-text: #2d3748;
    --color-text-muted: #64748b;
    --color-bg: #ffffff;
    --color-bg-warm: #f8fafb;
    --color-bg-dark: #0d1b2e;
    --color-border: #e8edf2;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --max-width: 1100px;
    --nav-height: 72px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 3rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ─── Navigation ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 100;
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--color-border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 44px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-muted);
    letter-spacing: 0.01em;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-primary);
    transition: all 0.3s var(--ease);
}

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

.hero-inner {
    padding-top: var(--nav-height);
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 5.5vw, 4.25rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-cta .btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    letter-spacing: 0.02em;
    transition: all 0.3s var(--ease);
}

.hero-cta .btn:hover {
    background: var(--color-accent);
    transform: translateY(-1px);
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero-scroll span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--color-border);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ─── Intro ─── */
.section-intro {
    padding: 5rem 0;
    background: var(--color-bg-warm);
}

.intro-text {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    line-height: 1.7;
    color: var(--color-primary);
    font-weight: 400;
}

.intro-text strong {
    color: var(--color-accent);
    font-weight: 500;
}

/* ─── Sections ─── */
.section {
    padding: 8rem 0;
}

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

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.section-dark .section-title {
    color: #fff;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 3.5rem;
}

.section-dark .section-desc {
    color: rgba(255, 255, 255, 0.55);
}

/* ─── Offerings ─── */
.section-angebot {
    padding: 6rem 0;
}

.offerings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.offering-card {
    padding: 2rem 2.25rem;
    background: var(--color-bg-warm);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: border-color 0.3s var(--ease);
}

.offering-card:hover {
    border-color: var(--color-accent);
}

.offering-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.offering-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ─── Branchen ─── */
.branchen-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 3rem;
}

.branche-tag {
    padding: 0.7rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    transition: all 0.3s var(--ease);
}

.branche-tag:hover {
    border-color: var(--color-accent);
    color: #fff;
}

.branche-primary {
    background: rgba(58, 123, 213, 0.15);
    border-color: rgba(58, 123, 213, 0.4);
    color: #fff;
    font-weight: 500;
}

/* ─── Profil ─── */
.profil-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.profil-portrait {
    width: 260px;
}

.profil-portrait img {
    width: 100%;
    border-radius: 8px;
    filter: grayscale(15%);
    transition: filter 0.5s var(--ease);
}

.profil-portrait img:hover {
    filter: grayscale(0%);
}

.profil-body {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.profil-lead {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.profil-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.profil-meta {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.meta-block h4 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 0.6rem;
}

.meta-block p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Mandate */
.mandate-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid var(--color-border);
}

.mandate-section h3 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 2rem;
}

.mandate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.mandate-item {
    display: block;
    padding: 1.5rem;
    background: var(--color-bg-warm);
    border-radius: 8px;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
    border: 1px solid transparent;
}

a.mandate-item:hover {
    border-color: var(--color-accent);
    background: #fff;
}

.mandate-role {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

.mandate-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* ─── Kontakt ─── */
.section-contact {
    background: var(--color-bg-dark);
    padding: 10rem 0;
}

.contact-content {
    max-width: 700px;
}

.contact-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.contact-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item a {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s var(--ease);
}

.contact-item a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent-light);
}

.contact-address p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.9;
}

/* ─── Footer ─── */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--color-border);
}

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

.footer-logo img {
    height: 24px;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ─── Reveal Animations ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ─── Responsive ─── */
@media (max-width: 992px) {
    .profil-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .profil-portrait {
        width: 200px;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 5vw, 3.5rem);
    }
}

@media (max-width: 768px) {
    .container,
    .container-narrow,
    .nav-container,
    .hero {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--color-border);
    }

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

    .nav-toggle {
        display: flex;
    }

    .section,
    .section-intro {
        padding: 5rem 0;
    }

    .section-contact {
        padding: 6rem 0;
    }

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

    .contact-details {
        flex-direction: column;
        gap: 1.25rem;
    }

    .hero-scroll {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .mandate-grid {
        grid-template-columns: 1fr;
    }

    .branchen-flow {
        gap: 0.5rem;
    }

    .branche-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}
