/* ImmoBau-Akademie — Brand Stylesheet
   Lokale Fonts · keine externen CDN-Anfragen · DSGVO-konform ohne Cookie-Banner */

/* ─── Plus Jakarta Sans (Variable Font · alle Gewichte in einer Datei) ─── */
@font-face{
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-400-500-600-700-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-400-500-600-700-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ─── IBM Plex Mono (zwei Gewichte) ─── */
@font-face{
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ─── Libre Baskerville (für Logo & Editorial-Momente) ─── */
@font-face{
  font-family:'Libre Baskerville'; font-style:normal; font-weight:400; font-display:swap;
  src:url('fonts/libre-baskerville-regular.woff2') format('woff2');
}
@font-face{
  font-family:'Libre Baskerville'; font-style:normal; font-weight:700; font-display:swap;
  src:url('fonts/libre-baskerville-bold.woff2') format('woff2');
}
@font-face{
  font-family:'Libre Baskerville'; font-style:italic; font-weight:400; font-display:swap;
  src:url('fonts/libre-baskerville-italic.woff2') format('woff2');
}

:root{
  /* Colors */
  --red:        #E5221F;
  --red-ink:    #C71D1A;
  --red-soft:   #FBE9E8;
  --ink:        #0E0E0E;
  --ink-2:      #2A2A2A;
  --mute:       #6E6E68;
  --rule:       #E5E2D9;
  --rule-2:     #EFEDE5;
  --paper:      #F6F3EA;
  --paper-2:    #EFEBDE;
  --paper-3:    #FAF8F1;
  --white:      #FFFFFF;
  --live:       #1F8A5B;
  --live-soft:  #E6F4EC;
  --info:       #2A6FDB;
  --info-soft:  #E8F0FB;
  --soon:       #B86A1A;
  --soon-soft:  #FBEFE0;

  /* Type */
  --sans:  'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Libre Baskerville', 'Baskerville Old Face', 'Iowan Old Style', Georgia, serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Layout */
  --maxw: 1280px;
  --gutter: 32px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(14,14,14,.04), 0 0 0 1px rgba(14,14,14,.04);
  --shadow:    0 4px 12px -2px rgba(14,14,14,.06), 0 0 0 1px rgba(14,14,14,.05);
  --shadow-lg: 0 12px 32px -4px rgba(14,14,14,.1), 0 0 0 1px rgba(14,14,14,.05);
}

*{ margin:0; padding:0; box-sizing:border-box; }
html, body{ background: var(--paper); color: var(--ink); }
body{
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ max-width:100%; display:block; }

a{ color: var(--ink); text-decoration: none; transition: color .15s; }
a:hover{ color: var(--red); }

::selection{ background: var(--red); color: var(--white); }

/* --- Layout --- */
.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow{ max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }

.rule{ height:1px; background: var(--ink); width:100%; }
.rule-thin{ height:1px; background: var(--rule); width:100%; }

/* --- Editorial labels --- */
.eyebrow{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.eyebrow .num{ color: var(--red); margin-right: 8px; }
.eyebrow.muted{ color: var(--mute); }

/* --- Brand serif moments --- */
.serif-display{
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.02em;
}
.serif-display em{ font-style: italic; }
.serif-display .red{ color: var(--red); }

/* --- Logo lockup --- */
.logo{
  display:inline-flex; align-items: flex-end; gap: 6px; color: var(--ink);
}
.logo .bars{ display:flex; gap: 3px; height: 34px; align-items: stretch; }
.logo .bars i{ display:block; width: 3.5px; background: var(--red); border-radius: 1px; }
.logo .glyph{
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 38px; line-height: .82; margin-left: 2px; letter-spacing: -.01em;
}
.logo .wordmark{
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: -.005em; margin-left: 12px;
  padding-bottom: 4px;
}
.logo.small .bars{ height: 20px; }
.logo.small .bars i{ width: 2.5px; }
.logo.small .glyph{ font-size: 23px; }
.logo.small .wordmark{ font-size: 13px; margin-left: 10px; padding-bottom: 2px; }

/* --- Header --- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .inner{
  display:flex; align-items:center; justify-content: space-between;
  padding: 14px 0;
}
.site-header nav{
  display:flex; gap: 4px;
  font-size: 14px; font-weight: 500;
}
.site-header nav a{
  color: var(--ink-2); position: relative; padding: 8px 14px;
  border-radius: var(--radius);
  transition: all .15s;
}
.site-header nav a:hover{ color: var(--ink); background: var(--rule-2); }
.site-header nav a.active{ color: var(--ink); background: var(--paper-2); }

/* --- Buttons --- */
.btn{
  display:inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: -.005em;
  padding: 11px 18px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all .15s ease;
  white-space: nowrap;
}
.btn:hover{ background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.ghost, .btn-ghost{ background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover, .btn-ghost:hover{ background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.red{ background: var(--red); border-color: var(--red); color: var(--white); }
.btn.red:hover{ background: var(--red-ink); border-color: var(--red-ink); }
.btn.lg{ padding: 14px 22px; font-size: 15px; }
.btn .arrow{ font-size: 16px; transition: transform .2s; }
.btn:hover .arrow{ transform: translateX(2px); }

/* --- Headings (sans by default) --- */
h1, h2, h3, h4{
  font-family: var(--sans); font-weight: 700; letter-spacing: -.022em;
  text-wrap: balance; color: var(--ink);
}
h1{ font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -.028em; }
h2{ font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.022em; }
h3{ font-size: 22px; line-height: 1.2; letter-spacing: -.015em; font-weight: 600; }
h4{ font-size: 16px; line-height: 1.25; letter-spacing: -.01em; font-weight: 600; }

/* --- Section frame --- */
.section{ padding: 96px 0; }
.section.tight{ padding: 64px 0; }
.section.first{ padding-top: 56px; }
.section-divider{ border-top: 1px solid var(--rule); }

.section-head{
  display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end;
  margin-bottom: 48px;
}
.section-head h2 em{
  font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--red);
}
.section-head .lede{ font-size: 18px; color: var(--ink-2); max-width: 50ch; line-height: 1.5; }

/* --- Tags / status pills --- */
.tag{
  display:inline-flex; align-items:center; gap: 7px;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .4s ease, border-color .4s ease, color .4s ease;
}
.tag .dot{ width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; }

.tag.live{
  background: var(--live-soft);
  color: oklch(0.45 0.12 150);
  border-color: oklch(0.85 0.10 150);
  animation: liveTag 6s ease-in-out infinite;
}
.tag.live .dot{
  background: var(--live);
  animation: liveDot 2.4s ease-in-out infinite;
}
@keyframes liveTag{
  0%, 100%{ background: oklch(0.96 0.04 150); border-color: oklch(0.85 0.10 150); color: oklch(0.45 0.12 150); }
  50%    { background: oklch(0.97 0.04 175); border-color: oklch(0.85 0.10 175); color: oklch(0.45 0.12 175); }
}
@keyframes liveDot{
  0%, 100%{ background: oklch(0.58 0.16 150); transform: scale(1); }
  50%    { background: oklch(0.62 0.18 165); transform: scale(1.25); }
}

.tag.soon{
  background: var(--soon-soft);
  color: var(--soon);
  border-color: oklch(0.85 0.10 60);
}
.tag.soon .dot{ background: var(--soon); }

.tag.new{
  background: var(--red-soft);
  color: var(--red-ink);
  border-color: oklch(0.85 0.10 25);
}
.tag.new .dot{ background: var(--red); }

.tag.info{
  background: var(--info-soft);
  color: var(--info);
  border-color: oklch(0.85 0.08 245);
}
.tag.info .dot{ background: var(--info); }

/* --- Cards (generic) --- */
.card{
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all .2s ease;
}
.card:hover{ border-color: var(--ink-2); box-shadow: var(--shadow); transform: translateY(-2px); }

/* --- Footer baseline --- */
.site-footer{
  padding: 64px 0 28px;
  background: var(--ink);
  color: var(--paper);
}
.site-footer a{ color: rgba(246,243,234,.7); }
.site-footer a:hover{ color: var(--white); }
.site-footer h4{
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: #8a8a86; margin-bottom: 18px; font-weight: 400;
}
.site-footer ul{ list-style:none; display:flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer .meta{
  margin-top: 56px; padding-top: 20px; border-top: 1px solid #232323;
  display:flex; justify-content: space-between; align-items: center; gap: 24px;
  font-size: 12px;
  color: #6f6f6c; flex-wrap: wrap;
}
.site-footer .logo{ color: var(--paper); }
.site-footer .logo .wordmark{ color: var(--paper); }

/* --- Responsive baseline --- */
@media (max-width: 900px){
  :root{ --gutter: 20px; }
  body{ font-size: 15px; }
  .section{ padding: 64px 0; }
  .section-head{ grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
  .site-header nav{ gap: 0; }
  .site-header nav a{ padding: 6px 8px; font-size: 13px; }
  .logo .wordmark{ display: none; }
}

/* --- Live data pulse (used in tool headers) --- */
.live-pulse{
  display:inline-block; width: 7px; height: 7px; background: var(--live); border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 0 0 oklch(0.58 0.16 150 / .6);
  animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse{
  0%   { box-shadow: 0 0 0 0 oklch(0.58 0.16 150 / .6); }
  70%  { box-shadow: 0 0 0 7px oklch(0.58 0.16 150 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.58 0.16 150 / 0); }
}
