/* ======================================
   WATTCONTRACT – Clean & Modern Theme
   ====================================== */

:root {
  --navy:        #0D1B2A;
  --navy-mid:    #162436;
  --green:       #368039;
  --green-hover: #2d6b30;
  --green-light: #72b875;
  --white:       #FFFFFF;
  --gray-50:     #F8FAFC;
  --gray-100:    #EEF2F7;
  --text:        #1E293B;
  --text-muted:  #64748B;
  --radius:      16px;
  --radius-sm:   8px;
  --shadow:      0 4px 32px rgba(13, 27, 42, 0.10);
  --shadow-lg:   0 10px 48px rgba(13, 27, 42, 0.20);
  --transition:  0.25s ease;
  --max-w:       1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* ---- BUTTONS ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(54, 128, 57, 0.40);
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.10);
}

.btn--text {
  color: var(--green);
  padding: 0;
  font-weight: 600;
  border: none;
}
.btn--text:hover { color: var(--green-hover); }

.btn--full { width: 100%; }


/* ---- LABEL / EYEBROW ---- */

.label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.label--light { color: var(--green-light); }


/* ======================================
   NAVIGATION
   ====================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  transition: box-shadow var(--transition);
}
.nav--scrolled {
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.30);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo img {
  height: 34px;
  width: auto;
}
.nav__links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}
.nav__links a {
  color: rgba(255, 255, 255, 0.70);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px; right: 0;
  height: 2px;
  background: var(--green-light);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ======================================
   HERO
   ====================================== */

.hero {
  background: var(--navy);
  background-image: url('assets/images/product2-round.png');
  background-size: cover;
  background-position: center 60%;
  padding: 144px 0 80px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13, 27, 42, 0.92) 0%,
    rgba(13, 27, 42, 0.80) 50%,
    rgba(54, 128, 57, 0.30) 100%
  );
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 1rem;
}
.hero__headline {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.10;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero__sub {
  font-size: 1.075rem;
  color: rgba(255, 255, 255, 0.60);
  max-width: 460px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__img {
  border-radius: var(--radius);
  width: 100%;
  box-shadow: var(--shadow-lg);
}


/* ======================================
   STATS BAR
   ====================================== */

.stats {
  background: var(--green);
  padding: 3.25rem 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat { padding: 0 1rem; }
.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}
.stat__number {
  display: block;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.stat__label {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.80);
  font-weight: 500;
  max-width: 180px;
  margin: 0 auto;
  line-height: 1.5;
}


/* ======================================
   SECTIONS (GENERAL)
   ====================================== */

.section        { padding: 6rem 0; }
.section--alt   { background: var(--gray-50); }
.section--dark  { background: var(--navy); color: var(--white); }

.section__intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}
.section__intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
  letter-spacing: -0.02em;
}
.section__intro p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}


/* ======================================
   PRODUCT CARDS
   ====================================== */

.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.product-card__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.product-card__body { padding: 2rem; }
.product-card__body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.product-card__body p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}


/* ======================================
   FEATURE SECTIONS (alternating layout)
   ====================================== */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.feature__text h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.feature__text > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.feature__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.feature__list li {
  display: flex;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  align-items: flex-start;
}
.feature__list li::before {
  content: '→';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Images column */
.feature__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.feature__images--single {
  grid-template-columns: 1fr;
}
.feature__img {
  border-radius: var(--radius);
  width: 100%;
  box-shadow: var(--shadow);
}
.feature__img--stamp {
  border-radius: var(--radius);
}

/* Reverse layout: swap columns via order */
.feature--reverse .feature__images { order: -1; }

/* Diagram inset */
.avahli__diagram { margin-top: 1.5rem; }
.diagram__img {
  border-radius: var(--radius-sm);
  max-width: 100%;
  border: 1px solid var(--gray-100);
}

/* Blockquote */
.quote {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 600;
  color: var(--green);
  border-left: 3px solid var(--green);
  padding-left: 1.25rem;
  margin-top: 2rem;
  line-height: 1.5;
}


/* ======================================
   CONTACT SECTION
   ====================================== */

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}
.contact__headline {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact__details li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.70);
}
.contact__details a {
  color: var(--green-light);
  transition: color var(--transition);
}
.contact__details a:hover { color: var(--white); }
.contact__icon {
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form__group label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.60);
}
.form__group input,
.form__group textarea {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
}
.form__group input::placeholder,
.form__group textarea::placeholder {
  color: rgba(255, 255, 255, 0.30);
}
.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--green-light);
  background: rgba(255, 255, 255, 0.11);
}

.form__group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
}
.form__group--checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 3px;
  accent-color: var(--green-light);
  border: none;
  background: none;
  padding: 0;
}
.form__group--checkbox label {
  font-size: 0.80rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0;
}


/* ======================================
   FOOTER
   ====================================== */

.footer {
  background: #080F18;
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__logo {
  height: 28px;
  width: auto;
  opacity: 0.65;
}
.footer__copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}
.footer__nav {
  display: flex;
  gap: 1.5rem;
}
.footer__nav a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--white); }


/* ======================================
   IMPRESSUM / DATENSCHUTZ PAGES
   ====================================== */

.page-header {
  background: var(--navy);
  padding: 120px 0 60px;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.page-content {
  padding: 4rem 0 6rem;
  max-width: 700px;
}
.page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
}
.page-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.page-content a { color: var(--green); }
.page-content a:hover { text-decoration: underline; }


/* ======================================
   RESPONSIVE
   ====================================== */

@media (max-width: 920px) {

  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--navy-mid);
    flex-direction: column;
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a::after { display: none; }

  .hero__inner,
  .products__grid,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .hero { padding: 120px 0 60px; }
  .hero__img { max-width: 540px; margin: 0 auto; }
  .hero__sub { max-width: 100%; }

  .stats__grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 1.75rem; }

  .feature {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .feature--reverse .feature__images { order: 0; }

  .feature__images { grid-template-columns: 1fr 1fr; }

  .contact__inner { gap: 3rem; }
}

@media (max-width: 600px) {
  .hero__ctas { flex-direction: column; }
  .section { padding: 4rem 0; }
  .feature__images { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__nav { justify-content: center; }
}
