/* ═══════════════════════════════════════════════════════════════════════════
   FN Tools – Design System v3
   Neo-Brutalist · Space Grotesk · Cream #F5F5F0 · Gelb #FFE500
   Inspired by f-nassar.de
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
  --bg:         #f5f5f0;
  --ink:        #0a0a0a;
  --ink-mid:    #333333;
  --ink-light:  #888888;
  --accent:     #ffe500;
  --dark-bg:    #0a0a0a;
  --dark-light: #f5f5f0;
  --font:       "Space Grotesk", system-ui, sans-serif;
  --ease:       cubic-bezier(.16, 1, .3, 1);
  --shadow:     5px 5px 0 var(--ink);
  --shadow-sm:  3px 3px 0 var(--ink);
  --border:     2px solid var(--ink);
  --max-w:      1440px;
  --px:         clamp(2rem, 5vw, 5rem);
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body  {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
  cursor: none;
}
@media (pointer: coarse) { body { cursor: auto !important; } }
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, [role="button"] { font-family: var(--font); }
*, a, button { cursor: none !important; }
@media (pointer: coarse) { *, a, button { cursor: auto !important; } }
::selection        { background: var(--ink); color: var(--bg); }
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--ink); }

/* ─── Custom Cursor ─────────────────────────────────────────────────────── */
.cur-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink);
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: background .15s;
}
.cur-ring {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--ink);
  position: fixed; top: 0; left: 0; z-index: 9998;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform, width, height, border-color;
  transition: width .2s var(--ease), height .2s var(--ease), border-color .2s;
}
.cur-ring.hovered { width: 56px; height: 56px; border-color: var(--accent); }
@media (pointer: coarse) { .cur-dot, .cur-ring { display: none !important; } }

/* ─── Scroll Progress ───────────────────────────────────────────────────── */
.scroll-prog {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 9990; pointer-events: none;
  background: transparent;
}
.scroll-prog-bar {
  height: 100%; background: var(--accent);
  transform-origin: left; transform: scaleX(0);
  transition: transform .08s linear;
}

/* ─── Cookie Banner ─────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 1.5rem; left: 1.5rem;
  max-width: 520px;
  background: var(--dark-bg); color: var(--dark-light);
  border: var(--border); border-color: rgba(245,245,240,.2);
  padding: 1.25rem 1.5rem;
  z-index: 8000;
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cookie-banner.visible { opacity: 1; pointer-events: auto; transform: none; }
.cookie-text  { font-size: 13px; line-height: 1.6; margin-bottom: 1rem; color: rgba(245,245,240,.7); }
.cookie-text strong { color: var(--dark-light); }
.cookie-actions { display: flex; gap: .75rem; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  font-family: var(--font);
  letter-spacing: .12em; text-transform: uppercase;
  border: 2px solid var(--ink);
  background: var(--ink); color: var(--bg);
  padding: 14px 28px; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease),
              background .2s var(--ease), color .2s, border-color .2s;
  user-select: none; white-space: nowrap; text-decoration: none;
}
.btn:hover { box-shadow: var(--shadow); transform: translate(-3px,-3px); }
.btn-accent  { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-accent:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-dark    { background: transparent; color: var(--dark-light); border-color: rgba(245,245,240,.25); }
.btn-dark:hover { background: var(--dark-light); color: var(--dark-bg); border-color: var(--dark-light); box-shadow: 3px 3px 0 rgba(245,245,240,.3); transform: translate(-3px,-3px); }
.btn-sm  { padding: 10px 20px; font-size: 10px; }
.btn-lg  { padding: 18px 36px; font-size: 12px; }
.btn-ghost {
  background: transparent; color: var(--dark-light);
  border-color: rgba(245,245,240,.2); font-size: 10px; padding: 10px 20px;
}
.btn-ghost:hover { background: rgba(245,245,240,.08); box-shadow: none; transform: none; }
.btn-primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn[disabled], .btn.loading { opacity: .5; pointer-events: none; }
.btn-spinner { display: none; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.loading .btn-text { display: none; }
.btn.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Section Label (f-nassar.de pattern) ──────────────────────────────── */
.section-label {
  display: inline-block;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-light); font-size: 10px; font-weight: 700;
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: ""; vertical-align: middle;
  background: currentColor; width: 20px; height: 2px;
  margin-right: 12px; display: inline-block;
}
.section-label.light { color: rgba(245,245,240,.4); }
.section-label.light::before { background: rgba(245,245,240,.4); }

/* ─── Global: never let CSS override [hidden] ───────────────────────────── */
[hidden] { display: none !important; }

/* ─── Reveal Animation ──────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ─── Header / Nav ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(245,245,240,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid transparent;
  height: 64px;
  transition: border-color .25s;
}
.site-header.scrolled { border-color: var(--ink); }
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--px); height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
}
.brand-logo { flex-shrink: 0; }
.brand-name { line-height: 1; }
.nav-links {
  display: flex; align-items: center;
  list-style: none; gap: 0;
}
.nav-links a {
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-mid); font-size: 10px; font-weight: 700;
  padding: .4rem .8rem; position: relative;
  transition: color .2s;
}
.nav-links a::before {
  content: ""; position: absolute; bottom: .2rem; left: .8rem;
  background: var(--accent); border-radius: 50%;
  width: 4px; height: 4px;
  transform: scale(0); transition: transform .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::before { transform: scale(1); }
.header-actions .btn { padding: 10px 20px; font-size: 10px; }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(5rem, 10vw, 9rem) 0 0;
  border-bottom: var(--border);
  position: relative; overflow: hidden;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px);
  display: grid; grid-template-columns: 1fr auto;
  gap: clamp(3rem, 6vw, 5rem); align-items: start;
}
.hero-text { min-width: 0; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-light); margin-bottom: 1.5rem;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.hero h1 {
  font-size: clamp(3.2rem, 8vw, 8rem);
  line-height: .9; letter-spacing: -.04em; font-weight: 700;
  margin-bottom: 1.75rem;
}
.hero-highlight {
  display: inline; position: relative; z-index: 0;
}
.hero-highlight::after {
  content: ""; position: absolute;
  bottom: .06em; left: -.03em; right: -.03em; height: .2em;
  background: var(--accent); z-index: -1;
}
.hero-lead {
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  color: var(--ink-mid); line-height: 1.75;
  max-width: 500px; margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Right side project list */
.hero-side {
  padding-top: .5rem;
  min-width: 220px;
  flex-direction: column;
}
.hero-proj {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(10,10,10,.1);
}
.hero-proj:first-child { border-top: var(--border); }
.hero-proj:last-child  { border-bottom: var(--border); }
.hero-proj-num  { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--ink-light); }
.hero-proj-name { font-size: 12px; font-weight: 600; flex: 1; letter-spacing: .03em; }
.hero-proj-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Stats bar */
.hero-stats {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: var(--border);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.hero-stat {
  padding: 1.75rem 1rem;
  border-right: 1px solid rgba(10,10,10,.15);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-size: clamp(1.5rem, 2.5vw, 2.6rem);
  font-weight: 700; letter-spacing: -.04em; line-height: 1.1;
  display: block; margin-bottom: .4rem;
}
.hero-stat-label {
  font-size: 9.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-light); display: block;
  line-height: 1.4;
}
/* Stats stagger — reset so each fires relative to when the bar enters the viewport */
.hero-stats [data-reveal]:nth-child(1) { --reveal-delay: 0ms   !important; }
.hero-stats [data-reveal]:nth-child(2) { --reveal-delay: 80ms  !important; }
.hero-stats [data-reveal]:nth-child(3) { --reveal-delay: 160ms !important; }
.hero-stats [data-reveal]:nth-child(4) { --reveal-delay: 240ms !important; }

/* ─── Projects Section ──────────────────────────────────────────────────── */
.projects-section {
  padding: clamp(5rem, 10vw, 8rem) 0;
  border-bottom: var(--border);
}
.projects-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }

.projects-header { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.projects-header h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: .93; letter-spacing: -.04em; font-weight: 700;
  margin-bottom: 1rem;
}
.projects-intro {
  font-size: 14px; color: var(--ink-mid); line-height: 1.75;
  max-width: 640px;
  border-left: 3px solid var(--accent); padding-left: 1rem;
}

/* ─── Project Cards ─────────────────────────────────────────────────────── */
.projects-list { display: flex; flex-direction: column; }

.project-card {
  border: var(--border);
  border-top: none;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: var(--bg);
  position: relative;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), background .25s;
}
.project-card:first-child { border-top: var(--border); }
.project-card:hover {
  background: #fafaf5;
  box-shadow: var(--shadow);
  transform: translate(-3px, -3px);
  z-index: 2;
}

/* Card layout: side-by-side on desktop */
.pc-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: start;
}
.pc-content { min-width: 0; }
.pc-action-col {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 1rem;
  padding-top: .2rem; min-width: 160px;
}

/* Top meta row */
.pc-meta {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.pc-cat {
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-light);
}
.pc-badge {
  font-size: 9px; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; padding: 3px 9px;
  display: inline-flex; align-items: center; gap: 5px;
}
.pc-badge-live    { background: var(--accent); color: var(--ink); }
.pc-badge-request { background: var(--ink);    color: var(--bg);  }
.pc-badge-local   { border: 1.5px solid var(--ink); color: var(--ink); }

/* Accent bar */
.pc-accent-bar { width: 36px; height: 4px; margin-bottom: .85rem; flex-shrink: 0; }

/* Title */
.pc-title {
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
  margin-bottom: .9rem;
}

/* Story text */
.pc-story {
  font-size: 15px; color: var(--ink-mid); line-height: 1.8;
  max-width: 680px; margin-bottom: 1.5rem;
}

/* Disclaimer box */
.pc-disclaimer {
  background: var(--accent);
  border: 1.5px solid rgba(10,10,10,.3);
  padding: .65rem 1rem;
  margin-bottom: 1.5rem; max-width: 640px;
  display: flex; gap: .75rem; align-items: flex-start;
}
.pc-disclaimer-label {
  font-size: 8px; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; flex-shrink: 0; margin-top: .15em;
  background: var(--ink); color: var(--accent); padding: 2px 5px;
}
.pc-disclaimer p {
  font-size: 12px; color: var(--ink); line-height: 1.5; font-weight: 500;
}

/* Feature list */
.pc-features {
  list-style: none; margin-bottom: 1.25rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  column-gap: 1.5rem; row-gap: .3rem;
}
.pc-features li {
  font-size: 13px; color: var(--ink-mid); line-height: 1.5;
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .3rem 0; border-bottom: 1px solid rgba(10,10,10,.06);
}
.pc-features li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink); flex-shrink: 0; margin-top: .48em;
}

/* Tags */
.pc-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.pc-tags span {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; border: 1.5px solid rgba(10,10,10,.25);
  color: var(--ink-light); padding: 3px 9px;
}

/* Demo buttons */
.pc-demo-btn {
  font-family: var(--font); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  border: var(--border); background: var(--ink); color: var(--bg);
  padding: 12px 20px; display: inline-flex; align-items: center; gap: 7px;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), background .2s, color .2s;
  text-decoration: none; white-space: nowrap;
}
.pc-demo-btn:hover { box-shadow: var(--shadow-sm); transform: translate(-3px,-3px); }
.pc-demo-btn-accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.pc-demo-btn-accent:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.pc-demo-label {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-light);
  text-align: right; line-height: 1.4; max-width: 160px;
}

/* ─── Featured / Neuestes Projekt Section ──────────────────────────────── */
.featured-section {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--ink);
  border-bottom: var(--border);
}
.featured-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }

.featured-header { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.featured-header h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--bg);
  line-height: .93; letter-spacing: -.04em; font-weight: 700;
  margin-bottom: 1rem;
}
.featured-intro {
  font-size: 14px; color: rgba(245,245,240,.6); line-height: 1.75;
  max-width: 640px;
  border-left: 3px solid var(--accent); padding-left: 1rem;
}

.featured-section .project-card {
  background: #141414;
  border-color: rgba(245,245,240,.15);
}
.featured-section .project-card:first-child { border-top-color: rgba(245,245,240,.15); }
.featured-section .project-card:hover { background: #1c1c1c; }
.featured-section .pc-cat   { color: rgba(245,245,240,.4); }
.featured-section .pc-title { color: var(--bg); }
.featured-section .pc-story { color: rgba(245,245,240,.65); }
.featured-section .pc-features li { color: rgba(245,245,240,.65); border-bottom-color: rgba(245,245,240,.08); }
.featured-section .pc-features li::before { background: var(--bg); }
.featured-section .pc-tags span { border-color: rgba(245,245,240,.2); color: rgba(245,245,240,.45); }
.featured-section .pc-demo-label { color: rgba(245,245,240,.3); }

/* Benefits bar */
.featured-benefits {
  display: grid; grid-template-columns: repeat(4,1fr);
  margin-top: clamp(3rem, 5vw, 5rem);
  border: 1.5px solid rgba(245,245,240,.15);
}
.featured-benefit {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-right: 1.5px solid rgba(245,245,240,.15);
}
.featured-benefit:last-child { border-right: none; }
.featured-benefit-kicker {
  font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
  display: flex; align-items: center; gap: 10px;
}
.featured-benefit-kicker::before {
  content: ""; width: 16px; height: 2px; background: var(--accent); flex-shrink: 0;
}
.featured-benefit-title {
  font-size: 16px; font-weight: 700; color: var(--bg); margin-bottom: .4rem; line-height: 1.2;
}
.featured-benefit-text {
  font-size: 13px; color: rgba(245,245,240,.5); line-height: 1.65; font-weight: 400;
}
@media (max-width: 900px) {
  .featured-benefits { grid-template-columns: repeat(2,1fr); }
  .featured-benefit:nth-child(2) { border-right: none; }
  .featured-benefit:nth-child(3),
  .featured-benefit:nth-child(4) { border-top: 1.5px solid rgba(245,245,240,.15); }
  .featured-benefit:nth-child(4) { border-right: none; }
}
@media (max-width: 600px) {
  .featured-benefits { grid-template-columns: 1fr; }
  .featured-benefit { border-right: none !important; border-top: 1.5px solid rgba(245,245,240,.15) !important; }
  .featured-benefit:first-child { border-top: none !important; }
}

/* ─── Expertise Section ─────────────────────────────────────────────────── */
.expertise-section {
  padding: clamp(5rem, 10vw, 8rem) 0;
  border-bottom: var(--border);
}
.expertise-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.expertise-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.expertise-header h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: .93; letter-spacing: -.04em; font-weight: 700;
  margin-bottom: 1rem;
}
.expertise-intro {
  font-size: 14px; color: var(--ink-mid); line-height: 1.75;
  max-width: 600px;
  border-left: 3px solid var(--accent); padding-left: 1rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: var(--border);
  margin-bottom: 0;
}

.ex-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-right: var(--border);
  border-bottom: var(--border);
  transition: background .2s var(--ease);
}
.ex-card:nth-child(even) { border-right: none; }
.ex-card:nth-last-child(-n+2) { border-bottom: none; }
.ex-card:hover { background: #fafaf5; }

.ex-card-icon {
  width: 44px; height: 44px;
  border: var(--border); display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 1.1rem; flex-shrink: 0;
}
.ex-card-title {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700; letter-spacing: -.02em;
  margin-bottom: .6rem;
}
.ex-card-text {
  font-size: 13px; color: var(--ink-mid); line-height: 1.75;
  margin-bottom: 1.1rem;
}
.ex-tags {
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.ex-tags span {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; border: 1.5px solid rgba(10,10,10,.18);
  color: var(--ink-light); padding: 3px 8px;
  transition: background .15s, color .15s, border-color .15s;
}
.ex-card:hover .ex-tags span {
  border-color: rgba(10,10,10,.3); color: var(--ink-mid);
}

/* Offer strip */
.expertise-offer {
  border: var(--border);
  border-top: none;
  padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  background: var(--accent);
}
.eo-text {
  font-size: 14px; line-height: 1.65; color: var(--ink); flex: 1;
}
.eo-text strong { font-weight: 800; display: block; margin-bottom: .25rem; font-size: 15px; }

/* ─── Stack Section ─────────────────────────────────────────────────────── */
.stack-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-bottom: var(--border);
}
.stack-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.stack-grid-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.stack-head h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -.04em; line-height: .93; font-weight: 700;
  margin-bottom: 1rem;
}
.stack-head p { font-size: 14px; color: var(--ink-mid); line-height: 1.7; max-width: 420px; }
.stack-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.stack-pill {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; border: var(--border);
  padding: 8px 16px; color: var(--ink);
  transition: background .2s var(--ease), color .2s, box-shadow .2s var(--ease), transform .2s var(--ease);
}
.stack-pill:hover {
  background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow-sm); transform: translate(-2px,-2px);
}

/* ─── Contact ───────────────────────────────────────────────────────────── */
.contact-section {
  background: var(--dark-bg); color: var(--dark-light);
  padding: clamp(5rem, 10vw, 8rem) 0;
}
.contact-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start;
}
.contact-copy h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  letter-spacing: -.04em; line-height: .93; font-weight: 700;
  margin-bottom: 1.1rem;
}
.contact-lead {
  font-size: 14px; color: rgba(245,245,240,.6); line-height: 1.8; margin-bottom: 1.5rem;
}

/* Services list */
.contact-services {
  list-style: none; margin-bottom: 1.75rem;
  display: flex; flex-direction: column;
}
.contact-services li {
  font-size: 13px; color: rgba(245,245,240,.65); line-height: 1.5;
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem 0; border-bottom: 1px solid rgba(245,245,240,.07);
}
.contact-services li:first-child { border-top: 1px solid rgba(245,245,240,.07); }
.contact-services li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* Contact details */
.contact-details { display: flex; flex-direction: column; gap: .5rem; }
.cd-email {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: 14px; font-weight: 700; color: var(--dark-light);
  transition: color .2s;
}
.cd-email:hover { color: var(--accent); }
.cd-email svg   { opacity: .5; flex-shrink: 0; }
.cd-note {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(245,245,240,.3);
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field  { display: flex; flex-direction: column; gap: .4rem; }
.form-field label {
  font-size: 10px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(245,245,240,.4);
}
.form-field label span { color: rgba(245,245,240,.2); }
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(245,245,240,.05);
  border: 2px solid rgba(245,245,240,.15);
  color: var(--dark-light); font-family: var(--font);
  font-size: 14px; padding: 12px 14px; outline: none;
  transition: border-color .2s; width: 100%;
  appearance: none; -webkit-appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(245,245,240,.25); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--accent); }
.form-field input.invalid,
.form-field textarea.invalid { border-color: #ff3b30; }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field select option { background: var(--dark-bg); color: var(--dark-light); }
.field-error  { font-size: 11px; color: #ff6b5b; min-height: 1em; }
.field-counter{ font-size: 11px; color: rgba(245,245,240,.25); text-align: right; }
.field-counter.over-limit { color: #ff3b30; }
.form-consent { display: flex; flex-direction: column; gap: .4rem; }
.checkbox-wrap {
  display: flex; align-items: flex-start; gap: .75rem;
}
.checkbox-wrap input[type=checkbox] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: .1em;
  accent-color: var(--accent); background: transparent;
}
.checkbox-wrap > span:last-child {
  font-size: 12px; color: rgba(245,245,240,.5); line-height: 1.6;
}
.inline-link {
  background: none; border: none; font-family: var(--font);
  font-size: inherit; color: rgba(245,245,240,.5);
  text-decoration: underline; padding: 0;
}
.inline-link:hover { color: var(--dark-light); }
.form-success, .form-error-msg {
  border: 2px solid; padding: 12px 16px; font-size: 13px;
  display: flex; align-items: center; gap: .5rem; line-height: 1.5;
}
.form-success   { border-color: var(--accent); color: var(--dark-light); background: rgba(255,229,0,.08); }
.form-error-msg { border-color: #ff3b30; color: #ff6b5b; }
.form-note { font-size: 11px; color: rgba(245,245,240,.2); line-height: 1.5; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg); border-top: var(--border);
  padding: 2rem 0;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.brand-mark {
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  background: var(--ink); color: var(--bg); padding: 4px 8px;
}
.footer-brand p { font-size: 12px; color: var(--ink-light); }
.footer-nav { display: flex; align-items: center; gap: 1.25rem; }
.text-link {
  background: none; border: none; font-family: var(--font);
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-light); padding: 0;
  transition: color .2s;
}
.text-link:hover { color: var(--ink); }

/* ─── Modals ────────────────────────────────────────────────────────────── */
.legal-modal {
  border: var(--border); padding: 0;
  background: var(--bg); color: var(--ink);
  max-width: 600px; width: calc(100vw - 3rem);
  max-height: 85vh;
  position: fixed; top: 50%; left: 50%;
  translate: -50% -50%;
  overflow: hidden;
  /* display intentionally NOT set here — browser keeps dialog hidden when closed */
}
.legal-modal[open] {
  display: flex; flex-direction: column;
}
.legal-modal::backdrop { background: rgba(10,10,10,.65); }
/* When a modal is open: restore native cursor (custom cursor is hidden via JS) */
body.modal-open,
body.modal-open *,
body.modal-open a,
body.modal-open button { cursor: auto !important; }
.modal-panel { overflow-y: auto; padding: 2rem; flex: 1; }
.modal-close {
  position: sticky; top: 0; float: right;
  background: var(--ink); color: var(--bg);
  border: none; padding: 9px; margin: 0 0 .5rem .5rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: #333; }
.modal-tag {
  display: block; font-size: 9px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-light); margin-bottom: .75rem;
}
.modal-panel h2 {
  font-size: 1.75rem; letter-spacing: -.03em; margin-bottom: 1.5rem;
}
.legal-body { display: flex; flex-direction: column; gap: 1.5rem; }
.legal-block h3 {
  font-size: .75rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-light); margin-bottom: .5rem;
}
.legal-block p {
  font-size: 13px; line-height: 1.7; color: var(--ink-mid);
}
.legal-block p + p { margin-top: .5rem; }
.legal-block a { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stack-grid-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .stack-head p { max-width: 100%; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-side  { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .nav-links  { display: none; }
  .pc-layout  { grid-template-columns: 1fr; gap: 1.5rem; }
  .pc-action-col { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .expertise-grid { grid-template-columns: 1fr; }
  .ex-card { border-right: none; }
  .ex-card:nth-last-child(-n+2) { border-bottom: var(--border); }
  .ex-card:last-child { border-bottom: none; }
}
@media (max-width: 600px) {
  .hero h1 { line-height: .92; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat  { padding: 1rem .75rem; }
  .pc-features { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav   { flex-direction: row; }
}
@media (max-width: 400px) {
  .hero-stats { grid-template-columns: 1fr; }
}

/* ─── Demo-Button als <button> ──────────────────────────────────────────── */
button.pc-demo-btn {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* ─── Demo-Request Modal ─────────────────────────────────────────────────── */
.demo-request-modal .modal-panel {
  max-width: 560px;
}

.demo-request-modal .modal-tag {
  background: var(--accent);
  color: var(--ink);
}

.demo-request-modal h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  letter-spacing: -.03em;
  margin-bottom: .4rem;
}

.demo-request-modal .modal-subtitle {
  font-size: .875rem;
  color: var(--ink-light);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* Form fields inside the modal */
.dr-form { display: flex; flex-direction: column; gap: 1rem; }

.dr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dr-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.dr-field label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.dr-field input,
.dr-field select,
.dr-field textarea {
  width: 100%;
  padding: .7rem .9rem;
  background: var(--bg);
  border: var(--border);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  transition: box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.dr-field input:focus,
.dr-field select:focus,
.dr-field textarea:focus {
  box-shadow: 3px 3px 0 var(--ink);
}
.dr-field input.invalid,
.dr-field textarea.invalid {
  border-color: #dc2626;
  box-shadow: 2px 2px 0 #dc2626;
}
.dr-field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }

.dr-error {
  font-size: .72rem;
  font-weight: 700;
  color: #dc2626;
  min-height: 1em;
  letter-spacing: .02em;
}
#dr-consent-error {
  font-size: .72rem;
  font-weight: 700;
  color: #dc2626;
  display: block;
  margin-top: -.4rem;
}

.dr-consent {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-mid);
  line-height: 1.45;
  padding: .75rem;
  border: 1.5px solid transparent;
  transition: border-color .15s;
}
.dr-consent:hover { border-color: var(--ink); }
.dr-consent input[type=checkbox] {
  width: 18px; height: 18px;
  border: var(--border);
  background: var(--bg);
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  margin-top: .1rem;
  cursor: pointer;
  position: relative;
  transition: background .15s;
}
.dr-consent input[type=checkbox]:checked {
  background: var(--ink);
}
.dr-consent input[type=checkbox]:checked::after {
  content: '';
  position: absolute;
  inset: 3px 3px 3px 3px;
  background: var(--accent);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.dr-success {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: #0a0a0a;
  color: #f5f5f0;
  font-size: .875rem;
  font-weight: 600;
}
.dr-success svg { flex-shrink: 0; }

.dr-error-msg {
  padding: .875rem 1.25rem;
  background: #fee2e2;
  border: 1.5px solid #dc2626;
  color: #991b1b;
  font-size: .82rem;
  font-weight: 600;
}

/* Inline-link im Modal (heller Hintergrund) */
.demo-request-modal .inline-link {
  color: var(--ink) !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(10,10,10,.35) !important;
}
.demo-request-modal .inline-link:hover {
  color: var(--ink) !important;
  text-decoration-color: var(--ink) !important;
}

/* Demo-Modal Dialog-Basis (eigenständig, kein legal-modal) */
.demo-request-modal {
  border: var(--border);
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  max-width: 580px;
  width: calc(100vw - 3rem);
  max-height: 90vh;
  margin: auto;
  overflow: hidden;
}
.demo-request-modal[open] {
  display: flex;
  flex-direction: column;
}
.demo-request-modal::backdrop {
  background: rgba(10, 10, 10, .65);
}

@media (max-width: 540px) {
  .dr-row { grid-template-columns: 1fr; }
  .demo-request-modal .modal-panel { padding: 1.75rem 1.25rem 1.5rem; }
}
