/* ═══════════════════════════════════════════════════════════
   GALAKTIKA – Design System
   Dark Space Theme | Version 2.0
   ═══════════════════════════════════════════════════════════ */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ─── Design Tokens ─── */
:root {
  /* Backgrounds */
  --bg-base:       #05050f;
  --bg-deep:       #080618;
  --bg-card:       #11092a;
  --bg-card-hover: #18103a;
  --bg-input:      #09071a;
  --bg-glass:      rgba(18, 10, 40, 0.7);

  /* Borders */
  --border-faint:  #160e30;
  --border-subtle: #221550;
  --border-mid:    #321d6a;
  --border-strong: #c9a96e;

  /* Brand Colors */
  --gold:          #c9a96e;
  --gold-light:    #dfc28a;
  --gold-glow:     rgba(201,169,110,0.25);
  --purple-hi:     #cfc0e8;
  --purple-mid:    #b0a0d0;
  --purple-lo:     #5e4a88;
  --purple-dim:    #2e1f52;
  --purple-dark:   #1a0f38;

  /* Text */
  --text-primary:  #ffffff;
  --text-secondary:#ece5ff;
  --text-muted:    #60507a;
  --text-gold:     #c9a96e;

  /* Semantic */
  --success-bg:    #091a0f;
  --success-border:#1d5530;
  --success-text:  #52c87a;
  --error-bg:      #1a0909;
  --error-border:  #5a2020;
  --error-text:    #e07070;

  /* Spacing & Shape */
  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-pill:100px;

  /* Shadows */
  --shadow-card:     0 4px 24px rgba(0,0,0,0.5);
  --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.7), 0 0 24px var(--gold-glow);
  --shadow-input:    inset 0 1px 3px rgba(0,0,0,0.4);
  --shadow-btn:      0 4px 16px rgba(139,92,246,0.3);
  --shadow-btn-hover:0 6px 24px rgba(201,169,110,0.4);

  /* Typography */
  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body:    'Lato', 'Segoe UI', system-ui, sans-serif;
  --font-ui:      'Segoe UI', system-ui, sans-serif;

  /* Transitions */
  --t-fast:  0.15s ease;
  --t-base:  0.25s ease;
  --t-slow:  0.4s ease;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(100,60,200,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(60,20,120,0.12) 0%, transparent 60%),
    radial-gradient(1px 1px at 20%  15%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 75%  30%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 45%  55%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 85%  70%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 12%  82%, rgba(255,255,255,0.35)0%, transparent 100%),
    radial-gradient(1px 1px at 60%  90%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 35% 40%, rgba(201,169,110,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 20%, rgba(201,169,110,0.2) 0%, transparent 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* ─── Typography Scale ─── */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; }
p { margin: 0; }
a { transition: color var(--t-base); }

/* ─── Header ─── */
header {
  text-align: center;
  padding: 48px 20px 32px;
  position: relative;
  background: linear-gradient(180deg,
    rgba(30,10,70,0.9) 0%,
    rgba(10,6,30,0.5) 60%,
    transparent 100%);
  border-bottom: 1px solid var(--border-faint);
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%,
    rgba(150,80,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

header h1 {
  font-family: var(--font-display);
  font-size: clamp(2em, 5vw, 2.8em);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 4px;
  text-shadow: 0 0 30px rgba(201,169,110,0.4), 0 0 60px rgba(201,169,110,0.15);
  position: relative;
}

header p {
  color: var(--text-secondary);
  font-size: 0.95em;
  font-weight: 300;
  letter-spacing: 1px;
  margin-top: 10px;
  position: relative;
}

/* nav intentionally removed — links live in footer only */

/* ─── Footer Divider ─── */
hr.footer-hr {
  border: none;
  border-top: 1px solid var(--border-mid);
  margin: 0 auto;
  max-width: 760px;
  opacity: 0.5;
}

/* ─── Footer ─── */
footer {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-size: 0.82em;
  background: linear-gradient(0deg, rgba(8,5,20,0.8) 0%, transparent 100%);
  margin-top: auto;
}

footer a {
  color: var(--purple-lo);
  text-decoration: none;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* ─── Back Link ─── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88em;
  transition: color var(--t-base);
}

.back-link:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   INDEX PAGE
   ═══════════════════════════════════════════════════════════ */

.hero-section {
  text-align: center;
  padding: 52px 24px 16px;
  max-width: 680px;
  margin: 0 auto;
}

.hero-section p {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1em;
  font-weight: 300;
}

.section-title {
  text-align: center;
  font-family: var(--font-display);
  color: #f0e0b0;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 4px;
  padding: 16px 0 0;
  opacity: 1;
}

/* Cards Grid */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 28px 20px 56px;
  max-width: 960px;
  margin: 0 auto;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  width: 210px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-slow);
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: var(--shadow-card);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% 0%, rgba(100,60,200,0.08) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity var(--t-slow);
  opacity: 0;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-card-hover);
}

.card:hover::before { opacity: 1; }

.card .icon {
  font-size: 2.6em;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(201,169,110,0.3));
  transition: transform var(--t-slow);
}

.card:hover .icon { transform: scale(1.1); }

.card h3 {
  font-family: var(--font-display);
  font-size: 0.92em;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.card p.desc {
  font-size: 0.78em;
  color: var(--purple-mid);
  line-height: 1.5;
}

.badge-free {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-pill);
  font-size: 0.65em;
  padding: 3px 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Divider */
.divider-line {
  border: none;
  border-top: 1px solid var(--border-faint);
  max-width: 560px;
  margin: 0 auto;
}

/* Trust Strip (minimalistische Häkchen-Liste) */
.trust-strip {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-faint);
}

.trust-item:last-child { border-bottom: none; }

.trust-check {
  color: var(--success-text);
  font-size: 1.1em;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
  width: 22px;
  text-align: center;
}

.trust-item strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95em;
  font-weight: 700;
  margin-bottom: 3px;
}

.trust-item p {
  color: var(--text-secondary);
  font-size: 0.85em;
  line-height: 1.55;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   FORM PAGES (Tageshoroskop, Liebes, Beruf)
   ═══════════════════════════════════════════════════════════ */

.form-container {
  max-width: 540px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}

.form-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

.form-box h2 {
  font-family: var(--font-display);
  font-size: 1.7em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  text-align: center;
  text-shadow: 0 0 20px var(--gold-glow);
}

.form-box .subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9em;
  font-weight: 300;
  margin-bottom: 36px;
}

/* Form Groups */
.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-size: 0.85em;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95em;
  font-family: var(--font-body);
  transition: border-color var(--t-base), box-shadow var(--t-base);
  box-shadow: var(--shadow-input);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
}

.form-group select option {
  background: #120d25;
  color: var(--text-primary);
}

/* Checkboxes */
.checkbox-group { margin-bottom: 18px; }

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  font-size: 0.85em;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 8px 0;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
  border-radius: 4px;
}

.checkbox-group a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, #7c3aed 0%, #9b6ecc 40%, #c9a96e 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.97em;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity var(--t-base), transform var(--t-fast), box-shadow var(--t-base);
  margin-top: 10px;
  box-shadow: var(--shadow-btn);
  position: relative;
  overflow: hidden;
}

.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.btn-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
}

.btn-submit:active { transform: translateY(0); }

.btn-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Success Box */
.success-box {
  display: none;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
}

.success-box .icon {
  font-size: 2.8em;
  margin-bottom: 14px;
  display: block;
}

.success-box h3 {
  color: var(--success-text);
  font-family: var(--font-display);
  font-size: 1.15em;
  margin-bottom: 12px;
}

.success-box p {
  color: var(--text-secondary);
  font-size: 0.92em;
  line-height: 1.8;
}

/* Error Message */
.error-msg {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--error-text);
  font-size: 0.85em;
  margin-top: 14px;
  display: none;
}

/* Focus Tags (Berufshoroskop) */
.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.focus-tag {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 0.82em;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-base);
  user-select: none;
}

.focus-tag:hover {
  border-color: var(--border-mid);
  color: var(--purple-hi);
}

.focus-tag.selected {
  background: var(--purple-dark);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 8px rgba(201,169,110,0.15);
}

/* ═══════════════════════════════════════════════════════════
   CONTENT PAGES (Impressum, Datenschutz, Über uns)
   ═══════════════════════════════════════════════════════════ */

.content-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 24px 88px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.9em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 40px;
  text-shadow: 0 0 20px var(--gold-glow);
}

.section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 16px;
  transition: border-color var(--t-base);
}

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

.section h2 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.section p,
.section address {
  color: var(--purple-hi);
  line-height: 1.85;
  font-style: normal;
  font-size: 0.95em;
}

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

.section a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-box {
  background: rgba(8,5,20,0.6);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-xs);
  padding: 18px 22px;
  color: var(--text-secondary);
  font-size: 0.86em;
  line-height: 1.75;
  margin-top: 20px;
}

/* Über uns specifics */
.ueber-hero {
  text-align: center;
  padding: 8px 0 36px;
}

.ueber-hero .icon { font-size: 3em; margin-bottom: 16px; }

.ueber-hero h2 {
  font-family: var(--font-display);
  font-size: 1.5em;
  color: var(--gold);
  margin-bottom: 12px;
}

.ueber-hero p {
  color: var(--text-secondary);
  font-size: 0.97em;
  line-height: 1.85;
  max-width: 560px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.value-item {
  background: rgba(8,5,20,0.5);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: border-color var(--t-base);
}

.value-item:hover { border-color: var(--border-mid); }

.value-item .vi { font-size: 1.4em; margin-bottom: 8px; }

.value-item h3 {
  color: var(--gold);
  font-size: 0.88em;
  margin-bottom: 6px;
}

.value-item p {
  color: var(--purple-mid);
  font-size: 0.8em;
  line-height: 1.6;
}

/* ─── Datenschutz specifics ─── */
.last-updated {
  color: var(--text-muted);
  font-size: 0.84em;
  margin-bottom: 36px;
  margin-top: 4px;
}

.section ul {
  color: var(--purple-hi);
  line-height: 1.85;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 0.95em;
}

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

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

.highlight-box {
  background: rgba(8,5,20,0.6);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-xs);
  padding: 16px 20px;
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 0.88em;
  line-height: 1.75;
}

.important-box {
  background: rgba(8,20,10,0.6);
  border: 1px solid var(--success-border);
  border-left: 3px solid var(--success-text);
  border-radius: var(--radius-xs);
  padding: 16px 20px;
  margin-top: 14px;
  color: #90c0a0;
  font-size: 0.88em;
  line-height: 1.75;
}

/* ─── Über uns specifics ─── */
.page-subtitle {
  color: var(--text-secondary);
  font-size: 1em;
  font-weight: 300;
  margin-bottom: 44px;
  margin-top: 4px;
}

.section .section-icon {
  font-size: 2em;
  margin-bottom: 14px;
  display: block;
}

.section h2.section-title-lg {
  font-family: var(--font-display);
  font-size: 1.15em;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.highlight {
  color: var(--gold);
  font-weight: 600;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.team-card {
  background: rgba(8,5,20,0.5);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-sm);
  padding: 22px 18px;
  flex: 1;
  min-width: 180px;
  text-align: center;
  transition: border-color var(--t-base);
}

.team-card:hover { border-color: var(--border-mid); }
.team-card .avatar { font-size: 2.2em; margin-bottom: 10px; display: block; }
.team-card .team-name { color: var(--text-primary); font-weight: 700; margin-bottom: 4px; font-size: 0.95em; }
.team-card .team-role { color: var(--text-secondary); font-size: 0.82em; }

.values-list {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}

.values-list li {
  color: var(--purple-hi);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-faint);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.7;
  font-size: 0.92em;
}

.values-list li:last-child { border-bottom: none; }
.values-list li .bullet { color: var(--gold); font-size: 1.1em; flex-shrink: 0; }

/* ─── Liebeshoroskop specifics ─── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 24px;
  color: var(--text-muted);
  font-size: 0.82em;
  letter-spacing: 1px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-mid);
}

.partner-section {
  background: rgba(8,5,20,0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 22px;
}

.partner-section .section-label {
  font-size: 0.78em;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  header { padding: 36px 16px 24px; }
  header h1 { font-size: 1.8em; letter-spacing: 3px; }

  .form-box { padding: 32px 22px; }

  .cards { gap: 16px; padding: 20px 16px 44px; }
  .card  { width: calc(50% - 8px); min-width: 140px; padding: 28px 18px 24px; }

  .section { padding: 24px 20px; }

  .content-container { padding: 36px 16px 64px; }
}

@media (max-width: 380px) {
  .card { width: 100%; max-width: 280px; }
}
