/* ==========================================================================
   EventGer.de — "Nebelwald" Theme
   Farbwelt abgeleitet vom Titelbild: Nebel-Beige, Wald-Grün, Sumach-Rot,
   Herbst-Bernstein und das warme Creme des Hundes.
   ========================================================================== */

:root {
  --bg: #0d110e;
  --bg-2: #131914;
  --surface: #19211b;
  --surface-2: #202a22;
  --line: rgba(217, 208, 193, 0.12);
  --line-strong: rgba(217, 208, 193, 0.24);

  --text: #efe8da;
  --muted: #aaa797;
  --fog: #d9d0c1;

  --red: #d42a35;
  --red-soft: #ee5a63;
  --red-deep: #8f1822;
  --sage: #7fae8b;
  --sage-deep: #3f6a50;
  --amber: #d99a45;
  --cream: #f1e6d0;

  --radius: 18px;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-head: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--red); color: #fff; }

/* Ambient glows (used on sub pages, hidden detail on main) */
.spotlight {
  position: fixed; border-radius: 50%; filter: blur(140px);
  pointer-events: none; z-index: 0; opacity: .22;
}
.spotlight-cyan   { width: 520px; height: 520px; background: var(--sage-deep); top: -140px; left: -120px; }
.spotlight-purple { width: 560px; height: 560px; background: var(--red-deep); bottom: -180px; right: -160px; }
.spotlight-amber  { display: none; }

/* Scroll progress ---------------------------------------------------------*/
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--amber));
  z-index: 200;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease, transform .4s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(13, 17, 14, 0.82);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border-bottom-color: var(--line);
}
.nav-container {
  max-width: 1240px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: var(--cream); box-shadow: 0 6px 20px rgba(212, 42, 53, .35);
}
.brand-logo svg { width: 20px; height: 20px; }
.brand-info { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.brand-name .highlight, .highlight { color: var(--red-soft); }
.brand-sub { font-size: .68rem; color: var(--fog); opacity: .75; letter-spacing: .02em; }

.nav-links { display: flex; gap: 6px; }
.nav-links a {
  position: relative; padding: 8px 14px; font-size: .9rem; font-weight: 500;
  color: var(--fog); border-radius: 999px; transition: color .25s, background .25s;
}
.nav-links a:hover { color: #fff; background: rgba(239, 232, 218, .08); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-icon-link {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: var(--fog); border: 1px solid var(--line); background: rgba(13, 17, 14, .35);
  transition: all .25s;
}
.nav-icon-link:hover { color: #fff; border-color: var(--red-soft); transform: translateY(-2px); }
.btn-coffee-nav {
  padding: 9px 18px; font-size: .88rem; font-weight: 600; border-radius: 999px;
  background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(212, 42, 53, .35);
  transition: transform .25s, background .25s;
}
.btn-coffee-nav:hover { background: var(--red-soft); transform: translateY(-2px); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  font-family: var(--font-body); border: 1px solid transparent; cursor: pointer;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff;
  box-shadow: 0 10px 30px rgba(212, 42, 53, .4);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(212, 42, 53, .55); }
.btn-primary svg { transition: transform .25s; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-secondary {
  background: rgba(13, 17, 14, .6); color: var(--cream); border-color: var(--line-strong);
}
.btn-secondary:hover { background: rgba(239, 232, 218, .14); border-color: var(--fog); }

/* ==========================================================================
   Hero — sticky scroll scene
   ========================================================================== */
.hero { position: relative; height: 138vh; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; background: var(--bg);
}

.hero-img {
  position: absolute; inset: -1%;
  background: url('hero.jpg') 52% 56% / cover no-repeat;
  transform-origin: 52% 54%; /* = Hund: Zoom zielt aufs Tier */
  will-change: transform;
  transform: scale(1) translate3d(0, 0, 0); backface-visibility: hidden;
}

.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 13, 11, .88) 0%, rgba(10, 13, 11, .62) 30%, rgba(10, 13, 11, 0) 56%),
    linear-gradient(180deg, rgba(10, 13, 11, .55) 0%, rgba(10, 13, 11, 0) 22%, rgba(10, 13, 11, 0) 70%, rgba(13, 17, 14, .95) 100%);
  opacity: .95;
}
/* zunehmende Abdunklung & Vignette beim Scrollen */
.hero-shade::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 52% 54%, transparent 20%, rgba(8, 11, 9, .9) 95%);
  opacity: var(--p, 0);
}

.fog {
  position: absolute; left: -20%; width: 140%; height: 40%;
  pointer-events: none; opacity: .3;
  background: radial-gradient(ellipse at center, rgba(222, 214, 198, .55), transparent 65%);
  will-change: transform;
}
.fog-1 { bottom: 4%; animation: fogDrift 26s ease-in-out infinite alternate; }
.fog-2 { top: 8%; opacity: .18; animation: fogDrift 34s ease-in-out infinite alternate-reverse; }
@keyframes fogDrift { from { margin-left: -4%; } to { margin-left: 4%; } }

#leaves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero-inner {
  position: relative; z-index: 3; height: 100%;
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center;
  will-change: transform, opacity;
}
/* Textspalte links — der Hund (Bildmitte) bleibt frei */
.hero-text-col { max-width: min(560px, 42vw); padding-top: 40px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(13, 17, 14, .62);
  font-size: .78rem; font-weight: 600; color: var(--fog); letter-spacing: .03em; margin-bottom: 22px;
}
.badge-dot, .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red-soft);
  box-shadow: 0 0 0 0 rgba(238, 90, 99, .6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(238, 90, 99, .55); }
  70% { box-shadow: 0 0 0 9px rgba(238, 90, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(238, 90, 99, 0); }
}
.pulse-green { background: var(--sage); animation-name: pulseG; }
@keyframes pulseG {
  0% { box-shadow: 0 0 0 0 rgba(127, 174, 139, .55); }
  70% { box-shadow: 0 0 0 9px rgba(127, 174, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 174, 139, 0); }
}
.pulse-cyan { background: var(--amber); }

.hero-heading {
  font-family: var(--font-head); font-weight: 700; line-height: 1.06; letter-spacing: -.025em;
  font-size: clamp(2.1rem, 4.3vw, 3.7rem); margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}
.gradient-text {
  display: block;
  background: linear-gradient(100deg, var(--red-soft) 0%, var(--amber) 60%, var(--cream) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-text { color: var(--fog); font-size: 1.02rem; max-width: 520px; margin-bottom: 28px; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.hero-text strong { color: var(--cream); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-hubs { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero-hub-link { font-size: .85rem; color: var(--fog); opacity: .85; border-bottom: 1px dashed var(--line-strong); padding-bottom: 2px; transition: all .25s; }
.hero-hub-link:hover { color: #fff; opacity: 1; border-bottom-color: var(--red-soft); }

.scroll-hint {
  position: absolute; z-index: 4; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--fog);
  opacity: 1; will-change: opacity;
}
.scroll-hint i { width: 1px; height: 38px; background: linear-gradient(var(--fog), transparent); animation: hint 2s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

main { position: relative; z-index: 2; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section-container { max-width: 1240px; margin: 0 auto; padding: 100px 28px; position: relative; }
#projects { padding-top: 40px; }

/* Content-Bereich gleitet über das Hero-Bild */
.hero + .section-container::before {
  content: ''; position: absolute; left: 50%; top: 0; width: 100vw; height: 100%;
  transform: translateX(-50%); z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
}

.section-header { margin-bottom: 44px; max-width: 680px; }
.section-tag {
  display: inline-block; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase;
  letter-spacing: .18em; color: var(--red-soft); margin-bottom: 12px;
}
.section-title { font-family: var(--font-head); font-size: clamp(1.9rem, 3.5vw, 2.8rem); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 14px; }
.section-desc { color: var(--muted); font-size: 1.02rem; }

/* Filter */
.filter-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  font-family: var(--font-body); font-size: .88rem; font-weight: 600; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; color: var(--fog);
  background: var(--surface); border: 1px solid var(--line); transition: all .25s;
}
.filter-btn:hover { border-color: var(--line-strong); color: #fff; }
.filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(212, 42, 53, .35); }

/* ==========================================================================
   Project cards
   ========================================================================== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.project-card {
  --accent: var(--fog);
  position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, opacity .35s ease;
}
.project-card::before { /* Cursor-Glow */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
}
.project-card::after { /* Akzentlinie */
  content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), transparent 80%); opacity: .8;
}
.project-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.project-card:hover::before { opacity: 1; }
.project-card.hidden { display: none; }

.featured-cyan   { --accent: var(--sage); }
.featured-pink   { --accent: var(--red-soft); }
.featured-purple { --accent: var(--amber); }

.card-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; position: relative; }
.card-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(239, 232, 218, .08); color: var(--fog);
}
.card-icon svg { width: 22px; height: 22px; }
.icon-emerald { background: rgba(127, 174, 139, .16); color: var(--sage); }
.icon-pink    { background: rgba(212, 42, 53, .16);  color: var(--red-soft); }
.icon-purple  { background: rgba(217, 154, 69, .16); color: var(--amber); }
.icon-cyan    { background: rgba(217, 208, 193, .12); color: var(--fog); }
.icon-amber   { background: rgba(217, 154, 69, .16); color: var(--amber); }

.card-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--fog);
  background: rgba(13, 17, 14, .4);
}
.badge-live    { color: var(--sage);     border-color: rgba(127, 174, 139, .35); }
.badge-gumroad { color: var(--red-soft); border-color: rgba(238, 90, 99, .35); }
.badge-github  { color: var(--cream);    border-color: var(--line-strong); }
.badge-wip     { color: var(--amber);    border-color: rgba(217, 154, 69, .35); }

.card-title { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 4px; position: relative; }
.card-subtitle { font-size: .88rem; font-weight: 600; color: var(--fog); margin-bottom: 14px; position: relative; }
.subtitle-emerald { color: var(--sage); }
.subtitle-pink    { color: var(--red-soft); }
.subtitle-purple  { color: var(--amber); }
.subtitle-amber   { color: var(--amber); }
.card-description { color: var(--muted); font-size: .94rem; margin-bottom: 18px; position: relative; }
.card-features-list { margin-bottom: 20px; display: grid; gap: 8px; position: relative; }
.card-features-list li { font-size: .88rem; color: var(--fog); padding-left: 22px; position: relative; }
.card-features-list li::before {
  content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.card-features-list strong { color: var(--cream); font-weight: 600; }

.tech-stack-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; position: relative; }
.tech-badge {
  font-family: var(--font-mono); font-size: .7rem; padding: 4px 10px; border-radius: 8px;
  background: rgba(239, 232, 218, .06); border: 1px solid var(--line); color: var(--fog);
}

.card-footer { margin-top: auto; position: relative; }
.card-btn-group { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-card { padding: 11px 18px; font-size: .86rem; flex: 1 1 auto; border-color: var(--line-strong); color: var(--cream); background: rgba(13, 17, 14, .45); }
.btn-card:hover { background: rgba(239, 232, 218, .12); }
.btn-playstore { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.btn-playstore:hover { background: #4d7d60; }
.btn-gumroad { background: var(--red); border-color: var(--red); color: #fff; }
.btn-gumroad:hover { background: var(--red-soft); }
.btn-github { background: rgba(239, 232, 218, .1); }
.btn-download-zip { flex: 0 1 auto; }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-discord:hover { background: #6c78f5; }

/* ==========================================================================
   Developer hubs
   ========================================================================== */
.dev-hubs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.dev-hub-card {
  display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: all .3s;
}
.dev-hub-card:hover { transform: translateY(-5px); border-color: var(--red-soft); background: var(--surface-2); }
.hub-icon-wrap { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 16px; display: grid; place-items: center; }
.hub-info { flex: 1; }
.hub-info h4 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 3px; }
.hub-info p { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.hub-arrow { font-size: 1.4rem; color: var(--red-soft); transition: transform .3s; }
.dev-hub-card:hover .hub-arrow { transform: translateX(6px); }

/* ==========================================================================
   Support
   ========================================================================== */
.support-card {
  position: relative; overflow: hidden; border-radius: 26px; padding: 56px;
  background:
    radial-gradient(600px circle at 90% 0%, rgba(212, 42, 53, .28), transparent 60%),
    radial-gradient(500px circle at 0% 100%, rgba(63, 106, 80, .35), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-strong);
}
.support-content { max-width: 720px; }
.support-badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 14px;
}
.support-title { font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; letter-spacing: -.02em; }
.support-text { color: var(--fog); margin-bottom: 14px; }
.coffee-box { margin-top: 28px; padding: 24px; border-radius: 18px; background: rgba(13, 17, 14, .55); border: 1px solid var(--line); }
.coffee-amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.amount-btn {
  font-family: var(--font-body); font-weight: 600; font-size: .92rem; cursor: pointer; padding: 10px 18px;
  border-radius: 12px; background: var(--surface); color: var(--fog); border: 1px solid var(--line); transition: all .25s;
}
.amount-btn:hover { border-color: var(--line-strong); color: #fff; }
.amount-btn.active { background: rgba(212, 42, 53, .18); border-color: var(--red-soft); color: #fff; }
.btn-paypal { background: var(--cream); color: #1a1410; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.btn-paypal:hover { background: #fff; }
.paypal-note { display: block; margin-top: 12px; font-size: .78rem; color: var(--muted); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-box { border-radius: 26px; padding: 52px; background: var(--surface); border: 1px solid var(--line); }
.contact-info { max-width: 720px; }
.contact-title { font-family: var(--font-head); font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 14px; letter-spacing: -.02em; }
.contact-desc { color: var(--muted); margin-bottom: 30px; }
.contact-items { display: grid; gap: 14px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px;
  background: rgba(13, 17, 14, .45); border: 1px solid var(--line); transition: all .25s;
}
a.contact-item:hover { border-color: var(--red-soft); transform: translateX(6px); }
.contact-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(212, 42, 53, .16); color: var(--red-soft); }
.contact-icon svg { width: 20px; height: 20px; }
.contact-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact-val { font-weight: 600; color: var(--cream); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); background: #0a0d0b; }
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 44px 28px; display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 24px;
}
.footer-brand-title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.footer-brand-sub { color: var(--fog); font-size: .85rem; opacity: .8; }
.footer-copy { color: var(--muted); font-size: .78rem; margin-top: 6px; }
.footer-right { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-right a { font-size: .88rem; color: var(--fog); transition: color .2s; }
.footer-right a:hover { color: var(--red-soft); }

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px;
  background: rgba(6, 9, 7, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box {
  width: 100%; max-width: 560px; max-height: 86vh; overflow: auto; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line-strong);
  transform: translateY(18px) scale(.98); transition: transform .3s;
}
.modal-overlay.active .modal-box { transform: none; }
.modal-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.modal-top h3 { font-family: var(--font-head); font-size: 1.3rem; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fog); font-size: 1.4rem; cursor: pointer; transition: all .2s; }
.modal-close:hover { color: #fff; border-color: var(--red-soft); }
.modal-content { padding: 24px 28px 30px; color: var(--fog); }
.modal-content h4 { font-family: var(--font-head); color: var(--cream); margin: 18px 0 6px; font-size: 1rem; }
.modal-content h4:first-child { margin-top: 0; }
.modal-content a { color: var(--red-soft); }
.modal-content a:hover { text-decoration: underline; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
.project-card.reveal.in { transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, opacity .35s ease; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .hero-text-col { max-width: min(520px, 60vw); }
}

@media (max-width: 760px) {
  .brand-sub { display: none; }
  .nav-container { padding: 12px 18px; }
  .btn-coffee-nav { padding: 8px 14px; }
  .nav-icon-link { display: none; }

  .hero { height: 128vh; }
  .navbar.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(13, 17, 14, .96); }
  .hero-img { background-position: 54% 60%; transform-origin: 54% 58%; inset: -2%; }
  /* Mobil: Text oben (Bäume/Nebel), Hund bleibt in der Bildmitte frei, Buttons unten */
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(10, 13, 11, .92) 0%, rgba(10, 13, 11, .7) 30%, rgba(10, 13, 11, 0) 44%, rgba(10, 13, 11, 0) 66%, rgba(13, 17, 14, .92) 100%);
  }
  .hero-inner { align-items: flex-start; padding: 84px 20px 0; }
  .hero-text-col { max-width: 100%; padding-top: 0; }
  .hero-heading { font-size: clamp(1.7rem, 7.4vw, 2.2rem); margin-bottom: 0; }
  .hero-badge, .hero-text, .hero-hubs { display: none; }
  .hero-buttons {
    position: absolute; left: 20px; right: 20px; bottom: 72px; margin: 0; z-index: 4;
  }
  .hero-buttons .btn { flex: 1 1 100%; }
  .hero-buttons .btn-secondary { flex: 1 1 calc(50% - 6px); padding: 12px 10px; font-size: .84rem; }

  .section-container { padding: 70px 18px; }
  .projects-grid { grid-template-columns: 1fr; }
  .support-card, .contact-box { padding: 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .fog, .scroll-hint i, .badge-dot, .pulse-dot { animation: none; }
}

/* Film-Grain: kaschiert Pixelung des niedrig aufgelösten Fotos */
.hero-sticky::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1.2 -.1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
