/* ==========================================================================
   Alex Solaranlagen — Design-System
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/worksans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/worksans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/worksans-latin.woff2') format('woff2');
}

:root {
  --gold: #e3ad30;
  --gold-dark: #c8931c;
  --navy: #16375a;
  --navy-dark: #0f2740;
  --cream: #faf6ee;
  --white: #ffffff;
  --ink: #26303a;
  --ink-soft: #5b6472;
  --border: #e5ddc9;

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;

  --max-width: 1160px;
  --radius: 10px;
  --shadow: 0 10px 30px -14px rgba(22, 55, 90, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(227, 173, 48, 0.6);
}
.btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 42px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* -------- Hero -------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 84px 0 96px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: inline-block;
}
.hero h1 { color: var(--white); }
.hero-lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 64px 0 72px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p {
  color: rgba(255,255,255,0.82);
  max-width: 60ch;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* -------- Sections -------- */
section { padding: 80px 0; }
.section-head {
  max-width: 60ch;
  margin: 0 0 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow {
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.alt-bg { background: var(--white); }

/* -------- Cards / Grid -------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 24px 26px; }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.card-icon svg { width: 22px; height: 22px; }

/* -------- Placeholder media -------- */
.placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder svg { width: 30%; height: 30%; opacity: 0.9; }
.placeholder.gold-bg { background: linear-gradient(150deg, var(--gold) 0%, var(--gold-dark) 100%); }

/* -------- About / split layout -------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.stat-row strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--navy);
}
.stat-row span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* -------- Contact -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card a { color: var(--white); text-decoration: none; }
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.contact-info-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold); margin-top: 3px; }

form.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--navy);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-row textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }
.form-status {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: #e6f3e6; color: #235a23; }
.form-status.error { background: #fbe7e7; color: #7a2323; }

/* -------- CTA band -------- */
.cta-band {
  background: linear-gradient(150deg, var(--gold) 0%, var(--gold-dark) 100%);
  text-align: center;
}
.cta-band h2 { color: var(--navy-dark); }
.cta-band p { color: rgba(15, 39, 64, 0.75); }

/* -------- Footer -------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; font-family: var(--font-body); font-weight: 600; }
.site-footer .logo-link img { height: 34px; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { text-decoration: none; color: inherit; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* -------- Reveal on scroll -------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------- Simple legal pages -------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 { margin-top: 2em; }
.legal-content ul { color: var(--ink-soft); }

/* -------- Responsive -------- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
}
