/*
Theme Name: Wengertsberg
Description: Persönliche Website für Wengertsberg Training & Consulting.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: wengertsberg
*/
:root {
  --forest: #2d4a3e;
  --deep: #1e2e28;
  --green: #4a7c65;
  --gold: #c8a96e;
  --cream: #f7f4ef;
  --ink: #263b30;
  --muted: #536058;
  --line: #d4dbd1;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.8 var(--sans); }
a { color: var(--forest); text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: var(--green); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; line-height: 1.2; }
h1 { font-size: clamp(44px, 4.8vw, 64px); }
h2 { font-size: clamp(31px, 3.1vw, 39px); margin-bottom: 28px; }
h3 { font-size: 19px; font-weight: 500; line-height: 1.5; }
p + p, .wp-block-paragraph + .wp-block-paragraph { margin-top: 20px; }
button, input, textarea { font: inherit; }
::selection { background: #dfcdad; color: var(--deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; background: var(--cream); padding: 12px 20px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--cream); border-bottom: 1px solid var(--line); }
.header-inner { height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { text-decoration: none; display: inline-flex; gap: 17px; align-items: center; flex-shrink: 0; }
.brand-letter { font-family: var(--serif); font-size: 57px; line-height: 1; letter-spacing: -.09em; padding-right: 20px; border-right: 1px solid var(--gold); }
.brand-name { font-size: 15px; letter-spacing: .14em; line-height: 1.35; }
.brand-subtitle { display: block; font-size: 8px; letter-spacing: .2em; margin-top: 7px; color: var(--green); }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a { font-size: 13px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-contact { color: var(--forest); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 7px; }
.header-actions { display: contents; }
.mobile-contact, .mobile-copy { display: none; }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--line); padding: 7px 12px; color: var(--forest); }
.menu-toggle[hidden] { display: none; }
.hero { padding: 76px 0 82px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; }
.intro-label { font-size: 15px; color: var(--green); margin-bottom: 18px; }
.hero h1 { margin-bottom: 26px; }
.hero-description { font-size: 17px; max-width: 485px; line-height: 1.85; }
.button { display: inline-block; padding: 10px 23px; background: var(--forest); color: white; font-size: 14px; text-decoration: none; border: 1px solid var(--forest); line-height: 1.8; }
.button:hover { background: var(--deep); color: white; }
.button .arrow { display: none; }
.hero .button { margin-top: 28px; }
.hero .hero-location { margin-top: 21px; font-size: 13px; color: var(--muted); }
.hero-portrait img { width: 100%; aspect-ratio: 1.3; object-fit: cover; object-position: 37% center; }
.wp-block-image { margin: 0; }
.wp-element-caption { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 12px; }
.section { padding: 80px 0; }
.section h2 { margin-bottom: 28px; }
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 100px; align-items: start; }
.about-copy p { color: var(--muted); }
.about-copy h3 { margin-top: 32px; margin-bottom: 13px; }
.about-place { padding-top: 7px; }
.about-place img { width: 100%; }
.services { background: #ebeee7; }
.section-intro { max-width: 660px; color: var(--muted); margin-bottom: 38px; }
.services .section-intro { margin-bottom: 38px; }
.service-list { border-top: 1px solid #c9d2c3; }
.service-row { display: grid; grid-template-columns: 1fr 1.8fr; gap: 65px; padding: 25px 0; border-bottom: 1px solid #c9d2c3; }
.service-row h3 { padding-right: 20px; }
.service-row p { color: var(--muted); max-width: 670px; }
.approach-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 100px; align-items: center; }
.approach-photo img { width: 100%; }
.approach-copy p { color: var(--muted); }
.references { border-top: 1px solid var(--line); }
.reference-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 100px; }
.reference-intro p { color: var(--muted); }
.reference-row { padding: 0 0 24px; margin-bottom: 23px; border-bottom: 1px solid var(--line); }
.reference-row:last-child { margin-bottom: 0; }
.reference-row h3 { margin-bottom: 7px; }
.reference-row p { color: var(--muted); }
.contact { background: var(--forest); color: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: 100px; row-gap: 0; align-items: start; }
.contact-copy { grid-column: 1; grid-row: 1; }
.contact-details { display: contents; }
.contact-methods { grid-column: 2; grid-row: 1; }
.contact-methods.with-form { grid-column: 1; grid-row: 2; margin-top: 32px; }
.contact-copy p { max-width: 550px; color: #e0e7dd; }
.contact-details a { color: var(--cream); }
.contact-details .contact-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; max-width: 100%; text-decoration: none; }
.contact-icon { width: 22px; height: 22px; flex: 0 0 22px; color: #dec99f; }
.contact-text { min-width: 0; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.contact-link:hover .contact-text { text-decoration-thickness: 2px; }
.contact-link:hover .contact-icon { color: var(--cream); }
.contact-address { font-size: clamp(19px, 2.2vw, 27px); overflow-wrap: anywhere; }
.contact-details .contact-phone { margin-top: 12px; }
.contact-details .contact-place { display: flex; align-items: center; gap: 14px; color: #d6e0d2; font-size: 14px; margin-top: 18px; }
.contact-grid .contact-form { grid-column: 2; grid-row: 1 / span 2; }
.contact-form[hidden] { display: none; }
.contact-field { margin-bottom: 20px; }
.contact-field label { display: block; margin-bottom: 7px; font-size: 14px; }
.contact-field input, .contact-field textarea { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #b5c7b4; border-radius: 0; background: var(--cream); color: var(--ink); }
.contact-field textarea { resize: vertical; }
.contact-privacy { font-size: 12px; line-height: 1.7; color: #e0e7dd; }
.contact-submit { margin-top: 20px; padding: 11px 22px; min-height: 44px; border: 1px solid var(--cream); border-radius: 0; background: var(--cream); color: var(--forest); cursor: pointer; font-size: 14px; }
.contact-submit:hover:not(:disabled) { background: #e4d6bb; }
.contact-submit:disabled { opacity: .65; cursor: wait; }
.contact-form .contact-status { margin-top: 18px; font-size: 14px; line-height: 1.7; }
.contact-status:empty { margin-top: 0; }
.contact-status.is-error { color: #ffe0bb; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-footer { padding: 34px 0; }
.footer-top { display: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 25px; }
.footer-links a { color: var(--muted); }
.legal-content { max-width: 800px; padding: 65px 0 90px; min-height: 60vh; }
.legal-content h1 { font-size: 44px; margin-bottom: 38px; }
.legal-content h2 { font-size: 26px; margin: 32px 0 17px; }
.legal-content h3 { margin: 24px 0 14px; }
.legal-content p { margin: 16px 0; }
.legal-content a { overflow-wrap: anywhere; }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .brand-name { font-size: 13px; }
  .brand-letter { font-size: 50px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 12px; }
  .hero-inner { gap: 45px; }
  .about-grid, .approach-grid, .reference-layout, .contact-grid { gap: 55px; }
  .service-row { gap: 45px; }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 88px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { height: 76px; gap: 12px; }
  .brand { gap: 12px; }
  .brand-letter { font-size: 42px; padding-right: 13px; }
  .brand-name { font-size: 12px; letter-spacing: .12em; }
  .brand-subtitle { font-size: 7px; letter-spacing: .16em; margin-top: 5px; }
  .header-actions { display: flex; align-items: center; gap: 6px; }
  .mobile-contact { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px; font-size: 13px; text-underline-offset: 4px; }
  .mobile-contact .contact-icon { display: none; color: var(--forest); }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 8px; font-size: 18px; line-height: 1; cursor: pointer; }
  .menu-label { display: none; }
  .site-nav { position: absolute; left: 0; right: 0; top: 76px; padding: 12px 20px; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 10px; min-height: 44px; font-size: 15px; }
  .js .site-nav:not(.is-open) { display: none; }
  .desktop-copy { display: none; }
  .mobile-copy { display: inline; }
  .hero { padding: 30px 0 42px; }
  .hero-inner { gap: 18px; grid-template-columns: 1fr; }
  .hero-copy { display: contents; }
  .hero .intro-label { order: 0; margin: 0; font-size: 14px; }
  .hero h1 { order: 1; font-size: clamp(37px, 10.8vw, 46px); margin: 0; }
  .hero-portrait { order: 2; width: 100%; max-width: 580px; margin: 3px 0; }
  .hero-portrait img { aspect-ratio: 1.65; object-position: 37% 42%; }
  .hero-description { order: 3; font-size: 16px; line-height: 1.7; max-width: 580px; }
  .hero .button { order: 4; margin: 0; justify-self: start; min-height: 44px; }
  .hero .hero-location { order: 5; margin: 0; }
  .section { padding: 42px 0; }
  .section h2 { margin-bottom: 20px; }
  .about-grid, .approach-grid, .reference-layout, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-copy p, .service-row p, .approach-copy p, .reference-intro p { line-height: 1.7; }
  .about-copy p + p { margin-top: 16px; }
  .about-place { max-width: 480px; padding-top: 0; }
  .about-place img { max-height: 260px; object-fit: cover; }
  .mobile-qualifications { margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .mobile-qualifications summary { padding: 12px 2px; min-height: 48px; font-size: 15px; color: var(--forest); cursor: pointer; }
  .mobile-qualifications h3 { margin: 8px 0 10px; }
  .mobile-qualifications p { padding-bottom: 18px; }
  .approach-photo { order: 2; max-width: 480px; }
  .section-intro, .services .section-intro { margin-bottom: 24px; }
  .service-row { grid-template-columns: 1fr; gap: 9px; padding: 21px 0; }
  .service-row h3 { padding-right: 0; font-size: 18px; line-height: 1.45; }
  .service-row p { max-width: 600px; }
  .reference-row { padding-bottom: 20px; margin-bottom: 20px; }
  .contact-grid { grid-template-rows: none; gap: 26px; }
  .contact-grid .contact-copy, .contact-grid .contact-methods, .contact-grid .contact-form { grid-column: 1; grid-row: auto; }
  .contact-grid .contact-methods.with-form { margin-top: 0; }
  .contact-grid .contact-form { padding-top: 26px; border-top: 1px solid #ffffff40; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .footer-links { gap: 22px; flex-wrap: wrap; }
  .legal-content { padding-top: 42px; }
  .legal-content h1 { font-size: 37px; }
}
@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .brand { gap: 9px; }
  .brand-letter { padding-right: 10px; }
  .mobile-contact span { display: none; }
  .mobile-contact .contact-icon { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Wengertsberg consent presentation. Shared consent enforcement stays intact. */
.analytics-settings-link { border: 0; padding: 0; min-height: 44px; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.analytics-settings-link[hidden] { display: none; }
.footer-links { align-items: center; }
body #site-analytics-consent.is-wengertsberg-consent [data-settings] { display: none; }
body #site-analytics-consent.is-wengertsberg-consent { font-family: var(--sans); color: var(--ink); }
body #site-analytics-consent.is-wengertsberg-consent section { left: auto; right: 20px; bottom: 20px; width: min(420px, calc(100% - 40px)); max-height: calc(100dvh - 40px); margin: 0; padding: 22px; border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 2px; background: var(--cream); box-shadow: 0 8px 32px #1e2e2826; }
body #site-analytics-consent.is-wengertsberg-consent h2 { padding-right: 26px; margin-bottom: 10px; font: 600 17px/1.3 var(--sans); letter-spacing: 0; color: var(--forest); }
body #site-analytics-consent.is-wengertsberg-consent p { margin-bottom: 16px; font-size: 13px; line-height: 1.6; color: var(--muted); }
body #site-analytics-consent.is-wengertsberg-consent nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body #site-analytics-consent.is-wengertsberg-consent [data-consent-choice] { min-height: 44px; padding: 8px 14px; border: 1px solid var(--forest); border-radius: 2px; background: transparent; color: var(--forest); font-size: 14px; font-weight: 500; text-decoration: none; }
body #site-analytics-consent.is-wengertsberg-consent [data-consent-choice="allow"] { background: var(--forest); color: var(--cream); }
body #site-analytics-consent.is-wengertsberg-consent nav a { grid-column: 1 / -1; justify-self: start; font-size: 12px; color: var(--muted); }
body #site-analytics-consent.is-wengertsberg-consent [data-consent-close] { position: absolute; top: 3px; right: 3px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--forest); font-size: 24px; text-decoration: none; line-height: 1; }
@media (max-width: 800px) {
  .footer-links { gap: 8px 22px; }
  body #site-analytics-consent.is-wengertsberg-consent section { right: 12px; bottom: 12px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 20px; }
}
