
/* u-werte.css — JFR ImmoEnergy CI-aligned styles for the U-Werte page */
:root{
  /* Uses existing site variables from styles.css */
  /* --brand, --brand-600, --surface, --fg, --muted, --ring are already defined */
}

/* Page chrome */
.page-hero{padding:2.5rem 0 1rem;background:radial-gradient(1100px 420px at 8% -10%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%)}
.page-hero h1{margin:.5rem 0 0}
.pill{display:inline-block;padding:.25rem .6rem;border-radius:999px;background:color-mix(in srgb, var(--brand) 16%, transparent);color:var(--brand);font-weight:600;font-size:.9rem}
.note{font-size:.95rem;color:var(--muted)}
.twocol{display:grid;gap:24px;grid-template-columns: 1.2fr .8fr}
@media (max-width: 900px){.twocol{grid-template-columns:1fr}}

/* Cards & tables */
.compare{border-collapse:collapse;width:100%;overflow:hidden;border-radius:12px}
.compare th,.compare td{padding:.7rem 1rem;border-bottom:1px solid color-mix(in srgb, var(--fg) 10%, transparent)}
.compare thead th{background:color-mix(in srgb, var(--brand) 16%, transparent);text-align:left}
.compare .ok{font-weight:600;color:var(--brand)}

.matlib{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
@media (max-width:900px){.matlib{grid-template-columns:1fr}}
.matlib .card{padding:10px;border-radius:10px;background:var(--surface);border:1px solid color-mix(in srgb, var(--fg) 10%, transparent)}
.muted{color:var(--muted)}

/* Tool layout */
.tool{display:grid;gap:18px}
.tool .grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width: 900px){.tool .grid{grid-template-columns:1fr}}
.layer-list{display:flex;flex-direction:column;gap:10px}
.layer{display:grid;grid-template-columns:1.2fr .8fr .8fr auto;gap:8px;align-items:center}
.layer input,.layer select{width:100%;border:1px solid color-mix(in srgb, var(--fg) 18%, transparent);border-radius:10px;padding:.45rem .6rem;background:var(--bg);color:var(--fg)}
.layer input:focus,.layer select:focus{outline:3px solid var(--ring);outline-offset:2px}
.layer .del{background:#fff;border:1px solid color-mix(in srgb, var(--fg) 18%, transparent);border-radius:8px;padding:.35rem .6rem;cursor:pointer}
.layer .del:hover{background:color-mix(in srgb, var(--fg) 6%, transparent)}

.kpi{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
@media (max-width: 900px){.kpi{grid-template-columns:1fr}}
.kpi .card{padding:12px;border-radius:12px;background:var(--surface);border:1px solid color-mix(in srgb, var(--fg) 10%, transparent);box-shadow:0 2px 10px rgba(0,0,0,.05)}

.target{display:flex;gap:8px;align-items:center}
.target .dot{width:10px;height:10px;border-radius:50%}
.dot.ok{background:#2e7d32}.dot.no{background:#b00020}

.bar{height:26px;border-radius:6px;background:color-mix(in srgb, var(--brand) 12%, transparent);position:relative;overflow:hidden}
.bar span{position:absolute;inset:0;display:block;transform-origin:left center;background:color-mix(in srgb, var(--brand) 35%, transparent)}

/* Buttons, align with site */
.cta, .toggle{
  display:inline-block;text-decoration:none;
  background:var(--brand);color:#fff;border:none;
  padding:.6rem 1rem;border-radius:999px;font-weight:600;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
}
.cta:hover,.toggle:hover{background:var(--brand-600)}


/* === Enhancements: FAQ caret, compare highlight, print === */
.faq summary::marker{ content:""; }
.faq summary{ position:relative; padding-left:22px; }
.faq summary::before{
  content:"›"; position:absolute; left:0; top:0; transform:rotate(90deg);
  color: var(--brand); font-weight:700;
}
.faq details[open] summary::before{ transform:rotate(270deg); }

.compare td:nth-child(3){ background: color-mix(in srgb, var(--brand) 8%, transparent); }
.compare td .ok::before{
  content:""; display:inline-block; width:14px; height:14px; vertical-align:-2px;
  margin-right:6px; background: currentColor;
  -webkit-mask: url('#ic-check') no-repeat center / contain;
          mask: url('#ic-check') no-repeat center / contain;
}

@media print{
  header, .nav, .cta, .toggle, .isfp-inline-cta { display:none !important; }
  .section{ padding:0 }
  a::after{ content:" (" attr(href) ")"; font-size:10px; color:#555 }
  .compare{ page-break-inside: avoid; }
}
