/*
 * BerufsSuite editorial refresh
 * Inspired by calm, creator-led editorial sites while preserving the
 * established BerufsSuite brand, content, routes and interaction patterns.
 */

:root {
  --background-rgb: 11, 8, 14;
  --surface-rgb: 20, 15, 24;
  --surface-raised-rgb: 29, 21, 34;
  --muted-rgb: 181, 171, 187;
  --purple-rgb: 164, 86, 242;
  --purple-light-rgb: 204, 157, 255;
  --purple-border-rgb: 164, 86, 242;
  --hero-deep-rgb: 19, 13, 23;
  --hero-glow-rgb: 164, 86, 242;
  --divider-rgb: 52, 42, 58;
  --background: rgb(var(--background-rgb));
  --surface: rgb(var(--surface-rgb));
  --surface-raised: rgb(var(--surface-raised-rgb));
  --text: #fbf7fc;
  --muted: rgb(var(--muted-rgb));
  --purple: rgb(var(--purple-rgb));
  --purple-light: rgb(var(--purple-light-rgb));
  --purple-soft: rgba(var(--purple-rgb), .105);
  --purple-line: rgba(var(--purple-border-rgb), .34);
  --purple-hover: #b56cff;
  --line: rgba(244, 231, 248, .105);
  --featured-glow: linear-gradient(145deg, rgba(var(--purple-rgb), .11), transparent 54%);
  --content-width: 1240px;
  --font-body: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: Georgia, "Times New Roman", ui-serif, serif;
  --card-radius: 22px;
  --editorial-shadow: 0 28px 90px -58px rgba(0, 0, 0, .9);
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  position: relative;
  color: var(--text);
  background:
    radial-gradient(circle at 91% 10%, rgba(var(--purple-rgb), .09), transparent 23rem),
    radial-gradient(circle at 8% 48%, rgba(var(--purple-rgb), .045), transparent 31rem),
    linear-gradient(180deg, #0b080e 0%, #0e0a12 48%, #0b080e 100%);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: clamp(18rem, 34vw, 35rem);
  aspect-ratio: 1;
  border: 1px solid rgba(var(--purple-rgb), .08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body::before { top: 12vh; right: -18vw; }
body::after { bottom: -26vw; left: -16vw; }

::selection {
  background: rgba(var(--purple-rgb), .7);
  color: #fff;
}

a { text-decoration-thickness: .055em; text-underline-offset: .22em; }
a:hover { color: #fff; }

.header-inner,
.site-main,
.site-footer-inner {
  width: min(calc(100% - 44px), var(--content-width));
}

.site-main {
  padding-top: clamp(3.2rem, 7vw, 6.6rem);
  padding-bottom: clamp(4.5rem, 8vw, 8rem);
}

.site-main h1,
.site-main h2,
.community-shell h1,
.community-shell h2,
.link-hub-main h1,
.link-hub-main h2 {
  font-family: var(--font-display);
  font-weight: 500;
  text-wrap: balance;
}

.site-main h1 {
  margin-bottom: 1.35rem;
  font-size: clamp(3rem, 7.5vw, 6.9rem);
  line-height: .94;
  letter-spacing: -.055em;
}

.site-main h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.site-main h3 {
  line-height: 1.25;
  letter-spacing: -.018em;
}

:is(
  .feature-card,
  .status-card,
  .link-card,
  .note-panel,
  .highlight-panel,
  .cta-panel,
  .contact-panel,
  .action-panel,
  .form-panel,
  .auth-choice-card,
  .phone-card,
  .detail-support,
  .detail-legal,
  .support-card,
  .account-card,
  .deletion-card,
  .imprint-card,
  .info-card,
  .free-area-card,
  .community-state-card,
  .community-profile-card
) h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.lead,
.document-intro {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.75vw, 1.22rem);
  line-height: 1.78;
}

.text-accent {
  color: var(--purple-light);
  text-shadow: none;
}

.eyebrow,
.section-kicker,
.status-columns .label,
.duration-label,
.link-hub-eyebrow,
.launch-card-label,
.sunday-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.2rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--purple-light);
  font-size: .71rem;
  font-weight: 750;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before,
.link-hub-eyebrow::before {
  width: 1.65rem;
  height: 1px;
  flex: none;
  background: var(--purple);
  content: "";
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(244, 231, 248, .08);
  background: rgba(11, 8, 14, .86);
  box-shadow: none;
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

.site-header .header-inner { min-height: 82px; }

.site-header .brand::before { display: none; }
.site-header .brand-logo { width: 166px; filter: none; }

.site-header .site-nav { gap: clamp(.8rem, 1.35vw, 1.45rem) !important; }

.site-header .site-nav > a,
.site-header .nav-group > summary {
  position: relative;
  min-height: 44px;
  padding: .2rem 0;
  color: rgba(238, 229, 241, .68);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .035em;
}

.site-header .site-nav > a::after {
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--purple-light);
}

.site-header .site-nav > a:hover,
.site-header .site-nav > a.is-current,
.site-header .site-nav > a[aria-current="page"],
.site-header .nav-group:hover > summary,
.site-header .nav-group.is-current > summary,
.site-header .nav-group[open] > summary { color: #fff; }

.site-header .nav-submenu,
.site-header .account-dropdown {
  border-color: rgba(var(--purple-rgb), .26);
  border-radius: 18px;
  background: rgba(23, 17, 28, .98);
  box-shadow: 0 25px 80px -34px rgba(0, 0, 0, .95);
}

.site-header .nav-submenu a,
.site-header .account-dropdown a,
.site-header .account-dropdown button { border-radius: 11px; }

.site-header .account-login,
.site-header .account-register,
.site-header .nav-menu-toggle {
  border-radius: 999px;
  font-size: .79rem;
  letter-spacing: .02em;
}

.site-header .account-login {
  border: 1px solid transparent;
  color: rgba(238, 229, 241, .7);
}

.site-header .account-register {
  border: 1px solid rgba(var(--purple-light-rgb), .5) !important;
  background: rgba(var(--purple-rgb), .92) !important;
  box-shadow: none !important;
}

.site-header .account-register:hover {
  background: var(--purple-hover) !important;
  box-shadow: 0 14px 34px -19px rgba(var(--purple-rgb), .85) !important;
}

.site-header .nav-menu-toggle {
  border-color: rgba(var(--purple-rgb), .28);
  background: rgba(var(--surface-rgb), .78);
}

/* Hero language */
.hero,
.pricing-hero,
.solutions-hero,
.launch-hero,
.collection-hero,
.imprint-hero {
  position: relative;
  max-width: none;
  overflow: hidden;
  padding: clamp(2.2rem, 6vw, 5rem);
  border: 1px solid rgba(var(--purple-rgb), .3);
  border-radius: clamp(22px, 3vw, 36px);
  background:
    linear-gradient(120deg, rgba(var(--purple-rgb), .085), transparent 48%),
    rgba(var(--surface-rgb), .72);
  box-shadow: var(--editorial-shadow);
}

.hero::after,
.pricing-hero::after,
.solutions-hero::after,
.launch-hero::after,
.collection-hero::after,
.imprint-hero::after {
  position: absolute;
  right: -9rem;
  bottom: -13rem;
  display: block;
  width: clamp(18rem, 36vw, 32rem);
  height: auto;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--purple-light-rgb), .16);
  border-radius: 50%;
  background: transparent;
  filter: none;
  content: "";
  pointer-events: none;
}

.page-intro:not(.detail-hero) {
  max-width: 990px;
}

.detail-hero {
  position: relative;
  max-width: 940px;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.detail-hero h1 { max-width: 930px; }

.hero-split {
  gap: clamp(2.5rem, 7vw, 7rem);
  min-height: min(770px, calc(100vh - 82px));
  padding-block: clamp(2rem, 5vw, 5rem);
}

.hero-split > div:first-child { position: relative; z-index: 1; }

.hero-pill,
.hero-plan-summary span,
.journal-status {
  border-color: rgba(var(--purple-rgb), .28);
  background: rgba(var(--surface-rgb), .64);
  box-shadow: none;
  color: var(--purple-light);
}

.hero-actions { gap: .7rem; }

/* Buttons */
.cta-button,
.button-outline,
.button-link,
.plan-action,
.journal-button,
.deletion-mail-button {
  min-height: 50px;
  border-radius: 999px;
  box-shadow: none;
  font-size: .88rem;
  font-weight: 750;
  letter-spacing: .015em;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.cta-button,
.journal-button,
.deletion-mail-button {
  border: 1px solid rgba(var(--purple-light-rgb), .42);
  background: var(--purple);
  color: #fff;
}

.cta-button:hover,
.journal-button:hover,
.deletion-mail-button:hover {
  background: var(--purple-hover);
  box-shadow: none;
  transform: translateY(-2px);
}

.button-outline,
.button-link {
  border-color: rgba(var(--purple-rgb), .3);
  background: transparent;
  color: var(--text);
}

.button-outline:hover,
.button-link:hover {
  border-color: rgba(var(--purple-light-rgb), .64);
  background: rgba(var(--purple-rgb), .08);
  box-shadow: none;
  transform: translateY(-2px);
}

/* Cards and content groups */
:is(
  .feature-card,
  .status-card,
  .link-card,
  .note-panel,
  .highlight-panel,
  .cta-panel,
  .contact-panel,
  .action-panel,
  .timeline-card,
  .faq-item,
  .path-list,
  .law-table,
  .form-panel,
  .auth-choice-card,
  .search-panel,
  .job-card,
  .phone-card,
  .detail-card,
  .detail-important,
  .detail-support,
  .detail-legal,
  .support-card,
  .scope-card,
  .account-card,
  .verification-card,
  .deletion-card,
  .imprint-card,
  .plan-card,
  .info-card,
  .free-area-card,
  .collection-product-card,
  .collection-about,
  .collection-guide-card,
  .collection-brand-card,
  .collection-faq,
  .law-card,
  .launch-feature-card,
  .launch-status-card,
.community-state-card,
.community-profile-card
) {
  border-color: var(--line);
  border-radius: var(--card-radius);
  background: rgba(var(--surface-rgb), .76);
  box-shadow: var(--editorial-shadow);
}

.community-shell {
  width: min(calc(100% - 32px), 1240px);
  padding-top: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.community-state-card {
  border-color: rgba(var(--purple-rgb), .3);
  background: linear-gradient(135deg, rgba(var(--purple-rgb), .09), transparent 56%), rgba(var(--surface-rgb), .76);
}

.community-state-card h1 {
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.045em;
}

:is(
  .feature-card,
  .status-card,
  .link-card,
  .job-card,
  .law-card,
  .launch-feature-card,
  .launch-status-card,
  .auth-choice-card
):hover {
  border-color: rgba(var(--purple-rgb), .44);
  box-shadow: 0 30px 80px -55px rgba(var(--purple-rgb), .7);
  transform: translateY(-3px);
}

.feature-card .icon,
.status-card .icon,
.icon-tile,
.help-row .icon,
.collection-section-icon {
  border: 1px solid rgba(var(--purple-rgb), .24);
  border-radius: 50%;
  background: rgba(var(--purple-rgb), .08);
  box-shadow: none;
}

.doc-section {
  margin-bottom: clamp(4.5rem, 9vw, 8.5rem);
}

.document > .doc-section:not(.cta-panel):not(.note-panel):not(.status-columns) {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.card-grid,
.audience-grid,
.numbered-grid,
.status-columns,
.plan-grid,
.learning-path-grid,
.free-area-grid,
.launch-feature-grid,
.launch-status-grid,
.law-grid {
  gap: clamp(1rem, 2vw, 1.5rem);
}

.link-card { border-left-width: 1px; }

.highlight-panel,
.cta-panel,
.status-card,
.link-card.is-featured,
.info-card-featured,
.detail-support,
.collection-guide-card,
.journal-cta {
  border-color: rgba(var(--purple-rgb), .33);
  background:
    linear-gradient(135deg, rgba(var(--purple-rgb), .105), transparent 55%),
    rgba(var(--surface-rgb), .8);
}

.spotlight-split,
.journal-flow {
  border-color: var(--line);
  border-radius: clamp(22px, 3vw, 34px);
  background: rgba(var(--surface-rgb), .74);
  box-shadow: var(--editorial-shadow);
}

.spotlight-visual,
.spotlight-text { background: transparent; }
.spotlight-text { border-left: 1px solid var(--line); }

.law-table,
.comparison-grid,
.journal-data-list,
.journal-type-list,
.path-list,
.help-rows {
  border-color: var(--line);
  border-radius: var(--card-radius);
  background: rgba(var(--surface-rgb), .72);
  box-shadow: var(--editorial-shadow);
}

.law-row,
.comparison-row + .comparison-row,
.path-row,
.help-row,
.journal-data-list span,
.journal-type-list span { border-color: var(--line); }

.status-badge,
.free-access-badge,
.journal-badge,
.plan-badge,
.discount-badge,
.free-badge {
  border: 1px solid rgba(var(--purple-rgb), .3);
  background: rgba(var(--purple-rgb), .085);
  box-shadow: none;
  color: var(--purple-light);
}

/* Form controls */
.field input,
.field select,
.field textarea,
input,
select,
textarea {
  border-color: rgba(238, 229, 241, .16);
  border-radius: 13px;
  background: rgba(8, 6, 11, .64);
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
input:focus,
select:focus,
textarea:focus { border-color: rgba(var(--purple-light-rgb), .68); }

/* Home and device preview */
.home-page { max-width: 1240px; }

.home-page #page-title {
  max-width: 850px;
  font-size: clamp(3.5rem, 7.8vw, 7.6rem);
}

.phone-mockup {
  max-width: 310px;
  padding: 9px 7px 7px;
  border-color: rgba(var(--purple-light-rgb), .42);
  border-radius: 39px;
  background: #110d15;
  box-shadow: 0 46px 100px -52px rgba(0, 0, 0, .98);
  transform: rotate(1.5deg);
}

.phone-mockup::before {
  top: 1rem;
  background: rgba(250, 244, 252, .2);
}

.phone-mockup::after { background: var(--purple); }

.phone-screen { border-radius: 31px; }

.home-page [aria-labelledby="pillars-title"] {
  max-width: 1030px;
  margin-top: clamp(5rem, 11vw, 10rem);
}

.home-page #pillars-title { font-weight: 500; }

.home-page .home-pillars .link-card,
.home-page .home-audiences .link-card {
  border-color: var(--line);
  border-radius: 26px;
  background: rgba(var(--surface-rgb), .7);
  box-shadow: var(--editorial-shadow);
}

.home-page .home-pillars h3,
.home-page .home-audiences h3 {
  font-family: var(--font-display);
  font-weight: 500;
}

.home-page .home-closing {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(var(--purple-rgb), .3);
  border-radius: clamp(24px, 4vw, 38px);
  background: linear-gradient(135deg, rgba(var(--purple-rgb), .09), rgba(var(--surface-rgb), .72));
}

/* Product, detail and functional pages */
.pricing-page,
.collection-page,
.journal-page,
.launch-page { max-width: 1240px; }

.plan-premium,
.plan-plus { border-color: rgba(var(--purple-rgb), .34); }

.plan-premium,
.plan-plus,
.pricing-hero { background: linear-gradient(145deg, rgba(var(--purple-rgb), .08), transparent 55%), rgba(var(--surface-rgb), .78); }

.premium-glow { display: none; }

.duration-options {
  border-color: var(--line);
  border-radius: 999px;
  background: rgba(var(--surface-rgb), .72);
}

.duration-options button { border-radius: 999px; }
.duration-options button[aria-pressed="true"] { background: var(--purple); box-shadow: none; }

.final-detail-document {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(var(--surface-rgb), .66);
  box-shadow: var(--editorial-shadow);
}

.final-detail-section { border-color: var(--line); }

.detail-support-grid { gap: 1rem; }

.detail-back {
  margin-bottom: 2rem;
  color: var(--purple-light);
  letter-spacing: .02em;
}

.journal-phone-shell,
.tablet-mockup {
  border-color: rgba(var(--purple-light-rgb), .38);
  background: #100c13;
  box-shadow: 0 45px 100px -55px rgba(0, 0, 0, .95);
}

.journal-section {
  border-color: var(--line);
}

/* Link hub keeps its focused format, now in the same editorial language. */
.link-hub-body {
  background: radial-gradient(circle at 50% 8%, rgba(var(--purple-rgb), .12), transparent 25rem), var(--background);
}

.link-hub-main { width: min(calc(100% - 32px), 720px); }

.link-hub-hero h1 {
  font-size: clamp(3.3rem, 12vw, 6.6rem);
  letter-spacing: -.055em;
}

.link-logo-frame {
  border-color: rgba(var(--purple-rgb), .32);
  box-shadow: 0 28px 70px -42px rgba(var(--purple-rgb), .72);
}

.ecosystem-link {
  border-color: var(--line);
  border-radius: 20px;
  background: rgba(var(--surface-rgb), .72);
  box-shadow: none;
}

.ecosystem-link:hover {
  border-color: rgba(var(--purple-rgb), .45);
  background: rgba(var(--surface-raised-rgb), .78);
  transform: translateY(-3px);
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top-color: rgba(var(--purple-rgb), .22);
  background: #100b14;
}

.site-footer::before {
  position: absolute;
  top: -16rem;
  right: -8rem;
  width: 30rem;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--purple-rgb), .09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.site-footer-inner { padding-block: clamp(2.4rem, 6vw, 5rem); }
.site-footer .brand-logo { width: 172px; }
.footer-brand-block p { max-width: 360px; color: rgba(238, 229, 241, .68); }
.footer-col,
.footer-legal { border-color: var(--line); }
.footer-col h4 { color: var(--purple-light); letter-spacing: .13em; }

/* Gentle entrance, disabled for users who request less motion. */
@media (prefers-reduced-motion: no-preference) {
  .site-main > :first-child,
  .link-hub-main > :first-child {
    animation: editorial-enter .65s cubic-bezier(.2, .65, .2, 1) both;
  }

  .document > *,
  .pricing-page > section + section,
  .collection-page > section + section,
  .journal-page > section + section {
    animation: editorial-rise .55s ease both;
    animation-timeline: view();
    animation-range: entry 8% cover 25%;
  }
}

@keyframes editorial-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes editorial-rise {
  from { opacity: .2; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 1040px) {
  .hero-split { grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); }
  .site-header .header-inner {
    grid-template-columns: 205px minmax(0, 1fr) 205px !important;
    padding-inline: 0 !important;
  }
}

@media (max-width: 1240px) {
  .nav-ready .site-header .site-nav {
    padding: 1rem max(22px, calc((100vw - var(--content-width)) / 2));
    border-bottom-color: rgba(var(--purple-rgb), .22);
    background: rgba(16, 11, 20, .985);
    box-shadow: 0 30px 70px -42px rgba(0, 0, 0, .95);
  }

  .site-header .site-nav > a,
  .site-header .nav-group > summary { padding: .7rem .5rem; }
}

@media (max-width: 800px) {
  .site-main { padding-top: 2.4rem; }
  .hero-split { min-height: auto; }
  .spotlight-text { border-top: 1px solid var(--line); border-left: 0; }
  .pricing-heading { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-inner,
  .site-main,
  .site-footer-inner { width: min(calc(100% - 30px), var(--content-width)); }

  .site-main h1 { font-size: clamp(2.7rem, 14vw, 4.1rem); }
  .site-main h2 { font-size: clamp(1.9rem, 10vw, 2.85rem); }

  .hero,
  .pricing-hero,
  .solutions-hero,
  .launch-hero,
  .collection-hero,
  .imprint-hero { padding: 1.5rem; border-radius: 22px; }

  .hero-split { padding-top: 1rem; }
  .home-page #page-title { font-size: clamp(3.05rem, 15.5vw, 4.65rem); }
  .collection-page .collection-hero h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.05rem);
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }
  .phone-mockup { width: min(86vw, 285px); transform: none; }
  .doc-section { margin-bottom: 4.5rem; }
  .cta-button,
  .button-outline { width: 100%; }
  .home-page .home-closing { padding: 1.4rem; }
}

@media (max-width: 420px) {
  .site-header .brand-logo { width: 142px; }
  .site-main h1 { overflow-wrap: anywhere; hyphens: auto; }
  .eyebrow,
  .section-kicker { letter-spacing: .12em; }
}
