/* ==========================================================================
   Ticketanizer — Landing Page Styles
   Self-hosted, keine externen Abhängigkeiten. Marken-Palette identisch zum
   Dashboard (navy #0b0e20, brand-violet #8B40D2, brand-purple #A78BFA,
   brand-green #5BA63B, brand-cyan #25B9D6).
   ========================================================================== */

:root {
  --navy:        #0b0e20;
  --navy-2:      #10142c;
  --navy-3:      #151a33;
  --card:        rgba(255, 255, 255, .035);
  --card-border: rgba(255, 255, 255, .10);
  --violet:      #8B40D2;
  --violet-2:    #a35ce0;
  --purple:      #A78BFA;
  --green:       #5BA63B;
  --cyan:        #25B9D6;
  --text:        #e7eaf3;
  --text-dim:    #97a0b8;
  --text-dimmer: #6b7392;
  --white:       #ffffff;
  --radius:      14px;
  --radius-lg:   20px;
  --maxw:        1120px;
  --ease:        cubic-bezier(.4, 0, .2, 1);
  --font:        "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--navy);
  background-image:
    radial-gradient(1200px 560px at 50% -260px, rgba(139, 64, 210, .22), rgba(139, 64, 210, 0) 70%),
    radial-gradient(900px 500px at 100% 0%, rgba(37, 185, 214, .10), rgba(37, 185, 214, 0) 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; color: var(--white); font-weight: 700; letter-spacing: -.02em; }
p  { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}

.text-gradient {
  background: linear-gradient(100deg, var(--violet-2) 10%, var(--cyan) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s var(--ease),
              border-color .15s var(--ease), box-shadow .15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--violet-2), var(--violet));
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(139, 64, 210, .8);
}
.btn-primary:hover { box-shadow: 0 12px 30px -8px rgba(139, 64, 210, .95); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  border-color: var(--card-border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); }

.btn-lg { padding: 16px 28px; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 14, 32, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--white); font-size: 1.12rem; }
.brand .brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: block; object-fit: cover;
  box-shadow: 0 4px 14px -6px rgba(139, 64, 210, .7);
}
.brand b { font-weight: 800; letter-spacing: -.02em; }
.brand b span { color: var(--purple); }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a.nav-link {
  color: var(--text-dim);
  font-size: .93rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 9px;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.site-nav a.nav-link:hover { color: var(--white); background: rgba(255, 255, 255, .05); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  width: 42px; height: 42px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s var(--ease); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section-head p { margin-top: 14px; color: var(--text-dim); font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 72px; text-align: center; }
.hero-logo {
  width: 92px; height: 92px; margin: 0 auto 24px; border-radius: 22px;
  box-shadow: 0 24px 60px -22px rgba(139, 64, 210, .75);
  animation: emblem-float 6s var(--ease) infinite;
}
@keyframes emblem-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 500; color: var(--text-dim);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 7px 15px; margin-bottom: 26px;
}
.hero .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(91, 166, 59, .25); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.03em; }
.hero .lead { max-width: 680px; margin: 22px auto 0; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--text-dim); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero .microcopy { margin-top: 18px; font-size: .85rem; color: var(--text-dimmer); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin-top: 46px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: .9rem; }
.hero-badges svg { width: 17px; height: 17px; color: var(--green); }

/* ---------- Cards / value props ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: rgba(139, 64, 210, .45); background: rgba(255, 255, 255, .05); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.feature-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(139, 64, 210, .16);
  color: var(--purple);
}
.feature-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: .95rem; }

/* feature list (grouped) */
.feat-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 11px; }
.feat-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-dim); font-size: .95rem; }
.feat-list li svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--green); margin-top: 2px; }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--card-border);
  border-radius: 12px; padding: 5px; margin: 0 auto 8px;
}
.billing-toggle button {
  font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--text-dim);
  background: transparent; border: none; cursor: pointer;
  padding: 9px 18px; border-radius: 8px; transition: all .15s var(--ease);
}
.billing-toggle button.is-active { background: var(--violet); color: var(--white); }
.save-hint { display: block; text-align: center; color: var(--green); font-size: .85rem; margin-bottom: 40px; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
}
.price-card.is-featured {
  border-color: rgba(139, 64, 210, .6);
  background: linear-gradient(180deg, rgba(139, 64, 210, .10), rgba(255, 255, 255, .03));
  box-shadow: 0 20px 60px -30px rgba(139, 64, 210, .9);
}
.price-card .tag-popular {
  position: absolute; top: 18px; right: 18px;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--white); background: var(--violet);
  padding: 5px 11px; border-radius: 999px;
}
.price-card .plan-name { font-size: 1.15rem; font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 8px; }
.price-card .plan-desc { color: var(--text-dim); font-size: .9rem; margin-top: 6px; min-height: 40px; }
.price-card .price { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.price-card .price .amount { font-size: 2.6rem; font-weight: 800; color: var(--white); letter-spacing: -.03em; }
.price-card .price .per { color: var(--text-dim); font-size: .95rem; }
.price-card .price-note { color: var(--text-dimmer); font-size: .82rem; min-height: 18px; }
.price-card .btn { margin: 22px 0 4px; }
.price-card .feat-list { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 20px; margin-top: 20px; flex: 1; }
.price-card .feat-head { font-size: .82rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: none; cursor: pointer;
  font-family: inherit; font-size: 1.02rem; font-weight: 600; color: var(--white);
  padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-q .chev { flex: 0 0 auto; transition: transform .2s var(--ease); color: var(--text-dim); }
.faq-item.is-open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s var(--ease); }
.faq-a p { padding: 0 22px 20px; color: var(--text-dim); font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .card {
  padding: 56px 28px;
  background: linear-gradient(180deg, rgba(139, 64, 210, .16), rgba(37, 185, 214, .06));
  border-color: rgba(139, 64, 210, .4);
}
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.cta-band p { color: var(--text-dim); margin: 14px auto 0; max-width: 520px; }
.cta-band .hero-cta { margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .08); padding: 48px 0 40px; margin-top: 30px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--text-dim); font-size: .9rem; margin-top: 12px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: .92rem; padding: 5px 0; transition: color .15s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-dimmer); font-size: .85rem;
}
.footer-bottom a { color: var(--text-dimmer); }
.footer-bottom a:hover { color: var(--text-dim); }

/* ---------- Legal / content pages ---------- */
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: 2.1rem; margin-bottom: 10px; }
.legal .updated { color: var(--text-dimmer); font-size: .88rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--text-dim); font-size: .97rem; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 20px; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.legal .back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: .9rem; margin-bottom: 26px; }
.legal .back:hover { color: var(--white); }
.legal .draft-note {
  background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .3);
  border-radius: 10px; padding: 14px 16px; color: #fcd34d; font-size: .88rem; margin-bottom: 30px;
}

/* ---------- Language switcher (details/summary, no JS) ---------- */
.legal-nav { display: flex; align-items: center; gap: 8px; }
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-dim); font-size: .9rem; font-weight: 500;
  padding: 8px 12px; border-radius: 9px;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::marker { content: ""; }
.lang-switch summary svg { color: var(--purple); flex: 0 0 auto; }
.lang-switch summary:hover,
.lang-switch[open] summary { color: var(--white); background: rgba(255, 255, 255, .06); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 190px; z-index: 60;
  background: rgba(16, 20, 44, .98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: 12px; padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
}
.lang-menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--text-dim); font-size: .9rem;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.lang-menu a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.lang-menu a.is-current { color: var(--white); background: rgba(139, 64, 210, .18); font-weight: 600; }

/* Convenience-translation note on non-German legal pages */
.legal .trans-note {
  background: rgba(37, 185, 214, .07);
  border: 1px solid rgba(37, 185, 214, .28);
  border-radius: 10px; padding: 12px 16px;
  color: var(--text-dim); font-size: .88rem; margin-bottom: 30px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .footer-top { flex-direction: column; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(16, 20, 44, .98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 12px 18px 18px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a.nav-link { padding: 12px; }
  .site-nav .btn { margin-left: 0; margin-top: 6px; }
  /* Sprachumschalter im eingeklappten Menü: Dropdown im Fluss statt absolut */
  .site-nav .lang-switch { width: 100%; }
  .site-nav .lang-switch summary { justify-content: space-between; padding: 12px; }
  .site-nav .lang-menu { position: static; min-width: 0; margin-top: 4px; box-shadow: none; }
  .section { padding: 60px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-cols { gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
