/* Art direction: Developer portfolio for balz.dev → technical precision, creative edge
   Palette: Cool neutrals with violet/purple accent — modern dev aesthetic, slightly cooler than sister site.
   Typography: Clash Display (geometric, commanding) + Satoshi (modernist readability) — both from Fontshare
   Density: Spacious — generous editorial whitespace, portfolio-grade */

/* ==============================
   DESIGN TOKENS
   ============================== */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Font families */
  --font-display: 'Clash Display', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ==============================
   LIGHT MODE — Cool neutral with violet accent
   Slightly cooler surfaces, purple-shifted
   ============================== */
:root, [data-theme="light"] {
  /* Surfaces — cool gray, slightly blue-shifted */
  --color-bg:               #f3f2f5;
  --color-surface:          #f6f5f8;
  --color-surface-2:        #faf9fc;
  --color-surface-offset:   #edecef;
  --color-surface-offset-2: #e6e5e8;
  --color-surface-dynamic:  #dddce0;
  --color-divider:          #d3d2d6;
  --color-border:           #c7c6ca;

  /* Text — Cool Gray */
  --color-text:             #1b1b1e;
  --color-text-muted:       #6a6a70;
  --color-text-faint:       #a5a5ab;
  --color-text-inverse:     #f6f5f8;

  /* Primary Accent — Muted Violet */
  --color-primary:          #6b3fa0;
  --color-primary-hover:    #553180;
  --color-primary-active:   #412566;
  --color-primary-highlight: #ddd1ee;

  /* Semantic */
  --color-error:            #9b3040;
  --color-success:          #3d7a26;
  --color-warning:          #8a4a1a;

  /* Shadows — tone-matched, cooler */
  --shadow-sm: 0 1px 2px oklch(0.2 0.01 280 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 280 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 280 / 0.12);
  --shadow-xl: 0 20px 48px oklch(0.2 0.01 280 / 0.16);
}

/* ==============================
   DARK MODE
   ============================== */
[data-theme="dark"] {
  --color-bg:               #141316;
  --color-surface:          #1a191d;
  --color-surface-2:        #1e1d21;
  --color-surface-offset:   #1c1b1f;
  --color-surface-offset-2: #222126;
  --color-surface-dynamic:  #2a292e;
  --color-divider:          #2e2d32;
  --color-border:           #3a393f;

  --color-text:             #cfced3;
  --color-text-muted:       #858489;
  --color-text-faint:       #5a595f;
  --color-text-inverse:     #1a191d;

  --color-primary:          #a07ed4;
  --color-primary-hover:    #8a66c0;
  --color-primary-active:   #7450aa;
  --color-primary-highlight: #2e2838;

  --color-error:            #d16878;
  --color-success:          #6daa45;
  --color-warning:          #bb653b;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  --shadow-xl: 0 20px 48px oklch(0 0 0 / 0.5);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:               #141316;
    --color-surface:          #1a191d;
    --color-surface-2:        #1e1d21;
    --color-surface-offset:   #1c1b1f;
    --color-surface-offset-2: #222126;
    --color-surface-dynamic:  #2a292e;
    --color-divider:          #2e2d32;
    --color-border:           #3a393f;
    --color-text:             #cfced3;
    --color-text-muted:       #858489;
    --color-text-faint:       #5a595f;
    --color-text-inverse:     #1a191d;
    --color-primary:          #a07ed4;
    --color-primary-hover:    #8a66c0;
    --color-primary-active:   #7450aa;
    --color-primary-highlight: #2e2838;
    --color-error:            #d16878;
    --color-success:          #6daa45;
    --color-warning:          #bb653b;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
    --shadow-xl: 0 20px 48px oklch(0 0 0 / 0.5);
  }
}

/* ==============================
   GLOBAL TYPOGRAPHY
   ============================== */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
a:hover {
  color: var(--color-primary-hover);
}

/* ==============================
   SKIP LINK
   ============================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 200;
  text-decoration: none;
  transition: top 0.2s var(--ease-out-expo);
}

.skip-link:focus {
  top: var(--space-4);
  color: var(--color-text-inverse);
}

/* ==============================
   CONTAINER
   ============================== */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

/* ==============================
   HEADER / NAV
   ============================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.35s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo);
}

.site-header--hidden {
  transform: translateY(-100%);
}

.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* FB Monogram */
.logo-link {
  display: flex;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
}

.logo-link:hover {
  color: var(--color-primary);
}

/* Desktop nav */
.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-interactive);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Header controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
}

.icon-btn:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.lang-toggle {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-width: 40px;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: oklch(from var(--color-bg) l c h / 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out-expo);
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.mobile-nav a:hover {
  color: var(--color-primary);
}

/* ==============================
   HERO SECTION
   ============================== */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-24) var(--space-6);
}

/* Animated geometric background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background:
    radial-gradient(ellipse 600px 600px at 30% 40%, oklch(from var(--color-primary) l c h / 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 70% 60%, oklch(from var(--color-primary) l c h / 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 300px 300px at 50% 30%, oklch(from var(--color-primary) l c h / 0.04) 0%, transparent 50%);
  animation: hero-drift 20s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(2%, -2%) rotate(1deg); }
}

/* Grid lines overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(from var(--color-text) l c h / 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(from var(--color-text) l c h / 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
}

/* Grain texture overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: var(--content-default);
}

.hero-name {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: var(--space-6);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  font-weight: 400;
  line-height: 1.5;
  max-width: 44ch;
  margin-inline: auto;
}

/* Typing cursor effect */
.tagline-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--color-primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
}

/* ==============================
   SECTION BASE
   ============================== */

.section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-8);
  letter-spacing: -0.02em;
}

/* ==============================
   ABOUT SECTION
   ============================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
  }
}

.about-image-area {
  aspect-ratio: 3 / 4;
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-image-placeholder {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  text-align: center;
  padding: var(--space-4);
}

.about-text > div {
  margin-bottom: var(--space-4);
}

.about-text > div:last-child {
  margin-bottom: 0;
}

.about-text p {
  margin-bottom: 0;
}

/* ==============================
   PROJECTS SECTION
   ============================== */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: oklch(from var(--color-primary) l c h / 0.2);
  color: inherit;
}

.project-card:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.project-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.project-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
  background: oklch(from var(--color-primary) l c h / 0.08);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.project-card-links-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-4);
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
}

.project-card-links-row .project-card-link {
  margin-top: 0;
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  margin-top: var(--space-4);
  text-decoration: none;
  transition: gap var(--transition-interactive),
              color var(--transition-interactive);
}

.project-card:hover .project-card-link {
  gap: var(--space-3);
}

.project-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-interactive);
}

.project-card:hover .project-card-link svg {
  transform: translateX(2px);
}

/* ==============================
   CONTACT SECTION
   ============================== */

.contact-inner {
  max-width: var(--content-narrow);
}

.contact-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.contact-sep {
  color: var(--color-text-faint);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  user-select: none;
  display: none;
}

@media (min-width: 768px) {
  .contact-sep {
    display: inline;
  }
}

.contact-email {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: color var(--transition-interactive);
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-expo);
}

.contact-email:hover {
  color: var(--color-primary);
}

.contact-email:hover::after {
  transform: scaleX(1);
}

.social-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              border-color var(--transition-interactive);
}

.social-link:hover {
  color: var(--color-primary);
  background: oklch(from var(--color-primary) l c h / 0.06);
  border-color: oklch(from var(--color-primary) l c h / 0.2);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* ==============================
   FOOTER
   ============================== */

.site-footer {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-divider);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-copy a {
  color: var(--color-text-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-interactive);
}

.footer-copy a:hover {
  color: var(--color-text-muted);
}

.footer-sep {
  margin: 0 var(--space-2);
  color: var(--color-text-faint);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-meta-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer-meta-link:hover {
  color: var(--color-text-muted);
}

.footer-meta-link svg {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

/* ==============================
   SCROLL ANIMATIONS — CSS-native
   ============================== */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

.reveal-up {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal-up {
    clip-path: inset(100% 0 0 0);
    opacity: 0;
    animation: reveal-clip linear both;
    animation-timeline: view();
    animation-range: entry 10% entry 80%;
  }
}

@keyframes reveal-clip {
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

/* Staggered cards — JS fallback for browsers without scroll-driven animations */
.stagger-1 { animation-delay: 0ms; }
.stagger-2 { animation-delay: 80ms; }
.stagger-3 { animation-delay: 160ms; }
.stagger-4 { animation-delay: 240ms; }

/* JS-based scroll reveal fallback */
.js-reveal {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.js-reveal.js-ready {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-expo),
              clip-path 0.6s var(--ease-out-expo);
  clip-path: inset(8% 0 0 0);
}

.js-reveal.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* Stagger delays for JS fallback */
.js-reveal.js-ready[data-delay="1"] { transition-delay: 80ms; }
.js-reveal.js-ready[data-delay="2"] { transition-delay: 160ms; }
.js-reveal.js-ready[data-delay="3"] { transition-delay: 240ms; }

/* ==============================
   LANGUAGE TOGGLE
   ============================== */

[data-lang-en] { display: none; }
[data-lang-de] { display: inline; }

html[data-lang="en"] [data-lang-en] { display: inline; }
html[data-lang="en"] [data-lang-de] { display: none; }

/* Block-level variants */
[data-lang-en].block { display: none; }
[data-lang-de].block { display: block; }
html[data-lang="en"] [data-lang-en].block { display: block; }
html[data-lang="en"] [data-lang-de].block { display: none; }

/* Flex variant for lists */
[data-lang-en].flex-list { display: none; }
[data-lang-de].flex-list { display: flex; }
html[data-lang="en"] [data-lang-en].flex-list { display: flex; }
html[data-lang="en"] [data-lang-de].flex-list { display: none; }

/* Grid variant for project grid */
[data-lang-en].grid-list { display: none; }
[data-lang-de].grid-list { display: grid; }
html[data-lang="en"] [data-lang-en].grid-list { display: grid; }
html[data-lang="en"] [data-lang-de].grid-list { display: none; }
