/* ============================================
   SEL Lohnbüro – Version 3 "Premium"
   Navy · Gold · Off-White
   ============================================ */

:root {
  /* Farben */
  --navy:        #1b2a4a;
  --navy-deep:   #111d35;
  --navy-soft:   #2d4070;
  --gold:        #c9a456;
  --gold-light:  #dfc07e;
  --ink:         #0e0e12;
  --ink-soft:    #5a5a66;
  --ink-faint:   #9a9aa8;
  --bg:          #f5f3ee;
  --bg-card:     #ffffff;
  --bg-section:  #f0eee8;
  --white:       #ffffff;
  --border:      rgba(14, 14, 18, 0.1);

  /* Radii */
  --r-card:   16px;
  --r-btn:    10px;
  --r-pill:   999px;
  --r-icon:   14px;

  /* Schatten */
  --shadow-sm:  0 2px 8px -2px rgba(14,14,18,.08);
  --shadow-md:  0 8px 28px -8px rgba(14,14,18,.14);
  --shadow-lg:  0 20px 50px -16px rgba(14,14,18,.22);
  --shadow-hover: 0 24px 56px -14px rgba(27,42,74,.28);

  /* Layout */
  --container:  1160px;
  --header-h:   76px;

  /* Typografie */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          Arial, sans-serif;

  /* Transition */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Barrierefreiheit: dunkleres Gold für helle Hintergründe (Kontrast 4.5:1+) */
  --gold-accessible: #8a6a26;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ── Utilities ─────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff;
  padding: 12px 20px; z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-btn);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 180ms var(--ease),
              box-shadow 180ms var(--ease),
              background 180ms var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(27,42,74,.55);
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(27,42,74,.65);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(27,42,74,.28);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(27,42,74,.06);
  transform: translateY(-2px);
}

.btn-arrow { width: 18px; height: 18px; flex-shrink: 0; }
.btn-full  { width: 100%; }

/* ── Header ────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(245, 243, 238, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

/* Wordmark */
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.wm-sel {
  background: var(--navy);
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.wm-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
}
.wm-rest { color: var(--ink); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-inline: auto;
}
.main-nav > a:not(.btn) {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
}
.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  border-radius: 2px;
  transition: width 200ms var(--ease);
}
.main-nav > a:not(.btn):hover { color: var(--ink); }
.main-nav > a:not(.btn):hover::after { width: 100%; }

.nav-cta { padding: 10px 22px; font-size: 0.88rem; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

/* ── Hero ──────────────────────────────────── */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding-top: calc(var(--header-h) + 100px);
  padding-bottom: 0;
  overflow: hidden;
  isolation: isolate;
}

/* Subtle geometric decoration */
.hero-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,164,86,.18);
}
.deco-ring-1 {
  width: 680px; height: 680px;
  right: -180px; top: -200px;
}
.deco-ring-2 {
  width: 420px; height: 420px;
  right: 40px; top: 80px;
  border-color: rgba(201,164,86,.1);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-label::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero-sub {
  margin-top: 24px;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: rgba(255,255,255,.72);
  line-height: 1.65;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 48px;
}
.hero-actions .btn-ghost {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.28);
}
.hero-actions .btn-ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.08);
}

/* Pillars bar at the bottom of hero */
.hero-pillars-bar {
  position: relative;
  z-index: 1;
  margin-top: 80px;
  background: rgba(255,255,255,.06);
  border-top: 1px solid rgba(255,255,255,.1);
}
.pillars {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding-block: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pillars::-webkit-scrollbar { display: none; }
.pillar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  white-space: nowrap;
  padding: 0 36px;
}
.pillar-item svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.pillar-sep {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
}

/* ── Section shared ────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-accessible);
  margin-bottom: 14px;
}
.section-header {
  max-width: 600px;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.section-sub {
  margin-top: 16px;
  font-size: 1.04rem;
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.65;
}

/* ── Services ──────────────────────────────── */
.services { padding-block: 120px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--r-card);
  padding: 40px 34px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 50px; height: 50px;
  border-radius: var(--r-icon);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  flex-shrink: 0;
}
.card-icon svg { width: 22px; height: 22px; }

.service-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
}

.service-card ul { display: flex; flex-direction: column; gap: 14px; }
.service-card li {
  position: relative;
  padding-left: 18px;
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-accessible);
}

/* ── Mandantenportal ───────────────────────── */
.portal {
  background: var(--navy);
  padding-block: 100px;
  overflow: hidden;
}
.portal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.portal-content .section-label { color: var(--gold-accessible); }
.portal-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}
.portal-content p {
  font-size: 1.04rem;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  max-width: 48ch;
}

/* Abstract portal card illustration */
.portal-visual {
  display: flex;
  justify-content: flex-end;
}
.portal-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(201,164,86,.25);
  border-radius: var(--r-card);
  padding: 28px;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(4px);
}
.pc-header { display: flex; gap: 8px; }
.pc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(201,164,86,.4);
  display: block;
}
.pc-dot:first-child { background: var(--gold); }
.pc-row {
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,.15);
}
.pc-row-wide { width: 80%; }
.pc-row-mid  { width: 55%; }
.pc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pc-cell {
  height: 42px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(201,164,86,.15);
}
.pc-btn-row { display: flex; }
.pc-btn {
  height: 34px;
  width: 100%;
  border-radius: 8px;
  background: rgba(201,164,86,.35);
  border: 1px solid rgba(201,164,86,.5);
}

/* ── Contact ───────────────────────────────── */
.contact { padding-block: 120px; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.contact-intro h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
}
.contact-intro > p {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 42ch;
  line-height: 1.65;
}

.contact-details {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.contact-details a:hover { color: var(--navy); }
.cd-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-light);
}
.cd-icon svg { width: 16px; height: 16px; }

/* Form */
.contact-form {
  background: var(--bg-card);
  border-radius: var(--r-card);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.req { color: var(--gold-accessible); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.95rem;
  color: var(--ink);
  resize: vertical;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: #696978; }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,42,74,.1);
}

.hp-field {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.form-row-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.form-row-check input {
  margin-top: 3px;
  width: 17px; height: 17px;
  accent-color: var(--navy);
  flex-shrink: 0;
}
.form-row-check label {
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.55;
}
.form-row-check a { color: var(--navy); font-weight: 600; }
.form-row-check a:hover { text-decoration: underline; }

.form-submit[disabled] { opacity: 0.6; cursor: progress; }

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.success { color: #1e6e3e; }
.form-status.error   { color: #b91c1c; }

/* ── Footer ────────────────────────────────── */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.65);
  padding-block: 50px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 32px;
  row-gap: 6px;
  align-items: center;
}
.footer-brand {
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
  grid-column: 1;
  grid-row: 1;
}
.footer-address {
  font-size: 0.83rem;
  grid-column: 1;
  grid-row: 2;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.88rem;
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: 0.78rem;
  color: #9ca3b0;
  grid-column: 1 / 4;
  grid-row: 3;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
}

/* ── Legal pages ───────────────────────────── */
.legal-page { padding-block: calc(var(--header-h) + 64px) 100px; }
.legal-page .container { max-width: 800px; }
.legal-page h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--navy);
}
.legal-page h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--ink);
}
.legal-page h4 {
  font-size: 0.96rem;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 6px;
  color: var(--ink);
}
.legal-page p, .legal-page li {
  color: var(--ink-soft);
  margin-bottom: 12px;
  font-size: 0.97rem;
  line-height: 1.7;
}
.legal-page ul { padding-left: 20px; list-style: disc; }
.legal-page a { color: var(--navy); font-weight: 600; }
.legal-page a:hover { text-decoration: underline; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 36px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.legal-back:hover { color: var(--navy); }

/* ── Reveal animation ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ────────────────────────────── */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; max-width: 520px; }
  .portal-inner  { grid-template-columns: 1fr; gap: 56px; }
  .portal-visual { justify-content: flex-start; }
  .contact-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-sub br.br-desk { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 2; grid-row: 1; justify-self: end; }
  .footer-address { grid-column: 1 / 3; grid-row: 2; }
  .footer-copy { grid-column: 1 / 3; }
}

@media (max-width: 720px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    padding: 24px 28px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-cta-mobile { display: inline-flex; margin-top: 4px; }
  .main-nav a.nav-cta-mobile,
  .main-nav a.nav-cta-mobile:hover { color: #fff; }
  .main-nav a.nav-cta-mobile::after { display: none; }

  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding-top: calc(var(--header-h) + 64px); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .services, .contact { padding-block: 80px; }
  .portal { padding-block: 80px; }
  .contact-form { padding: 28px; }
  .deco-ring { display: none; }
  .footer-inner { display: flex; flex-direction: column; text-align: center; gap: 8px; }
  .footer-links { justify-content: center; }
}

@media (max-width: 460px) {
  .pillar-item { padding: 0 20px; }
  .portal-card { width: 100%; }
}

/* ── Back to Top Button ────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--navy);
  color: var(--gold-light);
  box-shadow: 0 4px 20px -4px rgba(27, 42, 74, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 280ms var(--ease), transform 280ms var(--ease),
              background 180ms var(--ease), box-shadow 180ms var(--ease);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--navy-deep);
  box-shadow: 0 8px 28px -6px rgba(27, 42, 74, 0.7);
  transform: translateY(-3px);
}
.back-to-top:active { transform: translateY(0); }
.back-to-top:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}
.back-to-top svg { width: 20px; height: 20px; flex-shrink: 0; }

@media (max-width: 720px) {
  .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}
