/* =============================================================
   Hauswartung Reinigung Child Theme – Custom Styles
   Uebernommen und angepasst von der statischen Landingpage
   hauswartung-reinigung.ch fuer den Einsatz in WordPress /
   GeneratePress.
   ============================================================= */

/* ===== Container-Helfer ===== */
.hr-container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-size: 1rem;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(58,175,92,.35);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(58,175,92,.45);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }

/* ===== Header / Navigation ===== */
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand-logo { height: 46px; width: auto; }

/* Custom-Hamburger fuer eigene Templates */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero-Sektion ===== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a6b8a 0%, #0d4a63 50%, #2d9149 100%);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}
.hero-content { position: relative; max-width: 780px; margin: 0 auto; }
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 20px;
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: 34px;
  opacity: .95;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Sektionen ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-light); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
.section-sub { color: var(--text-light); font-size: 1.08rem; }

/* ===== Grid ===== */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ===== Karten (allgemein) ===== */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

/* ===== Themen-Kacheln ===== */
.topic-card { padding: 34px 28px; }
.topic-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.topic-card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--primary); }
.topic-card p { color: var(--text-light); margin-bottom: 18px; }
.link-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .2s;
}
.link-more:hover { gap: 12px; color: var(--accent); }

/* ===== Blog-Artikel-Karten ===== */
.article-card,
.post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.article-card:hover,
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.post-img { height: 210px; background-size: cover; background-position: center; }
.post-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.badge {
  background: var(--accent);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}
.post-date { color: var(--text-light); font-size: .85rem; }
.post-card h3, .article-card h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--dark); }
.post-card p, .article-card p { color: var(--text-light); margin-bottom: 18px; flex: 1; }

/* ===== USP-Bereich ===== */
.usp-section { background: var(--bg-light); }
.usp { text-align: center; padding: 20px; }
.usp-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(58,175,92,.12);
  color: var(--accent);
  font-size: 2rem;
}
.usp h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--primary); }
.usp p { color: var(--text-light); }

/* ===== Newsletter-Sektion ===== */
.newsletter-section {
  background: linear-gradient(135deg, #1a6b8a 0%, #0d4a63 50%, #2d9149 100%);
  color: #fff;
  padding: 70px 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.newsletter-text { flex: 1; min-width: 280px; }
.newsletter-text h2 { color: #fff; font-size: 1.9rem; margin-bottom: 8px; }
.newsletter-text p { opacity: .92; }
.newsletter-form { flex: 1; min-width: 300px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}
.form-row input[type="email"]:focus { outline: 3px solid rgba(58,175,92,.5); }
.form-note { font-size: .85rem; opacity: .85; margin-top: 12px; }
.form-feedback { margin-top: 10px; font-weight: 600; min-height: 1.2em; }

/* ===== Footer ===== */
.site-footer,
.hr-footer {
  background: var(--dark);
  color: #c7cfd6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 60px 20px 40px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-logo { height: 46px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-col p { color: #97a2ac; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #97a2ac; transition: color .2s; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer-bottom p { text-align: center; color: #8b96a0; font-size: .9rem; margin: 0; }

/* ===== Blog-Artikel Einzelansicht ===== */
.article-hero {
  background: linear-gradient(135deg, #1a6b8a 0%, #0d4a63 50%, #2d9149 100%);
  color: #fff;
  padding: 54px 0 60px;
}
.breadcrumb { font-size: .9rem; margin-bottom: 22px; opacity: .9; }
.breadcrumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: #c9ffd6; }
.breadcrumb span { margin: 0 8px; opacity: .7; }
.article-hero .article-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.article-hero .badge { background: rgba(255,255,255,.18); color: #fff; }
.article-hero .post-date, .article-hero .read-time { color: rgba(255,255,255,.9); font-size: .9rem; }
.article-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 900px; }

.article-body { padding: 64px 0; }
.article-wrap { max-width: 780px; margin: 0 auto; }
.article-wrap p { margin-bottom: 20px; font-size: 1.06rem; }
.article-wrap h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 42px 0 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}
.article-wrap h3 { font-size: 1.2rem; margin: 26px 0 10px; color: var(--primary); }
.service-list { list-style: none; margin: 0 0 22px; padding-left: 0; }
.service-list li { position: relative; padding-left: 30px; margin-bottom: 10px; font-size: 1.04rem; }
.service-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
  font-size: .9rem;
}
.service-block {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 22px;
}
.service-block h3 { margin-top: 0; display: flex; align-items: center; gap: 12px; }
.service-block h3 i { color: var(--accent); }
.usp-inline { list-style: none; margin: 0 0 22px; padding-left: 0; }
.usp-inline li { position: relative; padding-left: 32px; margin-bottom: 12px; font-size: 1.04rem; }
.usp-inline li i { position: absolute; left: 0; top: 4px; color: var(--accent); }
.quote {
  border-left: 4px solid var(--accent);
  background: var(--bg-light);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 22px;
}
.quote p { font-style: italic; margin-bottom: 10px; }
.quote cite { font-style: normal; font-weight: 600; color: var(--primary); }
.cta-box {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
  margin-top: 20px;
}
.cta-box h2 { color: #fff; border: none; display: block; margin: 0 0 12px; }
.cta-box p { margin-bottom: 24px; opacity: .95; }
.cta-box .btn-primary { background: #fff; color: var(--primary-dark); }
.cta-box .btn-primary:hover { background: #f0f0f0; }
.contact-details { list-style: none; margin: 18px 0 0; padding: 0; }
.contact-details li { margin-bottom: 8px; }
.contact-details a { color: var(--primary); font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .nav-toggle { display: flex; }
  .section { padding: 60px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { margin-left: auto; margin-right: auto; }
  .hero-actions { flex-direction: column; align-items: center; }
}
