/* Legal pages (Impressum, Datenschutz, AGB) in the website2027 style:
   Arial, ink and paper, one accent line from orange into ember red. */
:root {
  --ink:#111216; --paper:#f1f1ef; --night:#101215; --panel:#fafaf8;
  --text:#1b1c20; --text-2:#3c3e44; --mute:#6f716d; --line:#dcdcd8; --line-2:#c9c9c4;
  --gold:#e2a64d; --amber:#bd7a32; --ember:#7d3920; --gold-ink:#8f5a26;
  --accent-line:linear-gradient(180deg,var(--gold) 0%,var(--amber) 48%,var(--ember) 100%);
  --accent-line-x:linear-gradient(90deg,var(--gold) 0%,var(--amber) 48%,var(--ember) 100%);
  --header-h:64px;
  --gutter:clamp(20px,6vw,88px);
  --ease:cubic-bezier(.16,1,.3,1);
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:calc(var(--header-h) + 24px); -webkit-text-size-adjust:100%; }
html, body { margin:0; background:var(--paper); color:var(--text); font-family:Arial,Helvetica,sans-serif; }
body { overflow-x:hidden; overflow-x:clip; }
a { color:inherit; text-decoration:none; }
h1, h2, h3, h4, p, ul { margin:0; }
ul { padding:0; list-style:none; }
::selection { background:var(--gold); color:var(--ink); }
:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }

/* language visibility */
[data-lang="de"] .lang-en { display:none !important; }
[data-lang="en"] .lang-de { display:none !important; }

/* header: same light glass bar as the homepage */
.legal-header { position:sticky; top:0; z-index:50; height:var(--header-h); display:flex; align-items:center; gap:24px; padding:0 var(--gutter);
  background:rgba(250,250,248,.88); -webkit-backdrop-filter:saturate(1.4) blur(10px); backdrop-filter:saturate(1.4) blur(10px); border-bottom:1px solid #dededb; }
.legal-header .brand img { display:block; height:30px; width:auto; }
.legal-actions { margin-left:auto; display:flex; align-items:center; gap:22px; }
.legal-back { position:relative; padding:4px 0; font-size:13px; font-weight:700; transition:color .25s ease; }
.legal-back:after { content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background:var(--accent-line-x); transform:scaleX(0); transform-origin:left; transition:transform .35s var(--ease); }
.legal-back:hover { color:var(--gold-ink); }
.legal-back:hover:after { transform:scaleX(1); }
.lang-toggle-group { display:inline-flex; gap:2px; padding:2px; border:1px solid #222; border-radius:4px; }
.lang-toggle-btn { min-width:34px; height:28px; padding:0 8px; border:0; border-radius:2px; background:transparent; color:var(--mute);
  font:700 11px/1 Arial,Helvetica,sans-serif; letter-spacing:.12em; cursor:pointer; transition:background-color .25s ease, color .25s ease; }
.lang-toggle-btn:hover:not(.active) { color:var(--ink); }
.lang-toggle-btn.active { background:var(--ink); color:#fff; }

/* title band: dark like the homepage hero, with its accent line */
.legal-hero { position:relative; overflow:hidden; color:#fff; padding:88px var(--gutter) 64px; background:
  linear-gradient(90deg,rgba(10,11,13,.95) 0%,rgba(15,17,20,.84) 45%,rgba(12,14,16,.55) 100%),
  url('images/Moderne_Betonarchitektur_im_Abendlicht.png') center 40% / cover no-repeat var(--ink); }
.legal-hero .wrap { position:relative; max-width:1120px; margin:0 auto; padding-left:24px; }
.legal-hero .wrap:before { content:""; position:absolute; left:0; top:0; bottom:0; width:1px; background:var(--accent-line); }
.sec-label { margin-bottom:16px; color:var(--gold); font-size:11px; line-height:1; letter-spacing:.12em; font-weight:700; text-transform:uppercase; }
.legal-title { font-size:clamp(38px,5.2vw,64px); line-height:1; font-weight:400; letter-spacing:-.04em; overflow-wrap:break-word; -webkit-hyphens:auto; hyphens:auto; }

/* body: table of contents + content */
.legal-page-body { display:grid; grid-template-columns:240px minmax(0,1fr); gap:72px; align-items:start; max-width:calc(1120px + 2 * var(--gutter)); margin:0 auto; padding:72px var(--gutter) 104px; }
.legal-page-body.no-sidebar { display:block; }
.legal-sidebar { position:sticky; top:calc(var(--header-h) + 32px); max-height:calc(100vh - var(--header-h) - 64px); overflow-y:auto; padding-right:6px; }
.sidebar-header-label { margin-bottom:16px; color:var(--gold-ink); font-size:11px; line-height:1; letter-spacing:.12em; font-weight:700; text-transform:uppercase; }
.legal-toc { position:relative; display:flex; flex-direction:column; border-left:1px solid var(--line); }
.legal-toc-item a { position:relative; display:block; margin-left:-1px; padding:7px 0 7px 16px; color:var(--mute); font-size:13px; line-height:1.4; transition:color .25s ease; }
.legal-toc-item a:before { content:""; position:absolute; left:0; top:0; bottom:0; width:2px; background:var(--accent-line); transform:scaleY(0); transform-origin:top; transition:transform .35s var(--ease); }
.legal-toc-item a:hover { color:var(--ink); }
.legal-toc-item.active a { color:var(--ink); font-weight:700; }
.legal-toc-item.active a:before { transform:scaleY(1); }
.legal-sidebar::-webkit-scrollbar { width:6px; }
.legal-sidebar::-webkit-scrollbar-thumb { background:var(--line-2); border-radius:99px; }

.legal-content { min-width:0; max-width:780px; overflow-wrap:break-word; }
.legal-page-body.no-sidebar .legal-content { max-width:1120px; }
.legal-section-box { margin-bottom:52px; padding-bottom:52px; border-bottom:1px solid var(--line); scroll-margin-top:calc(var(--header-h) + 24px); }
.legal-section-box:last-child { margin-bottom:0; padding-bottom:0; border-bottom:0; }
.legal-section-title { margin-bottom:24px; font-size:clamp(22px,2.2vw,30px); line-height:1.12; font-weight:400; letter-spacing:-.03em; color:var(--ink); text-wrap:balance; }
.legal-subheading { margin:30px 0 10px; font-size:15px; line-height:1.4; font-weight:700; color:var(--ink); }
.legal-section-title + .legal-subheading { margin-top:0; }
.legal-paragraph { margin-bottom:14px; font-size:15px; line-height:1.65; color:var(--text-2); text-wrap:pretty; }
.legal-paragraph:last-child { margin-bottom:0; }
.legal-paragraph strong { display:inline-block; min-width:34px; margin-right:8px; padding:1px 7px; border:1px solid var(--line-2); border-radius:3px;
  color:var(--gold-ink); font-size:12px; font-weight:700; text-align:center; }
.legal-paragraph a, .imprint-card a { color:var(--ink); text-decoration:underline; text-decoration-color:rgba(189,122,50,.55); text-underline-offset:3px; transition:text-decoration-color .25s ease, color .25s ease; }
.legal-paragraph a:hover, .imprint-card a:hover { color:var(--gold-ink); text-decoration-color:var(--amber); }

/* imprint */
.imprint-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:18px; }
.imprint-card { position:relative; padding:28px 28px 30px; background:var(--panel); border:1px solid var(--line); border-radius:5px; }
.imprint-card h4 { margin-bottom:18px; color:var(--gold-ink); font-size:11px; line-height:1.4; letter-spacing:.12em; font-weight:700; text-transform:uppercase; }
.imprint-card p { font-size:15px; line-height:1.65; color:var(--text-2); }
.imprint-card p + p { margin-top:12px; }
.imprint-card strong { color:var(--ink); }
.imprint-disclaimer { position:relative; padding:26px 28px; background:var(--panel); border:1px solid var(--line); border-radius:5px; overflow:hidden; }
.imprint-disclaimer:before { content:""; position:absolute; left:0; top:0; bottom:0; width:2px; background:var(--accent-line); }
.imprint-disclaimer h4 { margin-bottom:8px; font-size:15px; line-height:1.4; font-weight:700; color:var(--ink); }
.imprint-disclaimer p { font-size:14.5px; line-height:1.65; color:var(--text-2); }

/* footer: as on the homepage */
.footer { position:relative; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; background:var(--night); color:#b5b7b4; padding:40px var(--gutter) 32px; font-size:13px; line-height:1.5; }
.footer:before { content:""; position:absolute; left:0; right:0; top:0; height:1px; background:linear-gradient(90deg,transparent,rgba(226,166,77,.55) 50%,transparent); }
.footer-brand { grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; padding-bottom:20px; border-bottom:1px solid rgba(255,255,255,.12); }
.footer-brand img { display:block; height:30px; width:auto; }
.footer-brand span { color:#8f918e; font-size:11px; letter-spacing:.12em; font-weight:700; text-transform:uppercase; }
.footer-address strong { display:block; margin-bottom:4px; color:#dedfdd; font-size:13.5px; }
.footer-address address { font-style:normal; }
.footer-links { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:24px; padding-top:18px; border-top:1px solid rgba(255,255,255,.12); }
.footer-links a { color:#d2d3d1; transition:color .25s ease; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color:var(--gold); }

@media (max-width:960px) {
  .legal-page-body { grid-template-columns:1fr; gap:0; padding-top:48px; padding-bottom:80px; }
  .legal-sidebar { display:none; }
}
@media (max-width:600px) {
  :root { --header-h:58px; }
  .legal-header .brand img { height:26px; }
  .legal-actions { gap:14px; }
  .legal-back .txt { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
  .legal-back { font-size:18px; }
  .legal-hero { padding:56px 24px 44px; }
  .legal-hero .wrap { padding-left:16px; }
  .legal-title { font-size:clamp(28px,8.4vw,40px); line-height:1.05; }
  .legal-section-box { margin-bottom:40px; padding-bottom:40px; }
  .imprint-grid { grid-template-columns:1fr; gap:14px; margin-bottom:14px; }
  .imprint-card, .imprint-disclaimer { padding:22px 20px; }
  .footer { grid-template-columns:1fr; gap:18px; padding:32px 24px 26px; }
  .footer-brand span { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *, *:before, *:after { transition-duration:0s !important; }
}
