/* Delululand: Himmel oben, Wolken und Sonne, Rasenhügel unten. */
:root {
  --sky-top: #3E8FE0; --sky-mid: #7DBDF2; --sky-low: #D6EEFC;
  --red: #E8322E; --yellow: #FFD21F; --blue: #2E6FE0; --green: #3DB23A;
  --ink: #1D2A3A; --muted: #50627A; --card: #FFFFFFF0;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; position: relative;
  color: var(--ink); font: 17px/1.6 "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-low) 80%) fixed;
}
a { color: var(--blue); font-weight: 700; }

/* --- Szene (fest im Hintergrund) --- */
.scene { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sun {
  position: absolute; top: -90px; left: 50%; width: 240px; height: 240px; margin-left: -120px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, #FFFBE0 0%, #FFE76A 60%, #FFD21F 100%);
  box-shadow: 0 0 80px 40px #FFF3A0AA, 0 0 220px 100px #FFF7C466;
}
.sun::after {
  content: ""; position: absolute; inset: -90px; border-radius: 50%;
  background: repeating-conic-gradient(#FFF3A077 0deg 7deg, #FFF3A000 7deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 30%, #0000 70%); mask: radial-gradient(circle, #000 30%, #0000 70%);
  animation: spin 80s linear infinite;
}
.cloud { position: absolute; filter: drop-shadow(0 10px 12px #2E6FE026); animation: drift 80s ease-in-out infinite; }
.cloud svg { display: block; width: 100%; height: auto; }
.c1 { top: 3%;  left: -5%;  width: min(320px, 55vw); }
.c2 { top: 9%;  right: -7%; width: min(380px, 60vw); animation-duration: 110s; animation-direction: reverse; }
.c3 { top: 30%; left: 6%;   width: min(200px, 34vw); opacity: .85; animation-duration: 90s; }
.c4 { top: 26%; right: 8%;  width: min(190px, 32vw); opacity: .8;  animation-duration: 100s; animation-direction: reverse; }
.hills { position: absolute; left: 0; right: 0; bottom: 0; height: 32vh; min-height: 180px; }
.hills svg { width: 100%; height: 100%; display: block; }
@keyframes drift { 50% { transform: translateX(40px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Navigation --- */
nav { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 16px 16px 0; }
nav a {
  text-decoration: none; color: var(--ink); background: #FFFFFFD9; padding: 6px 16px; border-radius: 999px;
  font-weight: 800; font-size: 15px; box-shadow: 0 3px 0 #0000001F;
}
nav a[aria-current="page"] { background: var(--yellow); }

/* --- Wortmarke im Ballon-Look --- */
.wordmark {
  font-family: "Fredoka", "Nunito", sans-serif; font-weight: 700; line-height: 1;
  font-size: clamp(44px, 12.5vw, 132px); margin: 0; text-align: center; white-space: nowrap;
}
.wordmark span {
  display: inline-block; color: transparent; -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 1.5px #00000038;
  filter: drop-shadow(0 6px 4px #00000030);
  background-image: linear-gradient(170deg, #FFFFFFD0 0%, var(--c) 30%, var(--c) 68%, #00000060 100%);
  animation: bob 4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.35s);
}
.r { --c: var(--red); } .y { --c: var(--yellow); } .b { --c: var(--blue); } .g { --c: var(--green); }
@keyframes bob { 50% { transform: translateY(-6px); } }
.handle { text-align: center; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: clamp(18px, 4vw, 28px);
          color: #fff; text-shadow: 0 2px 0 var(--blue), 0 3px 8px #0003; margin: 10px 0 0; }
@media (prefers-reduced-motion: reduce) { .cloud, .sun::after, .wordmark span { animation: none; } }

/* --- Inhalt --- */
main { flex: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: 9vh 16px 6vh; }
.lead { text-align: center; font-size: clamp(18px, 2.6vw, 22px); font-weight: 800; color: #fff;
        text-shadow: 0 2px 8px #1D4E8A88; max-width: 30em; margin: 24px auto 0; }
.card { background: var(--card); border-radius: 26px; padding: 22px 24px; box-shadow: 0 10px 30px #1D4E8A33; }
.cta { display: flex; justify-content: center; margin-top: 30px; }
.button { display: inline-block; background: var(--red); color: #fff; text-decoration: none; font-weight: 800;
          padding: 12px 28px; border-radius: 999px; box-shadow: 0 5px 0 #A61E1B; }
.button:active { transform: translateY(3px); box-shadow: 0 2px 0 #A61E1B; }

h1.page { font-family: "Fredoka", sans-serif; font-size: clamp(36px, 7vw, 56px); color: #fff; text-align: center;
          text-shadow: 0 3px 0 var(--blue), 0 6px 14px #0003; margin: 0 0 26px; line-height: 1.1; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.project { display: flex; flex-direction: column; gap: 6px; border-top: 8px solid var(--c); }
.project h2 { font-family: "Fredoka", sans-serif; margin: 4px 0 0; font-size: 26px; line-height: 1.15; }
.project p { margin: 0; color: var(--muted); flex: 1; }
.project .links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 15px; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
       padding: 2px 10px; border-radius: 999px; background: var(--c); color: #fff; }
.tag.dark { color: var(--ink); }

/* Rechtstexte: gut lesbar auf weißer Karte */
.legal { max-width: 800px; padding-top: 5vh; }
.legal .card { padding: 28px clamp(18px, 4vw, 36px); }
.legal h1 { font-family: "Fredoka", sans-serif; font-size: clamp(26px, 5vw, 34px); margin: 0 0 12px; line-height: 1.2; }
.legal h2 { font-size: 19px; margin: 26px 0 6px; color: var(--blue); }
.legal .box { background: #EEF6FD; border-radius: 14px; padding: 12px 16px; }
.legal .muted { color: var(--muted); font-size: 14px; }
mark { background: #FFD21F99; color: var(--ink); padding: 0 4px; border-radius: 4px; }

/* Fußzeile sitzt auf dem Rasen */
footer { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 14vh 16px 22px;
         font-size: 14px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px #1F5A1488; }
footer a { color: #fff; }
