/* Heidt Energietechnik – Farben aus dem Logo */
:root {
  --yellow: #F4C430;
  --yellow-light: #FFF8E1;
  --yellow-dark: #D4A820;
  --blue: #2563A8;
  --blue-dark: #1A4F8A;
  --black: #1A1A1A;
  --gray-900: #2D3748;
  --gray-700: #4A5568;
  --gray-500: #718096;
  --gray-200: #E2E8F0;
  --gray-100: #F7FAFC;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(26, 26, 26, 0.08);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--blue-dark);
}

address {
  font-style: normal;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2 {
  color: var(--black);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--black);
  text-decoration: none;
}

.header__logo:hover {
  color: var(--black);
}

.header__logo img {
  border-radius: 6px;
}

.header__logo-text {
  font-size: 1.05rem;
  line-height: 1.2;
}

.header__logo-text strong {
  color: var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__cta {
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
}

.nav__list a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav__list a:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn--primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  margin-top: var(--header-height);
  min-height: clamp(320px, 50vh, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../images/pv-hero-new.jpg') center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(26, 26, 26, 0.28);
}

.hero__welcome {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.sun-icon {
  display: block;
  flex-shrink: 0;
}

.sun-icon--hero {
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.hero__tagline {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 1rem;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
}

.hero__welcome h1 {
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.25rem;
}

.hero__lead {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.7;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.65);
}

/* Split sections */
.split-section {
  background: var(--white);
}

.split-section--reverse {
  background: var(--white);
}

.split-section__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  position: relative;
}

.split-section__layout::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(110%, 72vh);
  aspect-ratio: 1;
  background: url('../images/Sonne-Logo-Heidt.svg') center / contain no-repeat;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.split-section__text-wrap {
  display: flex;
  align-items: center;
  padding: 5rem 0;
  position: relative;
  z-index: 2;
}

.split-section__text-container {
  position: relative;
  width: 100%;
  max-width: 540px;
}

.split-section--bleed-end .split-section__text-container {
  margin-left: max(1.5rem, calc((100vw - 1140px) / 2));
  padding-right: 2rem;
}

.split-section--bleed-start .split-section__text-container {
  margin-left: auto;
  margin-right: max(1.5rem, calc((100vw - 1140px) / 2));
  padding-left: 2rem;
}

.split-section__text h2 {
  margin-bottom: 1.25rem;
}

.split-section__text p {
  color: var(--gray-700);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

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

.split-section__images-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  background: var(--white);
  padding: 0;
}

.split-section__images {
  display: grid;
  grid-template-rows: 1fr 1fr;
  flex: 1;
  width: 100%;
  gap: 0;
  min-height: 520px;
}

.split-section__images img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 0;
  background: var(--white);
}

/* Section dividers */
.section-anchor {
  scroll-margin-top: var(--header-height);
}

.section-divider {
  height: 0.75rem;
  background: var(--yellow);
}

/* CTA Banner */
.cta-banner {
  background: var(--yellow-light);
  padding: 1.75rem 0;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-banner__inner p {
  color: var(--black);
  font-size: 1.05rem;
  font-weight: 500;
}

.cta-banner .btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  flex-shrink: 0;
}

.cta-banner .btn--primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

/* Contact page */
.contact-page {
  padding: 0 0 5rem;
  min-height: 70vh;
}

.contact-page__hero {
  background: var(--yellow-light);
  padding: calc(var(--header-height) + 3rem) 0 3rem;
}

.contact-page__hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem 3rem;
}

.contact-page__hero-text {
  min-width: 0;
}

.sun-icon--contact {
  width: 120px;
  height: 120px;
  justify-self: end;
}

.contact-page h1 {
  margin-bottom: 0.75rem;
}

.contact-page__intro {
  color: var(--gray-700);
  max-width: 560px;
  margin-bottom: 0;
}

.contact-page__body {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__card {
  padding: 1.25rem 1.5rem;
  background: var(--gray-100);
  border-radius: var(--radius);
  border-left: 4px solid var(--yellow);
}

.contact__card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.contact__card p,
.contact__card address {
  color: var(--gray-900);
  line-height: 1.7;
}

.contact__card a {
  color: var(--blue);
  font-weight: 500;
}

.contact__form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.contact__form h2 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.15);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
}

/* Footer */
.footer {
  background: var(--white);
  color: var(--gray-700);
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--gray-200);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 2rem 3rem;
  align-items: start;
}

.footer__brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer__brand img {
  border-radius: 6px;
}

.footer__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.4;
}

.footer__tag {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.4;
}

.footer__heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.footer__address,
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer__address address {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.footer__contact a {
  font-size: 0.9rem;
  color: var(--gray-700);
  font-weight: 500;
}

.footer__contact a:hover {
  color: var(--blue);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.footer__links a {
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer__links a:hover {
  color: var(--blue);
}

.footer__copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--gray-500);
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

/* Legal pages */
.legal-page {
  padding: calc(var(--header-height) + 3rem) 0 4rem;
  min-height: 70vh;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page address {
  color: var(--gray-700);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-page a {
  color: var(--blue);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-weight: 500;
  color: var(--blue);
}

/* Responsive */
@media (max-width: 960px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .cta-banner__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    box-shadow: var(--shadow);
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__list a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav__list li:last-child a {
    border-bottom: none;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__cta {
    margin-top: 1rem;
    width: 100%;
  }

  .split-section__layout {
    grid-template-columns: 1fr;
  }

  .split-section__layout::before {
    display: none;
  }

  .split-section__text-wrap {
    padding: 3rem 0 2rem;
    order: 1;
  }

  .split-section__text-container {
    max-width: none;
    margin-left: 1.5rem !important;
    margin-right: 1.5rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .split-section__images-wrap {
    order: 2;
  }

  .split-section--reverse .split-section__text-wrap {
    order: 1;
  }

  .split-section--reverse .split-section__images-wrap {
    order: 2;
  }

  .split-section__images {
    min-height: auto;
    grid-template-rows: auto auto;
  }

  .split-section__images img {
    height: 200px;
  }

  .hero__welcome {
    padding: 3rem 1.5rem;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .contact-page__hero-inner {
    grid-template-columns: 1fr;
  }

  .sun-icon--contact {
    width: 80px;
    height: 80px;
    justify-self: center;
    order: -1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

}

/* Coming soon */
.coming-soon-page {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--yellow-light) 0%, var(--white) 45%, var(--gray-100) 100%);
}

.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  text-align: center;
}

.coming-soon__card {
  width: 100%;
  max-width: 520px;
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.coming-soon__sun {
  margin: 0 auto 1.25rem;
  width: 96px;
  height: 96px;
}

.coming-soon__brand {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 1rem;
}

.coming-soon__tagline {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 1rem;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
}

.coming-soon h1 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  margin-bottom: 1rem;
  color: var(--gray-900);
  font-weight: 600;
}

.coming-soon__lead {
  color: var(--gray-700);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.coming-soon__contact {
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--gray-100);
  border-radius: var(--radius);
  text-align: center;
}

.coming-soon__contact-heading {
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.coming-soon__contact address {
  font-style: normal;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.coming-soon__contact a {
  color: var(--blue);
  font-weight: 500;
  line-height: 1.8;
}

.coming-soon__contact a:hover {
  color: var(--blue-dark);
}

.coming-soon__footer {
  margin-top: 2rem;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.coming-soon__footer a {
  color: var(--gray-700);
  font-weight: 500;
}

.coming-soon__footer a:hover {
  color: var(--blue);
}

.coming-soon__footer span {
  margin: 0 0.5rem;
}

.coming-soon__copy {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
