/* ==========================================================================
   MindMake – gemeinsames Stylesheet
   Alle Farben, Schriften und Abstände stehen als Variablen in :root.
   Wer den Akzentton wechseln will, ändert dort eine einzige Zeile.
   ========================================================================== */

/* --- Schriften, lokal ausgeliefert aus /fonts/ ---------------------------- */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-700-normal.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-normal.woff2') format('woff2');
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  --bg:        #0B100F;   /* Seitenhintergrund */
  --panel:     #0E1513;   /* Kacheln und Karten */
  --line:      #1C2724;   /* Trennlinien und Rahmen */
  --line-2:    #2A3733;   /* Rahmen der Plaketten */
  --line-3:    #26332F;   /* senkrechter Trenner im Menü */

  --text:      #F2F0EA;   /* Fließtext und Überschriften */
  --text-2:    #DDE3E0;   /* Menü und Untertitel */
  --muted:     #9FAEA9;   /* Beschreibungstexte */
  --muted-2:   #8FA09B;   /* Beschriftungen, Fußzeile, Domainendung */

  --accent:    #B7D44A;   /* Akzent: Links, Zeile über dem Titel, Aktionen */
  --accent-h:  #CDE672;   /* Akzent beim Überfahren */
  --accent-2:  #5AA394;   /* zweite Farbe in den Zeichnungen */

  --font:      'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mono:      'IBM Plex Mono', ui-monospace, 'Courier New', monospace;

  --gutter:    72px;      /* seitlicher Rand, wird unten verkleinert */
}

/* --- Grundlagen ----------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;

  /* Fusszeile bleibt am unteren Fensterrand, auch wenn der Inhalt kurz ist */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img, svg { max-width: 100%; }

a { color: var(--accent); }
a:hover { color: var(--accent-h); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Für Screenreader sichtbar, optisch ausgeblendet */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Zeichenfarben der SVG-Grafiken --------------------------------------
   Als Klassen statt als Attribut, weil var() in SVG-Präsentationsattributen
   nicht zuverlässig greift. So folgen die Zeichnungen den Tokens oben.     */

.ink-a  { stroke: var(--accent); }
.ink-b  { stroke: var(--accent-2); }
.ink-c  { stroke: #4E5F5A; }
.ink-d  { stroke: var(--muted-2); }
.ink-b-fill { fill: var(--accent-2); }

/* --- Kopfbereich ---------------------------------------------------------- */

.site-head {
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  min-height: 96px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand .tld { color: var(--muted-2); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  font-size: 15px;
  color: var(--text-2);
  text-decoration: none;
}
.main-nav a:hover { color: var(--accent); }

.nav-sep {
  width: 1px;
  height: 20px;
  background: var(--line-3);
}

.lang {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 13px;
}
.lang a {
  color: var(--muted-2);
  text-decoration: none;
}
.lang a[aria-current='true'] { color: var(--accent); }
.lang .sep { color: #55635F; }

/* --- Titelbereich --------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 56px;
  align-items: center;
  padding-block: 56px;
}

.kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(3rem, 7vw, 4.75rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tagline {
  margin: 18px 0 0;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.3;
  color: var(--text-2);
}

.lead {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
}

/* --- Kollage aus den vier Arbeitsbereichen -------------------------------- */

.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
}

/* Die Zeichnung behaelt ihr Seitenverhaeltnis, die Beschriftung bekommt
   darunter einen eigenen Streifen. So ueberlappt nichts, egal wie schmal
   die Kachel wird. */
.tile {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tile svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 302 / 188;
}
.tile figcaption {
  flex-shrink: 0;
  padding: 0 0 9px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}

/* --- Die drei Bereiche ---------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-block: 16px 40px;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 224px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
}
.card:hover { border-color: #2F403B; color: var(--text); }

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.card h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.action {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
.badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted-2);
  white-space: nowrap;
}

/* --- Fußzeile ------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--line);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 100px;
  padding-block: 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted-2);
}

/* ==========================================================================
   Umbrüche. Die Reihenfolge ist wichtig: von breit nach schmal, damit die
   späteren Regeln die früheren überschreiben.
   ========================================================================== */

/* Tablet quer und kleine Notebooks: Titel und Kollage untereinander */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .lead { max-width: 65ch; }
}

/* Tablet hoch: zwei statt drei Karten nebeneinander */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* Handy: Menü rutscht in eine eigene Zeile, Ränder werden schmaler */
@media (max-width: 700px) {
  :root { --gutter: 24px; }

  .head-inner {
    min-height: 0;
    padding-block: 14px;
    gap: 12px 16px;
  }
  .brand { font-size: 18px; }

  .main-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .main-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;   /* bequem mit dem Daumen zu treffen */
    font-size: 14px;
  }
  .nav-sep { display: none; }

  .lang a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .hero { padding-block: 32px; gap: 32px; }
  .cards { grid-template-columns: 1fr; padding-bottom: 32px; }
  .card { min-height: 0; }
  .foot-inner { min-height: 0; font-size: 12px; }
}

/* Wer Bewegung reduziert haben möchte, bekommt keine Übergänge */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
