* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: #333;
}

.container {
  background: white;
  border-radius: 24px;
  padding: 48px 32px;
  max-width: 640px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.logo {
  max-width: 280px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 18px;
  color: #64748b;
  margin-bottom: 32px;
  line-height: 1.6;
}

.qr-container {
  background: #f8fafc;
  border-radius: 16px;
  padding: 24px;
  margin: 32px 0;
  border: 2px solid #e2e8f0;
}

.qr-code {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  background: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-code img {
  width: 100%;
  height: 100%;
}

.qr-label {
  margin-top: 16px;
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.install-button {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 16px 40px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  margin: 16px 0;
}

.install-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.install-button:active {
  transform: translateY(0);
}

.features {
  margin-top: 48px;
  text-align: left;
}

.feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  transition: transform 0.2s;
}

.feature:hover {
  transform: translateX(4px);
}

.feature-icon {
  font-size: 32px;
  margin-right: 16px;
  flex-shrink: 0;
}

.feature-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.feature-content p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.instructions {
  margin-top: 32px;
  padding: 20px;
  background: #fef3c7;
  border-radius: 12px;
  border-left: 4px solid #f59e0b;
  text-align: left;
}

.instructions h3 {
  font-size: 16px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.instructions ol {
  margin-left: 20px;
  color: #78350f;
}

.instructions li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.ios-instructions {
  background: #dbeafe;
  border-left-color: #3b82f6;
}

.ios-instructions h3 {
  color: #1e3a8a;
}

.ios-instructions ol {
  color: #1e40af;
}

.footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
  color: #94a3b8;
}

.footer a {
  color: #3b82f6;
  text-decoration: none;
  margin: 0 8px;
}

.footer a:hover {
  text-decoration: underline;
}

.legal-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.legal-page h1 {
  color: #1e293b;
  margin-bottom: 24px;
}

.legal-page h2 {
  color: #3b82f6;
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 24px;
}

.legal-page p {
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-page ul,
.legal-page ol {
  color: #64748b;
  margin-left: 24px;
  margin-bottom: 16px;
}

.legal-page li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.back-link {
  display: inline-block;
  margin-top: 32px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .container {
    padding: 32px 24px;
  }

  h1 {
    font-size: 28px;
  }

  .subtitle {
    font-size: 16px;
  }

  .logo {
    width: 160px;
    height: 160px;
  }

  .legal-page {
    margin: 20px;
    padding: 24px;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 64px 48px;
  }

  h1 {
    font-size: 36px;
  }

  .features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* Auf Desktop beide Installationsanleitungen anzeigen */
  .android-instructions,
  .ios-instructions {
    display: block !important;
  }

  /* Installationsanleitungen nebeneinander */
  .instructions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
  }

  /* Button "App öffnen" auf Desktop ausblenden */
  .install-button {
    display: none;
  }
}

/* Hide instructions by default */
.android-instructions,
.ios-instructions {
  display: none;
}

/* Show appropriate instructions based on device */
.is-android .android-instructions {
  display: block;
}

.is-ios .ios-instructions {
  display: block;
}
