/*
Theme Name: QMBee
Theme URI: https://qmbee.de/
Author: QMBee
Description: Maßgeschneidertes, responsives WordPress-Theme für Qualitätsmanagement, Beratung und Schulung.
Version: 2.3.0
Requires at least: 6.3
Requires PHP: 8.0
Text Domain: qmbee
*/

:root {
  --honey: #f9b42c;
  --honey-light: #fff0c2;
  --brown: #4b210f;
  --brown-soft: #6f321d;
  --cream: #fffaf1;
  --ink: #2f1e17;
  --muted: #6d5b52;
  --line: #ecd8c7;
  --white: #fff;
  --shadow: 0 14px 38px rgba(77, 31, 16, .09);
  --radius: 16px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.65; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--brown); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brown-soft); }
h1, h2, h3 { color: var(--brown); font-family: inherit; line-height: 1.18; margin: 0 0 .6em; }
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 850; letter-spacing: -.04em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); font-weight: 800; letter-spacing: -.025em; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1.2em; }
.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 790px); margin-inline: auto; }
.eyebrow { color: var(--brown-soft); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-line { display: block; }
.lead { color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); max-width: 720px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 9999; background: var(--brown); color: white; padding: 10px 16px; }
.skip-link:focus { top: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10000; isolation: isolate; background: rgba(255,250,241,.96); border-bottom: 1px solid rgba(75,33,15,.1); backdrop-filter: blur(16px); }
.header-inner { position: relative; z-index: 2; min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand, .custom-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.brand img, .custom-logo-link img { display: block; width: 150px; max-height: 60px; object-fit: contain; object-position: left center; }
.brand-text { font-size: 1.5rem; font-weight: 900; color: var(--brown); }
.main-nav ul { display: flex; align-items: center; gap: 24px; list-style: none; padding: 0; margin: 0; }
.main-nav a { color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--brown-soft); }
.main-nav li:last-child a { display: inline-flex; background: var(--brown); border-radius: 10px; color: var(--white); padding: 10px 17px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--brown); font: inherit; font-weight: 800; padding: 10px; cursor: pointer; }

/* Shared sections */
.section { padding: clamp(62px, 8vw, 100px) 0; position: relative; }
.section-soft { background: #fff2d1; }
.section-dark { background: var(--brown); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark a { color: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 44px; }
.section-head > * { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 6vw, 78px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 38px); box-shadow: 0 8px 30px rgba(77,31,16,.05); }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 54px; height: 59px; display: grid; place-items: center; margin-bottom: 18px; background: var(--honey); color: var(--brown); font-size: 1.15rem; font-weight: 850; clip-path: polygon(25% 6.7%,75% 6.7%,100% 50%,75% 93.3%,25% 93.3%,0 50%); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 38px 0 64px; }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 7px 24px rgba(77,31,16,.045); }
.service-card-icon { width: 62px; height: 68px; display: grid; place-items: center; margin-bottom: 20px; background: var(--honey-light); color: var(--brown); clip-path: polygon(25% 6.7%,75% 6.7%,100% 50%,75% 93.3%,25% 93.3%,0 50%); }
.service-card-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3, .prose .service-card h3 { margin-top: 0; margin-bottom: .5em; font-size: 1.12rem; line-height: 1.3; }
.service-card p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }
.service-card-title-only { display: flex; align-items: center; gap: 18px; min-height: 112px; }
.service-card-title-only .service-card-icon { flex: 0 0 62px; margin-bottom: 0; }
.service-card-title-only h3, .prose .service-card-title-only h3 { margin: 0; }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 30px 0 56px; }
.inline-cta small { color: var(--muted); max-width: 440px; }
.training-focus { background: var(--brown); color: var(--white); border-radius: 32px; padding: clamp(30px, 6vw, 58px); margin: 38px 0 64px; }
.training-focus h2, .training-focus h3 { color: var(--white); }
.training-focus .eyebrow { color: var(--honey); }
.training-focus ul { columns: 2; column-gap: 44px; }
.training-focus li { break-inside: avoid; }
.vita-timeline { position: relative; margin: 42px 0 62px; padding-left: 30px; }
.vita-timeline::before { content: ""; position: absolute; inset: 8px auto 8px 7px; width: 2px; background: var(--line); }
.vita-entry { position: relative; padding: 0 0 32px 24px; }
.vita-entry:last-child { padding-bottom: 0; }
.vita-entry::before { content: ""; position: absolute; left: -29px; top: 7px; width: 14px; height: 14px; background: var(--honey); border: 4px solid var(--cream); border-radius: 50%; box-shadow: 0 0 0 1px var(--honey); }
.vita-entry time { display: block; color: var(--brown-soft); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.vita-entry h3, .prose .vita-entry h3 { margin: 5px 0 2px; font-size: 1.3rem; }
.vita-entry p { color: var(--muted); margin-bottom: 0; }
.profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 32px 0 54px; }
.profile-only { max-width: 560px; margin: 0 auto; text-align: center; }
.profile-only .inline-cta { justify-content: center; margin: 16px 0 30px; }
.profile-role { display: inline-flex; margin: 0 0 10px; border-radius: 999px; background: var(--honey-light); color: var(--brown); font-size: .86rem; font-weight: 850; letter-spacing: .025em; padding: 7px 14px; }
.profile-photo { margin: 0; position: relative; }
.profile-photo::before { content: ""; position: absolute; z-index: -1; width: 44%; aspect-ratio: 1; right: -8%; top: -8%; background: var(--honey); clip-path: polygon(25% 6.7%,75% 6.7%,100% 50%,75% 93.3%,25% 93.3%,0 50%); }
.profile-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.profile-story { margin-top: clamp(64px, 9vw, 96px); }
.profile-story-head { max-width: 720px; margin-bottom: 34px; }
.profile-story-head h2, .prose .profile-story-head h2 { margin-top: .22em; }
.profile-insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.profile-insight { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(77,31,16,.05); padding: 24px; }
.profile-honey { width: 58px; height: 64px; display: grid; place-items: center; margin-bottom: 17px; background: var(--honey-light); color: var(--brown); clip-path: polygon(25% 6.7%,75% 6.7%,100% 50%,75% 93.3%,25% 93.3%,0 50%); font-size: .76rem; font-weight: 900; letter-spacing: -.01em; }
.profile-insight h3, .prose .profile-insight h3 { margin: 0 0 8px; font-size: 1.12rem; }
.profile-insight p { margin: 0; color: var(--muted); font-size: .96rem; }
.profile-expectation { margin-top: 22px; border-radius: var(--radius); background: var(--brown); color: rgba(255,255,255,.82); padding: clamp(28px, 5vw, 42px); }
.profile-expectation h3, .prose .profile-expectation h3 { margin: 0 0 10px; color: var(--white); }
.profile-expectation p { margin-bottom: 18px; }
.profile-expectation strong { display: block; color: var(--honey); font-size: clamp(1.08rem, 2vw, 1.24rem); line-height: 1.45; }
.home-profile { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); align-items: center; gap: clamp(42px, 8vw, 104px); }
.home-profile-photo { position: relative; margin: 0; }
.home-profile-photo::before { content: ""; position: absolute; z-index: -1; width: 52%; aspect-ratio: 1; left: -9%; bottom: -10%; background: var(--honey); clip-path: polygon(25% 6.7%,75% 6.7%,100% 50%,75% 93.3%,25% 93.3%,0 50%); opacity: .92; }
.home-profile-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 7px solid var(--white); border-radius: 22px; box-shadow: var(--shadow); }
.home-profile-copy { max-width: 670px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; background: var(--brown); border: 1px solid var(--brown); border-radius: 10px; color: var(--white); font-weight: 750; line-height: 1.2; padding: 12px 20px; text-decoration: none; transition: background .18s ease, color .18s ease, transform .18s ease; }
.button:hover { background: var(--honey); border-color: var(--honey); color: var(--brown); transform: translateY(-1px); }
.button-outline { background: transparent; border-color: rgba(77,31,16,.35); color: var(--brown); }
.button-light { background: var(--white); border-color: var(--white); color: var(--brown); }

/* Hero */
.hero { min-height: min(700px, calc(100vh - 80px)); display: grid; align-items: center; overflow: hidden; padding: clamp(66px, 9vw, 112px) 0; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(25% 6.7%,75% 6.7%,100% 50%,75% 93.3%,25% 93.3%,0 50%); }
.hero::before { width: 430px; height: 475px; right: -100px; top: 55px; background: var(--honey-light); }
.hero::after { width: 235px; height: 260px; right: 23%; bottom: -90px; border: 4px solid var(--honey); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(40px, 8vw, 100px); }
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-title-row { display: flex; align-items: flex-start; gap: 14px; }
.hero-title-row h1 { margin-bottom: .6em; }
.bee-mark { flex: 0 0 auto; width: 34px; margin-top: 8px; opacity: .55; transform: rotate(-7deg); }
.hero-copy .lead { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-mark { position: relative; min-height: 390px; display: grid; place-items: center; }
.hero-mark img { width: min(100%, 520px); filter: drop-shadow(0 20px 35px rgba(77,31,16,.12)); }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 64px; padding-top: 26px; }
.trust-item { padding-right: 24px; color: var(--muted); font-size: .92rem; }
.trust-item strong { display: block; color: var(--brown); font-size: 1.08rem; font-weight: 800; }

/* Pages */
.page-hero { padding: clamp(64px, 8vw, 104px) 0 54px; background: linear-gradient(135deg, #fff0c2, var(--cream)); overflow: hidden; }
.page-hero .lead { max-width: 700px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.quote { border-left: 4px solid var(--honey); padding: 6px 0 6px 22px; font-size: 1.2rem; font-weight: 650; color: var(--brown); }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding: 0 0 13px 32px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brown); font-weight: 900; }
.cta-box { background: var(--honey-light); border: 1px solid rgba(246,173,27,.45); border-radius: 18px; color: var(--brown); padding: clamp(28px, 5vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-box h2 { margin-bottom: .2em; }
.cta-box p { margin-bottom: 0; }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card-image { aspect-ratio: 16/9; background: var(--honey-light); object-fit: cover; }
.post-card-body { flex: 1; padding: 28px; }
.post-card-meta { color: var(--muted); font-size: .8rem; font-weight: 700; }
.post-card h2, .post-card h3 { font-size: 1.45rem; }
.post-card a { text-decoration: none; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(35px, 7vw, 88px); align-items: start; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { font-size: .86rem; font-weight: 800; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid #d8cbc3; border-radius: 14px; background: var(--white); color: var(--ink); font: inherit; padding: 13px 15px; }
.form-field input:focus, .form-field textarea:focus { outline: 3px solid rgba(246,173,27,.28); border-color: var(--honey); }
.form-field textarea { min-height: 170px; resize: vertical; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; font-size: .8rem; }
.form-consent input { margin-top: 7px; }
.form-notice { grid-column: 1 / -1; border-radius: 12px; padding: 12px 16px; }
.form-success { background: #e6f7eb; color: #17572b; }
.form-error { background: #fff0ed; color: #852414; }
.hp-field { position: absolute !important; left: -9999px !important; }

/* Footer */
.site-footer { background: var(--brown); color: rgba(255,255,255,.76); padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer h2, .site-footer h3, .site-footer a { color: var(--white); }
.site-footer h3 { font-family: inherit; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { width: 180px; background: var(--cream); border-radius: 10px; padding: 8px 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 52px; padding-top: 24px; font-size: .8rem; }

@media (max-width: 980px) {
  .menu-toggle { position: relative; z-index: 10002; display: inline-flex; }
  .main-nav { display: block; position: fixed; z-index: 10001; inset: 80px 0 auto; height: calc(100vh - 80px); height: calc(100dvh - 80px); background: var(--cream); padding: 34px 24px; overflow-y: auto; box-shadow: 0 20px 40px rgba(75,33,15,.12); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
  .main-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { display: block; font-size: 1.15rem; padding: 13px; }
  body.menu-open .site-header { background: var(--cream); }
  .hero-grid, .grid-2, .home-profile { grid-template-columns: 1fr; }
  .hero-mark { min-height: 260px; order: -1; }
  .hero-mark img { max-width: 430px; }
  .home-profile-photo { width: min(100%, 340px); margin-inline: auto; }
  .grid-3, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container, .narrow { width: min(calc(100% - 28px), var(--content)); }
  .header-inner { min-height: 76px; }
  .brand img, .custom-logo-link img { width: 140px; }
  .main-nav { inset-block-start: 76px; height: calc(100vh - 76px); height: calc(100dvh - 76px); }
  .hero { min-height: auto; }
  .hero-mark { min-height: 190px; }
  .bee-mark { display: none; }
  .hero::after { display: none; }
  .trust-row { grid-template-columns: 1fr; gap: 18px; }
  .grid-3, .post-grid, .footer-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .training-focus ul { columns: 1; }
  .profile-facts { grid-template-columns: 1fr; }
  .profile-insight-grid { grid-template-columns: 1fr; }
  .home-profile-photo { width: min(88%, 290px); }
  .section-head, .cta-box { align-items: flex-start; flex-direction: column; }
  .contact-form { grid-template-columns: 1fr; }
  .form-field-full { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
