/*
 * Global stylesheet for the Akay Loss Adjuster one‑page site.
 *
 * This file centralises all styles so that the HTML remains clean and
 * maintainable.  Colours and layout variables are defined at the top,
 * followed by component‑specific rules for navigation, hero, sections,
 * services, about, references, contact and legal sections.  The design
 * preserves the green corporate palette while ensuring a modern, responsive
 * layout.  Language classes (`.lang-de` and `.lang-en`) control the
 * visibility of bilingual text elements via JavaScript.
 */

:root {
  /*
   * Updated colour palette to harmonise with the new pastel green header logo.  The
   * primary colours are now softer greens, and the secondary and light colours
   * are pale, leafy tones that complement the logo's background.  These values
   * lighten the original dark green palette while preserving contrast and
   * readability across the site.
   */
  --primary-color: #709e6c;       /* soft green for headings and accents   709e6c */ 
  --primary-dark: #567f50;        /* slightly darker variant for hover states */
  --secondary-color: #cde2cd;     /* light pastel green for gradients and sections */
  --light-color: #e9f4e9;         /* very pale green for subtle backgrounds */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: #F7F8F3;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Navigation */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
}
.nav-links li a:hover {
  text-decoration: underline;
}
.lang-toggle {
  cursor: pointer;
  background: var(--primary-color);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
}

/* Hero section */
.hero {
  text-align: center;
  padding: 90px 20px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--light-color) 50%);
  color: var(--primary-color);
}
.hero img {
  max-width: 350px;
  height: auto;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}
.cta-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 24px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.cta-btn:hover {
  background: var(--primary-dark);
}

/* Generic section */
.section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary-color);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.service-card h3 {
  color: #4B7B55;
  margin-bottom: 15px;
}

/* About section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.about-grid p {
  margin-bottom: 15px;
}

/* References section */
.references-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.reference-item {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.reference-item h4 {
  color: #4B7B55;
  margin-bottom: 10px;
}

/* Contact form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.contact-card p {
  margin: 0 0 10px;
}
.contact-form {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.contact-form label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form .anti-spam {
  margin-top: 12px;
}
.contact-form button {
  margin-top: 20px;
  padding: 12px 24px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.contact-form button:hover {
  background: var(--primary-dark);
}

/* Legal sections */
.legal-section {
  padding: 40px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  color: #777;
}

/* Language classes */
.lang-de {
  display: block;
}
.lang-en {
  display: none;
}