/* sisubay – placeholder page. All motion is CSS only: the CSP in _headers allows no scripts and no inline styles. */

/* Fredoka (SIL Open Font License, see /fonts/OFL-LICENSE.txt), variable weight. */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fredoka-latin-wght-normal.woff2") format("woff2");
}

:root {
  --c-sky: #ffd84a;
  --c-sky-glow: #fff3b8;
  --c-navy: #013673;
  --c-gold: #fdb30b;
  --c-coral: #ff6b5b;
  --c-sand: #fce7b6;
  --c-white: #fff;
  --font: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sea-h: clamp(4.5rem, min(3rem + 5vw, 11vh), 8rem);
  --sand-h: clamp(4rem, min(3rem + 3vw, 9vh), 6rem);
  /* The beach ball is 3rem wide; turns ≈ (viewport width + 3.5rem) / (π × 3rem), so it rolls instead of sliding. */
  --roll-turns: 3.2turn;
  --roll-time: 7s;
  color-scheme: light;
}

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

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

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(48rem 36rem at 88% -6%, var(--c-sky-glow), transparent 70%), var(--c-sky);
  color: var(--c-navy);
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--c-navy); outline-offset: 3px; border-radius: 0.375rem; }

/* ---------- Sky: sun, clouds, gulls ---------- */

.sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.sky svg { display: block; overflow: visible; }

.sun {
  position: absolute;
  top: clamp(-1.5rem, -2rem + 3vw, 2.5rem);
  right: clamp(-2rem, -4rem + 6vw, 4rem);
  width: clamp(6.5rem, 4rem + 9vw, 12rem);
  animation: breathe 4s ease-in-out infinite alternate;
}
.sun__rays {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 60s linear infinite;
}

.cloud {
  position: absolute;
  left: 0;
  animation: drift 90s linear infinite;
}
.cloud--1 { top: 9%; width: clamp(6rem, 4rem + 6vw, 11rem); animation-delay: -30s; }
.cloud--2 { top: 25%; width: clamp(4rem, 3rem + 3vw, 7rem); animation-duration: 70s; animation-delay: -52s; }
.cloud--3 { top: 3%; width: clamp(4.5rem, 3rem + 4vw, 8rem); animation-duration: 115s; animation-delay: -88s; }

.gull {
  position: absolute;
  top: 17%;
  left: 0;
  width: clamp(2.5rem, 2rem + 1.5vw, 3.75rem);
  animation: gull-fly 48s linear infinite;
  animation-delay: -16s;
}
.gull--2 { top: 13%; width: clamp(2rem, 1.5rem + 1vw, 2.75rem); animation-delay: -12.7s; }
.gull svg { animation: gull-bob 4s ease-in-out infinite alternate; }
.gull--2 svg { animation-delay: -2s; }

/* ---------- Content ---------- */

.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 6vh - 0.5rem, 5rem) clamp(1.25rem, 0.8rem + 2.5vw, 2.5rem) clamp(1.5rem, 5vh, 4rem);
  text-align: center;
}

/* The logo's yellow half needs a light backdrop on the yellow page: a white disc behind the symbol only. */
.logo {
  position: relative;
  isolation: isolate;
  display: block;
  width: clamp(7rem, min(6rem + 9vw, 22vh), 13rem);
  animation: bob 6s ease-in-out infinite alternate;
}
.logo img { display: block; width: 100%; height: auto; }
.logo::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 8.86%;
  top: -2.55%;
  width: 81.01%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: 0 0 2.5rem 0.5rem rgb(255 255 255 / 0.6);
}

.sticker {
  display: inline-block;
  margin: clamp(1rem, 0.75rem + 1vw, 1.5rem) 0 0;
  padding: 0.3rem 1.1rem 0.35rem;
  border: 3px solid var(--c-navy);
  border-radius: 999px;
  background: var(--c-white);
  box-shadow: 4px 4px 0 var(--c-navy);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  rotate: -3deg;
  animation: sticker 6s var(--ease) infinite;
}

h1 {
  max-width: 16ch;
  margin: 1rem auto 0;
  font-size: clamp(2.25rem, min(1.2rem + 4.4vw, 7.5vh), 4.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.wiggle {
  display: inline-block;
  transform-origin: 50% 80%;
  animation: wiggle 3.5s ease-in-out infinite;
}

.lead {
  max-width: 34rem;
  margin: 1rem auto 0;
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.4rem);
  font-weight: 450;
  line-height: 1.5;
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 2rem;
  padding: 0.6rem 1.6rem;
  border: 3px solid var(--c-navy);
  border-radius: 999px;
  background: var(--c-white);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--c-navy);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--c-navy); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--c-navy); }

/* ---------- Shore: sea, sand, props ---------- */

.shore {
  position: relative;
  overflow-x: clip;
}

.sea {
  position: relative;
  height: var(--sea-h);
}
.sea svg { position: absolute; display: block; }

/* Each wave is a repeating SVG pattern of period --p; shifting it by exactly one period loops seamlessly. */
.wave {
  --p: 240px;
  left: 0;
  width: calc(100% + var(--p));
  animation: wave-x 16s linear infinite, wave-y 4s ease-in-out infinite alternate;
}
.wave--1 { top: 0; height: calc(100% + 1rem); }
.wave--2 { --p: 200px; top: 30%; height: calc(70% + 1rem); animation-duration: 11s, 3.4s; animation-direction: reverse, alternate; }
.wave--3 { --p: 160px; top: 58%; height: calc(42% + 1rem); animation-duration: 7s, 2.8s; }

/* The boat floats in front of the back wave with its hull just below the wave troughs. */
.boat {
  --size: clamp(2.5rem, 2rem + 1.5vw, 3.75rem);
  top: calc(1.5rem - 0.89 * var(--size));
  left: 27%;
  width: var(--size);
  transform-origin: 50% 85%;
  animation: rock 3.6s ease-in-out infinite alternate;
}

.sand {
  position: relative;
  background-color: var(--c-sand);
  background-image:
    radial-gradient(circle, rgb(196 140 50 / 0.24) 1px, transparent 1.6px),
    radial-gradient(circle, rgb(196 140 50 / 0.16) 1px, transparent 1.6px);
  background-size: 1.4rem 1.4rem, 2.2rem 2.2rem;
  background-position: 0 0, 0.7rem 1.1rem;
}

.props {
  position: relative;
  height: var(--sand-h);
}
.props--slim { height: 1.5rem; }
.props svg { display: block; overflow: visible; }
.props > * { position: absolute; }

.surf {
  top: -14px;
  left: -90px;
  width: calc(100% + 180px);
  height: 26px;
  animation: surf 6s ease-in-out infinite alternate;
}

.lounge {
  left: clamp(-0.5rem, -1.5rem + 4vw, 5rem);
  bottom: 28%;
  width: clamp(8rem, 5rem + 11vw, 17rem);
}
.lounge__umbrella {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: sway 5s ease-in-out infinite alternate;
}

.castle {
  right: clamp(0.25rem, -1.5rem + 4vw, 5rem);
  bottom: 26%;
  width: clamp(8.5rem, 5.5rem + 10vw, 16rem);
}
.castle__flag {
  transform-box: fill-box;
  transform-origin: 0 50%;
  animation: flag 0.8s ease-in-out infinite alternate;
}
.castle__spade {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: dig 2.8s ease-in-out infinite;
}
.grain {
  transform-box: fill-box;
  opacity: 0;
  animation: grain 2.8s ease-out infinite;
}
.grain--2 { animation-delay: 0.08s; }
.grain--3 { animation-delay: 0.16s; }

.crab {
  left: 40%;
  bottom: 14%;
  width: clamp(2.75rem, 2.25rem + 1.5vw, 4rem);
  animation: scuttle 9s ease-in-out infinite;
}
.crab svg { animation: jitter 0.2s linear infinite alternate; }
.crab__claw {
  transform-box: fill-box;
  animation: pinch 0.9s ease-in-out infinite alternate;
}
.crab__claw--l { transform-origin: 70% 100%; }
.crab__claw--r { transform-origin: 30% 100%; animation-delay: -0.45s; }
.crab__eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 4.5s infinite;
}

.starfish {
  left: 31%;
  bottom: 6%;
  width: clamp(1.5rem, 1.2rem + 0.8vw, 2.25rem);
  rotate: -14deg;
}
.shell {
  right: 31%;
  bottom: 52%;
  width: clamp(1.25rem, 1rem + 0.7vw, 1.875rem);
  rotate: 12deg;
}

.ball {
  left: 0;
  bottom: 6%;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  animation: ball-x var(--roll-time) linear infinite;
}
.ball svg { width: 100%; height: 100%; animation: ball-spin var(--roll-time) linear infinite; }
/* Shine and shadow stay put while the ball turns underneath them. */
.ball::before,
.ball::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.ball::before {
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 32% 28%, rgb(255 255 255 / 0.8) 0 10%, transparent 26%),
    radial-gradient(circle at 70% 75%, rgb(1 54 115 / 0.2), transparent 62%);
}
.ball::after {
  left: 12%;
  right: 12%;
  bottom: -12%;
  z-index: -1;
  height: 20%;
  background: rgb(1 54 115 / 0.2);
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  padding: 0.25rem clamp(1.25rem, 0.8rem + 2.5vw, 2.5rem) max(1rem, env(safe-area-inset-bottom));
  font-size: 0.9375rem;
  font-weight: 500;
}
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem; }
.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  text-decoration-color: rgb(1 54 115 / 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
.footer a:hover { text-decoration-color: var(--c-coral); }

/* ---------- Legal page ---------- */

.legal-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) 1.25rem clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.legal-header .logo { width: clamp(6rem, 5rem + 3vw, 8rem); animation: none; }

.legal {
  position: relative;
  z-index: 1;
  width: min(48rem, 100% - 2rem);
  margin: 0 auto clamp(3rem, 2rem + 4vw, 5rem);
  padding: clamp(1.75rem, 1.25rem + 2vw, 3rem) clamp(1.25rem, 0.75rem + 3vw, 3.5rem);
  border: 3px solid var(--c-navy);
  border-radius: 1.75rem;
  background: var(--c-white);
  box-shadow: 6px 6px 0 var(--c-navy);
}
.legal section + section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 3px dotted rgb(1 54 115 / 0.3);
}
.legal h1 {
  max-width: none;
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  line-height: 1.1;
}
.legal h2 { margin: 1.75rem 0 0.4rem; font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.legal p, .legal address, .legal ul { margin: 0 0 1rem; font-style: normal; }
.legal section > :last-child { margin-bottom: 0; }
.legal ul { padding-left: 1.25rem; }
.legal a {
  text-decoration-color: var(--c-coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
.legal .intro { font-size: 1.0625rem; font-weight: 500; }
/* The street address is kept out of the HTML so address harvesters reading the markup don't find it; screen readers still announce generated content. */
.postal-address { display: block; white-space: pre-line; }
.postal-address::before { content: "Annastra\0000DFe 4\A 82008 Unterhaching\A Germany"; }

.contact-form { display: grid; gap: 0.3rem; max-width: 32rem; margin-bottom: 1rem; }
.contact-form label { margin-top: 0.5rem; font-weight: 600; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 3px solid var(--c-navy);
  border-radius: 0.875rem;
  background: #fffaeb;
  color: inherit;
  font: inherit;
}
.contact-form textarea { min-height: 8rem; resize: vertical; }
.contact-form p { margin: 0.75rem 0 0; font-size: 0.9375rem; }
.contact-form .btn { justify-self: start; margin-top: 0.75rem; color: inherit; font-family: inherit; cursor: pointer; }
/* Spam trap: invisible to people, but naive bots fill it in. */
.contact-form__trap { display: none; }
/* The form handler redirects back to #message-sent or #message-failed; no script is needed to show the result. */
.form-status {
  display: none;
  max-width: 32rem;
  padding: 0.75rem 1rem;
  border: 3px solid var(--c-navy);
  border-radius: 0.875rem;
  background: #d5f3f0;
  font-weight: 600;
  scroll-margin-top: 8rem;
}
.form-status--error { background: #ffe1dc; }
.form-status:target { display: block; }

/* ---------- Breakpoints ---------- */

@media (max-width: 639px) {
  .props .starfish, .props .shell { display: none; }
  .crab { left: 38%; }
}
@media (min-width: 600px) { :root { --roll-turns: 5.3turn; --roll-time: 10s; } }
@media (min-width: 900px) { :root { --roll-turns: 7.3turn; --roll-time: 13s; } }
@media (min-width: 1200px) { :root { --roll-turns: 9.6turn; --roll-time: 17s; } }
@media (min-width: 1600px) { :root { --roll-turns: 12.6turn; --roll-time: 22s; } }
@media (min-width: 2100px) { :root { --roll-turns: 15.5turn; --roll-time: 28s; } }

/* ---------- Keyframes ---------- */

@keyframes spin { to { transform: rotate(1turn); } }
@keyframes breathe { to { transform: scale(1.04); } }
@keyframes drift { from { transform: translateX(-10rem); } to { transform: translateX(100vw); } }
@keyframes gull-fly { 0% { transform: translateX(100vw); } 70%, 100% { transform: translateX(-4rem); } }
@keyframes gull-bob { to { transform: translateY(1.25rem); } }
@keyframes bob { from { transform: translateY(-0.35rem) rotate(-1.5deg); } to { transform: translateY(0.35rem) rotate(1.5deg); } }
@keyframes sticker {
  0%, 78%, 100% { rotate: -3deg; }
  84% { rotate: 5deg; }
  90% { rotate: -7deg; }
  95% { rotate: 0deg; }
}
@keyframes wiggle {
  0%, 62%, 100% { transform: rotate(0); }
  70% { transform: rotate(-5deg); }
  78% { transform: rotate(5deg); }
  86% { transform: rotate(-3deg); }
  93% { transform: rotate(2deg); }
}
@keyframes wave-x { to { transform: translateX(calc(-1 * var(--p))); } }
@keyframes wave-y { from { translate: 0 -3px; } to { translate: 0 3px; } }
@keyframes rock { from { transform: translateY(-2px) rotate(-5deg); } to { transform: translateY(2px) rotate(4deg); } }
@keyframes surf { from { transform: translate(0, 3px); } to { transform: translate(90px, -4px); } }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes flag { from { transform: scaleX(1) skewY(-4deg); } to { transform: scaleX(0.8) skewY(6deg); } }
@keyframes dig {
  0%, 55%, 100% { transform: rotate(0); }
  18% { transform: rotate(-16deg); }
  32% { transform: rotate(8deg); }
}
@keyframes grain {
  0%, 26% { opacity: 0; transform: translate(0, 0); }
  30% { opacity: 1; }
  46% { transform: translate(-10px, -18px); }
  62%, 100% { opacity: 0; transform: translate(-20px, -2px); }
}
@keyframes scuttle {
  0%, 100% { transform: translateX(0); }
  25%, 35% { transform: translateX(2rem); }
  60%, 70% { transform: translateX(-1rem); }
}
@keyframes jitter { to { transform: translateY(-1.5px); } }
@keyframes pinch { from { transform: rotate(-10deg); } to { transform: rotate(12deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes ball-x { 0% { transform: translateX(-3.5rem); } 75%, 100% { transform: translateX(100vw); } }
@keyframes ball-spin { 0% { transform: rotate(0); } 75%, 100% { transform: rotate(var(--roll-turns)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cloud--1 { transform: translateX(8vw); }
  .cloud--2 { transform: translateX(72vw); }
  .cloud--3 { transform: translateX(38vw); }
  .gull--1 { transform: translateX(64vw); }
  .gull--2 { transform: translateX(calc(64vw + 3rem)); }
  .ball { transform: translateX(52vw); }
}
