/* ============================================================
   Eichner Schlüsseldienst Chur — Stylesheet
   Farben, Typografie, Layout, Komponenten, Responsive
   ============================================================ */

/* --- Variablen -------------------------------------------- */
:root {
  --green:       #1a4a1a;
  --green-dark:  #133813;
  --green-light: #245c24;
  --white:       #ffffff;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-300:    #d1d5db;
  --gray-600:    #4b5563;
  --gray-700:    #374151;
  --gray-800:    #1f2937;
  --gray-900:    #111827;
  --max-width:   960px;
  --radius:      2px;
}

/* --- Reset & Basis ---------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- Typografie ------------------------------------------- */
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem);  font-weight: 700; }
h3 { font-size: 1.15rem;                     font-weight: 700; }

p {
  color: var(--gray-700);
  line-height: 1.7;
}

/* --- Layout-Helfer ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 720px;
}

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

/* --- Buttons / Links -------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  line-height: 1.3;
}

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

.btn--large {
  font-size: 1.15rem;
  padding: 1.1rem 2.25rem;
}

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

.btn--white:hover {
  background: var(--gray-100);
  border-color: var(--gray-100);
}

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

/* --- HEADER ----------------------------------------------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}

.site-logo span {
  display: block;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray-600);
  margin-top: 0.2rem;
}

/* --- HERO ------------------------------------------------- */
#hero {
  padding: 0.5rem 1.25rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-text {
  padding-bottom: 1rem;
}

.hero-text h1 {
  font-size: clamp(1.6rem, 6vw, 3.5rem);
  margin-bottom: 0.4rem;
}

.hero-text p {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.hero-cta {
  margin-bottom: 0.75rem;
}

.hero-cta-sub {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.trust-micro {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.trust-micro-item {
  font-size: 0.875rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-check-green {
  color: var(--primary);
  font-weight: 700;
}

.hero-image {
  border: 4px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile-Bild: standardmässig sichtbar (mobile first), auf Desktop ausblenden */
.hero-image--mobile {
  display: block;
  margin-bottom: 0.75rem;
}

/* Desktop-Bild: standardmässig ausgeblendet, nur auf Desktop sichtbar */
.hero-image--desktop {
  display: none;
}

/* Bilder in Sektionen (Warum, Ablauf) */
.section-image {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}

.section-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 240px;
  object-position: center 35%;
}

/* --- LEISTUNGEN ------------------------------------------- */
#leistungen {
  padding: 4rem 1.25rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

#leistungen h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-box {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-top: 4px solid var(--green);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.service-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--gray-900);
}

.service-box p {
  font-size: 0.93rem;
  color: var(--gray-700);
}

/* --- VERTRAUENSBEREICH ------------------------------------ */
#warum {
  padding: 4rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
}

#warum h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 680px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
}

.trust-check {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  line-height: 1;
}

.trust-item p {
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

/* --- ABLAUF ----------------------------------------------- */
#ablauf {
  padding: 4rem 1.25rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

#ablauf h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.step-box {
  background: var(--white);
  border: 1px solid var(--gray-300);
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-radius: var(--radius);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
  border-radius: var(--radius);
}

.step-box h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step-box p {
  font-size: 0.875rem;
  color: var(--gray-700);
}

/* --- EINSATZGEBIET ---------------------------------------- */
#einsatzgebiet {
  padding: 4rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  text-align: center;
}

#einsatzgebiet h2 {
  margin-bottom: 1.25rem;
}

#einsatzgebiet > .container p {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 1.75rem;
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.city-tag {
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  border-radius: var(--radius);
}

/* --- FAQ -------------------------------------------------- */
#faq {
  padding: 4rem 1.25rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

#faq h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-icon {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--green);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--gray-700);
  line-height: 1.7;
  border-top: 1px solid var(--gray-200);
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* --- ABSCHLUSS-CTA ---------------------------------------- */
#cta-final {
  padding: 5rem 1.25rem;
  background: var(--green);
  text-align: center;
  border-top: 4px solid var(--gray-900);
}

#cta-final h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

#cta-final p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 2.25rem;
}

/* --- FOOTER ----------------------------------------------- */
#site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 2.5rem 1.25rem 6rem;
  text-align: center;
}

/* Extra padding-bottom on mobile for sticky button */
@media (min-width: 768px) {
  #site-footer {
    padding-bottom: 2.5rem;
  }
}

.footer-logo {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.footer-tagline {
  color: var(--gray-300);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--gray-300);
  text-decoration: underline;
  transition: color 0.15s;
}

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

.footer-copy {
  border-top: 1px solid var(--gray-800);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* --- STICKY MOBILE CALL BUTTON ---------------------------- */
#sticky-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--green);
  padding: 0.6rem;
  border-top: 2px solid rgba(255,255,255,0.2);
}

#sticky-call a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 700;
  height: 3.25rem;
  width: 100%;
  border: 1px solid var(--white);
  border-radius: var(--radius);
  text-decoration: none;
}

/* --- IMPRESSUM / DATENSCHUTZ ------------------------------ */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 1.25rem;
}

.page-header a {
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.page-header a:hover {
  text-decoration: underline;
}

.page-content {
  padding: 4rem 1.25rem;
}

.page-content h1 {
  margin-bottom: 2rem;
}

.info-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: var(--radius);
}

.info-box p, .info-box h3 {
  margin-bottom: 0.5rem;
}

.info-box h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.prose-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.prose-section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

/* --- RESPONSIVE ------------------------------------------- */

/* Tablet: 2 columns for services */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 641px) {
  #hero {
    padding: 4rem 1.25rem;
  }
  .hero-text {
    padding-bottom: 0;
  }
  /* Auf Desktop: Mobile-Bild ausblenden, Desktop-Bild einblenden */
  .hero-image--mobile {
    display: none;
  }
  .hero-image--desktop {
    display: block;
  }
}

/* Sehr kleine iPhones (SE, 375px) — Hero kompakter */
@media (max-width: 390px) {
  #hero .hero-text h1 {
    font-size: 1.55rem;
    line-height: 1.15;
    margin-bottom: 0.2rem;
  }
  #hero .hero-text p {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
  }
  #hero {
    padding-top: 0.25rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  #sticky-call {
    display: block;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .header-inner .btn {
    width: 100%;
    font-size: 0.95rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-cta .btn {
    width: 100%;
  }

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

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

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

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--white);
  border-top: 2px solid var(--green);
  padding: 1rem 1.5rem;
}

#cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

#cookie-banner p {
  flex: 1;
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

#cookie-accept {
  background: var(--green);
  color: var(--white);
  border: 1px solid var(--green);
  padding: 0.55rem 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius);
}

#cookie-accept:hover {
  background: #143b14;
}

#cookie-decline {
  background: transparent;
  color: #4b5563;
  border: 1px solid #9ca3af;
  padding: 0.55rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius);
}

#cookie-decline:hover {
  border-color: #6b7280;
  color: var(--gray-900);
}

.cookie-privacy-link {
  font-size: 0.8rem;
  color: #6b7280;
  text-decoration: underline;
  white-space: nowrap;
}

@media (max-width: 640px) {
  #cookie-banner {
    bottom: 76px;
    padding: 0.875rem 1rem;
  }

  #cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
  }

  .cookie-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  #cookie-accept,
  #cookie-decline {
    flex: 1;
    text-align: center;
  }
}
