/* Mastic Frog — masticfrog.de
   Statisches Stylesheet nach dem Mastic-Frog-Design-System.
   Regeln: Radius 0 überall, keine Schatten, Struktur nur über 1px-Hairlines,
   Mono nie für Fließtext, einzige Motion ist ein 2px-Hover-Lift (120ms). */

/* ── Fonts (lokal, kein CDN) ─────────────────────────────────────────── */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'C&C Red Alert'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/cc-red-alert.ttf') format('truetype'); }

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  /* resin scale — the frog itself */
  --resin-white: #fffaf0;
  --resin-highlight: #f6e7b4;
  --resin-body: #e0c377;
  --resin-shadow: #b8933f;
  --resin-outline: #6b4f1a;
  /* grounds */
  --ground-paper: #f7f3ea;
  --ground-panel: #efe9dd;
  --ground-charcoal: #171512;
  --ground-ink: #2b2114;
  --ground-sky-page: #dfeaf2;
  --border-sky: #b3cadb;
  --accent-sky: #2f4a61;
  /* borders */
  --border: #ddd4c2;
  --border-strong: #c9bda6;
  --border-charcoal: #3a342a;
  /* text */
  --text-primary: #2b2114;
  --text-body: #584f3d;
  --text-muted: #8a8069;
  --text-faint: #a4977c;
  --text-on-dark: #e0c377;
  --text-on-dark-muted: #9a8c6c;
  --text-on-dark-faint: #6b6250;
  --text-on-dark-link: #c2b79c;
  /* semantic */
  --color-accent: #7a5a1c;
  --color-accent-hover: #4a3210;
  /* type */
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  /* effects */
  --motion-fast: 120ms;
}

/* ── Reset & base ────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ground-paper);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
.pixel { image-rendering: pixelated; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--motion-fast) ease; }
a:hover { color: var(--color-accent-hover); }

.container { max-width: 1120px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

/* mono label — uppercase, tracked wide; never body copy */
.label { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-muted); }

/* ── Splash (vorgeschaltete Heropage) ────────────────────────────────── */
.splash {
  min-height: 100vh;
  background: var(--ground-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 36px; padding: 40px; overflow: hidden; position: relative;
  text-align: center;
}
.splash .eyebrow { font-size: 11px; color: var(--text-on-dark-muted); }
.splash .btn-resin { align-self: center; }
.splash-frog { position: relative; width: 220px; height: 220px; cursor: pointer; }
.splash-frog img { width: 220px; height: 220px; transform: translateY(0); transition: transform 90ms linear; }
.splash-pupil {
  position: absolute; width: 28px; height: 18px;
  background: var(--ground-ink); opacity: 1;
}
#pupil-l { left: 55px; top: 27px; }
#pupil-r { left: 147px; top: 27px; }
.splash-wordmark {
  font-family: 'C&C Red Alert', var(--font-mono);
  font-weight: 400;
  font-size: clamp(44px, 15vw, 96px);
  letter-spacing: 0.02em; line-height: 1;
  color: var(--resin-body);
}
.splash-sub { font-size: 16px; line-height: 1.55; color: var(--text-on-dark-muted); max-width: 46ch; text-wrap: pretty; }
.splash-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--text-on-dark-faint);
}
.splash-soon {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-on-dark-faint);
}
.splash-legal {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-on-dark-faint);
}
.splash-legal a { color: var(--text-on-dark-faint); }
.splash-legal a:hover { color: var(--text-on-dark-muted); }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--ground-panel);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; color: var(--text-primary); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 13px; color: var(--text-body); }
.site-nav a:hover { color: var(--color-accent-hover); }
.btn-nav {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  padding: 9px 16px; background: var(--ground-ink);
}
.site-nav a.btn-nav { color: var(--resin-highlight); }
.site-nav a.btn-nav:hover { color: var(--resin-white); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em;
  padding: 13px 22px;
  transition: transform var(--motion-fast) ease, color var(--motion-fast) ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ground-ink); color: var(--resin-highlight); }
.btn-primary:hover { color: var(--resin-white); }
.btn-secondary { border: 1px solid var(--border-strong); color: var(--text-primary); }
.btn-secondary:hover { color: var(--color-accent-hover); }

/* ── Ticker ──────────────────────────────────────────────────────────── */
.ticker { background: var(--ground-ink); border-bottom: 1px solid var(--border); }
.ticker .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 20px;
}
.ticker span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--resin-body);
}

/* ── Sections ────────────────────────────────────────────────────────── */
.section .container {
  padding-top: 76px; padding-bottom: 76px;
  display: flex; flex-direction: column; gap: 26px;
}
.section-head {
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.section-index { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--text-faint); }
.section-title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.section-link {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-accent);
}

/* ── Cards (Projekte & Leistungen) ───────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--ground-paper); border: 1px solid var(--border);
  transition: transform var(--motion-fast) ease;
}
.card:hover { transform: translateY(-2px); }
.card-media {
  aspect-ratio: 4 / 3; background: var(--ground-panel);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.card-media img { width: 48px; height: 48px; opacity: 0.35; }
.card-media .label { color: var(--text-faint); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-name { font-size: 16px; font-weight: 600; }
.card-meta { font-family: var(--font-mono); font-size: 13px; color: var(--color-accent); white-space: nowrap; }
.card-desc { font-size: 13px; line-height: 1.5; color: var(--text-body); }
.card-link { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px; }
.badge {
  display: inline-block; align-self: flex-start;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 4px 8px; border: 1px solid var(--border-strong); color: var(--text-muted);
}
.badge-live { border-color: var(--resin-shadow); color: var(--color-accent); }

/* ── Studio ──────────────────────────────────────────────────────────── */
.studio { background: var(--ground-panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.studio .container {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px; align-items: center;
  padding-top: 76px; padding-bottom: 76px;
}
.studio-copy { display: flex; flex-direction: column; gap: 20px; }
.studio-copy p { font-size: 15px; line-height: 1.6; color: var(--text-body); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); }
.fact { padding: 16px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--border); }
.fact:last-child { border-right: none; }
.fact-n { font-family: var(--font-mono); font-size: 22px; font-weight: 500; color: var(--color-accent); }
.fact-label { font-size: 11px; line-height: 1.4; color: var(--text-muted); }
.studio-tile {
  aspect-ratio: 4 / 3; background: var(--ground-sky-page); border: 1px solid var(--border-sky);
  display: flex; align-items: center; justify-content: center;
}
.studio-tile-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.studio-tile-mark {
  width: 152px; height: 152px; background: var(--ground-ink);
  display: flex; align-items: center; justify-content: center;
}
.studio-tile-mark img { width: 104px; height: 104px; }
.studio-tile-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent-sky);
}

/* ── Kontakt & Footer (ink) ──────────────────────────────────────────── */
.contact { background: var(--ground-charcoal); }
.contact .container {
  padding-top: 72px; padding-bottom: 40px;
  display: flex; flex-direction: column; gap: 40px;
}
.contact .section-head { border-bottom-color: var(--border-charcoal); }
.contact .section-index { color: var(--text-on-dark-muted); }
.contact .section-title { color: var(--text-on-dark); }
.contact-lead { font-size: 15px; line-height: 1.6; color: var(--text-on-dark-muted); max-width: 56ch; }
.btn-resin { background: var(--resin-body); color: var(--ground-ink); align-self: flex-start; }
.btn-resin:hover { color: var(--ground-charcoal); background: var(--resin-highlight); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; }
.footer-brand-row img { width: 40px; height: 40px; }
.footer-brand-row span { font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; color: var(--text-on-dark); }
.footer-addr { font-size: 13px; line-height: 1.6; color: var(--text-on-dark-muted); max-width: 32ch; }
.footer-addr a { color: var(--text-on-dark-link); }
.footer-addr a:hover { color: var(--text-on-dark); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .label { color: var(--text-on-dark-faint); }
.footer-col a { font-size: 13px; color: var(--text-on-dark-link); }
.footer-col a:hover { color: var(--text-on-dark); }
.footer-bar {
  display: flex; justify-content: space-between; gap: 24px;
  padding-top: 20px; border-top: 1px solid var(--border-charcoal);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-on-dark-faint);
}

/* ── Unterseiten (Impressum, Datenschutz) ────────────────────────────── */
.doc { max-width: 720px; margin: 0 auto; padding: 64px 40px 88px; display: flex; flex-direction: column; gap: 20px; }
.doc h1 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.doc h2 { font-size: 18px; font-weight: 600; margin-top: 16px; }
.doc p { color: var(--text-body); }
.doc .eyebrow { margin-bottom: -8px; }
.placeholder {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--resin-highlight); border: 1px solid var(--resin-shadow);
  padding: 1px 6px; white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .studio .container { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section .container { padding-top: 56px; padding-bottom: 56px; }
  .doc { padding: 40px 20px 64px; }
}
@media (max-width: 620px) {
  .site-nav a:not(.btn-nav) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
}
