/*
Theme Name: Ing.-Büro Beugelink
Theme URI: https://www.beugelink-ing.de
Author: Ing.-Büro Beugelink
Author URI: https://www.beugelink-ing.de
Description: Individuelles WordPress-Theme für das Ing.-Büro Beugelink (TGA, Gebäudeautomation, MSR). Farbschema Dunkelgrün/Beige/Grün gemäß Corporate Design.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ibb-beugelink
*/

/* =========================================================
   Design-Tokens & Basisstile
   ========================================================= */

.ibb-page {
  --ibb-green-dark: #455847;
  --ibb-green-dark-hover: #384a3a;
  --ibb-beige: #E2DFDC;
  --ibb-green-light: #C0C7B5;
  --ibb-white: #ffffff;
  --ibb-text: #2b332c;
  --ibb-text-muted: #5b655c;
  --ibb-radius: 10px;
  --ibb-shadow: 0 10px 30px rgba(35, 45, 38, 0.08);

  /* Falls Sie die Lizenzschrift "Eurostyle Extended" als Webfont besitzen,
     tragen Sie diese vor Poppins ein, z.B.:
     font-family: "Eurostyle Extended", "Poppins", sans-serif; */
  font-family: "Poppins", sans-serif;
  color: var(--ibb-text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  background: var(--ibb-white);
}

.ibb-page * { box-sizing: border-box; }
.ibb-page img { max-width: 100%; height: auto; display: block; }
.ibb-page .ibb-content img { border-radius: var(--ibb-radius); margin-bottom: 1.2em; }

.ibb-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.ibb-page h1, .ibb-page h2, .ibb-page h3, .ibb-page h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--ibb-green-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

.ibb-page h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.ibb-page h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.ibb-page h3 { font-size: 1.3rem; }
.ibb-page p { margin: 0 0 1.1em; color: var(--ibb-text); }
.ibb-page ul { margin: 0 0 1.1em; padding-left: 1.3em; }
.ibb-page li { margin-bottom: 0.4em; }
.ibb-page a { color: var(--ibb-green-dark); }

/* ---------- Sections ---------- */
.ibb-section { padding: 72px 0; }
.ibb-section--tight { padding: 48px 0; }
.ibb-section--beige { background: var(--ibb-beige); }
.ibb-section--white { background: var(--ibb-white); }
.ibb-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ibb-green-dark);
  background: var(--ibb-green-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.ibb-section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.ibb-section-head p { color: var(--ibb-text-muted); font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.ibb-header {
  background: var(--ibb-white);
  border-bottom: 1px solid var(--ibb-beige);
  position: sticky;
  top: 0;
  z-index: 50;
}
.ibb-header .ibb-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
  gap: 16px;
}
.ibb-logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--ibb-green-dark);
  text-decoration: none;
  text-transform: uppercase;
}
.ibb-logo span { font-weight: 500; display: block; font-size: 0.62rem; letter-spacing: 0.12em; color: var(--ibb-text-muted); text-transform: uppercase; margin-top: 2px; }
.ibb-nav { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.ibb-nav li { margin: 0; }
.ibb-nav a {
  color: var(--ibb-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.ibb-nav a:hover { color: var(--ibb-green-dark); }
.ibb-nav .current-menu-item > a { color: var(--ibb-green-dark); }
.ibb-header-cta,
.ibb-nav .ibb-header-cta a {
  background: var(--ibb-green-dark);
  color: var(--ibb-white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600 !important;
}
.ibb-header-cta:hover,
.ibb-nav .ibb-header-cta a:hover { background: var(--ibb-green-dark-hover); }

/* ---------- Hero ---------- */
.ibb-hero {
  background: linear-gradient(135deg, var(--ibb-green-dark) 0%, #566a58 100%);
  color: var(--ibb-white);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.ibb-hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.ibb-hero .ibb-container { position: relative; z-index: 1; max-width: 820px; }
.ibb-hero h1 { color: var(--ibb-white); }
.ibb-hero .ibb-tagline {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ibb-green-light);
  margin-bottom: 18px;
}
.ibb-hero .ibb-kicker {
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ibb-beige);
  margin-bottom: 28px;
  font-size: 1.02rem;
}
.ibb-hero p.ibb-lead { color: rgba(255,255,255,0.9); font-size: 1.08rem; max-width: 680px; }
.ibb-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Buttons ---------- */
.ibb-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  transition: background 0.15s ease, transform 0.15s ease;
  border: none;
  cursor: pointer;
}
.ibb-btn--primary { background: var(--ibb-white); color: var(--ibb-green-dark) !important; }
.ibb-btn--primary:hover { transform: translateY(-2px); }
.ibb-btn--outline { border: 2px solid rgba(255,255,255,0.6); color: var(--ibb-white) !important; background: transparent; }
.ibb-btn--outline:hover { border-color: var(--ibb-white); }
.ibb-btn--solid { background: var(--ibb-green-dark); color: var(--ibb-white) !important; }
.ibb-btn--solid:hover { background: var(--ibb-green-dark-hover); transform: translateY(-2px); }

/* ---------- Cards / Grid ---------- */
.ibb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.ibb-card {
  background: var(--ibb-white);
  border: 1px solid var(--ibb-beige);
  border-radius: var(--ibb-radius);
  padding: 30px 26px;
  box-shadow: var(--ibb-shadow);
}
.ibb-card .ibb-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--ibb-green-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}
.ibb-card h3 { margin-bottom: 10px; }
.ibb-card p { color: var(--ibb-text-muted); margin-bottom: 0; font-size: 0.97rem; }
.ibb-card a.ibb-card-link { font-weight: 600; font-size: 0.92rem; text-decoration: none; display: inline-block; margin-top: 12px; }

/* ---------- Leistungen (Detailseite) ---------- */
.ibb-service {
  padding: 44px 0;
  border-bottom: 1px solid var(--ibb-beige);
}
.ibb-service:last-child { border-bottom: none; }
.ibb-service h2 { display: flex; align-items: center; gap: 12px; }
.ibb-service h2 .ibb-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--ibb-green-light); display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}

/* ---------- Why-us list ---------- */
.ibb-check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 14px 28px; }
.ibb-check-list li { padding-left: 30px; position: relative; margin-bottom: 0; color: var(--ibb-text); }
.ibb-check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--ibb-white);
  background: var(--ibb-green-dark);
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 0.72rem; line-height: 20px; text-align: center;
}

/* ---------- CTA-Banner ---------- */
.ibb-cta-banner {
  background: var(--ibb-green-dark);
  color: var(--ibb-white);
  border-radius: var(--ibb-radius);
  padding: 48px 40px;
  text-align: center;
}
.ibb-cta-banner h2 { color: var(--ibb-white); }
.ibb-cta-banner p { color: rgba(255,255,255,0.85); }

/* ---------- Kontakt ---------- */
.ibb-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 780px) { .ibb-contact-grid { grid-template-columns: 1fr; } }
.ibb-contact-info .ibb-info-row { margin-bottom: 18px; }
.ibb-contact-info .ibb-info-row strong { display: block; color: var(--ibb-green-dark); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }

.ibb-form { background: var(--ibb-beige); padding: 32px; border-radius: var(--ibb-radius); }
.ibb-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--ibb-green-dark); }
.ibb-form input, .ibb-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9cdc4;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.97rem;
  margin-bottom: 18px;
  background: var(--ibb-white);
}
.ibb-form small { display: block; color: var(--ibb-text-muted); margin-top: -12px; margin-bottom: 18px; font-size: 0.82rem; }
.ibb-form-message { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.92rem; font-weight: 600; }
.ibb-form-message--success { background: #dfeee1; color: #2c4a30; }
.ibb-form-message--error { background: #f5dede; color: #6b2323; }

/* ---------- Footer ---------- */
.ibb-footer {
  background: #2f3b30;
  color: rgba(255,255,255,0.82);
  padding: 48px 0 28px;
  font-size: 0.92rem;
}
.ibb-footer a { color: rgba(255,255,255,0.82); text-decoration: none; }
.ibb-footer a:hover { color: var(--ibb-white); }
.ibb-footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.ibb-footer-grid h4 { color: var(--ibb-white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.ibb-footer-grid ul { list-style: none; padding: 0; margin: 0; }
.ibb-footer-grid li { margin-bottom: 8px; }
.ibb-footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Legal pages ---------- */
.ibb-legal { max-width: 780px; margin: 0 auto; }
.ibb-legal h2 { margin-top: 1.6em; }

/* ---------- Blog ---------- */
.ibb-blog-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 34px; }
.ibb-blog-item { padding-bottom: 34px; border-bottom: 1px solid var(--ibb-beige); }
.ibb-blog-item:last-child { border-bottom: none; }
.ibb-blog-meta { font-size: 0.85rem; color: var(--ibb-text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.ibb-blog-item h2 a { text-decoration: none; }
.ibb-pagination { display: flex; justify-content: center; gap: 14px; margin-top: 20px; }
.ibb-single-post { max-width: 780px; margin: 0 auto; }
.ibb-back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; text-decoration: none; }

/* ---------- Mobile nav toggle ---------- */
.ibb-nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--ibb-green-dark); cursor: pointer; }
@media (max-width: 820px) {
  .ibb-nav-toggle { display: block; }
  .ibb-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--ibb-beige);
  }
  .ibb-nav.ibb-nav--open { display: flex; }
  .ibb-header .ibb-container { position: relative; }
}
