/* =====================================================================
   STYLE.CSS – Aussehen der Seite. Inhalte änderst du in config.js.
   ===================================================================== */

/* ---------- Schrift (lokal, kein Abruf bei Google) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}

/* ---------- Farben & Maße ---------- */
:root {
  --bg: #e5e1dd;              /* Marken-Beige */
  --petrol: #083a4f;          /* Marken-Petrol */
  --teal: #407e8c;            /* Marken-Teal */
  --gold: #e3bf6e;            /* Gold aus dem Community-Logo */

  --ink: #062b3a;             /* Text auf hellem Grund */
  --ink-soft: rgba(6, 43, 58, 0.74);
  --ink-faint: rgba(6, 43, 58, 0.58);

  --on-dark: #f7f4f0;         /* Text auf dunklen Karten */
  --on-dark-soft: rgba(247, 244, 240, 0.72);
  --on-dark-faint: rgba(247, 244, 240, 0.45);
  --accent: var(--gold);

  --glass: linear-gradient(135deg, rgba(20, 88, 110, 0.94) 0%, rgba(8, 58, 79, 0.95) 48%, rgba(5, 40, 56, 0.96) 100%);
  --glass-solid: #083a4f;
  --border: rgba(255, 255, 255, 0.16);
  --border-hover: rgba(255, 255, 255, 0.45);
  --shadow: 0 16px 30px -16px rgba(6, 43, 58, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --radius: 24px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* ---------- Hintergrund ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #e5ddd2;
}

/* Unscharfes Meer-Bild (assets/hintergrund.jpg), bewegt sich sehr langsam */
.sea {
  position: absolute;
  inset: -6%;
  background: url("assets/hintergrund.jpg") center / cover no-repeat;
  will-change: transform;
  animation: sea 40s ease-in-out infinite alternate;
}
@keyframes sea {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to   { transform: translate3d(1.5%, 1.5%, 0) scale(1.06); }
}

/* Schwebende Glasformen: geben dem Hintergrund Tiefe */
.shape {
  position: absolute;
  border-radius: 26%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 34px -18px rgba(6, 43, 58, 0.35);
  will-change: transform;
}
.shape-1 {
  top: 9%; right: 7%;
  width: 74px; height: 74px;
  transform: rotate(14deg);
  animation: float-1 13s ease-in-out infinite alternate;
}
.shape-2 {
  bottom: 13%; left: 5%;
  width: 54px; height: 54px;
  border-radius: 50%;
  animation: float-2 16s ease-in-out infinite alternate;
}
.shape-3 {
  top: 43%; left: -26px;
  width: 64px; height: 64px;
  background: linear-gradient(145deg, rgba(64, 126, 140, 0.22), rgba(64, 126, 140, 0.05));
  border-color: rgba(64, 126, 140, 0.25);
  transform: rotate(-18deg);
  animation: float-3 19s ease-in-out infinite alternate;
}
@keyframes float-1 { to { transform: translate3d(-8px, 16px, 0) rotate(24deg); } }
@keyframes float-2 { to { transform: translate3d(10px, -18px, 0); } }
@keyframes float-3 { to { transform: translate3d(8px, 14px, 0) rotate(-8deg); } }

/* Feines Korn */
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .3 0 0 0 0 .34 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---------- Seite ---------- */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 36px 18px 24px;
  padding-top: calc(36px + env(safe-area-inset-top));
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100vh;
  min-height: 100svh;
}

/* ---------- Dunkles Milchglas ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}
/* Fallback ohne Blur: deckende Fläche */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-solid); }
}

/* ---------- Profil (steht frei, ohne Kasten) ---------- */
.profile {
  padding: 0 8px 18px;
  text-align: center;
}
.avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 14px 30px -12px rgba(6, 43, 58, 0.45);
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #d6d0ca;
}
.name {
  margin: 0;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.slogan {
  margin: 8px auto 0;
  max-width: 19em;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: balance;
}

/* ---------- Link-Karten ---------- */
.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 10px 14px;
  color: var(--on-dark);
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.3, 1),
              border-color 0.28s ease, box-shadow 0.28s ease;
}
.card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--gold);
  background: rgba(227, 191, 110, 0.1);
  border: 1px solid rgba(227, 191, 110, 0.3);
}
.card-icon svg { width: 20px; height: 20px; }
.card-text { flex: 1; min-width: 0; }
.card-title {
  display: block;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.3;
}
.card-sub {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--on-dark-soft);
}
.card-arrow {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--on-dark-faint);
  transition: transform 0.28s ease, color 0.28s ease;
}

/* Bild statt Icon (z. B. Community-Logo) */
.card-icon.has-image { border: 0; background: none; overflow: hidden; }
.card-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Top-Link: gleiche Größe, aber heller, mit Goldrand und Schimmer */
.card-top {
  background: linear-gradient(135deg, #4f95a3 0%, #23687d 42%, #0c475e 100%);
  border-color: rgba(227, 191, 110, 0.75);
  box-shadow: 0 16px 30px -16px rgba(6, 43, 58, 0.6), 0 0 0 4px rgba(227, 191, 110, 0.16),
              inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.card-top .card-icon { color: var(--gold); }
.card-top .card-arrow { color: rgba(247, 244, 240, 0.7); }
.shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.shine::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 45%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 244, 214, 0.34) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-130%) skewX(-18deg);
  animation: shine 4.5s ease-in-out 1.4s infinite;
}
@keyframes shine {
  0%   { transform: translateX(-130%) skewX(-18deg); }
  38%  { transform: translateX(330%) skewX(-18deg); }
  100% { transform: translateX(330%) skewX(-18deg); }
}
.badge {
  position: absolute;
  top: -10px;
  right: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #3b2a05;
  background: linear-gradient(135deg, #f3d992, #d9ae52);
  box-shadow: 0 4px 10px -4px rgba(6, 43, 58, 0.5);
}

/* ---------- App-Icons unten (Originalfarben) ---------- */
.social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.app {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  color: #fff;
  background: var(--glass-solid);
  box-shadow: 0 10px 20px -10px rgba(6, 43, 58, 0.55);
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.3, 1), box-shadow 0.28s ease;
}
.app svg { width: 22px; height: 22px; }
.app-neutral { color: var(--on-dark); }
.app-neutral svg { width: 19px; height: 19px; }

.app-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.app-spotify { background: #121212; color: #1ed760; }
.app-spotify svg { width: 26px; height: 26px; }
.app-tiktok { background: #010101; }
.app-tiktok svg { filter: drop-shadow(-1.5px -1px 0 #25f4ee) drop-shadow(1.5px 1px 0 #fe2c55); }
.app-whatsapp { background: #25d366; }
.app-youtube { background: #fff; color: #ff0000; }
.app-youtube svg { width: 26px; height: 26px; }
/* Diese Logos bringen ihre eigene Kachelform mit: Logo füllt die Kachel, innen weiß hinterlegt */
.app-applepodcasts { color: #9933cc; background: linear-gradient(#fff, #fff) center / 80% 80% no-repeat, #9933cc; }
.app-linkedin { color: #0a66c2; background: linear-gradient(#fff, #fff) center / 80% 80% no-repeat, #0a66c2; }
.app-applepodcasts svg, .app-linkedin svg { width: 100%; height: 100%; }

/* ---------- Podcast-Player ---------- */
.podcast { margin-top: 26px; }
.podcast-load {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.podcast-icon { color: #1ed760; background: #121212; border-color: transparent; border-radius: 50%; }
.podcast-icon svg { width: 24px; height: 24px; }
.podcast-load .card-arrow { color: var(--on-dark-soft); }
.podcast-note {
  margin: 8px 6px 0;
  font-size: 11.5px;
  line-height: 1.4;
  text-align: center;
  color: var(--ink-soft);
}
.podcast-frame {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 16px 30px -16px rgba(6, 43, 58, 0.6);
}

/* ---------- Fußzeile ---------- */
.footer {
  margin-top: auto;
  padding-top: 22px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.footer a {
  display: inline-block;
  padding: 13px 8px;
  color: inherit;
  text-decoration: none;
}
.footer a:hover { color: var(--ink); }

/* ---------- Hover / Tap ---------- */
@media (hover: hover) {
  .card:hover, .app:hover { transform: translateY(-4px); }
  .card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 24px 40px -18px rgba(6, 43, 58, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  .card:hover .card-arrow { transform: translateX(3px); color: var(--on-dark); }
  .app:hover { box-shadow: 0 16px 24px -12px rgba(6, 43, 58, 0.6); }
}
.card:active, .app:active { transform: translateY(-4px); }
.card:active { border-color: var(--border-hover); }
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Sanftes Einblenden nacheinander ---------- */
.reveal {
  opacity: 0;
  animation: reveal 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 80ms);
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Ohne JavaScript ---------- */
.noscript { padding: 24px; text-align: center; color: var(--on-dark); }
.noscript h1 { font-weight: 600; margin: 0 0 8px; }
.noscript a { color: var(--gold); }

/* ---------- Kleine Handys ---------- */
@media (max-width: 350px) {
  .page { padding-left: 12px; padding-right: 12px; }
  .name { font-size: 25px; }
  .social { gap: 10px; }
}

/* ---------- Größere Bildschirme ---------- */
@media (min-width: 700px) {
  .page { padding-top: 64px; gap: 14px; }
  .name { font-size: 32px; }
}

/* ---------- Weniger Bewegung gewünscht: alles steht still ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; }
  .card:hover, .card:active, .app:hover, .app:active { transform: none; }
}
