/* ============================================================
   MS OBJEKTSERVICE – STYLESHEET
   ============================================================
   The easiest things to change are the variables right below:
   colors, font and page width. Change them once here and the
   whole website updates.

   Color palette taken from the logo: green, white and the
   dark grey of the house outline / "OBJEKTSERVICE" text.
   ============================================================ */

:root {
  /* Brand colors (from the logo) */
  --color-primary: #88b04b;        /* main green: top bar, buttons, banner */
  --color-primary-dark: #6f9438;   /* darker green: hover, green headings */
  --color-primary-soft: #c5d9a3;   /* soft green (like the flyer's bottom bar) */
  --color-primary-light: #f3f8ec;  /* very light green: section backgrounds */

  --color-dark: #3d3d3d;           /* dark grey from the logo: headings, footer */
  --color-text: #4a4a4a;           /* normal text */
  --color-text-light: #6b6b6b;     /* grey intro text */
  --color-bg: #ffffff;             /* page background (white) */
  --color-border: #e1e9d4;         /* thin lines and card borders */

  /* Font. The logo uses "Poppins". If you want it on the website, download it
     from fonts.google.com and host it yourself in a "fonts" folder
     (loading it directly from Google's servers is a GDPR problem in Germany). */
  --font: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1140px;             /* maximum width of the content */
  --radius: 8px;                   /* rounded corners */
}


/* ---------- Basics (normally no need to edit) ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px; /* so the sticky header doesn't cover section titles */
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: var(--color-primary-dark);
}

h1, h2, h3 {
  color: var(--color-dark);
  line-height: 1.25;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}


/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 26px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn-small {
  padding: 8px 16px;
}

/* Green outline button (used in the hero) */
.btn-outline {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* White button (used on the green banner) */
.btn-white {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: #fff;
}

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


/* ---------- Top bar ---------- */

.topbar {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 0;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: flex-end;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.topbar a:hover {
  text-decoration: underline;
}


/* ---------- Header / navigation ---------- */

.header {
  background: #fff;
  border-bottom: 3px solid var(--color-primary);
  position: sticky;   /* header stays at the top while scrolling */
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100px;
}

.logo img {
  height: 80px; /* height of the logo in the header */
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a:not(.btn) {
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 600;
}

.nav a:not(.btn):hover {
  color: var(--color-primary);
}

.menu-toggle {
  display: none; /* only shown on phones, see bottom of file */
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--color-dark);
  cursor: pointer;
}


/* ---------- Hero (big top banner) ---------- */

.hero {
  background: var(--color-primary-light);
  padding: 96px 0;
}

/* Centered text block */
.hero-inner {
  max-width: 760px;
  text-align: center;
}

.hero-label {
  color: var(--color-primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 20px;
}

.hero-text > p:not(.hero-label) {
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}


/* ---------- Sections (general) ---------- */

.section {
  padding: 80px 0;
}

.section-light {
  background: var(--color-primary-light);
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
}

/* small green line under each section title */
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: 12px auto 0;
}

.section-intro {
  text-align: center;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto 48px;
}


/* ---------- Service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); /* 3 columns on desktop, fewer on small screens */
  gap: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.card h3 {
  color: var(--color-primary-dark);
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card .checklist {
  margin-top: 14px;
}


/* ---------- Checkmark lists (services + about us) ---------- */

.checklist {
  list-style: none;
  margin-top: 20px;
}

.checklist li {
  padding-left: 30px;
  margin-bottom: 8px;
  position: relative;
}

.checklist li::before {
  content: "✔";
  color: var(--color-primary);
  font-weight: 700;
  position: absolute;
  left: 0;
}


/* ---------- About us ---------- */

/* Text block in the middle of the page, not too wide so it's easy to read */
.about {
  max-width: 820px;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.about p {
  margin-bottom: 14px;
}

/* "Das zeichnet uns aus:" line above the checkmark list */
.about .checklist-title {
  font-weight: 700;
  color: var(--color-dark);
  margin: 22px 0 0;
}

.about .checklist-title + .checklist {
  margin-top: 10px;
}


/* ---------- Call to action banner ---------- */

.cta {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.cta h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 10px;
}

.cta p {
  margin: 0 auto 26px;
  max-width: 620px;
  font-size: 1.1rem;
}


/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}

.contact-info h3 {
  color: var(--color-primary-dark);
  margin-bottom: 14px;
}

.contact-info p {
  margin-bottom: 18px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  background: var(--color-primary-light);
  padding: 28px;
  border-radius: var(--radius);
}

.contact-form label {
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-bottom: 18px;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-primary);
  border-color: transparent;
}

.contact-form .btn {
  align-self: flex-start;
}

/* small privacy note above the send button */
.form-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

/* hidden spam-trap field (must stay invisible) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* ---------- Footer ---------- */

.footer {
  background: var(--color-dark);
  color: #d6d6d6;
  border-top: 4px solid var(--color-primary);
  padding: 26px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

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


/* ---------- Legal pages (impressum.html, datenschutz.html) ---------- */

.legal {
  max-width: 820px; /* narrow text column, easy to read */
}

.legal h1 {
  font-size: 2.25rem;
  margin-bottom: 28px;
}

.legal h2 {
  color: var(--color-primary-dark);
  font-size: 1.3rem;
  margin: 36px 0 10px;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

.legal p,
.legal ul {
  margin-bottom: 14px;
}

.legal ul {
  padding-left: 22px;
}

/* light green box (used for the "Widerspruchsrecht" text) */
.legal-highlight {
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.legal-date {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-top: 36px;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  text-decoration: none;
}

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


/* ---------- WhatsApp button (round, fixed bottom right) ---------- */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;             /* official WhatsApp green */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, background 0.2s;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1ebe5b;
  transform: scale(1.08);
}


/* ============================================================
   MOBILE / SMALL SCREENS
   Everything below only applies to screens narrower than 860px.
   ============================================================ */

@media (max-width: 860px) {

  .topbar-inner {
    justify-content: center;
  }

  .topbar-area {
    display: none; /* hide the service area on phones to save space */
  }

  .header-inner {
    height: 76px;
  }

  .logo img {
    height: 58px;
  }

  .menu-toggle {
    display: block;
  }

  /* Menu becomes a dropdown under the header */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 3px solid var(--color-primary);
    padding: 8px 20px 20px;
  }

  .nav.open {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav .btn {
    margin-top: 14px;
    text-align: center;
  }

  .hero {
    padding: 48px 0;
  }

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

  .section {
    padding: 56px 0;
  }

  .legal h1 {
    font-size: 1.75rem;
  }

  .contact {
    grid-template-columns: 1fr; /* stack columns on top of each other */
    gap: 32px;
  }
}
