/* ============================================================
   VISITENKARTE – Bernd Brägelmann
   Modern, Clean, Subtly Queer-Friendly
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --color-bg: #ffffff;
  --color-bg-warm: #fafaf8;
  --color-bg-section: #f5f5f3;
  --color-text: #1a1a1a;
  --color-text-secondary: #374151;
  --color-text-muted: #6b7280;
  --color-border: #e5e5e3;

  --color-accent-violet: #7c3aed;
  --color-accent-teal: #0d9488;

  /* The electromagnetic spectrum gradient – from deep violet through the visible spectrum to warm red */
  --gradient-spectrum: linear-gradient(
    90deg,
    #6d28d9 0%,
    #7c3aed 8%,
    #4f46e5 16%,
    #2563eb 24%,
    #0891b2 32%,
    #0d9488 40%,
    #16a34a 48%,
    #65a30d 56%,
    #eab308 64%,
    #f59e0b 72%,
    #f97316 80%,
    #ef4444 88%,
    #dc2626 96%
  );

  --gradient-spectrum-soft: linear-gradient(
    90deg,
    rgba(109, 40, 217, 0.15) 0%,
    rgba(79, 70, 229, 0.12) 16%,
    rgba(37, 99, 235, 0.10) 32%,
    rgba(13, 148, 136, 0.10) 48%,
    rgba(234, 179, 8, 0.10) 64%,
    rgba(249, 115, 22, 0.12) 80%,
    rgba(239, 68, 68, 0.15) 100%
  );

  --nav-height: 72px;
  --container-max: 1120px;
  --radius: 12px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-nav: 0 1px 12px rgba(0,0,0,0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

a {
  color: var(--color-accent-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-violet);
}

img {
  max-width: 100%;
  display: block;
}

ul { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-spectrum);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav.scrolled {
  box-shadow: var(--shadow-nav);
}

.nav.scrolled::after {
  opacity: 1;
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav-brand:hover {
  color: var(--color-accent-violet);
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links li a {
  display: block;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-accent-violet);
  background: rgba(124, 58, 237, 0.06);
}

/* Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(0,0,0,0.04);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
  position: relative;
  width: 100%;
  height: 340px;
  margin-top: var(--nav-height);
  overflow: hidden;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.hero-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
  pointer-events: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 96px;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Spectrum bar under the title */
.hero-spectrum-bar {
  width: min(480px, 80vw);
  height: 3px;
  background: var(--gradient-spectrum);
  border-radius: 3px;
  margin: 0 auto 32px;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 520px;
  line-height: 1.6;
}


/* ============================================================
   SECTIONS – Common Styles
   ============================================================ */
section {
  padding: 96px 0;
}

section:nth-child(even) {
  background: var(--color-bg-warm);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-teal);
  margin-bottom: 8px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

/* Rainbow divider line under section headings */
.section-divider {
  width: 80px;
  height: 2px;
  border: none;
  background: var(--gradient-spectrum);
  border-radius: 2px;
  margin-bottom: 48px;
}

/* Fade-in animation on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   REFERENZEN
   ============================================================ */
.ref-group {
  margin-bottom: 40px;
}

.ref-group:last-child {
  margin-bottom: 0;
}

.ref-group h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
}

.ref-group p {
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.ref-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ref-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.ref-link::before {
  content: '→';
  color: var(--color-accent-teal);
  font-weight: 600;
  flex-shrink: 0;
}

.ref-link:hover {
  border-color: var(--color-accent-teal);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
  color: var(--color-text);
}

.ref-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 8px;
}


/* ============================================================
   SCRIPTE / TOOLS
   ============================================================ */
.scripte-intro {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
}

.scripte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.script-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  background-image: linear-gradient(var(--color-bg), var(--color-bg)),
    linear-gradient(180deg, #7c3aed, #0d9488, #eab308, #ef4444);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-left-color: transparent;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  text-decoration: none;
  color: var(--color-text);
}

/* Override the border-left trick with a pseudo-element for the rainbow left border */
.script-card {
  position: relative;
  border-left: none;
  overflow: hidden;
}

.script-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #7c3aed, #2563eb, #0d9488, #eab308, #ef4444);
  border-radius: 3px 0 0 3px;
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

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

.script-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--color-text);
}

.script-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.script-card-content h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2px;
}

.script-card-content span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}


/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kontakt-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.kontakt-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.kontakt-item-content {
  display: flex;
  flex-direction: column;
}

.kontakt-item-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.kontakt-item-value {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.kontakt-item-value a {
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.kontakt-item-value a:hover {
  color: var(--color-accent-teal);
  border-color: var(--color-accent-teal);
}

.kontakt-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kontakt-note {
  padding: 20px 24px;
  background: var(--color-bg-section);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.kontakt-note b {
  color: var(--color-accent-teal);
  font-weight: 600;
}

.kontakt-note strong,
.kontakt-gpg strong,
.social-links strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

/* GPG Key Download */
.kontakt-gpg {
  padding: 20px 24px;
  background: var(--color-bg-section);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.kontakt-gpg span {
  display: block;
  margin-bottom: 12px;
}

.gpg-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.gpg-download:hover {
  border-color: var(--color-accent-teal);
  color: var(--color-accent-teal);
  box-shadow: var(--shadow-sm);
}

/* Social Links */
.social-links {
  padding: 20px 24px;
  background: var(--color-bg-section);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.social-link:hover {
  border-color: var(--color-accent-violet);
  color: var(--color-accent-violet);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.social-link svg {
  flex-shrink: 0;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 0;
  border-top: 2px solid transparent;
  background-image: linear-gradient(var(--color-bg), var(--color-bg)), var(--gradient-spectrum);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  text-align: center;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-accent-violet);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}


/* ============================================================
   LEGAL PAGES (Impressum / Datenschutz)
   ============================================================ */
.legal-page {
  padding: calc(var(--nav-height) + 48px) 0 96px;
  min-height: 100vh;
}

.legal-content {
  max-width: 720px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  transition: color 0.2s ease;
}

.legal-back:hover {
  color: var(--color-accent-teal);
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-content p {
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  line-height: 1.75;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal-content ul li {
  color: var(--color-text-secondary);
  margin-bottom: 4px;
  line-height: 1.7;
}

.legal-content a {
  color: var(--color-accent-teal);
  border-bottom: 1px solid transparent;
}

.legal-content a:hover {
  border-bottom-color: var(--color-accent-teal);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    border-bottom: 2px solid;
    border-image: var(--gradient-spectrum) 1;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links li a {
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
  }

  .hero-banner {
    height: 200px;
  }

  .hero {
    padding-top: 32px;
    min-height: auto;
    padding-bottom: 64px;
  }

  section {
    padding: 64px 0;
  }

  .scripte-grid {
    grid-template-columns: 1fr;
  }

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

  .section-divider {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .script-card {
    padding: 16px;
  }
}
