/* Farben und Schriften aus dem Design System - MieterSolar */
:root {
  --color-primary: #4F46E5;
  --color-primary-hover: #4338CA;
  --color-secondary: #818CF8;
  --color-accent-light: #EEF2FF;
  --color-text-primary: #111827;
  --color-text-secondary: #6B7280;
  --color-bg-primary: #FFFFFF;
  --color-border: #E5E7EB;

  --font-heading: "Sharp Sans Display No. 2", Arial, sans-serif;
  --font-body: "Oracle", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: linear-gradient(120deg, var(--color-accent-light), var(--color-bg-primary), #E0F2FE, var(--color-accent-light));
  background-size: 300% 300%;
  animation: bg-shift 18s ease-in-out infinite;
  -webkit-font-smoothing: antialiased;
}

/* Startseite */
.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.logo-wrap {
  position: relative;
  width: min(520px, 90vw);
  margin-bottom: 1rem;
  animation: logo-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  /* Blendet den hellen Bildhintergrund in den Seitenhintergrund ein */
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at center, #000 55%, transparent 100%);
  animation: float 5s ease-in-out 0.9s infinite;
}

.logo-shadow {
  width: 38%;
  height: 14px;
  margin: -1.5rem auto 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(17, 24, 39, 0.22), transparent 70%);
  animation: shadow 5s ease-in-out 0.9s infinite;
}

.brand {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  animation: fade-up 0.8s ease-out 0.5s both;
}

.slogan {
  margin-top: 0.5rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--color-primary);
  animation: fade-up 0.8s ease-out 0.75s both;
}

.notice {
  margin-top: 2rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  animation: fade-up 0.8s ease-out 1s both;
}

.footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Impressum */
.legal {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  line-height: 1.6;
}

.legal-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.08);
}

.legal h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.25rem;
}

.legal p {
  color: var(--color-text-primary);
}

.legal a {
  color: var(--color-primary);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  text-decoration: none;
}

.back-link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* Animationen */
@keyframes logo-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes shadow {
  0%, 100% {
    transform: scaleX(1);
    opacity: 1;
  }
  50% {
    transform: scaleX(0.8);
    opacity: 0.6;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bg-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
