/* =========================================================
   Chemnitz Schlüsseldienst & Handel
   Farben: Chemnitz Blau (#003D7A) · Chemnitz Gelb (#FFC72C) · Weiß
   Klassisch · Seriös · Vertrauen
   ========================================================= */

:root {
  --blue-900: #002a55;
  --blue-700: #003d7a;
  --blue-500: #1f5fb0;
  --blue-50:  #eaf1fa;

  --yellow-500: #ffc72c;
  --yellow-600: #e8af00;
  --yellow-50:  #fff8e0;

  --white: #ffffff;
  --gray-50:  #f7f7f7;
  --gray-100: #efefef;
  --gray-200: #e2e2e2;
  --gray-400: #9a9a9a;
  --gray-700: #4a4a4a;
  --gray-900: #1a1a1a;

  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 14px rgba(0,40,90,.10);
  --container: 1180px;

  --ff-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --ff-sans:  "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ----- Base ----- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--gray-900);
  font-family: var(--ff-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-900); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  color: var(--blue-900);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  line-height: 1.25;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

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

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

/* ----- Top Notdienst-Bar ----- */
.top-bar {
  background: var(--blue-900);
  color: var(--white);
  font-size: .92rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: .55rem;
  padding-bottom: .55rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.top-bar a { color: var(--yellow-500); font-weight: 600; }
.top-bar a:hover { color: #fff; text-decoration: none; }
.top-bar .badge {
  display: inline-block;
  background: var(--yellow-500);
  color: var(--blue-900);
  padding: 2px 9px;
  border-radius: 2px;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  margin-right: .55rem;
  text-transform: uppercase;
}

/* ----- Header / Navigation ----- */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--yellow-500);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: .9rem;
  padding-bottom: .9rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.brand .logo-icon {
  width: 46px;
  height: 46px;
  background: var(--blue-700);
  color: var(--yellow-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.1;
}
.brand-tagline {
  font-size: .8rem;
  color: var(--gray-700);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-weight: 600;
  color: var(--blue-900);
  padding: .5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--yellow-500);
  color: var(--blue-700);
}

.nav-toggle {
  display: none;
  border: 2px solid var(--blue-700);
  background: var(--white);
  color: var(--blue-700);
  padding: .4rem .7rem;
  cursor: pointer;
  border-radius: var(--radius);
  font-weight: 700;
}

/* ----- Hero ----- */
.hero {
  background: linear-gradient(180deg, #f3f7fc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--gray-100);
  padding: 3.5rem 0 2.75rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 320px; height: 320px;
  background: var(--yellow-500);
  opacity: .14;
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 {
  font-size: 2.65rem;
  margin-bottom: .5rem;
}
.hero .lead {
  font-size: 1.12rem;
  color: var(--gray-700);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 1.5rem;
  font-size: .95rem;
  color: var(--gray-700);
}
.hero-meta i { color: var(--blue-700); margin-right: .4rem; }

/* CTA card – the prominent emergency phone block */
.cta-card {
  background: var(--blue-900);
  color: var(--white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border-top: 6px solid var(--yellow-500);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.cta-card .label {
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .14em;
  color: var(--yellow-500);
  font-weight: 700;
  margin-bottom: .35rem;
}
.cta-card .phone {
  font-family: var(--ff-serif);
  font-size: 2.1rem;
  font-weight: 700;
  display: block;
  color: var(--white);
  margin: .25rem 0 .25rem;
  letter-spacing: -.01em;
}
.cta-card .phone:hover { color: var(--yellow-500); text-decoration: none; }
.cta-card .sub {
  color: #cfd9e8;
  font-size: .92rem;
  margin-bottom: 1.1rem;
}
.cta-card .btn { width: 100%; }

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: .85rem 1.55rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  text-decoration: none;
  text-align: center;
  letter-spacing: .01em;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--yellow-500);
  color: var(--blue-900);
  border-color: var(--yellow-500);
}
.btn-primary:hover { background: var(--yellow-600); border-color: var(--yellow-600); color: var(--blue-900); }

.btn-secondary {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--blue-700);
}
.btn-secondary:hover { background: var(--blue-50); color: var(--blue-900); }

.btn-dark {
  background: var(--blue-700);
  color: var(--white);
  border-color: var(--blue-700);
}
.btn-dark:hover { background: var(--blue-900); border-color: var(--blue-900); color: var(--white); }

.btn-block { display: block; width: 100%; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.08rem; }

.hero-actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* ----- Section ----- */
.section {
  padding: 3.5rem 0;
}
.section.alt { background: var(--gray-50); }
.section.blue {
  background: var(--blue-700);
  color: var(--white);
}
.section.blue h2, .section.blue h3 { color: var(--white); }
.section.blue p { color: #d9e3f1; }

.section-title {
  text-align: center;
  margin-bottom: 2.25rem;
}
.section-title .eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-700);
  padding: 3px 12px;
  border: 1px solid var(--yellow-500);
  border-radius: 999px;
  background: var(--yellow-50);
  margin-bottom: .75rem;
}
.section.blue .eyebrow { background: transparent; color: var(--yellow-500); border-color: var(--yellow-500); }
.section-title h2 { margin-bottom: .35rem; }
.section-title p { color: var(--gray-700); max-width: 38rem; margin: 0 auto; }

/* ----- Service cards ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--blue-700);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--yellow-500);
}
.service-card .icon {
  width: 52px;
  height: 52px;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: .4rem;
}
.service-card p {
  font-size: .96rem;
  color: var(--gray-700);
  margin: 0;
}

/* ----- USP / Trust strip ----- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.usp {
  text-align: center;
  padding: 1rem;
}
.usp .num {
  font-family: var(--ff-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--yellow-500);
  line-height: 1;
  margin-bottom: .35rem;
}
.usp .label {
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: .15rem;
}
.usp .desc { font-size: .9rem; color: var(--gray-700); }

.section.blue .usp .num { color: var(--yellow-500); }
.section.blue .usp .label { color: var(--white); }
.section.blue .usp .desc { color: #cfd9e8; }

/* ----- Price tables ----- */
.tariff {
  margin-bottom: 2rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.tariff-head {
  background: var(--blue-700);
  color: var(--white);
  padding: .85rem 1.25rem;
  font-family: var(--ff-serif);
  font-weight: 700;
  letter-spacing: .02em;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tariff-head .time {
  background: var(--yellow-500);
  color: var(--blue-900);
  font-family: var(--ff-sans);
  font-size: .82rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 2px;
  text-transform: uppercase;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table tr { border-bottom: 1px solid var(--gray-100); }
.price-table tr:last-child { border-bottom: 0; }
.price-table td {
  padding: .95rem 1.25rem;
  vertical-align: middle;
}
.price-table td:last-child {
  text-align: right;
  font-family: var(--ff-serif);
  font-weight: 700;
  color: var(--blue-900);
  font-size: 1.1rem;
  white-space: nowrap;
}
.price-note {
  font-size: .88rem;
  color: var(--gray-700);
  padding: 1rem 1.25rem;
  background: var(--blue-50);
  border-left: 4px solid var(--blue-700);
  border-radius: var(--radius);
}

/* ----- About / Wir ----- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--yellow-500);
  padding: 1.75rem;
  border-radius: var(--radius);
}
.about-card dl { margin: 0; }
.about-card dt {
  font-weight: 700;
  color: var(--blue-900);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .85rem;
}
.about-card dt:first-child { margin-top: 0; }
.about-card dd { margin: .2rem 0 0; color: var(--gray-700); }

/* ----- Contact / Form ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}
.contact-info .info-block {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--yellow-500);
}
.contact-info h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue-700);
  margin-bottom: .2rem;
}
.contact-info p { margin: 0; }

form.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--blue-900);
  margin-bottom: .35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--gray-900);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(0,61,122,.12);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .88rem;
  color: var(--gray-700);
  margin: .25rem 0 1.25rem;
}
.form-check input { margin-top: .25rem; }

/* ----- Long-form content (Impressum/Datenschutz) ----- */
.legal-content h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--yellow-500);
  padding-bottom: .35rem;
  margin-top: 2rem;
}
.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.4rem;
  color: var(--blue-700);
}
.legal-content p, .legal-content li { color: var(--gray-700); }
.legal-content strong { color: var(--gray-900); }

/* ----- Footer ----- */
.site-footer {
  background: var(--blue-900);
  color: #cfd9e8;
  padding: 3rem 0 0;
  border-top: 4px solid var(--yellow-500);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.site-footer h4 {
  color: var(--yellow-500);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .85rem;
  font-family: var(--ff-sans);
  font-weight: 700;
}
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: var(--yellow-500); text-decoration: none; }
.site-footer p { margin: 0 0 .35rem; font-size: .94rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1rem 0;
  font-size: .85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 1rem;
}

/* ----- WhatsApp floating button ----- */
.float-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  z-index: 50;
  transition: transform .2s ease;
}
.float-whatsapp:hover { transform: scale(1.08); color: #fff; text-decoration: none; }

/* ----- Page header (subpages) ----- */
.page-header {
  background: var(--blue-700);
  color: var(--white);
  padding: 2.5rem 0;
  border-bottom: 4px solid var(--yellow-500);
}
.page-header h1 { color: #fff; margin-bottom: .25rem; }
.page-header p { color: #d9e3f1; margin: 0; }
.breadcrumb {
  font-size: .85rem;
  color: #d9e3f1;
  margin-bottom: .55rem;
}
.breadcrumb a { color: var(--yellow-500); }

/* ----- Helpers ----- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-block; }
  .main-nav {
    width: 100%;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: .25rem;
    padding-top: .75rem;
    border-top: 1px solid var(--gray-100);
    margin-top: .5rem;
    width: 100%;
  }
  .main-nav a {
    display: block;
    padding: .6rem 0;
    border-bottom: 1px solid var(--gray-100);
  }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 2rem; }
  .cta-card .phone { font-size: 1.75rem; }
  .section { padding: 2.5rem 0; }
  .top-bar .container { font-size: .82rem; }
}
