@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ─── Design Tokens ───────────────────────────────────────────────── */
:root {
  --bg:          #ffffff;
  --bg-alt:      #f5f5f7;
  --bg-card:     #ffffff;
  --accent:      #0071e3;
  --accent-dark: #0060c7;
  --text:        #1d1d1f;
  --text-2:      #424245;
  --text-3:      #6e6e73;
  --border:      #d2d2d7;
  --border-light:#e8e8ed;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.1);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --max-w:   1120px;
  --pad-x:   clamp(1.5rem, 5vw, 3rem);
  --pad-sec: clamp(5rem, 9vw, 8rem);
  --r:       18px;
  --r-sm:    12px;
  --t:       0.28s ease;
}

/* ─── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ─── Scroll reveal ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* ─── Shared section styles ───────────────────────────────────────── */
section { padding-block: var(--pad-sec); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.6rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-3);
  max-width: 56ch;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 24px;
  border-radius: 980px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--t);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 13px 0;
  border-radius: 0;
}
.btn-ghost::after {
  content: ' →';
  transition: transform var(--t);
  display: inline-block;
}
.btn-ghost:hover::after { transform: translateX(4px); }

/* ─── NAV ─────────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 52px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: background var(--t);
}
#navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
  transition: color var(--t);
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 980px;
  transition: background var(--t);
}
.nav-cta:hover { background: var(--accent-dark); color: #fff; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 52px; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 1.5rem var(--pad-x) 2rem;
  border-bottom: 1px solid var(--border-light);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu a {
  font-size: 17px;
  color: var(--text);
  font-weight: 400;
}
.mobile-menu a:hover { color: var(--accent); }

/* ─── HERO ────────────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 52px;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0,113,227,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-inline: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,113,227,0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 980px;
  margin-bottom: 2rem;
  border: 1px solid rgba(0,113,227,0.15);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

#hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin-bottom: 1.5rem;
  color: var(--text);
}
#hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: wordUp 0.5s forwards;
}
@keyframes wordUp { to { opacity: 1; transform: translateY(0); } }

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-3);
  max-width: 58ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.65;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3rem;
}
.hero-tag {
  font-size: 12px;
  color: var(--text-3);
  background: var(--bg-alt);
  padding: 5px 14px;
  border-radius: 980px;
  border: 1px solid var(--border-light);
}
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.35;
}
.scroll-hint span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6); }
}

/* ─── SERVICES ────────────────────────────────────────────────────── */
#leistungen { background: var(--bg-alt); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--r);
  padding: 2.25rem 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  background: rgba(0,113,227,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}
.card-icon-wrap svg { width: 26px; height: 26px; }
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.card p {
  color: var(--text-3);
  font-size: 0.93rem;
  line-height: 1.72;
  flex: 1;
  margin-bottom: 1.5rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  background: var(--bg-alt);
  color: var(--accent);
  border-radius: 980px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border: 1px solid rgba(0,113,227,0.12);
}

/* ─── ABOUT ───────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--r);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  object-fit: cover;
  object-position: center center;
  display: block;
}

.about-text .section-title { margin-bottom: 1.25rem; }
.about-text p {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 0.9rem;
  line-height: 1.72;
}

.stats-row {
  display: flex;
  gap: 2.5rem;
  margin: 2rem 0;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.stat span {
  font-size: 13px;
  color: var(--text-3);
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.skill-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.93rem;
  color: var(--text-2);
}
.skill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─── PROCESS ─────────────────────────────────────────────────────── */
#prozess { background: var(--bg-alt); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  overflow: hidden;
}
.step {
  background: var(--bg);
  padding: 2rem 1.75rem;
}
.step-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.65;
}

/* ─── CONTACT ─────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-left .section-title { margin-bottom: 1rem; }
.contact-left p {
  color: var(--text-3);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 42ch;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-2);
}
.contact-meta-item svg {
  width: 16px; height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-meta-item a { color: var(--accent); }
.contact-meta-item a:hover { text-decoration: underline; }

.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field input,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-actions { text-align: right; margin-top: 0.5rem; }
.btn-submit {
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--t);
}
.btn-submit:hover { background: var(--accent-dark); }

.form-success {
  display: none;
  padding: 2rem;
  text-align: center;
  color: #1d7f5a;
  font-size: 1rem;
  font-weight: 500;
  background: #f0faf5;
  border-radius: var(--r-sm);
}

/* ─── FOOTER ──────────────────────────────────────────────────────── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  padding-block: 3rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}
.footer-brand .nav-logo { font-size: 15px; }
.footer-brand p { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.footer-nav { display: flex; gap: 1.75rem; list-style: none; }
.footer-nav a { font-size: 13px; color: var(--text-3); transition: color var(--t); }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { text-align: right; font-size: 12px; color: var(--text-3); line-height: 1.9; }
.footer-copy a { color: var(--text-3); transition: color var(--t); }
.footer-copy a:hover { color: var(--accent); }

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .photo-placeholder { aspect-ratio: 16/9; max-height: 320px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-copy { text-align: center; }
  .footer-nav { justify-content: center; }
}
@media (max-width: 600px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 1.5rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
}
@media (min-width: 601px) {
  .mobile-menu { display: none !important; }
}

/* ─── Theme Toggle Button ─────────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t), background var(--t);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--accent);
  background: rgba(0,113,227,0.08);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

/* ─── Dark Mode ───────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:          #1c1c1e;
  --bg-alt:      #2c2c2e;
  --bg-card:     #2c2c2e;
  --text:        #f5f5f7;
  --text-2:      #d1d1d6;
  --text-3:      #8e8e93;
  --border:      #48484a;
  --border-light:#3a3a3c;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.35);
  --shadow-md:   0 8px 30px rgba(0,0,0,0.45);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.6);
}

[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

[data-theme="dark"] #navbar {
  background: rgba(28,28,30,0.85);
  border-bottom-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .mobile-menu {
  background: rgba(28,28,30,0.97);
}
[data-theme="dark"] .form-success {
  color: #4ade80;
  background: #052e16;
}
[data-theme="dark"] .tag {
  background: rgba(0,113,227,0.18);
  color: #5aabff;
  border-color: rgba(0,113,227,0.35);
}

/* ─── Content link colors (Impressum, Datenschutz) ───────────────── */
.impressum-section a,
.contact-block a,
.ds-section a,
.toc a,
.info-box a {
  color: var(--accent);
  transition: color var(--t);
}
.impressum-section a:hover,
.contact-block a:hover,
.ds-section a:hover,
.toc a:hover,
.info-box a:hover {
  color: var(--accent-dark);
}

/* ─── Container narrow (Impressum, Datenschutz) ──────────────────── */
.container-narrow {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ─── Page layout (Impressum, Datenschutz) ───────────────────────── */
.page-wrap {
  padding-top: calc(52px + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.page-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}
.page-header .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-header .subtitle { font-size: 14px; color: var(--text-3); margin-top: 0.5rem; }

/* ─── Impressum content ──────────────────────────────────────────── */
.impressum-section { margin-bottom: 2.5rem; }
.impressum-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.impressum-section p,
.impressum-section address {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.8;
  font-style: normal;
}
.impressum-section p + p { margin-top: 0.6rem; }

.contact-block {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}
.contact-block p { color: var(--text-2); line-height: 2; font-size: 1rem; }
.contact-block strong { color: var(--text); font-weight: 600; }

.divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin-block: 2.5rem;
}

/* ─── Datenschutz (TOC, Sections) ────────────────────────────────── */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}
.toc p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.toc ol { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }
.toc li { font-size: 14px; }

.ds-section { margin-bottom: 2.75rem; scroll-margin-top: 72px; }
.ds-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}
.ds-section h3 { font-size: 1rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.ds-section p { font-size: 1rem; color: var(--text-2); line-height: 1.8; }
.ds-section p + p { margin-top: 0.75rem; }
.ds-section ul, .ds-section ol { padding-left: 1.4rem; margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.3rem; }
.ds-section li { font-size: 1rem; color: var(--text-2); line-height: 1.7; }

.info-box {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}
.info-box p { font-size: 14px; color: var(--text-2); line-height: 1.7; margin: 0; }
.info-box p + p { margin-top: 0.5rem; }

/* ─── Referenzen page ────────────────────────────────────────────── */
.page-hero {
  padding-top: calc(52px + var(--pad-sec));
  padding-bottom: clamp(3rem, 5vw, 4rem);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,113,227,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-title { margin-bottom: 1rem; }
.page-hero .section-sub { margin-bottom: 0; }

.filter-wrap {
  padding-block: 2rem;
  border-bottom: 1px solid var(--border-light);
}
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 980px;
  border: 1px solid var(--border-light);
  background: var(--bg);
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--t);
}
.filter-btn:hover { color: var(--accent); border-color: rgba(0,113,227,0.3); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

#projekte { padding-top: clamp(3rem, 5vw, 4.5rem); }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
}
.proj-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.proj-card.hidden { display: none; }

.proj-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-alt);
  flex-shrink: 0;
}
.proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}
.proj-card:hover .proj-img img { transform: scale(1.03); }

.proj-img-split { display: flex; gap: 2px; background: var(--border-light); }
.proj-img-split img { width: 50%; flex-shrink: 0; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s ease; }
.proj-card:hover .proj-img-split img { transform: scale(1.03); }

.proj-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.proj-img-placeholder svg { width: 48px; height: 48px; opacity: 0.35; }

.proj-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.proj-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.proj-year { font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: 0.04em; }
.proj-cat {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(0,113,227,0.08);
  border: 1px solid rgba(0,113,227,0.12);
  padding: 2px 10px;
  border-radius: 980px;
  letter-spacing: 0.02em;
}
.proj-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.proj-desc { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 1rem; flex: 1; }
.proj-desc ul { padding-left: 1.1rem; margin-top: 0.4rem; display: flex; flex-direction: column; gap: 0.2rem; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border-light); }
.proj-tag { font-size: 11px; color: var(--text-3); background: var(--bg-alt); border: 1px solid var(--border-light); padding: 3px 10px; border-radius: 980px; }

.cert-section { background: var(--bg-alt); padding-block: clamp(4rem, 6vw, 5rem); }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 640px; }
.cert-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.cert-logo { width: 56px; height: 56px; flex-shrink: 0; object-fit: contain; }
.cert-body strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 0.2rem; }
.cert-body span { font-size: 13px; color: var(--text-3); }

.cta-band { text-align: center; padding-block: var(--pad-sec); }
.cta-band .section-title { margin-bottom: 1rem; }
.cta-band p { color: var(--text-3); font-size: 1.05rem; max-width: 50ch; margin-inline: auto; margin-bottom: 2rem; }

/* ─── Responsive (Referenzen) ────────────────────────────────────── */
@media (max-width: 960px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; max-width: 420px; }
}
@media (max-width: 600px) {
  .proj-grid { grid-template-columns: 1fr; }
}

/* ─── Dark mode (Referenzen) ─────────────────────────────────────── */
[data-theme="dark"] .proj-cat {
  background: rgba(0,113,227,0.18);
  color: #5aabff;
  border-color: rgba(0,113,227,0.35);
}
[data-theme="dark"] .proj-img-placeholder {
  background: linear-gradient(135deg, #1e2a3a 0%, #1a2535 100%);
}
