/* Verano — landing page */

:root {
  --bg: #0c0d10;
  --bg-elevated: #13151a;
  --bg-card: #16181f;
  --text: #e8eaef;
  --text-muted: #9aa3b2;
  --accent: #5b8cff;
  --accent-soft: rgba(91, 140, 255, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  /* System stack: no third-party font CDN (simpler GDPR / ePrivacy for DE) */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Sticky header would otherwise cover section titles when using #anchors */
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.site-header__end {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--text-muted);
  text-decoration: none;
}

.lang-switch a[aria-current="page"] {
  color: var(--accent);
}

.lang-switch a:hover:not([aria-current="page"]) {
  color: var(--text);
}

.lang-switch__sep {
  color: var(--border);
  user-select: none;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo--muted {
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav__cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent) !important;
  border: 1px solid rgba(91, 140, 255, 0.35);
}

.nav__cta:hover {
  background: rgba(91, 140, 255, 0.22);
  color: #8babff !important;
}

@media (max-width: 640px) {
  .nav a:not(.nav__cta):not(.nav__priority) {
    display: none;
  }
}

/* Hero */

.hero {
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91, 140, 255, 0.25), transparent),
    var(--bg);
}

.hero__inner {
  max-width: 720px;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
}

.hero__lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #0c0d10;
}

.btn--primary:hover {
  background: #7aa3ff;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  background: var(--bg-elevated);
}

.btn--large {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

/* Sections */

.section {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

/* Extra offset for in-page links (older browsers / file://) */
section[id] {
  scroll-margin-top: 5rem;
}

.section--alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__intro {
  margin: 0 0 2.5rem;
  max-width: 560px;
  color: var(--text-muted);
}

/* Cards */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cards:not(.cards--products) {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards--products {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(91, 140, 255, 0.35);
  transform: translateY(-2px);
}

.card__icon {
  display: block;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--accent);
  opacity: 0.9;
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.card__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.card--link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card--link .card__title {
  color: var(--text);
}

.card__href {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.card--link:hover .card__href {
  text-decoration: underline;
}

/* About */

.about__body p {
  margin: 0 0 1rem;
  max-width: 720px;
  color: var(--text-muted);
  line-height: 1.65;
}

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

.about__body strong {
  color: var(--text);
  font-weight: 600;
}

/* Split */

.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.split__text p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.checklist {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text);
}

.checklist li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.checklist li::marker {
  color: var(--accent);
}

.split__panel {
  padding: 2rem;
  background: linear-gradient(145deg, var(--bg-card), var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 200px;
  display: flex;
  align-items: center;
}

.quote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-muted);
}

.quote p {
  margin: 0;
}

/* CTA */

.section--cta {
  padding-bottom: clamp(4rem, 10vw, 6rem);
}

.cta {
  text-align: center;
  max-width: 520px;
}

.cta__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta__text {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-footer__meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.site-footer__legal a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: var(--accent);
}

/* 404 */

.error-page {
  display: flex;
  align-items: center;
  min-height: 70vh;
}

.error-page__inner {
  width: 100%;
  text-align: center;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0;
}

.error-page .legal-page__title {
  margin-bottom: 0.75rem;
}

.error-page .section__intro {
  margin: 0 auto 1.5rem;
  max-width: 420px;
}

/* Legal pages (Impressum / Datenschutz) */

.legal-page {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(4rem, 10vw, 6rem);
}

.legal-page__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.legal-prose h2:first-of-type {
  margin-top: 0;
}

.legal-prose p,
.legal-prose li {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.legal-prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-prose a {
  color: var(--accent);
}

.legal-prose small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.legal-placeholder {
  margin: 1rem 0;
  padding: 1rem 1.125rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--accent-soft);
  border: 1px dashed rgba(91, 140, 255, 0.45);
  border-radius: var(--radius);
}

.legal-prose p.legal-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
