/* ====================== Reset & Basis ====================== */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { min-height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #e5e7eb;
  background-color: #111827; /* Gray-900 */
  max-width: 100%;
  overflow-x: hidden;
}

/* Skip-Link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: #10b981; color: #0b1220; padding: .6rem .9rem; border-radius: .5rem;
}
.skip-link:focus { left: .75rem; top: .75rem; }

/* ================= Header / Navigation ================= */
.site-header {
  position: sticky; top: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  z-index: 1000;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo { width: 50px; height: 50px; transition: transform .3s ease; }
.logo-link:hover .logo { transform: scale(1.08); }

.main-nav { display: flex; align-items: center; }
.main-nav .nav-list {
  display: flex; justify-content: center; list-style: none; margin: 0; padding: 0;
}
.main-nav .nav-list li { margin: 0 1.5rem; }
.main-nav .nav-list a {
  text-decoration: none; color: #e5e7eb;
  font-weight: 600; font-size: 1rem;
  transition: color .3s ease, transform .2s ease;
}
.main-nav .nav-list a:hover { color: #10b981; transform: translateY(-2px); }

/* Burger-Menü */
.burger-menu {
  display: none; cursor: pointer; width: 30px; height: 20px; position: relative; background: none; border: 0;
}
.burger-menu span {
  background: #e5e7eb; height: 3px; width: 100%; position: absolute; left: 0; transition: all .3s ease;
}
.burger-menu span:nth-child(1){ top: 0; }
.burger-menu span:nth-child(2){ top: 8px; }
.burger-menu span:nth-child(3){ top: 16px; }

/* ================= Sections ================= */
.section { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; }

/* ================= HERO / Intro ================= */
.intro {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(16,185,129,.18), transparent 60%),
    radial-gradient(1000px 600px at 90% 0%, rgba(59,130,246,.12), transparent 65%),
    linear-gradient(170deg, #0f172a 0%, #111827 55%, #0b1220 100%);
  color: #e5e7eb;
  text-align: center;
  padding: 6.5rem 1.5rem 6rem;
}

/* Tech-Polygone unter H1 */
.intro .section-head { position: relative; z-index: 2; }
.intro .section-head::before {
  content: "";
  position: absolute;
  inset: -40px -24px -48px -24px;
  z-index: -1;
  background:
    repeating-linear-gradient( 60deg, rgba(148,163,184,0.06) 0 2px, transparent 2px 28px),
    repeating-linear-gradient(-60deg, rgba(148,163,184,0.05) 0 2px, transparent 2px 28px),
    radial-gradient(600px 280px at 20% 80%, rgba(16,185,129,0.20), transparent 60%),
    radial-gradient(500px 260px at 80% 20%, rgba(59,130,246,0.18), transparent 65%),
    linear-gradient(180deg, transparent, rgba(0,0,0,0.18));
  -webkit-clip-path: polygon(0% 15%, 18% 10%, 35% 16%, 52% 9%, 72% 14%, 100% 8%, 100% 85%, 77% 92%, 56% 86%, 33% 93%, 12% 88%, 0% 95%);
          clip-path: polygon(0% 15%, 18% 10%, 35% 16%, 52% 9%, 72% 14%, 100% 8%, 100% 85%, 77% 92%, 56% 86%, 33% 93%, 12% 88%, 0% 95%);
  filter: blur(1px) saturate(110%);
  opacity: .9;
}

/* Intro H1 + Unterzeile */
.intro .section-head h1 {
  display: inline-block;
  position: relative;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 1.25rem 0 1rem;
  padding: .6rem 1rem;
  color: #ecfdf5;
  text-shadow: 0 1px 0 rgba(0,0,0,.35), 0 8px 28px rgba(0,0,0,.45);
  background: linear-gradient(180deg, #f8fafc 0%, #d1fae5 100%);
  -webkit-background-clip: text;
          background-clip: text;
}
.intro .section-head h1::before {
  content: "";
  position: absolute;
  inset: -.35rem -.75rem;
  background: linear-gradient(180deg, rgba(16,185,129,0.10), rgba(16,185,129,0.06));
  border: 1px solid rgba(16,185,129,0.35);
  box-shadow: inset 0 0 1px rgba(255,255,255,0.06), 0 14px 36px rgba(0,0,0,0.32);
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  border-radius: 14px;
  z-index: -1;
}
.intro .section-head h1::after {
  content: "Webentwicklung • Design • Appentwicklung";
  display: block;
  margin: .9rem auto 0;
  padding: .5rem .9rem;
  width: fit-content;
  font-size: clamp(0.95rem, 2.3vw, 1.15rem);
  font-weight: 600;
  letter-spacing: .02em;
  color: #eafdf5;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}

/* Einleitungstext */
.vorstellung {
  font-size: 1rem; font-weight: 400; color: #cbd5e1;
  line-height: 1.65; max-width: 1100px; margin: 1rem auto 0; padding: 0 1rem;
}

/* Highlights */
.highlights-container {
  max-width: 1000px;
  margin: auto;
  padding: 0; /* statt 'auto' */
}
.highlights {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1rem;
  align-items: stretch;
}
.highlights li {
  display: flex; flex-direction: column; gap: .25rem;
  align-items: center; justify-content: center; text-align: center;
  min-height: 76px; padding: 0 1rem; line-height: 1.35;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 1.08rem; font-weight: 600;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.highlights li::after {
  content: attr(data-desc);
  display: block;
  max-width: 28ch;
  font-weight: 300;
  font-size: .8rem;
  line-height: 1.45;
  color: #cbd5e1;
  opacity: .95;
}
.highlights li:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(16,185,129,0.35);
}

/* ================= Projekte (Liste) ================= */
.projects { background: #111827; padding: 4rem 1.5rem; position: relative; z-index: 1; }
.projects .section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 1rem; position: relative;
}
.projects .section-head h2::after{
  content: "Ausgewählte Arbeiten • Technologie • Innovation";
  display: block; font-size: clamp(.95rem, 2.4vw, 1.15rem); font-weight: 400; color: #cbd5e1;
  margin-top: .4rem; letter-spacing: .01em;
  background: linear-gradient(90deg,#34d399,#10b981);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 2rem; margin-top: 2rem;
}
.card {
  display: block; text-decoration: none; color: inherit;
  background: #1f2937; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 26px rgba(0,0,0,.30);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(16,185,129,0.35);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.card-media {
  width: 100%; height: 200px; object-fit: cover; object-position: center; display: block;
}
.card-body { padding: 1.25rem 1.25rem 1.3rem; }
.card-body h3 { font-size: 1.35rem; font-weight: 700; color: #f3f4f6; margin: 0 0 .45rem; }
.card-body p { font-size: .98rem; color: #9ca3af; margin: 0 0 1rem; }
.tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.tags span {
  background: #374151; color: #e5e7eb;
  padding: .28rem .7rem; border-radius: 999px; font-size: .86rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.06);
}

/* ================= Projekt-Detailseiten ================= */
.container { max-width: 1200px; margin: 0 auto; }
.container.narrow { max-width: 860px; }

/* Hero */
.project-hero {
  text-align: center;
  padding: 5rem 1.5rem 2.25rem;   /* konsolidiert */
  margin-bottom: .5rem;
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(16,185,129,.12), transparent 60%),
    radial-gradient(800px 380px at 90% 0%, rgba(59,130,246,.10), transparent 65%);
}
.project-hero.has-polys { position: relative; overflow: clip; }
.project-hero.has-polys::before {
  content: "";
  position: absolute; inset: -32px -24px -40px -24px; z-index: -1;
  background:
    repeating-linear-gradient(60deg, rgba(148,163,184,0.05) 0 2px, transparent 2px 28px),
    repeating-linear-gradient(-60deg, rgba(148,163,184,0.04) 0 2px, transparent 2px 28px),
    radial-gradient(520px 240px at 18% 78%, rgba(16,185,129,0.14), transparent 60%),
    radial-gradient(460px 220px at 82% 18%, rgba(59,130,246,0.12), transparent 65%),
    linear-gradient(180deg, transparent, rgba(0,0,0,0.12));
  -webkit-clip-path: polygon(0% 15%, 18% 10%, 35% 16%, 52% 9%, 72% 14%, 100% 8%, 100% 85%, 77% 92%, 56% 86%, 33% 93%, 12% 88%, 0% 95%);
          clip-path: polygon(0% 15%, 18% 10%, 35% 16%, 52% 9%, 72% 14%, 100% 8%, 100% 85%, 77% 92%, 56% 86%, 33% 93%, 12% 88%, 0% 95%);
  filter: blur(.5px) saturate(108%); opacity: .72;
}
.project-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 .6rem; line-height: 1.12;
  background: linear-gradient(180deg, #ecfdf5 0%, #a7f3d0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.project-subtitle {
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: #cbd5e1; margin: 0 auto 1.75rem; max-width: 62ch;
}

/* Tech-Chips */
.tech-grid {
  list-style: none; margin: 1.25rem auto 1.75rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem; max-width: 760px;
}
.tech-chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .55rem .9rem; border-radius: 12px;
  font-size: .95rem; font-weight: 600; color: #e5e7eb; text-align: center; white-space: nowrap;
}
.tech-chip.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  box-shadow: inset 0 0 1px rgba(255,255,255,0.06), 0 10px 24px rgba(0,0,0,.25);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.tech-chip.glass:hover {
  transform: translateY(-2px);
  border-color: rgba(16,185,129,0.35);
  background: linear-gradient(180deg, rgba(16,185,129,0.10), rgba(255,255,255,0.04));
}

/* CTA-Link */
.cta-row {
  display: flex; justify-content: center; align-items: center;
  margin: 1.25rem 0 2.25rem;
}
.glass-link {
  display: inline-block;
  padding: .75rem 1.1rem; border-radius: 12px; font-weight: 800; text-decoration: none; letter-spacing: .01em;
  color: #0b1220;
  background: linear-gradient(180deg, rgba(16,185,129,0.90), rgba(52,211,153,0.95));
  border: 1px solid rgba(16,185,129,0.55);
  box-shadow: 0 14px 30px rgba(16,185,129,0.22);
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}
.glass-link:hover {
  transform: translateY(-1px);
  filter: saturate(110%);
  box-shadow: 0 18px 36px rgba(16,185,129,0.28);
}
.glass-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.35);
  border-radius: 12px;
}

/* Bild / Visual – konsolidiert */
.project-visual { padding: 0 1.5rem 2.25rem; margin-top: 0; }
.project-visual .container {
  display: flex;
  justify-content: center;
}

/* Einheitliche, kleinere Bildgröße für alle Projektseiten */
.cover-link {
  display: block;
  width: 100%;
  max-width: 780px;            /* Zielgröße Desktop */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
}
.cover-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.35);
  border-radius: 14px;
}
.cover-link .project-media {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cover-link:hover .project-media { transform: translateY(-2px); }

/* Detail-Content */
.project-detail { padding-top: 2rem; text-align: left; }
.project-detail .container,
.project-detail .container.narrow { max-width: 820px; }
.project-detail h2,
.project-detail h3,
.project-detail p,
.project-detail .task-list { text-align: left; }
.project-detail p {
  max-width: 68ch; margin-bottom: 1rem; color: #cbd5e1;
}
.project-detail .task-list { margin: .5rem 0 1.25rem 1.1rem; line-height: 1.6; color: #9ca3af; }
.result-note { margin-top: 1rem; font-weight: 600; color: #e5e7eb; }

/* Optionales Bild innerhalb des Detailtexts (anderer Kontext als Visual oben) */
.project-detail .project-media {
  width: 100%; height: 300px;
  object-fit: cover; object-position: center;
  border-radius: 12px; margin-bottom: 2rem; display: block;
}

/* ================= Footer ================= */
.site-footer { background: #0b1220; color: #e5e7eb; text-align: center; padding: 2rem 1.5rem; }
.site-footer p { font-size: 1rem; font-weight: 300; }
.footer-link { color: #e5e7eb; text-decoration: none; font-size: 1rem; font-weight: 400; margin-top: .5rem; display: inline-block; transition: color .2s ease; }
.footer-link:hover { color: #10b981; }

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .highlights { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .section { padding: 3rem 1rem; }
  .intro { padding: 5rem 1rem 3.25rem; }
  .highlights { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .card-media { height: 170px; }

  /* Mobile Nav */
  .main-nav .nav-list {
    display: none; flex-direction: column; align-items: center;
    background: rgba(17,24,39,0.92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    position: absolute; top: 100%; left: 0; width: 100%; padding: 1rem;
  }
  .main-nav .nav-list.active { display: flex; }
  .main-nav .nav-list li { margin: .5rem 0; }
  .burger-menu { display: block; margin-left: auto; }
  .burger-menu.active span:nth-child(1){ transform: rotate(45deg); top: 8px; }
  .burger-menu.active span:nth-child(2){ opacity: 0; }
  .burger-menu.active span:nth-child(3){ transform: rotate(-45deg); top: 8px; }

  /* Detailseiten */
  .project-detail .container,
  .project-detail .container.narrow { max-width: 94%; }
  .project-detail p { max-width: 100%; }
}
@media (max-width: 480px) {
  .intro { padding: 4.25rem .75rem 2.75rem; }
  .vorstellung { font-size: .96rem; }
  .card-body h3 { font-size: 1.2rem; }
  .card-body p { font-size: .92rem; }
  .projects .section-head h2::after { font-size: .92rem; }
  .project-detail .project-media { height: 170px; }
}
/* === Kontaktformular Fix === */
.contact-form {
  max-width: 600px;
  margin: 3rem auto;
  display: grid;
  gap: 1.2rem;
  padding: 2rem;
  background: rgba(255,255,255,0.02); /* leichter Glas-Effekt */
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 1rem;
  font-weight: 500;
  color: #e5e7eb;
  margin-bottom: .45rem;
}

.form-group input,
.form-group textarea {
  background: rgba(15,23,42,0.85); /* Slate-900 transparent */
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 10px;
  padding: .9rem 1rem;
  color: #e5e7eb;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(16,185,129,0.55);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
  background: #0b1220;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* Button auf Formular-Breite anpassen */
.contact-form button {
  justify-self: start;
  padding: .95rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(180deg, #10b981, #34d399);
  color: #0b1220;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(16,185,129,0.22);
  transition: transform .15s ease, background .25s ease, box-shadow .25s ease;
}

.contact-form button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #34d399, #10b981);
  box-shadow: 0 14px 28px rgba(16,185,129,0.28);
}


/* Frame responsiv runter skalieren (nur noch auf Frame anwenden) */
@media (max-width: 1280px) { .cover-link { max-width: 900px; } }
@media (max-width: 1024px) { .cover-link { max-width: 820px; } }
@media (max-width: 820px)  { .cover-link { max-width: 100%; } }

/* Abstand nur im Danke-Hero */
.project-hero .cta-row {
  gap: .9rem;
  flex-wrap: wrap;
}
/* ===== 404 Seite (ohne Suche) ===== */
.error-hero {
  padding-top: 4.25rem;
  padding-bottom: 2.25rem;
}

.error-code {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 auto .5rem;
  font-size: clamp(3rem, 16vw, 7rem);
  background: linear-gradient(180deg, #ecfdf5 0%, #a7f3d0 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
  filter: drop-shadow(0 10px 30px rgba(16,185,129,.08));
  opacity: .95;
}

@keyframes scan {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 12px, 0 0; }
}
.error-code::after {
  content: "";
  display: block;
  height: 4px;
  margin: .4rem auto 0;
  width: clamp(120px, 28vw, 220px);
  background:
    repeating-linear-gradient(90deg, rgba(16,185,129,.35) 0 2px, transparent 2px 6px),
    linear-gradient(90deg, rgba(16,185,129,.45), rgba(52,211,153,.35));
  border-radius: 999px;
  animation: scan 1.8s linear infinite;
  opacity: .8;
}

@media (max-width: 820px) {
  .error-hero { padding-top: 3.5rem; padding-bottom: 1.75rem; }
}
/* === Hello-Section: nahtloser Übergang zwischen Hero (.intro) und Projekte (.projects) === */
.hello{
  position: relative;
  isolation: isolate;               /* saubere Ebenen für die Overlays */
  margin-top: -8px;                 /* leichtes Überlappen mit dem Hero, beseitigt Haarlinien */
  padding-top: 3.25rem;
  padding-bottom: 2.75rem;
  text-align: center;
  background: #111827;              /* identisch zu Body/Projects -> keine Kante nach unten */
  border: 0;                        /* evtl. Kanten entfernen */
}

/* weiche Einblendung am oberen Rand, von Hero in #111827 */
.hello::before{
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -44px;                       /* reicht in den Hero hinein */
  height: 44px;
  pointer-events: none;
  /* von transparent (Hero) zu Seitenfarbe (#111827) */
  background: linear-gradient(to bottom, rgba(17,24,39,0) 0%, #111827 100%);
  z-index: -1;
}

/* dezente, „schicke“ Glows innerhalb der Sektion (ohne harte Kanten) */
.hello::after{
  content: "";
  position: absolute; inset: 0;
  pointer-events: none; z-index: -1;
  background:
    radial-gradient(800px 360px at 15% 0%, rgba(16,185,129,.10), transparent 60%),
    radial-gradient(700px 320px at 85% 10%, rgba(59,130,246,.08), transparent 65%);
  filter: saturate(108%);
}

/* Headline + Unterzeile (wie gehabt, aber ohne Pseudo-Kante) */
.hello .section-head h2{
  font-size: clamp(1.9rem, 3.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 .6rem;
  background: linear-gradient(180deg, #ecfdf5 0%, #a7f3d0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.hello .section-head h2::after{
  content: "Moderne, schnelle & zugängliche Websites";
  display: block;
  margin-top: .35rem;
  font-size: clamp(.95rem, 2.4vw, 1.1rem);
  font-weight: 500;
  color: #cbd5e1;
  background: linear-gradient(90deg,#34d399,#10b981);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hello-lead{
  max-width: 68ch;
  margin: .75rem auto 0;
  padding: 0 1rem;
  font-size: 1.04rem;
  line-height: 1.7;
  color: #cbd5e1;
}

@media (max-width: 820px){
  .hello{ margin-top: -6px; padding-top: 2.5rem; padding-bottom: 2.25rem; }
  .hello-lead{ font-size: 1rem; }
}
/* ===== Mobile H2 noch kleiner (fließend via clamp) ===== */
@media (max-width: 480px) {
  .hello .section-head h2 {
    /* vorher: clamp(1.25rem, 4.6vw, 1.45rem) */
    font-size: clamp(1.35rem, 5vw, 1.6rem);
    line-height: 1.22;
    letter-spacing: -0.01em;
  }

  .hello .section-head h2::after {
    /* Unterzeile dezenter */
    font-size: clamp(0.85rem, 3.8vw, 0.95rem);
  }

  .projects .section-head h2 {
    /* vorher: clamp(1.15rem, 4.4vw, 1.35rem) */
    font-size: clamp(1.25rem, 4.8vw, 1.5rem);
    line-height: 1.22;
  }

  .projects .section-head h2::after {
    font-size: clamp(0.82rem, 3.6vw, 0.92rem);
  }
}
/* AutoShow – Startzustand (tiefer & weicher) */
.autoShow {
  opacity: 0;
  transform: translateY(64px) scale(.98); /* von unten rein */
  filter: blur(6px);
  will-change: opacity, transform, filter;
  transition:
    opacity 1.15s cubic-bezier(.22,.61,.36,1),
    transform 1.15s cubic-bezier(.22,.61,.36,1),
    filter 1.15s cubic-bezier(.22,.61,.36,1);
}

/* sichtbar */
.autoShow.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);      /* in Position */
  filter: blur(0);
}

/* Stagger im Grid (optional) */
.card-grid .autoShow:nth-child(1){ transition-delay: .04s; }
.card-grid .autoShow:nth-child(2){ transition-delay: .12s; }
.card-grid .autoShow:nth-child(3){ transition-delay: .20s; }

@media (prefers-reduced-motion: reduce) {
  .autoShow { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}
/* Grid-Items sollen gleich hoch strecken */
.card-grid { align-items: stretch; }

/* Karte als Flex-Container (vertikal) */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Body füllt den Rest, Inhalt vertikal stapeln */
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;                 /* nimmt den verfügbaren Platz ein */
}

/* Chips immer nach unten drücken */
.tags {
  margin-top: auto;        /* schiebt .tags an das untere Ende der Karte */
  padding-top: .75rem;     /* etwas Luft über den Chips */
}

