/* ============================================================
   Alex Montage — Solar Montage
   © 2026 Alex Montage. All rights reserved.
   Owner: alexsolarmontage@gmail.com · +49 176 27081396
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
}

/* --- Brand palette (from logo) --- */
:root {
  --brand-yellow: #FFD500;
  --brand-yellow-soft: #FFF7CC;
  --brand-blue: #2E5BBA;
  --brand-blue-dark: #1E3A8A;
  --brand-blue-light: #3B7DD8;
  --brand-text: #1F2937;
  --brand-muted: #6B7280;
  --brand-bg: #FAFAFA;
  --brand-border: #E5E7EB;
  --brand-accent: #D5E64C;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

/* --- Typography --- */
h1, h2, h3, h4 { color: var(--brand-blue-dark); font-weight: 800; line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }
section.alt { background: var(--brand-bg); }

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--brand-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--brand-blue-dark);
  font-size: 18px;
}
.nav-brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--brand-text); font-weight: 500; }
.nav-links a:hover { color: var(--brand-blue); }
.btn-call {
  background: var(--brand-yellow);
  color: var(--brand-blue-dark);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.btn-call:hover { background: var(--brand-accent); text-decoration: none; }

/* Mobile menu toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--brand-blue-dark); margin: 4px 0; border-radius: 2px; }

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; align-items: flex-start; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 16px 24px; border-bottom: 1px solid var(--brand-border); box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #FFD500 0%, #FFA500 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner { max-width: 900px; margin: 0 auto; position: relative; }
.hero img.hero-logo { width: 180px; max-width: 50vw; margin-bottom: 16px; }
.hero h1 { color: var(--brand-blue-dark); margin-bottom: 16px; }
.hero p.lead { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--brand-blue-dark); margin-bottom: 32px; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--brand-blue-dark);
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--brand-blue); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: white;
  color: var(--brand-blue-dark);
  border: 2px solid var(--brand-blue-dark);
}
.btn-secondary:hover { background: var(--brand-blue-dark); color: white; text-decoration: none; transform: translateY(-2px); }

/* --- Feature cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: white;
  padding: 28px 24px;
  border-radius: 14px;
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 54px;
  height: 54px;
  background: var(--brand-yellow-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 28px;
}
.card h3 { color: var(--brand-blue-dark); margin-bottom: 8px; }
.card p { color: var(--brand-muted); margin: 0; }

/* --- Section heading --- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 8px; }
.section-head .label {
  display: inline-block;
  background: var(--brand-yellow-soft);
  color: var(--brand-blue-dark);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head p { color: var(--brand-muted); font-size: 17px; }

/* --- Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-blue-light), var(--brand-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.placeholder {
  color: white;
  font-size: 14px;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #2E5BBA 0%, #1E3A8A 100%);
}
.gallery-item.placeholder::before {
  content: "🔧";
  display: block;
  font-size: 48px;
  margin-bottom: 8px;
}
.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  padding: 16px;
  font-size: 13px;
  font-weight: 500;
}

/* Galerie-Items sind anklickbar (öffnen Lightbox) */
.gallery-item { margin: 0; cursor: pointer; }
.gallery-item img { transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-content {
  margin: 0;
  max-width: 1100px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-content figcaption {
  color: #fff;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 28px;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* --- App download section --- */
.app-section {
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
  color: white;
  padding: 72px 24px;
}
.app-section h2 { color: white; }
.app-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 768px) { .app-grid { grid-template-columns: 1fr; text-align: center; } }
.app-grid p { color: rgba(255,255,255,0.9); font-size: 17px; }
.app-grid ul { list-style: none; padding: 0; margin: 16px 0; }
.app-grid li { padding: 6px 0; }
.app-grid li::before { content: "✓ "; color: var(--brand-yellow); font-weight: bold; }
/* App-Start-Button (Web-App, kein Store nötig) */
.app-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
@media (max-width: 768px) { .app-cta { align-items: center; } }
.btn-app-start {
  display: inline-block;
  background: var(--brand-yellow);
  color: var(--brand-blue-dark);
  font-weight: 800;
  font-size: 19px;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255,213,0,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-app-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255,213,0,0.5);
  text-decoration: none;
}
.app-cta-note { color: rgba(255,255,255,0.85); font-size: 13px; }

.qr-box {
  background: white;
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.qr-box img { width: 100%; max-width: 240px; height: auto; display: block; }
.qr-box p { color: var(--brand-text); font-size: 12px; margin: 8px 0 0; font-weight: 600; }

/* --- Contact form --- */
.contact-form {
  max-width: 600px;
  margin: 40px auto 0;
  background: white;
  padding: 36px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 18px; }
label {
  display: block;
  font-weight: 600;
  color: var(--brand-blue-dark);
  margin-bottom: 6px;
  font-size: 14px;
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(46,91,186,0.15);
}
textarea { min-height: 120px; resize: vertical; }
.btn-submit {
  width: 100%;
  background: var(--brand-blue-dark);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn-submit:hover { background: var(--brand-blue); transform: translateY(-1px); }

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
  text-align: center;
}
.contact-info .item {
  padding: 24px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--brand-border);
}
.contact-info .item .icon { font-size: 32px; margin-bottom: 8px; }
.contact-info .item strong { display: block; color: var(--brand-blue-dark); font-size: 16px; margin-bottom: 4px; }
.contact-info .item a { color: var(--brand-blue); font-size: 15px; word-break: break-word; }

/* --- Footer --- */
.site-footer {
  background: var(--brand-blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 48px 24px 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 32px;
}
.footer-grid h4 { color: var(--brand-yellow); font-size: 15px; margin-bottom: 12px; }
.footer-grid a { color: rgba(255,255,255,0.85); display: block; padding: 4px 0; }
.footer-grid a:hover { color: var(--brand-yellow); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: white; margin-bottom: 12px; }
.footer-brand img { height: 40px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Legal pages (Impressum / Datenschutz) --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
}
.legal-content h1 { font-size: 2rem; margin-bottom: 24px; }
.legal-content h2 { font-size: 1.4rem; margin-top: 32px; }
.legal-content p, .legal-content li { color: var(--brand-text); }
