/*
 * Global styles for the Ingenieurbüro website
 * This stylesheet defines the colour palette, typography and layout
 * for a modern and professional appearance.
 */

/*
 * Design tokens
 *
 * The neutral colour system is defined globally. Each service area
 * overrides the primary and accent tokens via dedicated classes.
 */

:root {
  /* Neutral palette – helles, freundliches Thema */
  --bg: #F7FAFC;
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --text: #111827;
  --muted: #6B7280;

  /* Fallback primary/accent (will be overridden per area) */
  --primary: #4C8DFF;
  --accent: #AFC8FF;
}


/* Base area styling */
.area {
  color: var(--text);
  background: var(--bg);
}

/* Area-specific tokens (Seriös & ruhig – entsättigte, harmonische Akzente) */
.area--hvac {
  --primary: #4C8DFF;
  --accent: #AFC8FF;
}
.area--security {
  --primary: #E9A23B;
  --accent: #FFDDA3;
}
.area--cleaning {
  --primary: #36C0D6;
  --accent: #AEE9F2;
}
.area--garden {
  --primary: #2BBF8A;
  --accent: #90E4C9;
}
.area--co {
  --primary: #FF7A45;
  --accent: #FFC7B0;
}

/* Card component
   Cards sit on the card surface with a subtle gradient for depth.
   Primary colours are used for headings, icons and call-to-action links. */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.card .icon,
.card i {
  color: var(--primary);
  fill: var(--primary);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.card a,
.card .cta,
.link-accent {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.18s ease;
}

.card a:hover,
.card .cta:hover,
.link-accent:hover {
  text-decoration: underline;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Reset margins and padding */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

/* Utility classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Sections use the surface colour to stand off from the background */
.section {
  background: var(--surface);
  padding: 4rem 0;
}

.flex {
  display: flex;
  align-items: center;
}

.space-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.wrap {
  flex-wrap: wrap;
}

/* Header and navigation */
.header {
  background-color: var(--surface);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header .container {
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
}

/* Logo image sizing */
.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* navigation list */
.nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav a {
  font-weight: 500;
}

.nav a.active {
  border-bottom: 2px solid var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--primary);
}

/* Visually hidden helper class for screen-reader-only text */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
  

/* Hero section */
.hero {
  position: relative;
  height: 90vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  color: #ffffff;
  padding: 2rem;
}

.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  filter: brightness(0.9);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* Sections */
/* Section paddings are defined alongside the surface colour earlier */

.services h2,
.cta h2,
.about h2,
.service-detail h2,
.contact-page h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: var(--primary);
}

/* Services grid */
.service-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-item {
  /* The appearance of service cards is inherited from .card. */
  text-align: center;
  border-radius: inherit;
  transition: inherit;
}

.service-item i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-item h3 {
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: var(--primary);
}

.service-item p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

/* Accent links (card CTAs) use the primary colour; secondary accent colours
   are reserved for subtle details. */
.link-accent {
  font-weight: 600;
  color: var(--primary);
  transition: color 0.18s ease;
}

.link-accent:hover {
  text-decoration: underline;
}

.service-item:hover {
  /* Hover effect is inherited from .card */
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* Call-to-action section */
.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.cta-content p {
  max-width: 700px;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  /* Use the background colour for a light, airy footer in the bright theme */
  background-color: var(--bg);
  color: var(--text);
  padding: 2rem 0;
  margin-top: 4rem;
  font-size: 0.95rem;
}

.footer h4 {
  margin-bottom: 1rem;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer li i {
  margin-right: 0.5rem;
  color: var(--primary);
}

.footer-col {
  flex: 1;
  min-width: 250px;
  margin-bottom: 1rem;
}

.footer a {
  color: var(--primary);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
}

/* About page styles */
.about-section {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

.about-section img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.about-text h3 {
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: var(--primary);
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.icon-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.icon-item {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.icon-item i {
  font-size: 1.5rem;
  color: var(--primary);
}

.icon-item span {
  font-weight: 600;
}

/* Service detail page */
.service-detail {
  padding-top: 6rem;
}

.service-header {
  text-align: center;
  margin-bottom: 2rem;
}

.service-header i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-body {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
}

.service-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
}

.service-body ul {
  margin-left: 1.2rem;
  list-style: disc;
  margin-bottom: 1rem;
}

/* Contact page */
.contact-page {
  padding-top: 6rem;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-info li {
  margin-bottom: 0.7rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-form input,
/* Inputs and textareas inherit neutral tokens */
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 1rem;
  resize: vertical;
}

.contact-form input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.contact-form button {
  padding: 0.75rem 2rem;
  background-color: var(--primary);
  border: none;
  color: var(--surface);
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.contact-form button:hover {
  filter: brightness(0.9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* navigation collapses into burger menu */
  .nav ul {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--surface);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--border);
  }

  .nav.open ul {
    max-height: 300px;
  }

  .nav ul li {
    margin: 1rem;
  }

  .nav-toggle {
    display: block;
  }

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

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero {
    height: 70vh;
  }
}