/* ===========================================================================
   Solar Energy Holding AG — sehag.eu
   Static stylesheet. No trackers, no cookies, no third-party scripts.
   Brand navy #0D2B45 sampled from the company letterhead.
   =========================================================================== */

:root {
  --navy:        #0D2B45;
  --navy-deep:   #07192A;
  --navy-mid:    #17405F;
  --ink:         #15222D;
  --muted:       #5C6E7E;
  --muted-light: #8699A8;
  --line:        #DCE3E9;
  --line-strong: #C3CED7;
  --bg:          #FFFFFF;
  --bg-alt:      #F4F7F9;
  --accent:      #C9882F;
  --accent-deep: #8A5B14;

  --measure: 68ch;
  --wrap: 1120px;
  --radius: 3px;

  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: 4rem;
  --s6: 6rem;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

/* --- reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- type ----------------------------------------------------------------- */

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 var(--s2);
  font-weight: 650;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.2rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.005em; }

p { margin: 0 0 var(--s2); max-width: var(--measure); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.03rem + 0.75vw, 1.5rem);
  line-height: 1.5;
  color: var(--navy-mid);
  max-width: 60ch;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 var(--s2);
}

.eyebrow--on-navy { color: var(--accent); }

.muted { color: var(--muted); }
.small { font-size: 0.9375rem; line-height: 1.6; }
.tiny  { font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }

/* --- layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1rem;
}

.section { padding-block: var(--s5); }
.section--tight { padding-block: var(--s4); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s4) 0;
}

.grid { display: grid; gap: var(--s3); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
}

.brand__mark { width: 30px; height: 30px; color: var(--navy); flex: none; }

.brand__name {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.25;
}

.brand__name span {
  display: block;
  font-weight: 500;
  letter-spacing: 0.17em;
  color: var(--muted);
  font-size: 0.6875rem;
}

.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; align-items: center; }

.nav a {
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--navy-mid);
  text-decoration: none;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: var(--navy); border-bottom-color: var(--line-strong); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--accent); }

/* On a phone the nav wraps to two rows; a sticky header that tall eats the
   screen, so it scrolls away instead. */
@media (max-width: 719px) {
  .site-header { position: static; }
  .nav { gap: 0.2rem 1.1rem; }
  .nav a { font-size: 0.8125rem; }
}

/* --- hero ----------------------------------------------------------------- */

.hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -18%;
  right: -8%;
  width: 46rem;
  height: 46rem;
  background: radial-gradient(circle, rgba(201, 136, 47, 0.16) 0%, rgba(201, 136, 47, 0) 62%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }
.hero__inner { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }
.hero h1 { color: #fff; max-width: 17ch; }

.hero__lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
  line-height: 1.55;
  color: #CFDBE5;
  max-width: 54ch;
  margin-bottom: var(--s4);
}

.hero--page .hero__inner { padding-block: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); }
.hero--page h1 { max-width: 22ch; }

/* --- figures -------------------------------------------------------------- */

.figures {
  display: grid;
  gap: var(--s3);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: var(--s3);
}

@media (min-width: 720px) { .figures { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }

.figure__value {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.5rem);
  font-weight: 680;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.figure__value small { font-size: 0.46em; font-weight: 600; letter-spacing: 0.02em; margin-left: 0.25em; }
.figure__label { font-size: 0.875rem; color: #A9BCCB; margin-top: 0.35rem; max-width: 30ch; }

/* --- cards ---------------------------------------------------------------- */

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s3);
}

.card--flat { border: 0; padding: 0; background: none; }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }

.card__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  display: block;
  margin-bottom: 0.6rem;
}

/* --- project list --------------------------------------------------------- */

.project {
  border-top: 1px solid var(--line);
  padding-block: var(--s3);
  display: grid;
  gap: var(--s2);
}

@media (min-width: 780px) {
  .project { grid-template-columns: 15rem 1fr; gap: var(--s4); }
}

.project:last-of-type { border-bottom: 1px solid var(--line); }
.project h3 { margin-bottom: 0.25rem; }

.project__meta {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.project__body p:last-child { margin-bottom: 0; }

/* --- tables --------------------------------------------------------------- */

.table-scroll { overflow-x: auto; margin-bottom: var(--s2); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

caption {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  padding-bottom: 0.75rem;
}

th, td { text-align: left; padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--line); }
th { font-weight: 650; color: var(--navy); white-space: nowrap; }
td.num, th.num { text-align: right; padding-right: 0; }
tfoot td, tfoot th { font-weight: 700; color: var(--navy); border-bottom: 0; border-top: 2px solid var(--line-strong); }

/* --- callout -------------------------------------------------------------- */

.callout {
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  padding: var(--s3);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout p:last-child { margin-bottom: 0; }
.callout h3 { font-size: 1.05rem; }

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.btn--primary { background: var(--accent); color: var(--navy-deep); border-color: var(--accent); }
.btn--primary:hover { background: #D9973B; color: var(--navy-deep); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.07); }

.btn--outline { border-color: var(--line-strong); color: var(--navy); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); background: var(--bg-alt); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* --- buyers --------------------------------------------------------------- */

.buyers {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  align-items: baseline;
  list-style: none;
  margin: 0;
  padding: 0;
}

.buyers li {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.buyers li span { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* --- definition rows ------------------------------------------------------ */

.dl { margin: 0; display: grid; gap: 0; }

@media (min-width: 640px) {
  .dl { grid-template-columns: 13rem 1fr; }
}

.dl dt {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 0.8rem;
  border-top: 1px solid var(--line);
}

.dl dd { margin: 0; padding-block: 0.8rem; border-top: 1px solid var(--line); }

@media (max-width: 639px) {
  .dl dt { border-top: 1px solid var(--line); padding-bottom: 0.1rem; }
  .dl dd { border-top: 0; padding-top: 0.1rem; }
}

/* --- footer --------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: #9FB3C4;
  padding-block: var(--s5) var(--s4);
  font-size: 0.9375rem;
}

.site-footer a { color: #D4E1EC; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.9rem; font-weight: 650; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }

.footer-grid { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }

.footer-bottom {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #7E95A8;
}

.footer-note { max-width: 62ch; font-size: 0.8125rem; line-height: 1.6; color: #7E95A8; }

.footer-disclaimer { margin-top: var(--s4); }

/* --- utilities ------------------------------------------------------------ */

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--s4); }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }

/* --- skip link ------------------------------------------------------------ */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.1rem;
  z-index: 100;
}

.skip:focus { left: 0; }

/* --- print ---------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .btn-row { display: none; }
  body { font-size: 11pt; color: #000; }
  .hero { background: none; color: #000; }
  .hero h1, .figure__value { color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
