*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.7; color: #333; background: #fff; }

/* ── Header / Nav ── */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #7e8389;
  padding: 12px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.logo img { height: 78px; }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  padding: 12px 5px;
  border-radius: 4%;
  border: 2px solid #8BC6FE;
  background: #405767;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
}

.nav-menu a:hover { background: rgba(255,255,255,0.2); border-color: #fff; }
.nav-menu a.active { background: rgba(255,255,255,0.25); border-color: #fff; font-weight: 700; }

/* ── Hero ── */
.hero {
  position: relative;
  background: url('/user/themes/webdesign/images/hero.jpg') center center / cover no-repeat;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 4rem 130px;
}

.hero-top { max-width: 780px; margin-top: 25px; }

.hero-top h1 {
  font-size: 36px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
  margin: 0;
  text-align: left;
}

.hero-infobox {
  background: rgba(210, 205, 190, 0.82);
  padding: 1.5rem 2rem;
  max-width: 360px;
  margin-top: 2rem;
}

.hero-infobox p {
  color: #111;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 0.7rem;
}

.hero-infobox p:last-of-type { margin-bottom: 1.2rem; }

.hero-button {
  display: inline-block;
  background: #f0a500;
  padding: 12px 26px;
  border-radius: 4px;
  color: #1a3d6e;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s;
}

.hero-button:hover { background: #d4920a; }

/* ── Content ── */
.content-wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* ── USP Strip ── */
.usp-strip { background: #f7f9fc; border-bottom: 1px solid #e0e8f0; padding: 2.5rem 0; }
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.usp-item h3 { color: #1a3d6e; font-size: 1rem; margin-bottom: 0.4rem; }
.usp-item p { font-size: 0.9rem; color: #666; }
.usp-icon { font-size: 2rem; margin-bottom: 0.8rem; color: #f0a500; }

/* ── Sections ── */
.section { padding: 2.5rem 0; }
.section-alt { background: #f7f9fc; }
.section h2 { color: #1a3d6e; font-size: 1.8rem; font-weight: 600; margin-bottom: 1.2rem; padding-bottom: 0.6rem; border-bottom: 3px solid #f0a500; display: inline-block; }
.section p { color: #444; margin-bottom: 1rem; max-width: 800px; }
.section strong { color: #1a3d6e; }

/* ── Two-col ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

/* ── Quote box ── */
.quote-box { background: #1a3d6e; color: #fff; padding: 2rem 2.5rem; border-radius: 4px; font-size: 1.1rem; font-style: italic; line-height: 1.6; border-left: 4px solid #f0a500; }

/* ── ProvenExpert section ── */
.proven-section { background: #7e8389; padding: 0.8rem 0; overflow: hidden; }
/* collapse proven-section when widget has not loaded */
.proven-section .content-wrap:has(#pewl:empty) { display: none; }
#pewl { min-height: 0; }

/* ── Contact strip (kept for back-compat) ── */
.contact-strip { background: #7e8389; color: #fff; padding: 3rem 0; text-align: center; }
.contact-strip h2 { color: #f0a500; font-size: 1.6rem; margin-bottom: 0.5rem; }
.contact-strip p { opacity: 0.85; margin-bottom: 1.5rem; }
.contact-strip .phone { font-size: 1.8rem; font-weight: 700; color: #fff; display: block; margin-bottom: 1.5rem; }

/* ── Buttons ── */
.btn { display: inline-block; padding: 0.85rem 2.2rem; border-radius: 3px; font-size: 1rem; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.btn-primary { background: #f0a500; color: #1a3d6e; }
.btn-primary:hover { background: #d4920a; }

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.blog-card { border: 1px solid #e0e8f0; border-radius: 4px; overflow: hidden; transition: box-shadow 0.2s; }
.blog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.blog-card-img { height: 200px; background-size: cover; background-position: center; background-color: #e0e8f0; }
.blog-card-img--placeholder { background: linear-gradient(135deg, #1a3d6e 0%, #2563a8 100%); position: relative; }
.blog-card-img--placeholder::after { content: "🏠"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 3rem; opacity: 0.4; }
.blog-card-body { padding: 1.5rem; }
.blog-card h3 { color: #1a3d6e; font-size: 1.05rem; margin-bottom: 0.6rem; }
.blog-card p { color: #666; font-size: 0.9rem; margin-bottom: 1rem; }
.blog-card a { color: #2563a8; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.blog-card a:hover { color: #f0a500; }

/* ── Article ── */
.article-content h1 { color: #1a3d6e; font-size: 2rem; margin-bottom: 1.5rem; }
.article-content h2 { color: #1a3d6e; font-size: 1.4rem; margin: 2rem 0 0.8rem; border-left: 4px solid #f0a500; padding-left: 0.8rem; }
.article-content p { margin-bottom: 1rem; color: #444; }
.article-content strong { color: #1a3d6e; }

/* ── Post Hero ── */
.post-hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; }
.post-hero--plain { background: #7e8389; min-height: 180px; align-items: center; }
.post-hero-title { background: rgba(0,0,0,0.52); padding: 1.2rem 2rem; width: 100%; }
.post-hero-title h1 { color: #fff; font-size: 1.9rem; font-weight: 700; margin: 0; line-height: 1.3; }
.post-hero--plain .post-hero-title { background: none; }
.post-hero--plain .post-hero-title h1 { color: #fff; }

/* ── Footer ── */
.site-footer { background: #d0ccc7; color: #333; padding: 1.6rem 0; font-size: 1.1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 1.5rem; align-items: center; }
.footer-col p { margin: 0.2rem 0; }
.footer-legal p { color: #444; }
.footer-legal a { color: #444; text-decoration: none; }
.footer-legal a:hover { color: #1a3d6e; }
.footer-center { text-align: center; }
.footer-social { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.footer-xing-btn { display: inline-block; border: 2px solid #666; border-radius: 4px; padding: 0.4rem 0.9rem; color: #333; text-decoration: none; font-size: 1.1rem; background: #fff; }
.footer-xing-btn:hover { border-color: #1a3d6e; }
.footer-kontakt-btn { display: inline-block; background: #4a5a6a; color: #fff; padding: 0.55rem 1.6rem; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.footer-kontakt-btn:hover { background: #1a3d6e; }
.footer-contact a { color: #333; text-decoration: none; }
.footer-contact a:hover { color: #1a3d6e; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { padding: 1.5rem 1.5rem 0; }
  .hero-top h1 { font-size: 2rem; }
  .nav-menu { gap: 4px; }
  .nav-menu a { padding: 6px 8px; font-size: 1rem; }
  .usp-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Family section ── */
.family-section { padding: 2.5rem 0; background: #f5f7fa; text-align: center; }
.family-title { color: #1a3d6e; font-size: 1.6rem; font-weight: 700; margin-bottom: 0.4rem; }
.family-sub { color: #555; font-size: 1rem; margin-bottom: 1.5rem; }
.family-img { width: 100%; max-width: 890px; height: auto; display: block; margin: 0 auto; border-radius: 4px; }
.family-link { color: #1a3d6e; font-size: 1.1rem; font-weight: 700; text-decoration: underline; }
.family-link:hover { color: #f0a500; }

/* ── Burger Menu ── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.burger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 700px) {
  .burger { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a3d6e;
    flex-direction: column;
    padding: 1rem 0;
    z-index: 100;
    gap: 0;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .header { position: relative; }
}

/* ── Post Hero Image ── */
.post-hero-img-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0;
}
.post-hero-img {
  display: block;
  width: 100%;
  height: auto;
}
.post-hero-img-wrap .post-hero-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.52);
  padding: 1.2rem 2rem;
}
.post-hero-img-wrap .post-hero-title h1 {
  color: #fff;
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.blog-card-body h3 a { color: inherit; text-decoration: none; }
.blog-card-body h3 a:hover { color: #1a3d6e; text-decoration: underline; }
.blog-card-img { cursor: pointer; }
