/* ==========================================
   MyLocalSafe Website - Stylesheet
   ========================================== */

:root {
  /* App-Farben (aus den Screenshots) */
  --midnight: #0E1D2F;
  --midnight-darker: #081525;
  --midnight-lighter: #152940;
  --gold: #D4AF37;
  --gold-hover: #E4BE47;
  --gold-soft: rgba(212, 175, 55, 0.15);
  --gold-border: rgba(212, 175, 55, 0.3);

  /* Textfarben */
  --text-light: #f5f5f0;
  --text-muted: #9ca7b3;
  --text-dark: #1a1a1a;

  /* Hintergründe */
  --bg-card: #152940;
  --bg-card-hover: #1c3251;
  --bg-summary: rgba(212, 175, 55, 0.08);

  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Schatten */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text-light);
  background: var(--midnight);
  overflow-x: hidden;
}

/* ==========================================
   Navigation / Header
   ========================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 29, 47, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo .nav-logo-text {
  color: var(--gold);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  color: var(--text-light);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-menu a:hover {
  background: var(--gold-soft);
  color: var(--gold);
}

.nav-menu a.active {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

/* ==========================================
   Main Content
   ========================================== */

main {
  min-height: calc(100vh - 80px);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.hero-logo {
  margin-bottom: 32px;
}

.hero-logo img {
  max-width: 320px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3));
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gold);
  color: var(--midnight);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--gold-border);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

/* ==========================================
   Features Grid
   ========================================== */

.section {
  padding: 80px 24px;
}

.section-narrow {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--text-light);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
}

.section-title .accent {
  color: var(--gold);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================
   CTA Banner
   ========================================== */

.cta-banner {
  background: linear-gradient(
    135deg,
    var(--midnight-lighter) 0%,
    var(--midnight-darker) 100%
  );
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  margin: 40px auto;
  max-width: 900px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 70%
  );
}

.cta-banner-content {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 16px;
  color: var(--text-light);
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   Content Pages (Legal etc)
   ========================================== */

.page-header {
  text-align: center;
  padding: 64px 24px 40px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 40px;
}

.page-header .app-name {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-header h1 {
  color: var(--text-light);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 600;
  margin-bottom: 8px;
}

.page-header .stand {
  color: var(--text-muted);
  font-size: 14px;
}

.summary {
  background: var(--bg-summary);
  border-left: 4px solid var(--gold);
  padding: 24px 28px;
  border-radius: var(--radius-sm);
  margin-bottom: 40px;
}

.summary h2 {
  color: var(--gold);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.summary p {
  color: var(--text-light);
  font-size: 16px;
}

.content-section {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

.content-section:hover {
  border-color: var(--gold-border);
}

.content-section h2 {
  color: var(--gold);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-border);
}

.content-section h3 {
  color: var(--text-light);
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 8px;
}

.content-section p {
  margin-bottom: 14px;
  color: var(--text-muted);
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section strong {
  color: var(--text-light);
}

.content-section ul {
  margin: 8px 0 14px 20px;
  color: var(--text-muted);
}

.content-section ul li {
  margin-bottom: 6px;
}

.content-section a,
.content-section .link {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold-border);
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.content-section a:hover {
  color: var(--gold-hover);
  text-decoration-color: var(--gold);
}

.address {
  font-style: normal;
  line-height: 1.9;
  color: var(--text-light);
}

/* ==========================================
   FAQ Section
   ========================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--gold);
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--text-light);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  color: var(--gold);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================
   Download Section
   ========================================== */

.download-section {
  text-align: center;
  padding: 40px 24px;
}

.download-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.download-badge:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.download-badge .badge-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.download-badge .badge-label small {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.download-badge .badge-label span {
  font-size: 16px;
  font-weight: 600;
}

/* ==========================================
   Screenshots Slider
   ========================================== */

.screenshots {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 48px 0;
}

.screenshot {
  position: relative;
  width: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.screenshot:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   Footer
   ========================================== */

.site-footer {
  background: var(--midnight-darker);
  border-top: 1px solid var(--gold-border);
  padding: 48px 24px 24px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--gold-border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ==========================================
   Animations
   ========================================== */

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

.animate-in {
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--midnight);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--gold-border);
    gap: 4px;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    display: block;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 48px 16px 40px;
  }

  .section {
    padding: 48px 16px;
  }

  .content-section {
    padding: 24px 20px;
  }

  .content-section h2 {
    font-size: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-banner {
    padding: 40px 24px;
  }

  .screenshot {
    width: 220px;
  }
}

@media (max-width: 480px) {
  .hero-logo img {
    max-width: 240px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
