/* Startseite von Greschner Media (index.html). Baut auf style.css auf: Farben, Schrift, Knopf, Fußzeile.
   Eigene Zeichnungen als SVG direkt im HTML, ohne fremde Schriften oder Bilder. Jedes Projekt hat einen
   eigenen Farbton (p1 bis p3), die Zeichnungen nehmen ihn über die Klassen ton, hell, linie und faden. */

:root {
  --p1: #0b6875;
  --p1-hell: #ddeeee;
  --p2: #4a3aa7;
  --p2-hell: #e9e6fa;
  --p3: #9a4616;
  --p3-hell: #f9e8dc;
  --sonne: #e0a341;
  --sonne-hell: #f6e2bd;
  --rund-gross: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --p1: #6dc3cd;
    --p1-hell: #133238;
    --p2: #b4aaff;
    --p2-hell: #25214a;
    --p3: #f2a878;
    --p3-hell: #3a2517;
    --sonne: #e8b45a;
    --sonne-hell: #4a3815;
  }
}

html { scroll-behavior: smooth; }

.p1 { --ton: var(--p1); --ton-hell: var(--p1-hell); }
.p2 { --ton: var(--p2); --ton-hell: var(--p2-hell); }
.p3 { --ton: var(--p3); --ton-hell: var(--p3-hell); }

.start {
  max-width: 70rem;
  margin: 0 auto;
  padding: 1rem 1rem 2.5rem;
}
.start .zurueck { margin: 0 0 .25rem -6px; }

/* Kopfzeile */
.leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  padding: .25rem 0 .5rem;
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 760;
  letter-spacing: -.015em;
}
.marke svg { width: 34px; height: 34px; flex: none; }
.marke-zart { font-weight: 430; color: var(--leise); }
.menue { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.menue a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--leise);
  font-size: .97rem;
  font-weight: 620;
  text-decoration: none;
}
.menue a:hover { color: var(--text); text-decoration: underline; }

/* Großer Einstieg */
.held {
  display: grid;
  gap: 2.25rem;
  align-items: center;
  padding: 1.75rem 0 3.25rem;
}
.vorzeile {
  margin: 0 0 .9rem;
  color: var(--akzent);
  font-size: .86rem;
  font-weight: 720;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.held h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.35rem, 9.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.markiert {
  background: linear-gradient(transparent 60%, var(--sonne-hell) 60%, var(--sonne-hell) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.einleitung {
  max-width: 34rem;
  margin: 0 0 1.75rem;
  color: var(--leise);
  font-size: clamp(1.06rem, 2.7vw, 1.24rem);
  line-height: 1.55;
}
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.zusammen { white-space: nowrap; }

/* Drei Punkte unter den Knöpfen: im Browser, installieren, ohne App-Store */
.vorteile {
  display: grid;
  gap: .55rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}
.vorteile li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
  font-size: .97rem;
  font-weight: 620;
  white-space: nowrap;
}
.vorteile svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: var(--akzent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.start .knopf {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .7rem 1.3rem;
  border-radius: 12px;
  text-decoration: none;
}
.start .knopf:hover { filter: brightness(1.08); }
.start .knopf-hell {
  color: var(--text);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--linie-stark);
}
.start .knopf-hell:hover { filter: none; box-shadow: inset 0 0 0 1.5px var(--text); }

/* Bühne mit den drei schwebenden Kacheln */
.buehne {
  position: relative;
  width: 100%;
  max-width: 31rem;
  aspect-ratio: 1 / .9;
  margin: 0 auto;
}
.buehne::before {
  content: "";
  position: absolute;
  inset: 4% 2% 2% 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, var(--sonne-hell), transparent 68%);
}
.kachel {
  --dreh: 0deg;
  position: absolute;
  display: grid;
  place-items: center;
  width: 60%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--linie);
  border-radius: var(--rund-gross);
  background: var(--ton-hell);
  box-shadow: 0 18px 40px -26px rgba(29, 36, 41, .55);
  transform: rotate(var(--dreh));
  animation: schweben 8s ease-in-out infinite;
}
.kachel svg { width: 78%; height: auto; overflow: visible; }
.k1 { --dreh: -6deg; left: 0; top: 3%; }
.k2 { --dreh: 5deg; right: 0; top: 33%; animation-delay: -2.7s; }
.k3 { --dreh: -2deg; left: 9%; bottom: 0; animation-delay: -5.3s; }
.punkt {
  position: absolute;
  right: 9%;
  top: 6%;
  width: 13%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sonne);
  animation: schweben 9s ease-in-out infinite -1.2s;
}

@keyframes schweben {
  0%, 100% { transform: translateY(0) rotate(var(--dreh, 0deg)); }
  50% { transform: translateY(-9px) rotate(var(--dreh, 0deg)); }
}

/* Zeichnungen: Farben aus dem Ton des Projekts */
.ton { fill: var(--ton); }
.hell { fill: var(--ton-hell); }
.papier { fill: var(--karte); }
.sonne { fill: var(--sonne); }
.linie { stroke: var(--ton); }
.faden { stroke: var(--ton); stroke-dasharray: 190; stroke-dashoffset: 190; animation: faden 2.4s ease-out .4s forwards; }
.spur { stroke: var(--leise); }
.rotor { transform-box: fill-box; transform-origin: center; animation: rotor .16s linear infinite alternate; }

@keyframes faden { to { stroke-dashoffset: 0; } }
@keyframes rotor { to { transform: scaleX(.32); } }

/* Projekte */
.projekte { padding: 1rem 0 3rem; scroll-margin-top: 1rem; }
.projekte h2, .kontakt-band h2 {
  margin: 0 0 .25rem;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.unterzeile { margin: 0 0 1.5rem; color: var(--leise); font-size: 1.05rem; }
.raster { display: grid; gap: 1rem; }

.projekt {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--linie);
  border-radius: var(--rund-gross);
  background: var(--karte);
  box-shadow: var(--schatten);
  transition: transform .2s ease, box-shadow .2s ease;
}
/* Ganze Karte anklickbar (Christians Wunsch vom 19.11.2026): Der eine Link der Karte („Auf TikTok ansehen“, „Zum Spiel“)
   legt seine Fläche über die ganze Karte. Es bleibt ein Link mit seinem Namen, ohne Links ineinander. Karten ohne Link
   (Status wie „Bald im Browser“) bleiben fest und heben sich beim Überfahren nicht. Der Tastatur-Fokus umrahmt die Karte. */
.projekt .weiter::after { content: ""; position: absolute; inset: 0; }
.projekt:has(.weiter):hover { transform: translateY(-3px); box-shadow: 0 22px 44px -30px rgba(29, 36, 41, .5); }
@supports selector(:has(*)) {
  .projekt:has(.weiter:focus-visible) { outline: 3px solid var(--akzent); outline-offset: 3px; }
  .projekt .weiter:focus-visible { outline: none; }
}
.projekt-bild {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: var(--ton-hell);
}
.projekt-bild svg { width: 66%; height: auto; overflow: visible; }
.projekt-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .35rem;
  padding: 1.1rem 1.25rem 1.2rem;
}
.projekt-text p { margin: 0; color: var(--leise); }
.projekt .art {
  color: var(--ton);
  font-size: .8rem;
  font-weight: 720;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.projekt h3 { margin: 0 0 .1rem; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; }
/* Zusatzzeile direkt über dem Link, z. B. „Auch als App installierbar“ beim Spiel (installieren geht nur auf seiner
   eigenen Seite). Sie gehört zum Link: freie Höhe kommt darüber, nicht dazwischen. Neben dem Link ist kein Platz
   (beide zusammen 344 px, die Karte innen höchstens 305 px), und die Links aller Karten sollen auf einer Höhe bleiben. */
.projekt-text .merkmal {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  padding-top: .9rem;
  color: var(--text);
  font-size: .97rem;
  font-weight: 620;
}
.merkmal svg {
  width: 21px;
  height: 21px;
  flex: none;
  fill: none;
  stroke: var(--ton);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Unterste Zeile jeder Karte: immer genau ein Link oder Status, überall gleich hoch (44 px), damit sie auf einer Linie liegen */
.projekt-text .projekt-fuss {
  display: flex;
  align-items: center;
  min-height: calc(44px + .9rem);
  margin-top: auto;
  padding-top: .9rem;
}
.projekt-text .merkmal + .projekt-fuss { min-height: 44px; margin-top: -.35rem; padding-top: 0; }
.status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: var(--ton-hell);
  color: var(--ton);
  font-size: .92rem;
  font-weight: 650;
}
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.weiter {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 44px;
  color: var(--ton);
  font-weight: 700;
  text-decoration: none;
}
.weiter:hover { text-decoration: underline; }
.weiter svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Kontakt */
.kontakt-band {
  display: grid;
  gap: 1rem 2rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 1.5rem 1.35rem;
  border-radius: var(--rund-gross);
  background: var(--akzent-hell);
  scroll-margin-top: 1rem;
}
.kontakt-band p { margin: 0; }
.kontakt-band > div > p { margin-top: .35rem; color: var(--leise); font-size: 1.05rem; }
.kontakt-wege { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.kontakt-wege .klein { overflow-wrap: anywhere; }

.startseite .fuss { margin-top: 1.5rem; }

@media (min-width: 44rem) {
  .start { padding: 1.25rem 1.5rem 3rem; }
  .raster { grid-template-columns: repeat(2, 1fr); }
  .kontakt-band { grid-template-columns: 1fr auto; padding: 2rem 2.25rem; }
}

@media (min-width: 60rem) {
  .held { grid-template-columns: 1.1fr .9fr; gap: 3rem; padding: 3.5rem 0 4.75rem; }
  .raster { grid-template-columns: repeat(3, 1fr); }
  /* Nur zwei Karten: beide teilen sich die ganze Breite. */
  .raster:not(:has(> :nth-child(3))) { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kachel, .punkt, .rotor { animation: none; }
  .faden { animation: none; stroke-dashoffset: 0; }
  .projekt, .projekt:has(.weiter):hover { transition: none; transform: none; }
}
