/* Thailand Infos – Link-Seite. Farben aus dem Kanal-Logo. */

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/fredoka-600.woff2") format("woff2");
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/fredoka-700.woff2") format("woff2");
}

:root {
  --sky-top: #4fb9e6;
  --sky-mid: #8acde3;
  --sky-low: #bee1df;
  --water-top: #2bbdbe;
  --water-deep: #1b88a5;
  --coral: #ff6a5e;
  --orange: #ff9a3c;
  --yellow: #ffd21f;
  --wine: #8e1546;
  --ink: #123a52;
  --scene-h: clamp(172px, 26dvh, 216px);
  --sab: env(safe-area-inset-bottom, 0px);
  --logo: clamp(136px, 26dvh, 200px);
  --font: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  background: var(--sky-top);
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink);
  background: var(--sky-top);
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-low) 100%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Inhalt ---------- */

.content {
  flex: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: clamp(16px, 4dvh, 28px) max(20px, env(safe-area-inset-right)) clamp(14px, 2.4dvh, 20px) max(20px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-wrap {
  position: relative;
  flex: none;
  width: var(--logo);
  height: var(--logo);
  border-radius: 50%;
  touch-action: pan-y;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.92),
    0 18px 34px rgba(8, 70, 100, 0.32);
}

.logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.logo-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.tagline {
  margin: clamp(12px, 2.4dvh, 18px) 0 clamp(16px, 3.2dvh, 24px);
  padding: 8px 20px 9px;
  max-width: 100%;
  background: #fff;
  color: var(--wine);
  border-radius: 999px;
  font-size: 1.05rem;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  box-shadow: 0 4px 0 rgba(14, 80, 105, 0.25);
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: clamp(12px, 2dvh, 16px);
}

/* Knöpfe: Verlauf wie der Schriftzug im Logo, dicker Weinrot-Rand = 3D */
.link {
  display: grid;
  grid-template-columns: 46px 1fr 28px;
  align-items: center;
  gap: 14px;
  min-height: clamp(60px, 9dvh, 70px);
  padding: 8px 18px 8px 12px;
  border: 3px solid var(--wine);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--coral) 0%, var(--orange) 52%, var(--yellow) 100%);
  color: #fff;
  text-decoration: none;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.55),
    0 6px 0 var(--wine),
    0 14px 22px rgba(8, 70, 100, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.link__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--wine);
  box-shadow: 0 2px 0 rgba(142, 21, 70, 0.35);
}

.link__icon svg {
  width: 24px;
  height: 24px;
}

.link__label {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 3px 0px 0 var(--wine),2.6px 1.5px 0 var(--wine),1.5px 2.6px 0 var(--wine),0px 3px 0 var(--wine),-1.5px 2.6px 0 var(--wine),-2.6px 1.5px 0 var(--wine),-3px 0px 0 var(--wine),-2.6px -1.5px 0 var(--wine),-1.5px -2.6px 0 var(--wine),0px -3px 0 var(--wine),1.5px -2.6px 0 var(--wine),2.6px -1.5px 0 var(--wine),0px 5px 0 var(--wine),2px 4.5px 0 var(--wine),-2px 4.5px 0 var(--wine);
}

.link__arrow {
  width: 28px;
  height: 28px;
  color: var(--wine);
  opacity: 0.9;
  transition: transform 0.16s ease;
}

@media (hover: hover) {
  .link:hover {
    transform: translateY(-3px);
    box-shadow:
      inset 0 3px 0 rgba(255, 255, 255, 0.55),
      0 9px 0 var(--wine),
      0 20px 28px rgba(8, 70, 100, 0.3);
  }
  .link:hover .link__arrow {
    transform: translateX(3px);
  }
  .pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 rgba(14, 80, 105, 0.3);
  }
}

.link:active {
  transform: translateY(5px);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.45),
    0 1px 0 var(--wine),
    0 4px 8px rgba(8, 70, 100, 0.25);
}

.link:focus-visible,
.pill:focus-visible,
.card a:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px var(--wine);
}
.link:focus-visible {
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.55),
    0 6px 0 var(--wine),
    0 0 0 8px var(--wine);
}

/* Zweitrangige Knöpfe (Impressum, Datenschutz) */
.legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.legal .pill {
  margin-top: 6px;
  padding-left: 12px;
  padding-right: 12px;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 5px 0 rgba(14, 80, 105, 0.3);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.pill:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 rgba(14, 80, 105, 0.3);
}
.pill svg {
  width: 20px;
  height: 20px;
}

/* ---------- Szene: Berge, Sonne, Wasser, Boot ---------- */
/* Alle Masse haengen an --scene-h, damit die Szene auf kleinen Handys mitschrumpft. */

.scene {
  position: relative;
  flex: none;
  height: calc(var(--scene-h) + var(--sab));
  overflow: hidden;
  pointer-events: none;
}

.sun {
  position: absolute;
  right: calc(var(--scene-h) * 0.3);
  bottom: calc(var(--scene-h) * 0.62 + var(--sab));
  width: calc(var(--scene-h) * 0.25);
  height: calc(var(--scene-h) * 0.25);
  border-radius: 50%;
  background: #ffe28a;
  box-shadow: 0 0 0 calc(var(--scene-h) * 0.065) rgba(255, 240, 180, 0.55);
}

.mtn {
  position: absolute;
  bottom: calc(var(--scene-h) * 0.51 + var(--sab));
  height: auto;
}
.mtn--left {
  left: calc(var(--scene-h) * -0.14);
  width: calc(var(--scene-h) * 0.95);
}
.mtn--right {
  right: calc(var(--scene-h) * -0.12);
  width: calc(var(--scene-h) * 1.04);
}
.mtn--mid {
  left: 50%;
  bottom: calc(var(--scene-h) * 0.48 + var(--sab));
  width: calc(var(--scene-h) * 0.46);
  margin-left: calc(var(--scene-h) * -0.37);
}

.water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--scene-h) * 0.54 + var(--sab));
  background: linear-gradient(180deg, var(--water-top) 0%, var(--water-deep) 100%);
  overflow: hidden;
}

/* treibende Wellenlinien: breiter als der Bildschirm, per transform (GPU) verschoben */
.water__waves {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(100% + 160px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='44' viewBox='0 0 160 44'%3E%3Cpath d='M10 12q8-7 16 0t16 0' fill='none' stroke='white' stroke-opacity='.6' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M92 32q8-7 16 0t16 0' fill='none' stroke='white' stroke-opacity='.6' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 160px 44px;
  background-position: 0 14px;
}
.water__waves--b {
  left: -200px;
  width: calc(100% + 200px);
  background-size: 200px 55px;
  background-position: 40px 36px;
  opacity: 0.55;
}

.boat {
  position: absolute;
  left: 50%;
  bottom: calc(var(--scene-h) * 0.167 + var(--sab));
  width: calc(var(--scene-h) * 1.02);
  margin-left: calc(var(--scene-h) * -0.51);
  z-index: 1;
}
.boat svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Vorderes Wasser verdeckt den Rumpf unten */
.water__front {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--scene-h) * 0.2 + var(--sab));
  z-index: 2;
  background: linear-gradient(180deg, #209aad 0%, var(--water-deep) 100%);
}
.water__front::before {
  content: "";
  position: absolute;
  left: 0;
  right: -72px;
  top: -9px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='10' viewBox='0 0 72 10'%3E%3Cpath d='M0 10V5q9-7 18 0t18 0 18 0 18 0V10z' fill='%23209aad'/%3E%3C/svg%3E");
  background-size: 72px 10px;
  background-repeat: repeat-x;
}

@media (prefers-reduced-motion: no-preference) {
  .link,
  .pill {
    animation: rise 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards;
    animation-delay: calc(var(--i, 0) * 90ms + 120ms);
  }
  .logo-wrap {
    animation: pop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.25) backwards;
  }

  .boat {
    animation: bob 4.6s ease-in-out infinite alternate;
    transform-origin: 50% 90%;
  }
  .water__waves {
    animation: drift 16s linear infinite;
    will-change: transform;
  }
  .water__waves--b {
    animation: drift-back 26s linear infinite;
  }
  .water__front::before {
    animation: swell 7s linear infinite;
    will-change: transform;
  }
  .ribbon {
    transform-box: fill-box;
    transform-origin: 0 50%;
    animation: flutter 1.8s ease-in-out infinite alternate;
  }
  .ribbon:nth-of-type(2) {
    animation-delay: -0.5s;
  }
  .ribbon:nth-of-type(3) {
    animation-delay: -1s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
}
@keyframes bob {
  from {
    transform: translateY(0) rotate(-1.2deg);
  }
  to {
    transform: translateY(-6px) rotate(1.2deg);
  }
}
@keyframes drift {
  to {
    transform: translateX(-160px);
  }
}
@keyframes drift-back {
  to {
    transform: translateX(200px);
  }
}
@keyframes swell {
  to {
    transform: translateX(-72px);
  }
}
@keyframes flutter {
  from {
    transform: rotate(-3deg) scaleX(0.96);
  }
  to {
    transform: rotate(4deg) scaleX(1.04);
  }
}

/* Sehr schmale Handys (iPhone SE 1, kleine Android) */
@media (max-width: 350px) {
  .tagline {
    font-size: 0.98rem;
    padding-inline: 16px;
  }
  .link {
    grid-template-columns: 42px 1fr 24px;
    gap: 10px;
  }
  .link__icon {
    width: 42px;
    height: 42px;
  }
  .link__label {
    font-size: 1.35rem;
  }
  .legal .pill {
    font-size: 1rem;
  }
}

/* Tablet / Desktop */
@media (min-width: 700px) {
  :root {
    --scene-h: 280px;
    --logo: 224px;
  }
  .content {
    padding-top: 56px;
  }
  .mtn--left {
    left: 4%;
    width: 300px;
  }
  .mtn--right {
    right: 4%;
    width: 330px;
  }
  .sun {
    right: 27%;
  }
}

/* Handy quer: Logo links, Links rechts, damit alles auf einen Bildschirm passt */
@media (orientation: landscape) and (max-height: 520px) {
  :root {
    --scene-h: clamp(110px, 30dvh, 150px);
    --logo: clamp(104px, 42dvh, 170px);
  }
  .content:not(.content--wide) {
    max-width: 760px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "logo links"
      "tag links";
    column-gap: clamp(24px, 6vw, 48px);
    align-content: center;
    justify-items: center;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .content:not(.content--wide) .logo-wrap {
    grid-area: logo;
  }
  .content:not(.content--wide) .tagline {
    grid-area: tag;
    margin: 12px 0 0;
    font-size: 0.92rem;
    max-width: calc(var(--logo) + 80px);
  }
  .content:not(.content--wide) .links {
    grid-area: links;
    gap: 12px;
  }
  .link {
    min-height: 58px;
  }
  .pill {
    min-height: 46px;
  }
}

/* ---------- Impressum ---------- */

.card {
  width: 100%;
  margin: 0 0 22px;
  padding: 26px 22px 28px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 6px 0 rgba(14, 80, 105, 0.28), 0 18px 34px rgba(8, 70, 100, 0.22);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.55;
}
.card h1 {
  margin: 0 0 14px;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--wine);
}
.card h2 {
  margin: 26px 0 6px;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--wine);
}
.card p {
  margin: 0 0 10px;
}
.card address {
  margin: 0 0 10px;
  font-style: normal;
}
.card a {
  color: var(--water-deep);
  text-underline-offset: 3px;
}
.card .small {
  font-size: 0.9rem;
  opacity: 0.85;
}

.content--wide {
  max-width: 560px;
}
