/* -----------------------------------------------------------------
   Dexotec Music Group — shared design system
   Loaded on every page: reset, color palette, animated blob
   background, header, footer. Page-specific styles live in their
   own file (home.css, legal.css, form.css) loaded after this one.
------------------------------------------------------------------*/

:root{
  --rose:   #D94F8E;
  --coral:  #E8845E;
  --amber:  #F2A93B;
  --mint:   #8EC9A0;
  --indigo: #4A6FD9;
  --ink:    #1a1028;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html{ overflow-x: hidden; }

body{
  margin: 0;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 100dvh;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color: inherit; }

@keyframes fadeIn{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* Blob background — the visual signature shared by every page */
.blob-bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--ink);
  transition: transform .6s ease-out;
}
.blob{
  position: absolute;
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 50%;
  filter: blur(100px);
  mix-blend-mode: normal;
  will-change: transform;
}
.blob-1{
  top: -20%; left: -10%;
  width: 65vmax; height: 65vmax;
  background: var(--rose);
  opacity: .6;
  animation: drift1 24s ease-in-out infinite alternate;
}
.blob-2{
  top: -10%; left: 30%;
  width: 58vmax; height: 58vmax;
  background: var(--coral);
  opacity: .55;
  animation: drift2 31s ease-in-out infinite alternate;
  border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%;
}
.blob-3{
  top: 20%; left: 50%;
  width: 62vmax; height: 62vmax;
  background: var(--amber);
  opacity: .62;
  animation: drift3 27s ease-in-out infinite alternate;
  border-radius: 60% 40% 45% 55% / 50% 60% 40% 50%;
}
.blob-4{
  top: 38%; right: -6%;
  width: 58vmax; height: 58vmax;
  background: var(--mint);
  opacity: .65;
  animation: drift4 22s ease-in-out infinite alternate;
  border-radius: 45% 55% 60% 40% / 40% 50% 55% 60%;
}
.blob-5{
  bottom: -22%; right: -4%;
  width: 64vmax; height: 64vmax;
  background: var(--indigo);
  opacity: .55;
  animation: drift5 33s ease-in-out infinite alternate;
}
@keyframes drift1{ 0%{ transform: translate(0,0) scale(1); } 100%{ transform: translate(10%,8%) scale(1.05); } }
@keyframes drift2{ 0%{ transform: translate(0,0) scale(1); } 100%{ transform: translate(-8%,10%) scale(0.95); } }
@keyframes drift3{ 0%{ transform: translate(0,0) scale(1); } 100%{ transform: translate(-12%,6%) scale(1.04); } }
@keyframes drift4{ 0%{ transform: translate(0,0) scale(1); } 100%{ transform: translate(-6%,-10%) scale(0.96); } }
@keyframes drift5{ 0%{ transform: translate(0,0) scale(1); } 100%{ transform: translate(-9%,-9%) scale(1.05); } }

.blob-overlay{
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, transparent 0%, rgba(10,5,20,0.15) 100%);
  pointer-events: none;
}

/* Very subtle film-grain texture so the background never reads as a
   flat, static gradient — purely decorative, no motion of its own. */
.blob-overlay::after{
  content: "";
  position: absolute;
  inset: -20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .035;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Blob layer drifts by a few px toward the cursor — set inline via
   base.js, guarded there by prefers-reduced-motion and pointer type. */

/* Layout shell */
.page{
  position: relative;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-header{
  display: flex;
  align-items: center;
  padding: 32px 40px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo{
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}
.wordmark{
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer{
  padding: 24px 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.copyright{
  margin: 0;
  font-size: .75rem;
  color: rgba(255,255,255,.4);
}
.legal-links{ font-size: .75rem; }
.legal-links a{
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color .2s ease;
}
.legal-links a:hover{ color: rgba(255,255,255,.7); }

/* Shared by every legal-style page (impressum, datenschutz, agreement,
   release-form) — kept here since it's used by most of the site. */
.back-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s ease;
}
.back-link:hover{ color: #fff; }

.kicker{
  margin: 0 0 12px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

/* Mobile — its own layout, not a shrunk desktop */
@media (max-width: 768px){
  .site-header{ padding: 20px 24px; }
  .logo{ width: 28px; height: 28px; }
  .wordmark{ font-size: .7rem; }

  .site-footer{ padding: 20px 24px calc(32px + env(safe-area-inset-bottom)); }
  .copyright, .legal-links{ font-size: .7rem; }

  .blob-3{ display: none; }
  .blob{ filter: blur(80px); }
  .blob-1{ width: 60vmax; height: 60vmax; }
  .blob-2{ width: 55vmax; height: 55vmax; }
  .blob-4{ width: 60vmax; height: 60vmax; }
  .blob-5{ width: 68vmax; height: 68vmax; }
}

@media (prefers-reduced-motion: reduce){
  .blob{ animation: none !important; }
}
