/* domato.pixkanal.com – Kawaii-Pixel-Look wie in den Minispielen (Schrift Fredoka, Farben aus den Sprites) */

@font-face { font-family: "Fredoka"; font-weight: 400 700; font-display: swap;
  src: url("../fonts/fredoka-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka"; font-weight: 400 700; font-display: swap;
  src: url("../fonts/fredoka-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fredoka Bold"; font-weight: 700; font-display: swap;
  src: url("../fonts/fredoka-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka Bold"; font-weight: 700; font-display: swap;
  src: url("../fonts/fredoka-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --sky: #8fd3f4;
  --sky-light: #c9ecfb;
  --grass: #7cc85a;
  --grass-dark: #4f9a3c;
  --leaf: #2f6b3a;
  --tomato: #e8483b;
  --tomato-dark: #b52e27;
  --gold: #f7c548;
  --soil: #e0a062;
  --soil-dark: #a8673a;
  --cream: #fff8ea;
  --card: #ffffff;
  --ink: #3b2a1f;
  --ink-soft: #6b5546;
  --line: #3b2a1f;
  --radius: 18px;
  --shadow: 0 5px 0 rgba(59, 42, 31, 0.9);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 500 1.0625rem/1.55 "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--tomato-dark); }
h1, h2, h3 { font-family: "Fredoka Bold", "Fredoka", system-ui, sans-serif; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; }

/* ---------- Kopfzeile ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 3; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.35rem "Fredoka Bold", sans-serif; }
.brand img { width: 40px; height: 40px; border-radius: 10px; border: 3px solid var(--line); background: #fff; }
.lang { display: flex; gap: 6px; }
.lang a {
  font: 700 .95rem "Fredoka Bold", sans-serif; text-decoration: none; color: var(--ink);
  background: #fff; border: 3px solid var(--line); border-radius: 10px; padding: 3px 10px;
}
.lang a[aria-current="true"] { background: var(--gold); }

/* ---------- Kopfbild mit Himmel ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(var(--sky) 0%, var(--sky-light) 70%, var(--sky-light) 100%);
  padding: 96px 0 0;
}
.hero .wrap { position: relative; z-index: 2; display: grid; gap: 28px; align-items: end; grid-template-columns: 1fr; }
.hero-text { padding-bottom: 8px; }
.badge {
  display: inline-block; background: var(--gold); border: 3px solid var(--line); border-radius: 999px;
  padding: 2px 14px; font: 700 .9rem "Fredoka Bold", sans-serif; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(3.2rem, 12vw, 6rem); color: var(--tomato); text-shadow: 4px 4px 0 var(--line); letter-spacing: .5px; margin-bottom: .1em; }
.tagline { font: 700 clamp(1.3rem, 3.6vw, 1.75rem) "Fredoka Bold", sans-serif; margin-bottom: .6em; }
.hero-text p.lead { max-width: 34em; font-size: 1.12rem; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  font: 700 1.1rem "Fredoka Bold", sans-serif; text-decoration: none;
  color: #fff; background: var(--tomato); border: 3px solid var(--line); border-radius: 14px;
  padding: 8px 20px; box-shadow: var(--shadow); transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(59, 42, 31, .9); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(59, 42, 31, .9); }
.btn.alt { background: #fff; color: var(--ink); }
.btn.green { background: var(--grass-dark); }
.btn svg { width: 20px; height: 20px; }

.hero-art { position: relative; margin: 0; }
.hof {
  display: block; width: 100%; border: 4px solid var(--line); border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.hof-caption { font-size: .85rem; color: var(--ink-soft); text-align: right; margin: 6px 0 0; }

.sun { position: absolute; z-index: 1; top: 70px; right: 6%; width: 108px; animation: bob 4s ease-in-out infinite; }
.cloud { position: absolute; z-index: 1; width: 140px; opacity: .95; animation: drift linear infinite; }
.cloud.c1 { top: 120px; left: -160px; animation-duration: 55s; }
.cloud.c2 { top: 200px; left: -160px; width: 100px; animation-duration: 75s; animation-delay: -30s; }
@keyframes drift { to { transform: translateX(calc(100vw + 320px)); } }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Feldweg mit fahrendem Traktor */
.road {
  position: relative; height: 92px; background: var(--soil);
  border-top: 6px solid var(--grass-dark); border-bottom: 6px solid var(--grass-dark);
  overflow: hidden;
}
.road::before {
  content: ""; position: absolute; inset: 44px 0 auto; height: 4px;
  background: repeating-linear-gradient(90deg, var(--soil-dark) 0 24px, transparent 24px 52px); opacity: .45;
}
.tractor {
  position: absolute; bottom: 10px; left: -170px; width: 156px; height: 124px; transform-origin: bottom;
  background: url("../img/traktor.png") 0 0 / 624px 124px no-repeat;
  image-rendering: pixelated; scale: .62;
  animation: tractor-frames .4s steps(4) infinite, tractor-drive 16s linear infinite;
}
.road .tomato { position: absolute; bottom: 30px; width: 30px; image-rendering: pixelated; }
@keyframes tractor-frames { to { background-position-x: -624px; } }
@keyframes tractor-drive { to { left: calc(100% + 40px); } }

/* ---------- Abschnitte ---------- */
section { padding: 64px 0; }
.section-head { max-width: 42em; margin-bottom: 30px; }
.section-head p { color: var(--ink-soft); font-size: 1.12rem; }

.games { background: var(--grass); background-image: radial-gradient(rgba(255,255,255,.18) 1.5px, transparent 1.6px); background-size: 22px 22px; }
.games .section-head p { color: var(--ink); }
.game-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.game {
  background: var(--card); border: 4px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 7px 0 rgba(59, 42, 31, .9); overflow: hidden; display: flex; flex-direction: column;
}
.shot { background: var(--sky); border-bottom: 4px solid var(--line); display: flex; justify-content: center; align-items: flex-end; height: 260px; overflow: hidden; }
.shot img { display: block; }
.shot.landscape img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.shot.portrait { gap: 14px; padding-top: 18px; background: linear-gradient(var(--sky), var(--grass)); }
.shot.portrait img { width: 120px; border: 3px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; }
.game-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.game-title { display: flex; align-items: center; gap: 10px; }
.game-title img { width: 40px; }
.game-title h3 { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; padding: 0; list-style: none; }
.tags li { font-size: .85rem; background: var(--cream); border: 2px solid var(--line); border-radius: 999px; padding: 0 10px; }
.controls { margin: 0 0 18px; padding: 12px 14px; background: var(--cream); border-radius: 12px; font-size: .95rem; }
.controls dt { font-family: "Fredoka Bold", sans-serif; }
.controls dd { margin: 0 0 6px; }
.controls dd:last-child { margin: 0; }
.game .btn { align-self: flex-start; margin-top: auto; }
.note {
  margin-top: 26px; background: #fff; border: 3px solid var(--line); border-radius: 14px;
  padding: 12px 16px; display: flex; gap: 12px; align-items: center;
}
.note img { width: 32px; flex: none; }
.note p { margin: 0; }

.features { display: grid; gap: 18px; grid-template-columns: 1fr; }
.feature { background: #fff; border: 3px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.feature .icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; border: 3px solid var(--line); margin-bottom: 12px; background: var(--sky-light); }
.feature .icon img { width: 32px; image-rendering: pixelated; }
.feature p { margin: 0; color: var(--ink-soft); }
.platforms { margin-top: 24px; font-size: 1.05rem; }

.follow { background: var(--sky-light); text-align: center; }
.follow .section-head { margin-inline: auto; }
.follow .buttons { justify-content: center; }
.grandpa { width: 64px; image-rendering: pixelated; margin-bottom: 8px; }

footer { background: var(--leaf); color: #e9f5e3; padding: 30px 0 40px; font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer a { color: #fff; }
footer ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }

@media (min-width: 760px) {
  .game-grid { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .shot { height: 300px; }
}
@media (min-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr 1.15fr; }
  .hero-text { padding-bottom: 48px; }
  .features { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 520px) {
  .sun { width: 72px; top: 64px; right: 16px; }
  .top .brand span { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .tractor { left: 12%; }
}
