/* IB-Gebäudetechnik — gemeinsame Styles (Designrichtung „Planblatt“) für index, impressum, datenschutz */

@font-face { font-family: "Plex"; src: url("fonts/plex-sans.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f6f6f3; --sheet: #ffffff; --ink: #14171c; --ink-2: #5b6270; --ink-3: #8a909b;
  --line: #dcdcd5; --line-2: #ebebe6;
  /* Leitungsfarben wie in TGA-Plänen – nur sparsam einsetzen */
  --vl: #c8372d; --rl: #2f6db5; --tw: #2e8b57; --lu: #7a8fa6;
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;
  --sans: "Plex", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px; --ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(var(--wrap), 100% - 64px); } }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--rl); outline-offset: 3px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; }
.logo-img { height: 56px; width: auto; }
@media (max-width: 420px) { .logo-img { height: 44px; } }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo .box { flex: none; width: 34px; height: 34px; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 600 13px var(--sans); position: relative; }
.logo .box::after { content: ""; position: absolute; right: -1.5px; bottom: -1.5px; width: 10px; height: 10px; background: var(--ink); }
.logo b { font-weight: 600; font-size: 16px; display: block; line-height: 1.1; }
.logo small { font: 400 11px var(--mono); color: var(--ink-2); letter-spacing: .02em; white-space: nowrap; }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); transition: color .2s; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; font: 500 15px var(--sans); text-decoration: none; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); transition: background .2s, color .2s; white-space: nowrap; }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: #2a2f38; }
.btn:not(.solid):hover { background: var(--ink); color: #fff; }
.header .btn { padding: 9px 16px; font-size: 14px; }
.header-cta { display: none; }
.burger { background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; color: var(--ink); }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease), background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: 81px 0 0; z-index: 40; background: var(--paper); padding: 30px 16px; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .25s; }
.mobile-nav a { text-decoration: none; font-size: 28px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.mobile-nav a span { font: 400 12px var(--mono); color: var(--ink-3); }
.menu-open .mobile-nav { opacity: 1; pointer-events: auto; }
@media (min-width: 1000px) { .nav, .header-cta { display: flex; } .burger, .mobile-nav { display: none; } }
@media (max-width: 420px) { .logo small { font-size: 10px; letter-spacing: 0; } .logo b { font-size: 15px; } }

/* Legal-Seiten */
.legal { padding: 70px 0 100px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 6vw, 54px); margin: 16px 0 34px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.legal h2 { font-size: 21px; margin: 38px 0 10px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 10px; }
.legal a { color: var(--ink); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0 50px; color: var(--ink-3); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; }
.footer a { text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: var(--ink); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
}
