/* ═══════════════════════════════════════════════
   CLNmedia Landing Page – style.css
   Dark theme · Red accent · Glassmorphism
   ═══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --red:       #e63030;
  --red-glow:  rgba(230, 48, 48, 0.35);
  --red-soft:  rgba(230, 48, 48, 0.12);
  --bg:        #0a0a0b;
  --bg-2:      #111114;
  --bg-3:      #18181d;
  --surface:   rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.14);
  --text:      #f0f0f5;
  --text-2:    #9898a8;
  --text-3:    #60606e;
  --font:      'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h:     64px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 99px; }

/* ── SELECTION ── */
::selection { background: var(--red); color: #fff; }

/* ── CONTAINER ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 20px var(--red-glow);
}
.btn-primary:hover {
  background: #ff3d3d;
  box-shadow: 0 0 32px rgba(230,48,48,0.55);
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ─────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}
#navbar.scrolled {
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(18px);
  border-color: var(--border);
}
.nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  font-family: var(--font);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.logo-cln {
  color: var(--red);
  text-shadow:
    0 0 8px rgba(230,48,48,0.9),
    0 0 20px rgba(230,48,48,0.6),
    0 0 40px rgba(230,48,48,0.35);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo-media {
  color: #ffffff;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-2);
  font-size: 0.9rem;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}
.nav-link.active { color: var(--red); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
}

/* Dot grid */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Glowing orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  top: -120px; right: -100px;
  background: radial-gradient(circle, rgba(230,48,48,0.2) 0%, transparent 70%);
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  bottom: -80px; left: -80px;
  background: radial-gradient(circle, rgba(230,48,48,0.12) 0%, transparent 70%);
  animation: orbFloat 10s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 8px rgba(61,220,132,0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-highlight {
  color: var(--red);
  text-shadow: 0 0 28px var(--red-glow);
  font-style: italic;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 36px;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-scroll-hint {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: fadeUp 0.6s 0.5s ease both;
}
.scroll-icon {
  width: 24px; height: 38px;
  border: 2px solid var(--border-2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-dot {
  width: 4px; height: 8px;
  background: var(--text-3);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(10px); opacity: 0.3; }
}

/* ─────────────────────────────────────────────
   SECTIONS – shared
───────────────────────────────────────────── */
section {
  padding: 100px 0;
}
.section-label {
  font-family: var(--font);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  font-weight: 600;
}
.section-title {
  font-family: var(--font);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 48px;
}
.text-red { color: var(--red); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────
   ABOUT
───────────────────────────────────────────── */
#about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
.about-text p {
  color: var(--text-2);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}
.about-text strong { color: var(--text); }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tag {
  padding: 5px 14px;
  border-radius: 99px;
  background: var(--red-soft);
  border: 1px solid rgba(230,48,48,0.25);
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 500;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover {
  border-color: rgba(230,48,48,0.3);
  transform: translateY(-3px);
}
.stat-card-wide {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-number {
  font-family: var(--font);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--red);
  text-shadow: 0 0 20px var(--red-glow);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-icon { font-size: 2rem; margin-bottom: 6px; }
.stat-icon-lg { font-size: 2.4rem; margin-bottom: 8px; }
.stat-label {
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 500;
}
.stat-sub {
  font-size: 0.76rem;
  color: var(--text-3);
  margin-top: 4px;
}

/* ─────────────────────────────────────────────
   PROJECTS
───────────────────────────────────────────── */
#projects { background: var(--bg); }

.projects-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

/* Featured card */
.project-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.project-card:hover {
  border-color: rgba(230,48,48,0.4);
  transform: translateY(-4px);
}
.project-card-featured {
  background: linear-gradient(135deg, var(--bg-3) 0%, rgba(24,24,29,0.9) 100%);
}
.project-card-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(230,48,48,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.project-logo-wrap {
  height: 48px;
  display: flex;
  align-items: center;
}
.project-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(230,48,48,0.4));
}
.modal-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(230,48,48,0.4));
}
.project-name {
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 700;
}
.project-badges {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.badge {
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-beta {
  background: rgba(255,180,0,0.15);
  color: #ffb400;
  border: 1px solid rgba(255,180,0,0.3);
}
/* Interactive Showcase Banner in Project Card */
.project-showcase {
  position: relative;
  height: 190px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-2);
  cursor: pointer;
}
.showcase-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(0.6);
  transform: scale(1.08);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.project-showcase:hover .showcase-bg-image {
  filter: blur(5px) brightness(0.7);
  transform: scale(1.12);
}
.showcase-glass-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.25) 0%, rgba(10,10,11,0.85) 100%);
}
.showcase-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.showcase-badge {
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(230,48,48,0.85);
  color: #fff;
  padding: 4px 12px;
  border-radius: 99px;
  box-shadow: 0 0 12px rgba(230,48,48,0.5);
}
.showcase-hint {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.15);
}
.showcase-previews {
  display: flex;
  gap: 10px;
  align-items: center;
}
.showcase-thumb {
  width: 76px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 14px rgba(0,0,0,0.6);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.project-showcase:hover .showcase-thumb {
  transform: translateY(-2px);
  border-color: rgba(230,48,48,0.8);
}

.project-desc {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.project-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.project-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.feature-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.project-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}
.project-platform {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-3);
  fill: var(--text-3);
}

/* Coming Soon */
.project-card-soon {
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.project-soon-inner { text-align: center; }
.soon-icon { font-size: 2.8rem; margin-bottom: 12px; }
.soon-title {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.soon-desc { color: var(--text-3); font-size: 0.88rem; margin-bottom: 16px; }
.soon-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.soon-dot {
  width: 6px; height: 6px;
  background: var(--text-3);
  border-radius: 50%;
  animation: dotBlink 1.2s ease-in-out infinite;
}
.soon-dot:nth-child(2) { animation-delay: 0.2s; }
.soon-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBlink {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%       { opacity: 1; transform: scale(1); }
}

/* ─────────────────────────────────────────────
   SUPPORT
───────────────────────────────────────────── */
#support {
  background: var(--bg-2);
}
.support-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(230,48,48,0.25);
  background: linear-gradient(135deg, rgba(230,48,48,0.07) 0%, var(--bg-3) 100%);
  padding: 56px 48px;
  text-align: center;
}
.support-orb {
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(230,48,48,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.support-content { position: relative; z-index: 1; }
.support-emoji { font-size: 3rem; margin-bottom: 16px; }
.support-title {
  font-family: var(--font);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.8px;
}
.support-desc {
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1rem;
  line-height: 1.8;
}
.support-ways {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.support-way {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  text-align: left;
  transition: border-color var(--transition), transform var(--transition);
}
.support-way:hover {
  border-color: rgba(230,48,48,0.3);
  transform: translateY(-2px);
}
.support-way-icon { font-size: 1.5rem; }
.support-way-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.support-way-text strong {
  font-size: 0.9rem;
  font-weight: 600;
}
.support-way-text span {
  font-size: 0.78rem;
  color: var(--text-3);
}
.support-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
#footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}
.footer-logo { font-size: 1.3rem; font-weight: 700; }
.footer-tagline {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-3);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-link {
  font-size: 0.88rem;
  color: var(--text-2);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--text); }

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-link-legal {
  font-size: 0.88rem;
  color: var(--text-3);
  transition: color var(--transition);
}
.footer-link-legal:hover { color: var(--text-2); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-heart { color: var(--red); }

/* ─────────────────────────────────────────────
   MODAL (Impressum + Datenschutz)
   Deep-link: domain.de/#impressum  /  domain.de/#datenschutz
───────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.modal-box {
  position: relative;
  z-index: 1;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  max-width: 580px;
  width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: modalIn 0.25s ease;
}
.modal-box-lg {
  max-width: 740px;
}
.modal-box-xl {
  max-width: 900px;
}

/* Legal text modal styling */
.legal-section {
  margin-bottom: 24px;
}
.legal-section h3 {
  font-family: var(--font);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-2);
}
.legal-section h4 {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--red);
  margin: 16px 0 6px;
}
.legal-section p {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 10px;
}
.legal-address-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 12px 0 16px;
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.65;
}
.legal-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-3);
}

/* Interactive Gallery in Details Modal */
.details-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.gallery-main {
  position: relative;
  background: var(--bg-2);
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  padding: 12px;
  text-align: center;
}
.gallery-main-img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s ease;
}
.gallery-caption {
  font-size: 0.86rem;
  color: var(--text-2);
  margin-top: 8px;
  font-weight: 500;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-thumb {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.gallery-thumb:hover {
  border-color: rgba(230,48,48,0.4);
  transform: translateY(-2px);
}
.gallery-thumb.active {
  border-color: var(--red);
  background: var(--red-soft);
  box-shadow: 0 0 12px var(--red-glow);
}
.gallery-thumb img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}
.gallery-thumb span {
  display: block;
  font-size: 0.74rem;
  color: var(--text);
  font-weight: 500;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Details Description & Grid */
.details-text-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.details-block h3 {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.details-block p {
  color: var(--text-2);
  font-size: 0.94rem;
  line-height: 1.7;
}
.details-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.detail-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.detail-feature-card:hover {
  border-color: rgba(230,48,48,0.3);
}
.df-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.detail-feature-card h4 {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.detail-feature-card p {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0 !important;
}
.details-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.modal-scroll-body {
  overflow-y: auto;
  flex: 1;
  padding-right: 6px;
  margin-top: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}
.modal-scroll-body::-webkit-scrollbar { width: 4px; }
.modal-scroll-body::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-right: 40px;
}
.modal-icon { font-size: 1.5rem; line-height: 1; }
.modal-header h2 {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 !important;
}
.modal-subtitle {
  display: block;
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 2px;
}
.modal-list {
  list-style: disc;
  padding-left: 20px;
  margin: 10px 0 16px;
  color: var(--text-2);
  font-size: 0.9rem;
}
.modal-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.modal-link-inline {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  transition: opacity var(--transition);
}
.modal-link-inline:hover {
  opacity: 0.8;
}
.modal-updated {
  margin-top: 20px;
  font-size: 0.78rem !important;
  color: var(--text-3) !important;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-box h2 {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.modal-box p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.modal-box strong { color: var(--text); }
.modal-box a { color: var(--red); }
.modal-box a:hover { text-decoration: underline; }
.impressum-note {
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(255,180,0,0.08);
  border: 1px solid rgba(255,180,0,0.2);
  border-radius: var(--radius-sm);
  color: #ffb400 !important;
  font-size: 0.82rem !important;
}

/* ─────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 640px) {
  section { padding: 72px 0; }
  .nav-links { display: none; flex-direction: column; gap: 4px; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,11,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
  }
  .nav-burger { display: flex; }
  .support-card { padding: 36px 24px; }
  .support-ways { flex-direction: column; align-items: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  .footer-bottom { justify-content: center; text-align: center; }
  .modal-box-lg { max-height: 92vh; padding: 24px 20px; }
}
