/* ============================================
   shared.css — Shared styles across all pages
   ============================================ */

/* Inter — self-hosted (latin + latin-ext subsets) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Manrope — self-hosted (latin + latin-ext subsets) */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('fonts/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Primary */
    --primary: #ae0011;
    --primary-container: #d71920;
    --on-primary: #ffffff;
    /* Surface tiers */
    --surface: #f5f6fa;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #eef0f7;
    --surface-container: #e4e7f0;
    --surface-container-high: #dadde8;
    --surface-container-highest: #d0d4e0;
    --surface-dim: #d2d9f4;
    /* On-surface */
    --on-surface: #131b2e;
    --on-surface-variant: #3a4260;
    /* Secondary */
    --secondary-container: #e8eaf4;
    --on-secondary-container: #2a3150;
    /* Outline */
    --outline: #6b7394;
    --outline-variant: #9aa0b8;
    /* Layout */
    --max-width: 1200px;
    --radius-sm: 0.125rem;
    --radius-md: 0.375rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--on-surface);
    background-color: var(--surface);
}

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

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--on-primary);
    padding: 8px;
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   Header — Hero section
   ============================================ */
header {
    background: var(--on-surface);
    color: var(--on-primary);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    right: -5%;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.9;
}

header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--surface);
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 65%;
}

h1 {
    font-family: 'Manrope', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-container);
    margin-bottom: 24px;
}

header .header-content > p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.8;
    max-width: 540px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--on-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--primary-container);
}

.contact-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

/* ============================================
   Page Header — Subpage hero variant
   ============================================ */
.page-header {
    padding: 80px 0 60px;
}

.page-header .header-content {
    max-width: 70%;
}

.page-header .breadcrumb {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.page-header .breadcrumb:hover {
    color: var(--primary-container);
}

.page-header .breadcrumb::before {
    content: '\2190';
    margin-right: 8px;
}

.page-header h1 {
    font-size: 2.75rem;
    margin-bottom: 16px;
}

.page-header .intro {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.8;
    max-width: 600px;
}

/* ============================================
   Navigation — Glassmorphism
   ============================================ */
nav {
    background: rgba(245, 246, 250, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

nav > .container > ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    gap: 4px;
}

nav a {
    display: block;
    padding: 16px 20px;
    color: var(--on-surface);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
}

nav > .container > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav > .container > ul > li > a:hover::after,
nav > .container > ul > li > a:focus::after {
    transform: scaleX(1);
}

nav a:hover,
nav a:focus {
    color: var(--primary);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    padding-right: 28px;
}

.nav-dropdown > a .dropdown-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.nav-dropdown-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: rgba(245, 246, 250, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(19, 27, 46, 0.06);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover > a .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu a {
    padding: 10px 20px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.nav-dropdown-menu a::after {
    display: none;
}

/* ============================================
   Main Content
   ============================================ */
main {
    padding: 80px 0;
}

section {
    margin-bottom: 96px;
}

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

h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 40px;
    color: var(--on-surface);
    position: relative;
    padding-bottom: 16px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    border-radius: 2px;
}

h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--on-surface);
}

/* ============================================
   Subpage shared components
   ============================================ */

/* Expertise overview — editorial asymmetric */
.expertise-overview {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--on-surface-variant);
}

.expertise-overview p + p {
    margin-top: 20px;
}

/* Competency card grid */
.competency-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.competency-card {
    background: var(--surface-container-lowest);
    padding: 28px;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
}

.competency-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(19, 27, 46, 0.06);
}

.competency-card h3 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.competency-card p {
    color: var(--on-surface-variant);
    line-height: 1.8;
    font-size: 1rem;
}

/* Methodology steps */
.methodology-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

.methodology-step {
    background: var(--surface-container-lowest);
    padding: 28px;
    border-radius: var(--radius-md);
    position: relative;
    counter-increment: step;
}

.methodology-step::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    color: var(--on-primary);
    border-radius: 50%;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.methodology-step h3 {
    color: var(--on-surface);
    font-size: 1rem;
    margin-bottom: 8px;
}

.methodology-step p {
    color: var(--on-surface-variant);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Workshop section */
.workshops-section {
    background: var(--on-surface);
    color: var(--on-primary);
    padding: 80px 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 0;
}

.workshops-section h2 {
    color: var(--on-primary);
}

.workshops-section h2::after {
    background: linear-gradient(135deg, var(--primary-container), #ff4d5a);
}

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.workshop-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: transform 0.3s ease;
}

.workshop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.workshop-card .workshop-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.workshop-card .workshop-meta span {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.workshop-card h3 {
    color: var(--on-primary);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.workshop-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.workshop-card ul {
    list-style: none;
    margin-bottom: 24px;
}

.workshop-card ul li {
    padding: 4px 0 4px 16px;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.workshop-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--primary-container);
    border-radius: 50%;
}

.workshop-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    color: var(--on-primary);
    padding: 12px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workshop-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(174, 0, 17, 0.3);
}

/* Contact CTA section */
.contact-cta-section {
    text-align: center;
    padding-top: 40px;
}

.contact-cta-section h2 {
    display: inline-block;
}

.contact-cta-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-cta-section p {
    color: var(--on-surface-variant);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 32px;
}

.contact-cta-section .workshop-cta {
    font-size: 0.9rem;
    padding: 14px 36px;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--on-surface);
    color: var(--on-primary);
    padding: 60px 0 40px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--on-primary);
    margin-bottom: 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section p {
    opacity: 0.7;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* ============================================
   Impressum & Datenschutz sections
   ============================================ */
#impressum h3,
#datenschutz h3 {
    margin-top: 28px;
}

#impressum p,
#datenschutz p {
    color: var(--on-surface-variant);
    line-height: 1.8;
    margin-top: 8px;
}

#datenschutz ul {
    color: var(--on-surface-variant);
    padding-left: 20px;
    margin-top: 8px;
    line-height: 1.8;
}

#datenschutz ul li {
    margin-bottom: 4px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .header-content {
        max-width: 100%;
    }

    header::before {
        width: 100%;
        opacity: 0.3;
        clip-path: none;
    }

    .contact-info {
        flex-direction: column;
        gap: 12px;
    }

    /* Mobile nav */
    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        padding: 16px 0;
    }

    .nav-toggle-label span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--on-surface);
        border-radius: 1px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    nav > .container > ul {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-toggle:checked ~ ul {
        display: flex;
    }

    /* Mobile dropdown — flat, always visible */
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        min-width: 0;
    }

    .nav-dropdown-menu a {
        padding-left: 40px;
        font-size: 0.75rem;
        color: var(--on-surface-variant);
    }

    .nav-dropdown > a .dropdown-arrow {
        display: none;
    }

    /* Subpage responsive */
    .page-header .header-content {
        max-width: 100%;
    }

    .page-header h1 {
        font-size: 2rem;
    }

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

    .methodology-steps {
        grid-template-columns: 1fr;
    }

    section {
        margin-bottom: 64px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.875rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    body {
        font-size: 12pt;
        background: white;
    }

    header {
        background: none;
        color: var(--on-surface);
        padding: 20px 0;
    }

    header::before,
    header::after {
        display: none;
    }

    .skip-link,
    nav {
        display: none;
    }

    .contact-item {
        color: var(--on-surface);
    }

    .workshops-section {
        background: none;
        color: var(--on-surface);
    }
}

/* ============================================
   Focus Styles for Accessibility
   ============================================ */
a:focus,
button:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
