/* ============================================
   Niklas Ebers – Portfolio
   Tokens aus der Vorlage (Primary-Grün, Radius, Schatten),
   Logo-Quadrate als durchgehendes Gestaltungselement
   ============================================ */
:root {
    --background: oklch(1 0 0);
    --foreground: oklch(0.145 0 0);
    --primary: oklch(0.5355 0.1669 143.1561);
    --primary-dark: oklch(0.42 0.14 143.1561);
    --primary-soft: oklch(0.965 0.03 143.1561);
    --primary-mid: oklch(0.89 0.08 143.1561);
    --ink: oklch(0.19 0.035 150);
    --ink-2: oklch(0.25 0.04 150);
    --paper: oklch(0.977 0.004 130);
    --muted: oklch(0.5 0.012 150);
    --border: oklch(0.922 0 0);
    --radius: 0.625rem;
    --radius-xl: 1.25rem;

    --orange: #f06828;
    --lime: #88c000;
    --cyan: #00b0e8;
    --yellow: #f8c000;

    --shadow-sm: 0 1px 3px 0 hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
    --shadow-md: 0 1px 3px 0 hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
    --shadow-lg: 0 1px 3px 0 hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10), 0 12px 24px -8px hsl(0 0% 0% / 0.12);
    --shadow-xl: 0 1px 3px 0 hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10), 0 30px 50px -20px hsl(0 0% 0% / 0.25);

    --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--foreground);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

section {
    padding: 6rem 0;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hintergrund + Blur in Pseudo-Element, damit die Navbar kein Containing Block
   für das mobile (position: fixed) Menü wird */
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: oklch(1 0 0 / 0.88);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    position: relative;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    padding-left: 0.9rem;
    border-left: 1px solid var(--border);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu li a {
    display: block;
    padding: 0.5rem 0.9rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 999px;
    color: oklch(0.35 0.01 150);
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-menu li a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.nav-menu li a.active {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.nav-menu li:last-child {
    margin-left: 0.5rem;
}

.nav-menu li:last-child a,
.nav-menu li:last-child a.active {
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
}

.nav-menu li:last-child a:hover {
    background: var(--primary-dark);
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--foreground);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 18px -6px oklch(0.5355 0.1669 143.1561 / 0.7);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary,
.btn-outline {
    background: #fff;
    color: var(--foreground);
    border-color: oklch(0.85 0 0);
}

.btn-secondary:hover,
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.btn-light {
    background: #fff;
    color: var(--ink);
}

.btn-light:hover {
    background: var(--primary-soft);
}

.btn-ghost-light {
    background: transparent;
    color: #fff;
    border-color: oklch(1 0 0 / 0.4);
}

.btn-ghost-light:hover {
    border-color: #fff;
    background: oklch(1 0 0 / 0.08);
}

.arrow::after {
    content: '→';
    transition: transform 0.15s ease;
}

.btn:hover .arrow::after,
.link-arrow:hover::after {
    transform: translateX(3px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.link-arrow::after {
    content: '→';
    transition: transform 0.15s ease;
}

/* ============================================
   Gemeinsame Bausteine
   ============================================ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--primary);
}

.on-dark .eyebrow {
    color: oklch(0.85 0.12 143.1561);
}

.on-dark .eyebrow::before {
    background: oklch(0.85 0.12 143.1561);
}

.section-head {
    max-width: 44rem;
    margin-bottom: 3.5rem;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

.section-head p {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 1.15rem;
}

.on-dark .section-head p {
    color: oklch(1 0 0 / 0.7);
}

.sq {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.sq-orange { background: var(--orange); }
.sq-lime { background: var(--lime); }
.sq-cyan { background: var(--cyan); }
.sq-yellow { background: var(--yellow); }

/* Reveal */
.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--d, 0s);
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 9rem 0 5.5rem;
    background: var(--paper);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 35%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 70% 80% at 75% 35%, #000 0%, transparent 72%);
    opacity: 0.8;
    pointer-events: none;
}

.hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.9rem 0.4rem 0.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
}

.hero-badge .dot {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
}

.hero-title {
    font-size: clamp(2.9rem, 6.4vw, 5.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.98;
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: normal;
    color: var(--primary-dark);
    background: linear-gradient(transparent 68%, var(--primary-mid) 68%, var(--primary-mid) 92%, transparent 92%);
    padding: 0 0.05em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: oklch(0.38 0.012 150);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.hero-subtitle strong {
    color: var(--foreground);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid oklch(0.88 0.01 150);
    max-width: 36rem;
}

.hero-stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--primary-dark);
    margin-bottom: 0.4rem;
}

.hero-stats span {
    display: block;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--muted);
}

/* Portrait-Komposition */
.portrait {
    position: relative;
    width: min(100%, 440px);
    margin-left: auto;
    isolation: isolate;
}

.portrait::before {
    content: '';
    position: absolute;
    inset: 7% -8% -5% 15%;
    z-index: -1;
    border-radius: 230px 230px 30px 30px;
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.portrait-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 230px 230px 30px 30px;
    background: #f8f8f8;
    box-shadow: var(--shadow-xl);
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 6%;
}

.portrait .sq-float {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.sq-float.a { top: 2%; left: 4%; background: var(--orange); transform: rotate(-12deg); }
.sq-float.b { top: 16%; right: -3%; background: var(--lime); transform: rotate(10deg); width: 22px; height: 22px; }
.sq-float.c { bottom: 24%; right: -9%; background: var(--cyan); transform: rotate(-8deg); }
.sq-float.d { bottom: 4%; left: 8%; background: var(--yellow); transform: rotate(14deg); width: 20px; height: 20px; }

.float-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    line-height: 1.3;
}

.float-card .ico {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 700;
}

.float-card strong {
    display: block;
    font-weight: 600;
}

.float-card span {
    color: var(--muted);
    font-size: 0.8rem;
}

.float-card.one { top: 12%; left: -16%; }
.float-card.two { bottom: 9%; left: -12%; }

/* ============================================
   Ticker
   ============================================ */
.ticker {
    background: var(--ink);
    color: #fff;
    overflow: hidden;
    padding: 1.15rem 0;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 45s linear infinite;
}

.ticker-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding-right: 1.75rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

@keyframes ticker {
    to { transform: translateX(-50%); }
}

/* ============================================
   Vorgehen
   ============================================ */
.approach {
    background: var(--ink);
    color: #fff;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.5rem 1.75rem;
    background: oklch(1 0 0 / 0.04);
    border: 1px solid oklch(1 0 0 / 0.1);
    border-top: 3px solid var(--c);
    border-radius: var(--radius-xl);
    transition: background 0.2s ease, transform 0.2s ease;
}

.step:hover {
    background: oklch(1 0 0 / 0.07);
    transform: translateY(-3px);
}

.step-num {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--c);
    margin-bottom: 1.5rem;
}

.step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step p {
    color: oklch(1 0 0 / 0.72);
    font-size: 0.98rem;
}

/* ============================================
   Über mich (Teaser)
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: start;
}

.quote {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 1.75rem;
}

.quote::before {
    content: '\201C';
    display: block;
    height: 3.1rem;
    font-size: 6rem;
    line-height: 1;
    color: var(--primary);
}

.about-text p {
    color: oklch(0.38 0.012 150);
    margin-bottom: 1.1rem;
    max-width: 38rem;
}

.about-sign {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    font-weight: 600;
}

.about-sign::before {
    content: '';
    width: 36px;
    height: 2px;
    background: var(--primary);
}

.values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0 2rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

.profile-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.profile-list li {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--border);
}

.profile-list li:first-child {
    border-top: none;
    padding-top: 0;
}

.profile-list .ico {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.1rem;
}

.profile-list strong {
    display: block;
    font-weight: 600;
}

.profile-list span {
    color: var(--muted);
    font-size: 0.92rem;
}

/* ============================================
   Referenzen
   ============================================ */
.cases {
    background: var(--paper);
}

.projects-grid,
.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.case-card,
.project-card-large,
.project-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-card:hover,
.project-card-large:hover,
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.case-media,
.project-image {
    position: relative;
    background: var(--ink);
    padding-top: 2rem;
    overflow: hidden;
}

.case-media::before {
    content: '';
    position: absolute;
    top: 0.8rem;
    left: 1rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff6159;
    box-shadow: 15px 0 0 #ffbd2e, 30px 0 0 #28c940;
}

.case-media img,
.project-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.case-card:hover .case-media img {
    transform: scale(1.03);
}

.case-badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    padding: 0.7rem 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    line-height: 1.15;
}

.case-badge strong {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.case-badge span {
    font-size: 0.8rem;
    opacity: 0.9;
}

.case-badge.is-plain {
    background: #fff;
    color: var(--foreground);
}

.case-badge.is-plain strong {
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.case-body,
.project-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.75rem;
}

.case-meta,
.project-note {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 0.6rem;
}

.case-body h3,
.project-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.case-body p,
.project-content p {
    color: oklch(0.4 0.012 150);
    margin-bottom: 1.25rem;
}

.case-body .link-arrow,
.project-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ============================================
   Schulungen
   ============================================ */
.training-box {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3.5rem;
    padding: 3.5rem;
    background: var(--primary-soft);
    border: 1px solid var(--primary-mid);
    border-radius: 2rem;
}

.training-box h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.training-box > div:first-child p {
    color: oklch(0.38 0.012 150);
    margin-bottom: 1.5rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.course {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.35rem 1.4rem;
}

.course.wide {
    grid-column: 1 / -1;
}

.course h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.course p {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 0.85rem;
}

.levels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.level {
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--primary-mid);
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
    padding: 0 0 6rem;
}

.cta-box {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem;
    border-radius: 2rem;
    color: #fff;
    background:
        radial-gradient(ellipse 60% 100% at 100% 0%, oklch(0.62 0.17 143.1561 / 0.55), transparent 70%),
        var(--ink);
}

.cta-box h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 1rem;
}

.cta-box p {
    color: oklch(1 0 0 / 0.75);
    font-size: 1.1rem;
    max-width: 32rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cta-actions .btn {
    justify-content: flex-start;
    padding: 1rem 1.5rem;
}

.cta-squares {
    position: absolute;
    right: 2rem;
    bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0.9;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--ink);
    color: oklch(1 0 0 / 0.75);
    padding: 4rem 0 1.75rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: oklch(1 0 0 / 0.72);
    line-height: 1.8;
}

.footer-section a:hover {
    color: #fff;
}

.footer-section p + p {
    margin-top: 0.75rem;
}

.footer-section li + li {
    margin-top: 0.3rem;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid oklch(1 0 0 / 0.12);
    font-size: 0.875rem;
    color: oklch(1 0 0 / 0.5);
}

/* ============================================
   Unterseiten
   ============================================ */
.page-header,
.project-detail-header {
    position: relative;
    overflow: hidden;
    padding: 9.5rem 0 4.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
}

.page-header::before,
.project-detail-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 60% 90% at 85% 20%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 90% at 85% 20%, #000 0%, transparent 70%);
    pointer-events: none;
}

.page-header .container,
.project-detail-header .container {
    position: relative;
}

.page-header h1,
.project-detail-header h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.page-header p,
.project-detail-header p {
    font-size: 1.2rem;
    color: oklch(0.38 0.012 150);
    max-width: 40rem;
}

.page-header .eyebrow + h1,
.project-detail-header .eyebrow + h1 {
    margin-top: 0;
}

.stack {
    display: grid;
    gap: 1.5rem;
}

.narrow {
    max-width: 820px;
    margin: 0 auto;
}

.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
}

.panel h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2.25rem 0 0.75rem;
}

.panel h2:first-child {
    margin-top: 0;
}

.panel h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.25rem 0 0.4rem;
}

.panel p {
    color: oklch(0.4 0.012 150);
    margin-bottom: 1rem;
}

.panel a {
    color: var(--primary-dark);
    font-weight: 500;
}

.check-list li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.9rem;
    color: oklch(0.38 0.012 150);
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--primary-soft)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d7a1f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
        center / 70% no-repeat;
}

/* Leistungen */
.service-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--c);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.service-row .num {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--c);
}

.service-row h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-row p {
    color: oklch(0.4 0.012 150);
}

.band {
    position: relative;
    overflow: hidden;
    padding: 3.5rem;
    text-align: center;
    color: #fff;
    border-radius: 2rem;
    background:
        radial-gradient(ellipse 60% 120% at 100% 0%, oklch(0.62 0.17 143.1561 / 0.5), transparent 70%),
        var(--ink);
}

.band h3 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 0.75rem;
}

.band p {
    color: oklch(1 0 0 / 0.75);
    margin-bottom: 1.75rem;
    font-size: 1.1rem;
}

.band .btn-primary {
    background: #fff;
    color: var(--ink);
    box-shadow: none;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.expertise-grid h3 {
    margin-top: 0;
}

/* Über mich */
.about-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.value-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.value-card .sq {
    width: 14px;
    height: 14px;
    margin-bottom: 1.1rem;
}

.value-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--muted);
    font-size: 0.97rem;
}

.prose p {
    color: oklch(0.38 0.012 150);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    max-width: 40rem;
}

/* Kontakt */
.contact-section {
    background: var(--paper);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.75rem;
    align-items: start;
}

.contact-form,
.contact-info {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
}

.contact-form h2,
.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--foreground);
    background: #fff;
    border: 1px solid oklch(0.85 0 0);
    border-radius: var(--radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px oklch(0.5355 0.1669 143.1561 / 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-note {
    margin-top: 0.9rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.contact-info p {
    color: oklch(0.4 0.012 150);
    margin-bottom: 1.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.contact-item .ico {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.contact-item .ico svg {
    width: 20px;
    height: 20px;
}

.contact-item small {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-item a {
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--primary-dark);
}

/* Projekt-Detailseiten */
.project-detail-content {
    background: var(--paper);
    padding: 4rem 0 6rem;
}

.project-image-large {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 3rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    background: var(--ink);
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.metric {
    padding: 1.75rem;
    color: #fff;
    background: var(--primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.metric strong {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric span {
    font-size: 0.95rem;
    opacity: 0.92;
}

.project-description,
.info-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.project-description {
    padding: 2.5rem;
    margin-bottom: 1.5rem;
}

.project-description h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-description p {
    color: oklch(0.4 0.012 150);
    margin-bottom: 0.9rem;
}

.project-description p:last-child {
    margin-bottom: 0;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.info-card {
    padding: 2rem;
    border-top: 3px solid var(--primary);
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.9rem;
}

.info-card p {
    color: oklch(0.4 0.012 150);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1060px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Karten unterhalb des Gesichts halten, damit sie es nie verdecken */
    .float-card.one { top: 46%; left: -6%; }
    .float-card.two { bottom: 7%; left: -4%; }
}

@media (max-width: 900px) {
    section { padding: 4.5rem 0; }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo-name {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 1.5rem;
        background: #fff;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li a {
        padding: 1rem 1.1rem;
        font-size: 1.1rem;
        border-radius: var(--radius);
    }

    .nav-menu li:last-child {
        margin: 0.75rem 0 0;
    }

    .nav-menu li:last-child a {
        text-align: center;
        border-radius: 999px;
    }

    .hero {
        padding-top: 6.25rem;
    }

    .hero-layout,
    .about-grid,
    .about-hero,
    .contact-grid,
    .training-box,
    .cta-box {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Foto zuerst anzeigen */
    .hero-layout .portrait {
        order: -1;
        margin: 0 auto;
        width: min(72%, 320px);
    }

    .float-card.one { top: 46%; left: -8%; }
    .float-card.two { bottom: 7%; left: -6%; }

    .projects-grid,
    .case-grid,
    .course-grid,
    .value-grid,
    .project-info-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .training-box,
    .cta-box,
    .band {
        padding: 2.25rem;
    }
}

@media (max-width: 560px) {
    .container { padding: 0 1.15rem; }

    .steps,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-buttons .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .float-card {
        padding: 0.55rem 0.75rem;
        font-size: 0.78rem;
    }

    .float-card .ico {
        width: 30px;
        height: 30px;
    }

    .float-card.one { left: -4%; top: 48%; }
    .float-card.two { left: -2%; bottom: 5%; }

    .panel,
    .contact-form,
    .contact-info,
    .project-description {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}
