/* ---------- Basis / Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height: 1.5;
  background: var(--bg);
  color: var(--fg);
  text-rendering: optimizeLegibility;
}
[id] {
  scroll-margin-top: 80px; /* Höhe deines Headers */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Farbvariablen (Matrix-Look) ---------- */
:root {
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --muted: #bdbdbd;
  --card: #111;
  --line: #1c1c1c;
  --accent: #00E676;   /* Matrix-Grün */
  --accent-2: #0f8a5f; /* dunkleres Grün */
  --shadow: 0 6px 24px rgba(0,230,118,.25);
}

/* ---------- Layout ---------- */
.container { width: min(1120px, 92vw); margin-inline: auto; }

.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } }

:root{
  --header-h: 80px; /* grob passend; ggf. 76–88px nach Gefühl */
}

body{
  padding-top: var(--header-h); /* verhindert, dass Content unter dem Header verschwindet */
}

[id]{
  scroll-margin-top: var(--header-h);
}

.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(10,10,10,.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0;
}
.brand { 
    display: inline-flex; 
    align-items: center; 
    gap: .7rem; 
    font-weight: 700; 
    letter-spacing: .02em; }

.brand-logo{
  display:block;
  height:28px;   /* Desktop-Default */
  width:auto;
}

.brand-logo--mark{ display:none; }

@media (max-width: 900px){
  .brand-logo--full{ display:none; }
  .brand-logo--mark{
    display:block;
    height:26px; /* Mobile */
  }
}

.brand-mark {
  width: 18px; height: 18px; border-radius: 0px; background: var(--accent);
  box-shadow: 0 0 24px rgba(0,230,118,.6), inset 0 -6px 10px rgba(0,0,0,.35);
}
.brand-name { text-transform: uppercase; font-size: .95rem; }

.nav ul { list-style: none; display: flex; gap: 1.2rem; margin: 0; padding: 0; }
.nav a { padding: .4rem .6rem; border-radius: 6px; }
.nav a:hover { background: #141414; }

/* ---------- Mobile Nav (Burger / Off-Canvas) ---------- */
.nav-toggle{
  display:none;
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid #2a2a2a;
  background: rgba(10,10,10,.65);
  backdrop-filter: blur(8px);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  padding:0;
}

.nav-toggle:hover{ border-color: var(--accent); }

.nav-toggle__icon{
  width:20px; height:14px;
  position:relative;
  display:block;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after{
  content:"";
  position:absolute; left:0; right:0;
  height:2px;
  background: var(--fg);
  border-radius:2px;
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}
.nav-toggle__icon::before{ top:2px; }
.nav-toggle__icon::after{ top:10px; }

/* Optional: mittlere Linie als Box-Shadow */
.nav-toggle__icon{
  background: transparent;
}
.nav-toggle__icon{
  box-shadow: 0 6px 0 0 var(--fg);
  transition: box-shadow .2s ease;
}

/* Backdrop default aus */
.nav-backdrop{ display:none; }

/* Mobile Layout */
@media (max-width: 900px){
  .nav-toggle{ display:inline-flex; }

  /* Off-canvas Panel */
  .nav{
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(340px, 86vw);
    background: rgba(10,10,10,.96);
    border-left: 1px solid var(--line);
    transform: translateX(102%);
    transition: transform .25s ease;
    padding: 5.2rem 1rem 1rem;
    z-index: 60;
    backdrop-filter: blur(10px);
  }

  .nav ul{
    flex-direction: column;
    gap: .2rem;
  }
  .nav a{
    display:block;
    padding: .9rem 1rem;
    border-radius: 12px;
  }

  /* Backdrop */
  html.nav-open .nav-backdrop{
    display:block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 55;
  }

  /* Öffnen */
  html.nav-open .nav{
    transform: translateX(0);
  }

  /* Burger zu "X" (simple) */
  html.nav-open .nav-toggle__icon{
    box-shadow: none;
  }
  html.nav-open .nav-toggle__icon::before{
    top: 6px;
    transform: rotate(45deg);
  }
  html.nav-open .nav-toggle__icon::after{
    top: 6px;
    transform: rotate(-45deg);
  }
}

/* ---------- Touch Devices: Custom Cursor aus ---------- */
@media (hover: none), (pointer: coarse){
  .cursor, .cursor-trail{ display:none !important; }
}


.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { 
    left: 1rem; 
    top: 1rem; 
    background: var(--accent); 
    color: white; 
    padding: .5rem .75rem; 
    border-radius: 6px; }

/* ---------- Custom Cursor + Trail ---------- */

.cursor, .cursor-trail{ 
    position:fixed; 
    top:0; left:0; 
    pointer-events:none; 
    z-index:1000; 
}
.cursor{ 
    width:10px; 
    height:10px; 
    border-radius:50%; 
    background:var(--accent); 
    mix-blend-mode:screen; 
}
.cursor-trail{ 
    width:26px; 
    height:26px; 
    border-radius:50%; 
    border:2px solid var(--accent); 
    opacity:.4; 
    transition: transform .12s ease; 
}

/* ---------- Ambient Noise & Vignette ---------- */
.fx-vignette::after{ content:""; position:fixed; inset:-10vmax; pointer-events:none; z-index:1;
  background:radial-gradient(ellipse at center, transparent 0 45%, rgba(0,0,0,.4) 80%, rgba(0,0,0,.65) 100%); }

/* ---------- Hero ---------- */
.hero { position:relative; padding: clamp(3rem, 6vw, 6rem) 0 4rem; border-bottom: 1px solid var(--line); overflow: clip; }
.hero .container{ position:relative; z-index:2; }
.hero__title{ font-size: clamp(2.4rem, 3.6vw + 1rem, 4.5rem); line-height:1.05; margin:0 0 .6rem; }
.hero__lead { color: var(--muted); max-width: 65ch; margin: .6rem 0 1.2rem; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; }

.accent-underline { background:linear-gradient(var(--accent), var(--accent)) 0 100% / 100% .22em no-repeat; padding-bottom:.05em; }

.case-hero{
  position: relative;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
  min-height: 220px;
  display: grid;
  align-items: end;
}

.case-hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.65)),
    image-set(
      url("assets/branding/neu_denken/bg_v4_chipwerk_00000_800.webp") 1x,
      url("assets/branding/neu_denken/bg_v4_chipwerk_00000_1600.webp") 2x
    );
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.case-hero__inner{
  position: relative;
  padding: 18px 18px 16px;
  max-width: 70ch;
}


/* Floating parallax shapes (Matrix-Grün) */
.shape{ position:absolute; filter:drop-shadow(0 10px 30px rgba(0,0,0,.5)); opacity:.9; }
.shape--ring{ width:38vmin; height:38vmin; border:2px solid var(--accent); border-radius:50%; top:-8vmin; right:-6vmin; animation: floatY 8s ease-in-out infinite; }

.shape--bar {
  width: 48vmin;
  height: 12vmin;
  background: linear-gradient(90deg, rgba(0,230,118,.18), rgba(0,0,0,0));
  transform: translateY(0px);
  bottom: -4vmin;
  left: -10vmin;
  animation: floatX 9s ease-in-out infinite;
  border-radius: 4px;
}

.shape--grid{ --s:28px; position:absolute; inset:auto auto 8% 52%; width:34vmin; height:34vmin; background:
  linear-gradient(transparent 0 calc(var(--s)-1px), rgba(255,255,255,.08) 0 1px) 0 0/100% var(--s),
  linear-gradient(90deg, transparent 0 calc(var(--s)-1px), rgba(255,255,255,.08) 0 1px) 0 0/var(--s) 100%;
  mask: radial-gradient(circle at 20% 30%, black 40%, transparent 60%);
  animation: slowSpin 24s linear infinite; opacity:.28; }

@keyframes floatY{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(12px);} }
@keyframes floatX{ 0%,100%{ transform:translateX(0);} 50%{ transform:translateX(16px);} }
@keyframes slowSpin{ to{ transform:rotate(360deg);} }

/* ---------- Buttons & Links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1rem; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-weight: 600; transition: transform .08s ease, border-color .2s, background-color .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(0,230,118,.35); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { background: transparent; border-color: #2a2a2a; }
.btn--ghost:hover { border-color: var(--accent); }
.btn--outline { border-color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--magnetic{ will-change: transform; }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Sections ---------- */
h1,h2,h3 { line-height: 1.15; margin: 0 0 .6rem 0; }
h2 { font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem); }
h3 { font-size: 1.15rem; }

.section { border-bottom: 1px solid var(--line); padding: 3rem 0; position: relative; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.1rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .3rem; }
.card p { margin: 0; color: #d9d9d9; }

/* ---------- Work ---------- */
.work { padding: 3rem 0; border-bottom: 1px solid var(--line); }
.work-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.work-item {
  display: grid; gap: 1rem; grid-template-columns: 1.2fr 1fr; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: clip;
}
.work-thumb {
  min-height: 220px; position: relative;
  background:
    linear-gradient(135deg, #141414 0%, #0f0f0f 100%),
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(255,255,255,.02) 6px 7px);
}
.work-thumb::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--accent); }
.work-thumb--alt::after { height: 100%; width: 6px; inset: 0 auto 0 0; }

/* Shimmer (ohne zusätzliches DIV) */
.work-thumb{ overflow:hidden; }
.work-thumb::before{
  content:""; position:absolute; inset:0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 0 30%, rgba(255,255,255,.06) 45%, transparent 60%);
  opacity:.9;
}
.work-item:hover .work-thumb::before{ animation: shimmer 1.2s ease; }
@keyframes shimmer{ to { transform: translateX(120%); } }

/* Bilder skalieren */
.work-image{ width:100%; height:100%; object-fit:cover; display:block; }

.work-meta { padding: 1.2rem; }
.work-meta .meta { color: var(--muted); margin: .2rem 0 .6rem; font-size: .95rem; }

@media (max-width: 900px) { .work-item { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 1.2rem; grid-template-columns: 2fr 1fr; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.bullets { margin: 0; padding-left: 1.2rem; }
.bullets li { margin: .2rem 0; }

/* ---------- Kontakt ---------- */
.contact { padding: 3rem 0; }
.contact-form { display: grid; gap: 1rem; max-width: 720px; }
.form-row { display: grid; gap: .4rem; }
input, textarea {
  background: #0e0e0e; color: var(--fg); border: 1px solid #2a2a2a;
  border-radius: 10px; padding: .8rem 1rem; font: inherit;
}
input:focus, textarea:focus { border-color: var(--accent); }
.fineprint { color: var(--muted); margin-top: .8rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 0; color: var(--muted); }

/* ---------- Footer-Erweiterung ---------- */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-nav {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--accent);
}

/* ---------- Rechtstexte ---------- */
.legal-page {
  padding: clamp(3rem, 6vw, 4.5rem) 0 4rem;
}

.legal-page h1 {
  font-size: clamp(2rem, 2.5vw + 1rem, 2.8rem);
  margin-bottom: 0.75rem;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-block + .legal-block {
  margin-top: 2rem;
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.legal-page p,
.legal-page li {
  max-width: 70ch;
}

.legal-page ul {
  padding-left: 1.2rem;
}

/* ---------- Marquee (statisch + Glow-Pulse) ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0e0e0e;
  text-align: center;
  padding: 1.2rem 0;
}
.marquee__line {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { color: var(--muted); text-shadow: none; opacity: .9; }
  50% { color: var(--accent); text-shadow: 0 0 14px rgba(0,230,118,.35); opacity: 1; }
}

/* ---------- Matrix Ambient Background ---------- */
.matrix-bg{
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background:
    repeating-linear-gradient(0deg,  rgba(0,230,118,0.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,230,118,0.04) 0 1px, transparent 1px 3px),
    radial-gradient(1px 1px at 12% 24%, rgba(0,230,118,0.22), transparent 60%),
    radial-gradient(1px 1px at 48% 72%, rgba(0,230,118,0.18), transparent 60%),
    radial-gradient(1px 1px at 78% 36%, rgba(0,230,118,0.20), transparent 60%);
  background-blend-mode: screen;
  opacity: 0.9;
  animation: matrixPulse 10s ease-in-out infinite;
}
@keyframes matrixPulse{
  0%,100%{ opacity:.28; filter:brightness(.9); }
  50%{    opacity:.45; filter:brightness(1.05); }
}

/* ---------- Reveal Animations ---------- */
.reveal{ opacity:0; transform: translateY(12px) scale(.98); filter: blur(2px); }
.reveal.in{ opacity:1; transform:none; filter:none; transition: opacity .6s ease, transform .6s ease, filter .6s ease; }

/* ---------- Motion & Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  /* nur endlose/auffällige Animationen abschalten */
  .matrix-bg,
  .marquee__line,
  .shape,
  .reveal,
  .work-item:hover .work-thumb::before { animation: none !important; }
  * { transition: none !important; }
}

/* Square oben rechts, mit perfekter Zentrierung */
.shape--square--ring {
  position: absolute;
  top: -8vmin;
  right: -6vmin;
  width: 38vmin;
  height: 38vmin;
  border: 2px solid var(--accent);
  border-radius: 50%; /* wichtig für Kreis 50% und Rechteck 0 */
  animation: floatY 8s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.5));
  opacity: .9;

  display: grid;
  place-items: center;
}


/* Quadratische Innenfläche, damit das Logo immer schön „ins Rund“ passt */
.shape-logo-wrap{
  width:70%;
  aspect-ratio:1/1;              /* macht die Box garantiert quadratisch */
  display:grid;
  place-items:center;
  overflow:visible;
  transform: translate(var(--logo-nudge-x,0), var(--logo-nudge-y,0)); /* Feintuning möglich */
}

/* Bild sauber einpassen */
.shape-logo{
  max-width:100%;
  max-height:100%;
  display:block;                  /* kein baseline-Shift */
  object-fit:contain;             /* niemals verzerren */
}

/* optionales Feintuning (falls das PNG visuell nicht optisch mittig wirkt) */
/* Beispiel: leicht nach oben links schieben */
/* .shape-logo-wrap{ --logo-nudge-x:-1px; --logo-nudge-y:-2px; } */

.visually-hidden{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.checkline{
  display:flex;
  gap:.6rem;
  align-items:flex-start;
  color: var(--muted);
  font-size: .95rem;
}
.checkline input{ margin-top:.2rem; }
.checkline a{ text-decoration: underline; text-underline-offset: .2em; }

/* Logo mit Glow */
:root{
  --accent: #00E676;
  --logo-glow-1: rgba(0,255,140,.55);
  --logo-glow-2: rgba(0,255,140,.25);
}

/* Logo: nur das Grün bekommt Glow */
.shape-logo .logo-accent{
  fill: var(--accent);
  filter: drop-shadow(0 0 6px var(--logo-glow-1))
          drop-shadow(0 0 18px var(--logo-glow-2));
  transition: filter .2s ease, opacity .2s ease;
}

a.logo:hover .shape-logo .logo-accent{
  filter: drop-shadow(0 0 10px var(--logo-glow-1))
          drop-shadow(0 0 28px var(--logo-glow-2));
}

/* ---------- SVG Logo Fix (sichtbar + sauber skaliert) ---------- */
.shape-logo-wrap > a.logo{
  display:block;
  width:100%;
  height:100%;
}
.shape-logo{
  width:100%;
  height:100%;
  color: var(--fg); /* currentColor im SVG wird hell */
}
/* Safety: falls im SVG doch wieder harte Farben auftauchen */
.shape-logo .cls-1,
.shape-logo .cls-2{ fill: currentColor !important; }
.shape-logo .cls-5{ stroke: currentColor !important; }

/* ---------- Header Tabs (Branding/Web/Motion) ---------- */
.nav a.nav-tab{
  border: 1px solid #2a2a2a;
  background: rgba(10,10,10,.45);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: .38rem .75rem;
}

.nav a.nav-tab:hover{
  border-color: var(--accent);
}

.nav a.nav-tab.is-active{
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(0,230,118,.18);
}

/* NAV: harte Ausrichtung */
.site-header .nav ul{
  display: flex;
  align-items: center;
  gap: .9rem;
}

/* Einheitliche Höhe für Tabs + Kontakt */
.site-header .nav a.nav-tab,
.site-header .nav a.btn.btn--ghost{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: .42rem .82rem;
  border-radius: 999px;
}

/* Kontakt: bewusster CTA (ohne andere Höhe) */
.site-header .nav a.btn.btn--ghost{
  border-color: rgba(0,230,118,.65);
  box-shadow:
    0 0 0 1px rgba(0,230,118,.18),
    0 0 22px rgba(0,230,118,.14);
  background: rgba(0,230,118,.06);
}

.site-header .nav a.btn.btn--ghost:hover,
.site-header .nav a.btn.btn--ghost:focus-visible{
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(0,230,118,.28),
    0 0 34px rgba(0,230,118,.22);
}

/* ---------- Brand Kit Card ---------- */
.brandkit{
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: clip;
  margin-top: 1rem;
}

.brandkit__summary{
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brandkit__summary::-webkit-details-marker{ display: none; }

.brandkit__title h3{
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.brandkit__title .meta{
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.brandkit__hint{
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: .35rem .7rem;
  color: var(--fg);
  background: rgba(10,10,10,.45);
}

.brandkit[open] .brandkit__hint{
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(0,230,118,.18);
}

.brandkit__grid{
  display: grid;
  gap: 1rem;
  padding: 0 1.1rem 1.1rem;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
@media (max-width: 900px){
  .brandkit__grid{ grid-template-columns: 1fr; }
}

.brandkit__tile{
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: .9rem;
  display: grid;
  gap: .6rem;
  align-content: start;
  min-height: 180px;
}

.brandkit__tile figcaption{
  color: var(--muted);
  font-size: .9rem;
}

.brandkit__tile img{
  width: 100%;
  height: 110px;
  object-fit: contain;
  display: block;
}

.brandkit__tile.is-dark{
  background: #0b0b0b;
}
.brandkit__tile.is-light{
  background: #f3f3f3;
  color: #0b0b0b;
}
.brandkit__tile.is-light figcaption{ color: rgba(0,0,0,.65); }

.brandkit__notes{
  display: grid;
  gap: 1rem;
  padding: 0 1.1rem 1.1rem;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
@media (max-width: 900px){
  .brandkit__notes{ grid-template-columns: 1fr; }
}

.brandkit__notes .note{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .9rem;
  background: rgba(10,10,10,.35);
}
.brandkit__notes .note p{
  margin: .35rem 0 0;
  color: var(--muted);
}

/* ---------- BrandKit Applications ---------- */
.brandkit__apps{
  padding: 0 1.1rem 1.1rem;
}

.brandkit__apps-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  margin: .2rem 0 .8rem;
}

.apps-grid{
  display:grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px){
  .apps-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.app-tile{
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  overflow: clip;
  background: #0b0b0b;
}

.app-tile img{
  width: 100%;
  height: 100%;
  display:block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.app-tile--wide{
  grid-column: span 4;
}

@media (max-width: 900px){
  .app-tile--wide{ grid-column: span 2; }
  .app-tile--wide img{ aspect-ratio: 16/9; }
}

/* ---------- Motion Case ---------- */
.motion-case{
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  margin-top: 1rem;
}

.motion-case__head h3{ margin: 0; }
.motion-case__head .meta{ margin: .35rem 0 0; color: var(--muted); }

.motion-toggle{
  margin-top: 1rem;
}

.motion-toggle input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.motion-toggle label{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .42rem .82rem;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: rgba(10,10,10,.45);
  margin-right: .5rem;
  cursor: pointer;
}

#muellerStatic:checked + label,
#muellerMotion:checked + label{
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(0,230,118,.18);
}

.motion-panels{
  margin-top: 1rem;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  overflow: clip;
  background: #0a0a0a;
  padding: 1.1rem;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.motion-panel{ display: none; width: 100%; }
.motion-panel img{
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
}

.motion-video{
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
}

/* Toggle Logic */
#muellerStatic:checked ~ .motion-panels .motion-panel--static{ display:block; }
#muellerV1:checked     ~ .motion-panels .motion-panel--v1{ display:block; }
#muellerV2:checked     ~ .motion-panels .motion-panel--v2{ display:block; }

/* Reduced Motion: immer statisch */
@media (prefers-reduced-motion: reduce){
  .motion-panel--v1, .motion-panel--v2{ display:none !important; }
  .motion-panel--static{ display:block !important; }
}

.app-video{
  width:100%;
  display:block;
  border-radius:14px;
  border:1px solid #2a2a2a;
  background:#0b0b0b;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.tile-media{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 16px; /* oder wie deine Cards */
}

.app-tile--wide{
  grid-column: 1 / -1; /* über alle Spalten */
}
.app-tile--wide .tile-media{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.work--video .work__media{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
}

.work__cap{
  margin-top: .6rem;
  font-size: .92rem;
  color: rgba(255,255,255,.7);
}


/* Credits-Angabe - Rechte */
.credit{
  margin: .7rem 0 0;
  color: var(--muted);
  font-size: .92rem;
}
.credit a{
  text-decoration: underline;
  text-underline-offset: 3px;
}
.credit__sep{ opacity:.6; margin: 0 .35rem; }
.credit--muted{ opacity:.8; }

/* Blöcke für Fallbeispiele */
.case-kpis{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
@media (max-width: 900px){
  .case-kpis{ grid-template-columns: 1fr; }
}
.kpi{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 12px 12px 10px;
}
.kpi__label{
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.kpi__value{ font-weight: 700; }
.kpi__meta{ color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* ---------- Motion Details (collapsible) ---------- */
.motion-details{
  margin-top: .75rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  overflow: clip;
}

.motion-details__summary{
  list-style: none;
  cursor: pointer;
  padding: .75rem .95rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
}

.motion-details__summary::-webkit-details-marker{ display:none; }

.motion-details__summary span:first-child{
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: .28rem .62rem;
  background: rgba(10,10,10,.45);
}

.motion-details__meta{
  color: var(--muted);
  font-size: .92rem;
}

.motion-details[open] .motion-details__summary span:first-child{
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(0,230,118,.18);
}

.motion-details__body{
  padding: .2rem .95rem 1rem;
}
