/* ════════════════════════════════════════════════════
   Pateneers — Shared Stylesheet   styles.css
════════════════════════════════════════════════════ */

:root {
      /* ── Light mode (default) ── */
      --ink:       #0d1117;
      --paper:     #f5f2ec;
      --cream:     #ede9df;
      --gold:      #b8954a;
      --gold-lt:   #d4b06a;
      --steel:     #3a4a5c;
      --mist:      #8a9aaa;
      --rule:      rgba(184, 149, 74, 0.25);
      --nav-bg:    rgba(245, 242, 236, 0.88);
      --serif:     'Cormorant Garamond', Georgia, serif;
      --sans:      'DM Sans', sans-serif;
      --mono:      'DM Mono', monospace;
      color-scheme: light dark;
    }

    /* ── Dark mode: system preference ── */
    @media (prefers-color-scheme: dark) {
      :root:not([data-theme="light"]) {
        --ink:    #f0ede6;
        --paper:  #111318;
        --cream:  #1a1d24;
        --gold:   #c9a55a;
        --gold-lt:#dbbf7a;
        --steel:  #8fa0b4;
        --mist:   #5a6a7a;
        --rule:   rgba(201, 165, 90, 0.2);
        --nav-bg: rgba(17, 19, 24, 0.92);
        color-scheme: dark;
      }

      :root:not([data-theme="light"]) #consulting,
      :root:not([data-theme="light"]) .portal-visual,
      :root:not([data-theme="light"]) #software,
      :root:not([data-theme="light"]) .software-card,
      :root:not([data-theme="light"]) footer,
      :root:not([data-theme="light"]) .cookie-banner {
        background: #0c0e13;
      }
      :root:not([data-theme="light"]) .btn-primary,
      :root:not([data-theme="light"]) .form-submit {
        background: #1e2530;
        border-color: rgba(201, 165, 90, 0.35);
      }
      :root:not([data-theme="light"]) .btn-primary:hover,
      :root:not([data-theme="light"]) .form-submit:hover {
        background: var(--gold);
        border-color: var(--gold);
      }
      :root:not([data-theme="light"]) .btn-ghost {
        color: var(--ink);
        border-color: rgba(240, 237, 230, 0.3);
      }
      :root:not([data-theme="light"]) .btn-ghost:hover {
        background: #1e2530;
        color: var(--ink);
      }
      :root:not([data-theme="light"]) .mobile-menu-btn span {
        background: var(--ink);
      }
      /* Dark-on-dark text: elements in --ink sections have hardcoded white/light text.
         In dark mode those sections go near-black → white text is CORRECT → no change.
         But rgba(255,...) at very low opacity looks wrong on near-black. Boost slightly. */
      :root:not([data-theme="light"]) .portal-ui-header {
        border-bottom-color: rgba(201, 165, 90, 0.12);
      }
      :root:not([data-theme="light"]) .portal-file-row {
        border-bottom-color: rgba(201, 165, 90, 0.08);
      }
      :root:not([data-theme="light"]) .file-dot.locked {
        background: rgba(201, 165, 90, 0.2);
      }
      :root:not([data-theme="light"]) .file-type {
        color: rgba(201, 165, 90, 0.45);
      }
      :root:not([data-theme="light"]) .legend-item {
        color: rgba(240, 237, 230, 0.45);
      }
      :root:not([data-theme="light"]) .sc-num {
        color: rgba(240, 237, 230, 0.15);
      }
      :root:not([data-theme="light"]) .sc-bg-char {
        color: rgba(240, 237, 230, 0.025);
      }
      :root:not([data-theme="light"]) .cookie-btn-decline {
        border-color: rgba(240, 237, 230, 0.15);
        color: rgba(240, 237, 230, 0.7);
      }

      :root:not([data-theme="light"]) #consulting,
      :root:not([data-theme="light"]) #software,
      :root:not([data-theme="light"]) .portal-visual,
      :root:not([data-theme="light"]) footer {
        color: #c8c0b0;
      }
      :root:not([data-theme="light"]) #consulting .section-title,
      :root:not([data-theme="light"]) #software .section-title,
      :root:not([data-theme="light"]) .consult-card-title,
      :root:not([data-theme="light"]) .sc-title,
      :root:not([data-theme="light"]) .footer-logo,
      :root:not([data-theme="light"]) .footer-links a:hover {
        color: #e8e0d0;
      }
      :root:not([data-theme="light"]) #consulting .section-lead,
      :root:not([data-theme="light"]) #software .section-lead,
      :root:not([data-theme="light"]) .sc-body,
      :root:not([data-theme="light"]) .footer-tagline,
      :root:not([data-theme="light"]) .footer-links a,
      :root:not([data-theme="light"]) .footer-copy,
      :root:not([data-theme="light"]) .file-name {
        color: #7a8a9a;
      }
      :root:not([data-theme="light"]) .btn-primary { color: #e8e0d0; }
      :root:not([data-theme="light"]) .form-submit  { color: #e8e0d0; }
      :root:not([data-theme="light"]) .consult-card-body { color: #7a8a9a; }

      :root:not([data-theme="light"]) nav,
      :root:not([data-theme="light"]) .mobile-menu {
border-bottom-color: rgba(201, 165, 90, 0.15);
      }
      :root:not([data-theme="light"]) .consult-card {
        border-color: rgba(201, 165, 90, 0.12);
      }
      :root:not([data-theme="light"]) .portal-visual {
        border-color: rgba(201, 165, 90, 0.15);
      }
      :root:not([data-theme="light"]) .file-item {
        border-bottom-color: rgba(201, 165, 90, 0.1);
      }
      :root:not([data-theme="light"]) .software-grid {
        background: rgba(255, 255, 255, 0.03);
      }
      :root:not([data-theme="light"]) .software-card:hover {
        background: #0c0e13;
      }
      :root:not([data-theme="light"]) .inhouse-opt {
        border-color: rgba(201, 165, 90, 0.12);
      }
      :root:not([data-theme="light"]) .step-item::before {
        background: var(--gold);
        border-color: rgba(201, 165, 90, 0.3);
      }
      :root:not([data-theme="light"]) .form-input,
      :root:not([data-theme="light"]) .form-textarea {
        border-color: rgba(201, 165, 90, 0.2);
        color: var(--ink);
      }
      :root:not([data-theme="light"]) .form-input::placeholder,
      :root:not([data-theme="light"]) .form-textarea::placeholder {
        color: var(--mist);
      }
      :root:not([data-theme="light"]) .hero-bg-text {
        color: rgba(240, 237, 230, 0.04);
      }
      /* SVG diagram labels on dark background */
      :root:not([data-theme="light"]) .hero-diagram text.hexd-label {
        fill: var(--gold-lt);
      }

      :root:not([data-theme="light"]) .hero-diagram text.hexd-label {
        fill: var(--gold-lt);
        filter: url(#hexd_labelHaloDark);
      }

      :root:not([data-theme="light"]) .logo-hex-bg   { fill: var(--paper); }
      :root:not([data-theme="light"]) .logo-hex-icon { stroke: var(--ink); }
    }
    /* ── Dark mode: manual override ── */
    :root[data-theme="dark"] {
      --ink:    #f0ede6;
      --paper:  #111318;
      --cream:  #1a1d24;
      --gold:   #c9a55a;
      --gold-lt:#dbbf7a;
      --steel:  #8fa0b4;
      --mist:   #5a6a7a;
      --rule:   rgba(201, 165, 90, 0.2);
      --nav-bg: rgba(17, 19, 24, 0.92);
      color-scheme: dark;
    }
    /* ── Light mode: manual override ── */
    :root[data-theme="light"] {
      color-scheme: light;
    }


    /* ══════════════════════════════════════════════════════
       DARK MODE — Component overrides (both system + manual)
       Using :is() to keep selectors DRY.
    ══════════════════════════════════════════════════════ */

    /* ── CRITICAL: Sections that use var(--ink) as background in light mode
       In dark mode --ink inverts to cream → force them to stay truly dark ── */
    
    :root[data-theme="dark"] #consulting,
    :root[data-theme="dark"] .portal-visual,
    :root[data-theme="dark"] #software,
    :root[data-theme="dark"] .software-card,
    :root[data-theme="dark"] footer,
    :root[data-theme="dark"] .cookie-banner {
      background: #0c0e13;
    }
    :root[data-theme="dark"] .btn-primary,
    :root[data-theme="dark"] .form-submit {
      background: #1e2530;
      border-color: rgba(201, 165, 90, 0.35);
    }
    :root[data-theme="dark"] .btn-primary:hover,
    :root[data-theme="dark"] .form-submit:hover {
      background: var(--gold);
      border-color: var(--gold);
    }
    :root[data-theme="dark"] .btn-ghost {
      color: var(--ink);
      border-color: rgba(240, 237, 230, 0.3);
    }
    :root[data-theme="dark"] .btn-ghost:hover {
      background: #1e2530;
      color: var(--ink);
    }
    :root[data-theme="dark"] .mobile-menu-btn span {
      background: var(--ink);
    }
    :root[data-theme="dark"] .portal-ui-header {
      border-bottom-color: rgba(201, 165, 90, 0.12);
    }
    :root[data-theme="dark"] .portal-file-row {
      border-bottom-color: rgba(201, 165, 90, 0.08);
    }
    :root[data-theme="dark"] .file-dot.locked {
      background: rgba(201, 165, 90, 0.2);
    }
    :root[data-theme="dark"] .file-type {
      color: rgba(201, 165, 90, 0.45);
    }
    :root[data-theme="dark"] .legend-item {
      color: rgba(240, 237, 230, 0.45);
    }
    :root[data-theme="dark"] .sc-num {
      color: rgba(240, 237, 230, 0.15);
    }
    :root[data-theme="dark"] .sc-bg-char {
      color: rgba(240, 237, 230, 0.025);
    }
    :root[data-theme="dark"] .cookie-btn-decline {
      border-color: rgba(240, 237, 230, 0.15);
      color: rgba(240, 237, 230, 0.7);
    }

    /* ── Text colours in dark-background sections ──
       These sections use var(--paper) for text, but in dark mode
       --paper becomes near-black → unreadable on dark bg.
       Override with explicit light values. ── */
    :root[data-theme="dark"] #consulting,
    :root[data-theme="dark"] #software,
    :root[data-theme="dark"] .portal-visual,
    :root[data-theme="dark"] footer {
      color: #c8c0b0;
    }
    :root[data-theme="dark"] #consulting .section-title,
    :root[data-theme="dark"] #software .section-title,
    :root[data-theme="dark"] .consult-card-title,
    :root[data-theme="dark"] .sc-title,
    :root[data-theme="dark"] .footer-logo,
    :root[data-theme="dark"] .footer-links a:hover {
      color: #e8e0d0;
    }
    :root[data-theme="dark"] #consulting .section-lead,
    :root[data-theme="dark"] #software .section-lead,
    :root[data-theme="dark"] .sc-body,
    :root[data-theme="dark"] .footer-tagline,
    :root[data-theme="dark"] .footer-links a,
    :root[data-theme="dark"] .footer-copy,
    :root[data-theme="dark"] .file-name {
      color: #7a8a9a;
    }
    :root[data-theme="dark"] .btn-primary {
      color: #e8e0d0;
    }
    :root[data-theme="dark"] .form-submit {
      color: #e8e0d0;
    }
    :root[data-theme="dark"] .portal-ui-title { color: var(--gold-lt); }
    :root[data-theme="dark"] .consult-card-body { color: #7a8a9a; }

    


    
    :root[data-theme="dark"] nav,
    :root[data-theme="dark"] .mobile-menu {
border-bottom-color: rgba(201, 165, 90, 0.15);
    }
    :root[data-theme="dark"] .consult-card {
      border-color: rgba(201, 165, 90, 0.12);
    }
    :root[data-theme="dark"] .portal-visual {
      border-color: rgba(201, 165, 90, 0.15);
    }
    :root[data-theme="dark"] .file-item {
      border-bottom-color: rgba(201, 165, 90, 0.1);
    }
    :root[data-theme="dark"] .software-grid {
      background: rgba(255, 255, 255, 0.03);
    }
    :root[data-theme="dark"] .software-card:hover {
      background: #0c0e13;
    }
    :root[data-theme="dark"] .inhouse-opt {
      border-color: rgba(201, 165, 90, 0.12);
    }
    :root[data-theme="dark"] .form-input,
    :root[data-theme="dark"] .form-textarea {
      border-color: rgba(201, 165, 90, 0.2);
      color: var(--ink);
    }
    :root[data-theme="dark"] .form-input::placeholder,
    :root[data-theme="dark"] .form-textarea::placeholder {
      color: var(--mist);
    }
    :root[data-theme="dark"] .hero-bg-text {
      color: rgba(240, 237, 230, 0.04);
    }
    /* SVG diagram labels */
    :root[data-theme="dark"] .hero-diagram text.hexd-label {
      fill: var(--gold-lt);
    }

    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }

    html {
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }

    
  
  body {
      background: var(--paper);
      color: var(--ink);
      font-family: var(--sans);
      font-weight: 300;
      line-height: 1.7;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
    }

    /* ── NOISE TEXTURE OVERLAY ── */
    body::before {
      content: '';
      position: fixed; inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
      pointer-events: none;
      z-index: 1000;
      opacity: 0.5;
    }

    /* ══════════════════════════════════════════════════════
       ACCESSIBILITY — Skip Link, Focus Styles, Reduced Motion
    ══════════════════════════════════════════════════════ */

    /* ── SKIP LINK ──
       Visually hidden until focused via keyboard (Tab key).
       Uses the WCAG-recommended clip technique — more robust than
       top:-100% which can still appear in some AT/browser combinations.
       On :focus-visible the element is repositioned into the viewport.    ── */
    .skip-link {
      position: absolute;
      top: auto;
      left: -10000px;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
      z-index: 9999;
      padding: 0.75rem 1.5rem;
      background: var(--ink);
      color: var(--paper);
      font-family: var(--mono);
      font-size: 0.8rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      text-decoration: none;
      border: 2px solid var(--gold);
    }
    .skip-link:focus-visible {
      position: fixed;
      top: 1rem;
      left: 1rem;
      width: auto;
      height: auto;
      overflow: visible;
      clip: auto;
      white-space: normal;
      outline: 2px solid var(--gold);
      outline-offset: 2px;
    }

    /* ── GLOBAL FOCUS-VISIBLE STYLES ──
       Provides a clear, consistent focus ring on all interactive elements
       for keyboard and switch-access navigation (WCAG 2.4.7 AA).
       Uses :focus-visible so mouse users are not affected.        ── */

    /* Base rule: every focusable element gets the gold ring */
    :focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 3px;
    }

    /* Override the blanket outline:none on form inputs */
    .form-input:focus-visible,
    .form-textarea:focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 0;
      border-color: var(--gold);
    }

    /* Nav links: ring sits below the underline indicator */
    .nav-links a:focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 4px;
      border-radius: 1px;
    }

    /* Buttons with custom backgrounds need offset to clear the element edge */
    .btn-primary:focus-visible,
    .btn-ghost:focus-visible,
    .form-submit:focus-visible,
    .cookie-btn:focus-visible,
    .lang-btn:focus-visible,
    .mobile-menu-btn:focus-visible,
    .job-card-link:focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 3px;
    }

    /* Footer links */
    .footer-links a:focus-visible {
      outline: 2px solid var(--gold-lt);
      outline-offset: 3px;
      border-radius: 1px;
    }

    /* Person card CTA inline button (ueber-uns.html) */
    a[style*="background:var(--ink)"]:focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 3px;
    }

    /* ── REDUCED MOTION ──
       Disables or substitutes all animations for users who prefer reduced motion
       (WCAG 2.3.3 AAA / best practice for vestibular disorders).                ── */
    @media (prefers-reduced-motion: reduce) {
      /* Kill all CSS transitions and animations globally */
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }

      /* Reveal elements immediately — no fade/slide-in */
      .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
      }
      .reveal.visible {
        opacity: 1;
        transform: none;
      }

    }

    /* ── NAVIGATION ── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 900;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.25rem 4rem;
      background: var(--nav-bg);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--rule);
          transition: background 0.3s, border-color 0.3s;
    }

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

    /* ── MOBILE MENU ── */
    .mobile-menu-btn {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 32px;
      height: 32px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 4px;
      margin-right: 1rem;
    }
    .mobile-menu-btn span {
      display: block;
      width: 100%;
      height: 2px;
      background: var(--ink);
      transition: all 0.3s ease;
      transform-origin: center;
    }
    .mobile-menu-btn.active span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
      opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-menu {
      position: fixed;
      top: 72px;
      left: 0;
      right: 0;
      background: var(--paper);
      border-bottom: 1px solid var(--rule);
      padding: 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
      z-index: 850;
    }
    .mobile-menu.open {
      max-height: 400px;
      padding: 2rem;
    }
    .mobile-menu-links {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }
    .mobile-menu-links a {
      font-family: var(--mono);
      font-size: 0.85rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--steel);
      text-decoration: none;
      padding: 0.5rem 0;
      display: block;
      border-bottom: 1px solid transparent;
      transition: all 0.2s;
    }
    .mobile-menu-links a:hover {
      color: var(--ink);
      border-bottom-color: var(--gold);
    }

    /* ── LOGO ── */
    .nav-logo {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      text-decoration: none;
      flex-shrink: 0;
    }
    .nav-logo svg { display: block; }
    .logo-wordmark {
      font-family: var(--serif);
      font-size: 1.5rem;
      font-weight: 600;
      letter-spacing: 0.05em;
      color: var(--ink);
      line-height: 1;
    }
    .logo-wordmark span { color: var(--gold); }

    .nav-links {
      display: flex;
      gap: 2.5rem;
      list-style: none;
    }
    .nav-links a {
      font-family: var(--mono);
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--steel);
      text-decoration: none;
      position: relative;
      transition: color 0.2s;
    }
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -3px; left: 0;
      width: 0; height: 1px;
      background: var(--gold);
      transition: width 0.3s ease;
    }
    .nav-links a:hover { color: var(--ink); }
    .nav-links a:hover::after { width: 100%; }

    .lang-switcher {
      display: flex;
      gap: 0.35rem;
      align-items: center;
    }
    .lang-btn {
      font-family: var(--mono);
      font-size: 0.68rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--steel);
      background: transparent;
      border: none;
      padding: 0.4rem 0.6rem;
      cursor: pointer;
      transition: color 0.2s;
      position: relative;
    }
    .lang-btn.active {
      color: var(--gold);
      font-weight: 500;
    }
    .lang-btn.active::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 1px;
      background: var(--gold);
    }
    .lang-btn:hover { color: var(--ink); }
    .lang-divider {
      width: 1px;
      height: 12px;
      background: var(--rule);
    }

    /* ── HERO ── */
    .hero {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr 1fr;
      padding-top: 80px;
    }

    .hero-left {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 8rem 4rem 8rem 8rem;
      position: relative;
    }

    .hero-eyebrow {
      font-family: var(--mono);
      font-size: 0.72rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 2rem;
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    .hero-eyebrow::before {
      content: '';
      display: block;
      width: 2.5rem;
      height: 1px;
      background: var(--gold);
    }

    .hero-h1 {
      font-family: var(--serif);
      font-size: clamp(3rem, 5vw, 5.5rem);
      font-weight: 300;
      line-height: 1.12;
      letter-spacing: -0.01em;
      margin-bottom: 2.5rem;
    }
    .hero-h1 em {
      font-style: italic;
      color: var(--gold);
    }

    .hero-sub {
      font-size: 1rem;
      color: var(--steel);
      max-width: 42ch;
      line-height: 1.8;
      margin-bottom: 3rem;
    }

    .hero-actions {
      display: flex;
      gap: 1.25rem;
      align-items: center;
    }

    .btn-primary {
      font-family: var(--mono);
      font-size: 0.75rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--paper);
      background: var(--ink);
      padding: 1rem 2rem;
      text-decoration: none;
      border: 1px solid var(--ink);
      transition: all 0.25s;
    }
    .btn-primary:hover {
      background: var(--gold);
      border-color: var(--gold);
    }

    .btn-ghost {
      font-family: var(--mono);
      font-size: 0.75rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--ink);
      padding: 1rem 2rem;
      text-decoration: none;
      border: 1px solid var(--ink);
      transition: all 0.25s;
    }
    .btn-ghost:hover {
      background: var(--ink);
      color: var(--paper);
    }

    .hero-right {
      background: var(--cream);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }

    .hero-diagram {
      position: relative;
      width: 360px;
      height: 360px;
      flex-shrink: 0;           /* prevent squishing in flex container */
      overflow: visible;        /* allow glow filter to bleed */
    }
    .hero-diagram svg {
      display: block;           /* remove inline baseline gap */
      width: 100%;
      height: 100%;
      overflow: visible;        /* Chrome clips SVG filters by default */
    }
      to   { transform: rotate(360deg); }
    }

    /* ── Hex Diagram D — Rotation ── */
    @keyframes hexRotate {
      from { transform: rotate(0deg); }
      to   { transform: rotate(360deg); }
    }
    @keyframes hexRotateRev {
      from { transform: rotate(0deg); }
      to   { transform: rotate(-360deg); }
    }
    @keyframes coreRotateD {
      0%,100% {
        filter: drop-shadow(0 0 8px rgba(184,149,74,0.5))
                drop-shadow(0 0 2px rgba(232,200,96,0.8));
      }
      50% {
        filter: drop-shadow(0 0 20px rgba(232,200,96,0.9))
                drop-shadow(0 0 4px rgba(255,240,160,1));
      }
    }

    /* ── Hex Diagram text legibility ── */
    svg text.label {
      paint-order: stroke fill;
      stroke: rgba(0,0,0,0.85);
      stroke-width: 3px;
      stroke-linejoin: round;
    }
    svg text.label-sm {
      paint-order: stroke fill;
      stroke: rgba(0,0,0,0.7);
      stroke-width: 2.5px;
      stroke-linejoin: round;
    }
    svg text.label-core {
      paint-order: stroke fill;
      stroke: rgba(0,0,0,0.5);
      stroke-width: 2px;
      stroke-linejoin: round;
    }
    /* ── SVG label halo + colour ── */
    .hero-diagram text.hexd-label {
      filter: url(#hexd_labelHalo);
    }
    
    :root[data-theme="dark"] .hero-diagram text.hexd-label {
      fill: var(--gold-lt);
      filter: url(#hexd_labelHaloDark);
    }

    .hero-bg-text {
      position: absolute;
      bottom: 3rem;
      right: 3rem;
      font-family: var(--serif);
      font-size: 9rem;
      font-weight: 300;
      color: rgba(58, 74, 92, 0.06);
      line-height: 1;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      letter-spacing: -0.04em;
    }

    /* ── SECTION SHARED ── */
    section {
      padding: 7rem 0;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 4rem;
    }

    .section-eyebrow {
      font-family: var(--mono);
      font-size: 0.7rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 1.25rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }
    .section-eyebrow::before {
      content: '';
      width: 2rem;
      height: 1px;
      background: var(--gold);
      display: block;
    }

    .section-title {
      font-family: var(--serif);
      font-size: clamp(2.25rem, 3.5vw, 3.75rem);
      font-weight: 300;
      line-height: 1.2;
      margin-bottom: 1.5rem;
    }
    .section-title em { font-style: italic; color: var(--gold); }

    .section-lead {
      font-size: 1rem;
      color: var(--steel);
      max-width: 60ch;
      line-height: 1.85;
    }

    /* ── DIVIDER ── */
    .divider {
      width: 100%;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--rule) 30%, var(--gold) 50%, var(--rule) 70%, transparent);
    }

    /* ── CONSULTING ── */
    #consulting {
      background: var(--ink);
      color: var(--paper);
    }
    #consulting .section-eyebrow { color: var(--gold-lt); }
    #consulting .section-eyebrow::before { background: var(--gold-lt); }
    #consulting .section-title em { color: var(--gold-lt); }
    #consulting .section-lead { color: var(--mist); }

    .consulting-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      margin-top: 4rem;
    }

    .consult-card {
      border-top: 1px solid rgba(184, 149, 74, 0.3);
      padding-top: 2rem;
    }
    .consult-card-num {
      font-family: var(--mono);
      font-size: 0.65rem;
      letter-spacing: 0.15em;
      color: var(--gold-lt);
      margin-bottom: 1rem;
    }
    .consult-card-title {
      font-family: var(--serif);
      font-size: 1.6rem;
      font-weight: 300;
      margin-bottom: 1rem;
      color: var(--paper);
    }
    .consult-card-body {
      font-size: 0.92rem;
      color: var(--mist);
      line-height: 1.8;
    }

    .consulting-aside {
      margin-top: 5rem;
      border: 1px solid rgba(184,149,74,0.2);
      padding: 3rem;
      display: grid;
      grid-template-columns: 1fr 2fr;
      gap: 2.5rem;
      align-items: center;
    }
    .aside-kicker {
      font-family: var(--serif);
      font-size: 3.5rem;
      font-weight: 300;
      color: var(--gold-lt);
      line-height: 1;
    }
    .aside-text {
      font-size: 0.95rem;
      color: var(--mist);
      line-height: 1.8;
    }

    /* ── PORTAL ── */
    #portal {
      background: var(--cream);
    }

    .portal-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      margin-top: 4rem;
      align-items: start;
    }

    .portal-feature {
      display: flex;
      gap: 1.5rem;
      padding: 2rem 0;
      border-bottom: 1px solid var(--rule);
    }
    .portal-feature:first-child { border-top: 1px solid var(--rule); }

    .feature-icon {
      flex-shrink: 0;
      width: 44px;
      height: 44px;
      border: 1px solid var(--gold);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .feature-icon svg {
      width: 20px;
      height: 20px;
      stroke: var(--gold);
      fill: none;
      stroke-width: 1.5;
    }

    .feature-content-title {
      font-family: var(--serif);
      font-size: 1.2rem;
      font-weight: 400;
      margin-bottom: 0.5rem;
    }
    .feature-content-body {
      font-size: 0.88rem;
      color: var(--steel);
      line-height: 1.75;
    }

    .portal-visual {
      position: sticky;
      top: 120px;
      background: var(--ink);
      padding: 2.5rem;
      color: var(--paper);
    }

    .portal-ui-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1.5rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .portal-ui-title {
      font-family: var(--mono);
      font-size: 0.7rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--gold-lt);
    }
    .portal-badge {
      font-family: var(--mono);
      font-size: 0.6rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      background: rgba(184,149,74,0.15);
      color: var(--gold-lt);
      padding: 0.25rem 0.6rem;
      border: 1px solid rgba(184,149,74,0.3);
    }

    .portal-file-row {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 0.75rem 0;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      font-size: 0.82rem;
    }
    .file-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .file-dot.kanzlei { background: var(--gold); }
    .file-dot.eigene  { background: #5bbd8f; }
    .file-dot.locked  { background: rgba(255,255,255,0.3); }
    .file-name { flex: 1; color: var(--mist); font-family: var(--mono); font-size: 0.75rem; }
    .file-type {
      font-family: var(--mono);
      font-size: 0.62rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.3);
    }

    .portal-legend {
      margin-top: 1.5rem;
      display: flex;
      gap: 1.5rem;
    }
    .legend-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-family: var(--mono);
      font-size: 0.62rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.4);
    }

    /* ── STRATEGIE ── */
    #strategie {
      background: var(--paper);
    }

    .strategie-layout {
      display: grid;
      grid-template-columns: 5fr 7fr;
      gap: 5rem;
      margin-top: 4rem;
      align-items: start;
    }

    .strategie-steps {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .step {
      display: grid;
      grid-template-columns: 3rem 1fr;
      gap: 1.25rem;
      padding: 2rem 0;
      position: relative;
    }
    .step + .step { border-top: 1px solid var(--rule); }

    .step-number {
      font-family: var(--serif);
      font-size: 1.4rem;
      font-weight: 300;
      color: var(--gold);
      padding-top: 0.1rem;
    }
    .step-title {
      font-family: var(--serif);
      font-size: 1.15rem;
      font-weight: 400;
      margin-bottom: 0.5rem;
    }
    .step-body {
      font-size: 0.88rem;
      color: var(--steel);
      line-height: 1.75;
    }

    .strategie-callout {
      background: var(--cream);
      border-left: 3px solid var(--gold);
      padding: 3rem;
    }
    .callout-quote {
      font-family: var(--serif);
      font-size: 1.75rem;
      font-weight: 300;
      font-style: italic;
      line-height: 1.5;
      color: var(--ink);
      margin-bottom: 2rem;
    }
    .callout-tag {
      font-family: var(--mono);
      font-size: 0.68rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--gold);
    }

    .inhouse-options {
      margin-top: 2rem;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1px;
      background: var(--rule);
    }
    .inhouse-opt {
      background: var(--paper);
      padding: 1.5rem;
    }
    .inhouse-opt-title {
      font-family: var(--serif);
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
    }
    .inhouse-opt-body {
      font-size: 0.83rem;
      color: var(--steel);
      line-height: 1.7;
    }

    /* ── SOFTWARE ── */
    #software {
      background: var(--ink);
      color: var(--paper);
    }
    #software .section-eyebrow { color: var(--gold-lt); }
    #software .section-eyebrow::before { background: var(--gold-lt); }
    #software .section-title em { color: var(--gold-lt); }

    .software-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      margin-top: 4rem;
      background: rgba(255,255,255,0.08);
    }

    .software-card {
      background: var(--ink);
      padding: 3rem 2.5rem;
      position: relative;
      overflow: hidden;
      transition: background 0.3s;
      cursor: default;
    }
    .software-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: var(--gold);
      transform: scaleX(0);
      transition: transform 0.4s ease;
      transform-origin: left;
    }
    .software-card:hover { background: #121820; }
    .software-card:hover::before { transform: scaleX(1); }

    .sc-num {
      font-family: var(--mono);
      font-size: 0.62rem;
      letter-spacing: 0.15em;
      color: rgba(255,255,255,0.2);
      margin-bottom: 2rem;
    }
    .sc-title {
      font-family: var(--serif);
      font-size: 1.35rem;
      font-weight: 300;
      margin-bottom: 1rem;
      color: var(--paper);
    }
    .sc-body {
      font-size: 0.85rem;
      color: var(--mist);
      line-height: 1.8;
    }

    .sc-bg-char {
      position: absolute;
      bottom: -1rem;
      right: 1.5rem;
      font-family: var(--serif);
      font-size: 6rem;
      font-weight: 300;
      color: rgba(255,255,255,0.03);
      line-height: 1;
      user-select: none;
    }

    .software-cta {
      margin-top: 4rem;
      padding: 3.5rem;
      border: 1px solid rgba(184,149,74,0.3);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 3rem;
    }
    .software-cta-text {
      font-family: var(--serif);
      font-size: 1.5rem;
      font-weight: 300;
      font-style: italic;
    }

    /* ── CONTACT ── */
    #kontakt {
      background: var(--cream);
    }

    .contact-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      margin-top: 4rem;
    }

    .contact-info p {
      font-size: 0.95rem;
      color: var(--steel);
      line-height: 1.85;
      margin-bottom: 2.5rem;
    }

    .contact-detail {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }
    .contact-row {
      display: flex;
      gap: 1.5rem;
      align-items: flex-start;
      padding-bottom: 1.25rem;
      border-bottom: 1px solid var(--rule);
    }
    .contact-row:last-child { border-bottom: none; }
    .contact-label {
      font-family: var(--mono);
      font-size: 0.65rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--gold);
      min-width: 5rem;
      padding-top: 0.15rem;
    }
    .contact-value {
      font-size: 0.92rem;
      color: var(--ink);
    }
    .contact-value a {
      color: var(--ink);
      text-decoration: none;
      border-bottom: 1px solid var(--rule);
      transition: border-color 0.2s;
    }
    .contact-value a:hover { border-color: var(--gold); }

    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.25rem;
    }

    .form-field {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }
    .form-label {
      font-family: var(--mono);
      font-size: 0.65rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--steel);
    }
    .form-input, .form-textarea {
      background: var(--paper);
      border: 1px solid rgba(58,74,92,0.2);
      padding: 0.85rem 1rem;
      font-family: var(--sans);
      font-size: 0.9rem;
      color: var(--ink);
      /* outline: none removed — focus-visible ring provided globally */
      transition: border-color 0.2s;
      width: 100%;
      font-weight: 300;
    }
    .form-input:focus, .form-textarea:focus {
      border-color: var(--gold);
    }
    .form-input.form-invalid, .form-textarea.form-invalid {
      border-color: #c0392b;
    }
    .form-error-msg {
      font-family: var(--mono);
      font-size: 0.65rem;
      letter-spacing: 0.08em;
      color: #c0392b;
      margin-top: 0.35rem;
      display: none;
    }
    .form-error-msg.visible {
      display: block;
    }
    .form-textarea {
      resize: vertical;
      min-height: 140px;
    }
    .form-submit {
      font-family: var(--mono);
      font-size: 0.75rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--paper);
      background: var(--ink);
      border: 1px solid var(--ink);
      padding: 1rem 2rem;
      cursor: pointer;
      align-self: flex-start;
      transition: all 0.25s;
    }
    .form-submit:hover { background: var(--gold); border-color: var(--gold); }

    /* ── FOOTER ── */
    footer {
      background: var(--ink);
      color: var(--mist);
      padding: 4rem 0 3rem;
    }
    .footer-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 4rem;
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 3rem;
      margin-bottom: 3rem;
    }

    .footer-logo {
      font-family: var(--serif);
      font-size: 1.35rem;
      font-weight: 600;
      color: var(--paper);
      margin-bottom: 1rem;
      letter-spacing: 0.04em;
    }
    .footer-logo span { color: var(--gold); }
    /* Logo SVG adapts to theme */
    .logo-hex-bg   { fill: var(--ink); }
    .logo-hex-icon { stroke: var(--paper); }
    
    :root[data-theme="dark"] .logo-hex-bg   { fill: var(--paper); }
    :root[data-theme="dark"] .logo-hex-icon { stroke: var(--ink); }
    .footer-tagline {
      font-size: 0.85rem;
      color: var(--mist);
      line-height: 1.75;
      max-width: 30ch;
    }

    .footer-col-title {
      font-family: var(--mono);
      font-size: 0.65rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold-lt);
      margin-bottom: 1.25rem;
    }
    .footer-links {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
    .footer-links a {
      font-size: 0.85rem;
      color: var(--mist);
      text-decoration: none;
      transition: color 0.2s;
    }
    .footer-links a:hover { color: var(--paper); }

    .footer-bottom {
      max-width: 1200px;
      margin: 0 auto;
      padding: 1.5rem 4rem;
      border-top: 1px solid rgba(184,149,74,0.12);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .footer-copy {
      font-size: 0.75rem;
      color: var(--mist);
      letter-spacing: 0.04em;
      opacity: 0.6;
    }

    /* ── Theme toggle ── */
    .theme-toggle {
      display: flex;
      align-items: center;
      cursor: pointer;
      opacity: 0.4;
      transition: opacity 0.3s;
    }
    .theme-toggle:hover { opacity: 1; }
    .theme-toggle-input {
      position: absolute;
      width: 1px; height: 1px;
      padding: 0; margin: -1px;
      overflow: hidden;
      clip: rect(0,0,0,0);
      white-space: nowrap;
      border: 0;
    }
    .theme-toggle-track {
      position: relative;
      display: flex;
      align-items: center;
      width: 44px; height: 24px;
      background: rgba(184,149,74,0.15);
      border: 1px solid rgba(184,149,74,0.25);
      border-radius: 12px;
      padding: 0 4px;
      justify-content: space-between;
      transition: background 0.3s, border-color 0.3s;
    }
    .theme-toggle-input:checked + .theme-toggle-track {
      background: rgba(201,165,90,0.18);
      border-color: rgba(201,165,90,0.35);
    }
    .theme-toggle-thumb {
      position: absolute;
      left: 3px;
      width: 16px; height: 16px;
      background: var(--gold);
      border-radius: 50%;
      transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
      z-index: 1;
      box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }
    .theme-toggle-input:checked + .theme-toggle-track .theme-toggle-thumb {
      transform: translateX(20px);
    }
    .theme-toggle-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--mist);
      z-index: 0;
      flex-shrink: 0;
    }
    .theme-toggle-icon--sun  { margin-left: 1px; }
    .theme-toggle-icon--moon { margin-right: 1px; }
    .theme-toggle-input:focus-visible + .theme-toggle-track {
      outline: 2px solid var(--gold);
      outline-offset: 2px;
    }


    /* ── COOKIE BANNER ── */
    .cookie-banner {
      position: fixed;
      bottom: 0; left: 0; right: 0;
      z-index: 950;
      background: var(--ink);
      border-top: 1px solid rgba(184,149,74,0.3);
      padding: 1.25rem 4rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
      transform: translateY(100%);
      transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .cookie-banner.visible { transform: translateY(0); }

    .cookie-text {
      font-family: var(--sans);
      font-size: 0.82rem;
      font-weight: 300;
      color: var(--mist);
      line-height: 1.6;
      max-width: 65ch;
    }
    .cookie-text a {
      color: var(--gold-lt);
      text-decoration: none;
      border-bottom: 1px solid rgba(212,176,106,0.35);
      transition: border-color 0.2s;
    }
    .cookie-text a:hover { border-color: var(--gold-lt); }

    .cookie-actions {
      display: flex;
      gap: 0.75rem;
      flex-shrink: 0;
      align-items: center;
    }
    .cookie-btn {
      font-family: var(--mono);
      font-size: 0.65rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 0.6rem 1.25rem;
      border: 1px solid;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }
    .cookie-btn-accept {
      background: var(--gold);
      border-color: var(--gold);
      color: var(--ink);
    }
    .cookie-btn-accept:hover { background: var(--gold-lt); border-color: var(--gold-lt); }
    .cookie-btn-decline {
      background: transparent;
      border-color: rgba(255,255,255,0.15);
      color: var(--mist);
    }
    .cookie-btn-decline:hover { border-color: var(--mist); color: var(--paper); }

    @media (max-width: 900px) {
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1.5rem 2rem; }
      .cookie-actions { width: 100%; }
      .cookie-btn { flex: 1; text-align: center; }
    nav { padding: 1.25rem 2rem; }
      .nav-links { display: none; }
      .mobile-menu-btn { display: flex; }
      .nav-right { gap: 1rem; }
      .lang-switcher { gap: 0.25rem; }
      .lang-btn { padding: 0.35rem 0.5rem; font-size: 0.62rem; }
      .hero { grid-template-columns: 1fr; min-height: auto; }
      .hero-left { padding: 7rem 2rem 4rem; }
      .hero-right { min-height: 320px; padding: 3rem; }
      .hero-diagram { width: 240px; height: 240px; }
      .diagram-center { inset: 100px; }
      .container { padding: 0 2rem; }
      section { padding: 5rem 0; }
      .consulting-grid,
      .portal-layout,
      .strategie-layout,
      .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
      .software-grid { grid-template-columns: 1fr; }
      .inhouse-options { grid-template-columns: 1fr; }
      .form-row { grid-template-columns: 1fr; }
      .footer-inner { grid-template-columns: 1fr 1fr; }
      .consulting-aside { grid-template-columns: 1fr; }
      .software-cta { flex-direction: column; align-items: flex-start; }
  }

    /* ── ANIMATIONS ── */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.15s; }
    .reveal-delay-2 { transition-delay: 0.3s; }
    .reveal-delay-3 { transition-delay: 0.45s; }

    /* ── RESPONSIVE ── */
    

/* ════════════════════════════════════════════════════
   Pateneers — Subpage Styles  (formerly styles-subpage.css)
   Covers: agb · datenschutz · impressum · karriere · ueber-uns
════════════════════════════════════════════════════ */

/* ── PAGE HERO ── */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(184,149,74,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
  position: relative;
  z-index: 1;
}

.page-breadcrumb {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s;
}

.page-breadcrumb a:hover { color: var(--gold-lt); }

.page-breadcrumb-sep {
  color: var(--gold);
  opacity: 0.5;
}

.page-eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.25rem;
}

.page-h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--paper);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.page-h1 em {
  font-style: italic;
  color: var(--gold-lt);
}

.page-lead {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--mist);
  max-width: 60ch;
}

/* ── PAGE CONTENT ── */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 4rem 6rem;
}

.page-section {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--rule);
}

.page-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.page-section-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.page-section-title em {
  font-style: italic;
  color: var(--gold);
}

.page-subsection {
  margin-top: 2.5rem;
}

.page-subsection-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.page-text {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--steel);
  margin-bottom: 1rem;
}

.page-text:last-child { margin-bottom: 0; }

.page-list {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--steel);
  padding-left: 1.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.page-list li {
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
}

.page-list li::marker {
  color: var(--gold);
}

.page-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--steel);
}

.highlight-box strong { color: var(--ink); font-weight: 500; }
.highlight-box a { color: var(--gold); text-decoration: none; }
.highlight-box a:hover { color: var(--gold-lt); }

/* ── LEGAL TABLE ── */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.legal-table td {
  padding: 0.6rem 1rem 0.6rem 0;
  color: var(--steel);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  font-weight: 300;
}

.legal-table td:first-child {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  width: 9rem;
  padding-top: 0.75rem;
}

/* ── STAT ROW (Über uns) ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 4rem;
  background: var(--rule);
}

.stat-item {
  background: var(--paper);
  padding: 2.5rem 2rem;
  text-align: center;
}

.stat-item-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ── VALUE GRID (Über uns / Karriere) ── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 0.5rem;
}

.value-item {
  padding: 1.5rem;
  border: 1px solid var(--rule);
  position: relative;
}

.value-item-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.value-item-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.value-item-body {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--mist);
}

/* ── PERSON CARD (Über uns) ── */
.person-card {
  padding: 2rem;
  border: 1px solid var(--rule);
  background: var(--cream);
}

.person-card-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.person-card-title {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.person-card-bio {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--steel);
}

/* ── PERSON CARD PHOTO AVATAR ── */
.person-card-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  position: relative;
  background: var(--ink);
  border: 1px solid var(--rule);
}

.person-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Initialen-Fallback: sichtbar wenn kein Foto */
.person-card-photo .person-card-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* Foto vorhanden: Initialen ausblenden */
.person-card-photo.has-photo .person-card-initials {
  display: none;
}

/* ── JOB CARDS (Karriere) ── */
.job-card {
  padding: 2rem 2.5rem;
  border: 1px solid var(--rule);
  margin-bottom: 1.5rem;
  transition: border-color 0.2s, background 0.2s;
}

.job-card:hover {
  border-color: rgba(184,149,74,0.5);
  background: var(--cream);
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1rem;
}

.job-card-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
}

.job-card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.job-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--rule);
  color: var(--mist);
  white-space: nowrap;
}

.job-tag.featured {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.job-card-desc {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--steel);
  margin-bottom: 1.25rem;
}

.job-card-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,149,74,0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.job-card-link:hover {
  color: var(--gold-lt);
  border-color: var(--gold-lt);
}

/* ── DARK MODE: Subpage overrides ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .page-hero { background: #0c0e13; }
  :root:not([data-theme="light"]) .page-hero::before {
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(201,165,90,0.05) 0%, transparent 70%);
  }
  :root:not([data-theme="light"]) .page-h1 { color: var(--ink); }
  :root:not([data-theme="light"]) .highlight-box { background: #1a1d24; }
  :root:not([data-theme="light"]) .stat-item { background: #111318; }
  :root:not([data-theme="light"]) .person-card { background: #1a1d24; }
  :root:not([data-theme="light"]) .job-card:hover { background: #1a1d24; }
}

:root[data-theme="dark"] .page-hero { background: #0c0e13; }
:root[data-theme="dark"] .page-hero::before {
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(201,165,90,0.05) 0%, transparent 70%);
}
:root[data-theme="dark"] .page-h1 { color: var(--ink); }
:root[data-theme="dark"] .highlight-box { background: #1a1d24; }
:root[data-theme="dark"] .stat-item { background: #111318; }
:root[data-theme="dark"] .person-card { background: #1a1d24; }
:root[data-theme="dark"] .job-card:hover { background: #1a1d24; }

/* ── RESPONSIVE: Subpages ── */
@media (max-width: 900px) {
  .page-hero { padding: 6rem 0 3.5rem; }
  .page-hero-inner,
  .page-content { padding-left: 2rem; padding-right: 2rem; }
  .page-content { padding-top: 3.5rem; padding-bottom: 4rem; }
  .page-two-col { grid-template-columns: 1fr; gap: 2rem; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .job-card-header { flex-direction: column; gap: 0.75rem; }
}

@media (max-width: 600px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .stat-item-num { font-size: 2.25rem; }
}
