/* ═══════════════════════════════════════════════════════════════
   Books & Balances – gemeinsames Layout aller Seiten
   Farb-Tokens, Skip-Link, Header, mobile Navigation, Footer.
   Änderungen hier wirken auf allen Seiten; das HTML von Header,
   mobiler Navigation und Footer steht weiterhin in jeder Seite.
   ═══════════════════════════════════════════════════════════════ */

/* ═══ TOKENS ═══ */
:root {
  --dark:       #0b0f1a;
  --dark-2:     #0f1525;
  --dark-3:     #131a2e;
  --navy:       #14213D;
  --indigo:     #4f46e5;
  --indigo-h:   #4338ca;
  --indigo-s:   rgba(79,70,229,0.15);
  --amber:      #f59e0b;
  --amber-s:    rgba(245,158,11,0.15);
  --jade:       #2F6F5E;
  --jade-light: #E3EFEA;
  --paper:      #faf9f6;
  --paper-2:    #f1f0ed;
  --white:      #ffffff;
  --ink:        #1a1f2e;
  --ink-2:      #4b5563;
  --ink-3:      #9ca3af;
  --line:       rgba(0,0,0,0.09);
  --line-w:     rgba(255,255,255,0.1);
}

/* ═══ GRUNDREGELN FÜR HEADER/FOOTER ═══ */
/* Damit Header und Footer unabhängig von seitenspezifischen Stilen gleich aussehen */
header, #mob-nav, footer { line-height:1.5; }
header a, #mob-nav a, footer a { text-decoration:none; }
.nav-links { list-style:none; margin:0; padding:0; }
.nav-links li { margin:0; font-size:inherit; color:inherit; }
.mob-btn, .mob-cta-btn { cursor:pointer; font-family:inherit; border:none; background:none; }
footer .wrap { max-width:1200px; margin:0 auto; padding:0 32px; }

/* ═══ SKIP LINK ═══ */
.skip-link { position:absolute; top:-100%; left:16px; background:var(--indigo); color:#fff; padding:8px 16px; border-radius:0 0 6px 6px; font-size:14px; font-weight:600; z-index:9999; transition:top .2s; }
.skip-link:focus { top:0; }

/* ═══ HEADER ═══ */
header { position:fixed; top:0; left:0; right:0; z-index:50; transition:background .4s, border .4s; }
header.scrolled { background:rgba(255,255,255,0.96); backdrop-filter:blur(12px); border-bottom:1px solid var(--line); }
header nav, #mob-nav { display:flex; align-items:center; justify-content:space-between; padding:18px 40px; max-width:1200px; margin:0 auto; gap:20px; }
.logo-wrap { display:flex; align-items:center; height:44px; flex-shrink:0; }
.logo-wrap svg { height:44px; width:auto; transition:opacity .2s; }
/* Logo auf dunklem Header: Buchstaben weiß, & coral behalten */
header:not(.scrolled) #site-logo-svg .cls-1 { fill: #ffffff; }
header:not(.scrolled) #site-logo-svg .cls-2 { fill: #ff6d4d; }
/* Logo auf hellem Header: Originalfarben */
header.scrolled #site-logo-svg .cls-1 { fill: #545454; }
header.scrolled #site-logo-svg .cls-2 { fill: #ff6d4d; }
.nav-links { display:flex; gap:28px; font-size:13.5px; font-weight:500; }
header:not(.scrolled) .nav-links a { color:rgba(255,255,255,0.75); }
header:not(.scrolled) .nav-links a:hover { color:#fff; }
header.scrolled .nav-links a { color:var(--ink-2); }
header.scrolled .nav-links a:hover { color:var(--navy); }
.nav-right { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.login-btn {
  padding:8px 16px; border-radius:7px; font-size:13px; font-weight:500;
  transition:all .2s; display:inline-flex; align-items:center; gap:6px; white-space:nowrap;
}
header:not(.scrolled) .login-btn { background:rgba(255,255,255,0.1); color:#fff; border:1px solid rgba(255,255,255,0.2); }
header:not(.scrolled) .login-btn:hover { background:rgba(255,255,255,0.18); }
header.scrolled .login-btn { background:transparent; border:1.5px solid var(--line); color:var(--ink-2); }
header.scrolled .login-btn:hover { border-color:var(--navy); color:var(--navy); }
.cta-nav {
  display:inline-flex; align-items:center; gap:7px;
  padding:10px 20px; border-radius:99px; font-size:13.5px; font-weight:600;
  transition:all .2s; white-space:nowrap;
}
header:not(.scrolled) .cta-nav { background:var(--indigo); color:#fff; box-shadow:0 0 24px rgba(79,70,229,0.4); }
header:not(.scrolled) .cta-nav:hover { background:var(--indigo-h); }
header.scrolled .cta-nav { background:var(--navy); color:#fff; box-shadow:none; }
header.scrolled .cta-nav:hover { background:var(--indigo); }
.mob-btn { display:none; flex-direction:column; gap:5px; padding:4px; }
.mob-btn span { display:block; width:22px; height:2px; background:#fff; border-radius:2px; transition:background .2s; }
header.scrolled .mob-btn span { background:var(--ink); }

/* ═══ FOOTER ═══ */
footer { background:var(--dark-2); padding:44px 0; border-top:1px solid rgba(255,255,255,0.06); }
.foot-inner { display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; }
.foot-logo { display:flex; align-items:center; }
.foot-copy { font-size:12.5px; color:rgba(255,255,255,0.6); margin:0; }
.foot-links { display:flex; gap:20px; }
.foot-links a { font-size:12.5px; color:rgba(255,255,255,0.6); transition:color .2s; }
.foot-links a:hover { color:rgba(255,255,255,0.9); }
.foot-member { display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding-bottom:28px; margin-bottom:28px; border-bottom:1px solid var(--line-w); }
.foot-member-label { font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:0.12em; text-transform:uppercase; color:rgba(255,255,255,0.6); }
.foot-member a { display:inline-flex; background:var(--white); border-radius:8px; padding:10px 14px; opacity:0.9; transition:opacity .2s; }
.foot-member a:hover, .foot-member a:focus-visible { opacity:1; }
.foot-member img { height:52px; width:auto; }

/* ═══ MOBILE NAV ═══ */
#mob-nav { display:none; position:fixed; inset:0; z-index:100; background:var(--dark); padding:80px 28px 40px; flex-direction:column; }
#mob-nav.open { display:flex; }
#mob-nav a, #mob-nav .mnl { display:block; padding:18px 0; font-size:22px; font-weight:700; color:#fff; border-bottom:1px solid rgba(255,255,255,0.08); background:none; border-left:none; border-right:none; border-top:none; font-family:'Space Grotesk',sans-serif; text-align:left; width:100%; }
#mob-nav .mob-portal { display:flex; align-items:center; gap:10px; font-size:17px; font-weight:500; color:rgba(255,255,255,0.75); }
.mob-cta-btn { margin-top:28px; background:var(--indigo); color:#fff; padding:16px; border-radius:99px; font-size:16px; font-weight:700; text-align:center; display:block; border:none; width:100%; font-family:'Space Grotesk',sans-serif; cursor:pointer; }

/* ═══ RESPONSIVE ═══ */
@media (max-width:900px) {
  .nav-links { display:none; }
  .login-btn { display:none; }
  .cta-nav { display:none; }
  .mob-btn { display:flex; }
  header nav { padding:16px 24px; }
  footer .wrap { padding:0 24px; }
}

/* ═══ PFLICHTHINWEIS TÄTIGKEITSBEREICH (b.b.h.-Merkblatt) ═══ */
/* Sternchen-Link mit Hinweisfeld bei Mouseover/Tastaturfokus; Klick springt zum Footer-Hinweis */
.fn { position:relative; display:inline-block; color:inherit; text-decoration:none; font-size:0.7em; vertical-align:super; line-height:0; padding:0.2em 0.15em; cursor:help; }
.fn-flat { font-size:inherit; vertical-align:baseline; }
.fn::after {
  content:attr(data-tip); position:absolute; left:50%; bottom:calc(100% + 10px); transform:translateX(-50%);
  width:max-content; max-width:min(280px, 80vw); padding:9px 13px; border-radius:8px;
  background:var(--white); color:var(--ink); border:1px solid var(--line); box-shadow:0 8px 24px -8px rgba(11,15,26,0.35);
  font-family:'Inter',system-ui,sans-serif; font-size:13px; font-weight:400; line-height:1.45; letter-spacing:0; text-transform:none; text-align:left; white-space:normal;
  display:none; pointer-events:none; z-index:60;
}
.fn:hover::after, .fn:focus-visible::after { display:block; }
.fn:focus-visible { outline:2px solid var(--indigo); outline-offset:2px; border-radius:3px; }
.foot-legal { font-size:12.5px; line-height:1.6; color:rgba(255,255,255,0.75); margin:0 0 28px; max-width:720px; scroll-margin-top:100px; }
.foot-legal:target { color:#fff; }
