/*
Theme Name: Hauptsache Mensch
Theme URI: https://www.hauptsache-mensch.de
Author: Hauptsache Mensch – Bianka Vetten
Description: Schlankes Block-Theme für die Praxis Hauptsache Mensch. Mit fertigen Seitenvorlagen, Abschnitt-Mustern und lokal eingebundenen Schriften (DSGVO-freundlich, keine Google-Server).
Version: 1.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hauptsache-mensch
*/

html{scroll-behavior:smooth}
body{-webkit-font-smoothing:antialiased;text-wrap:pretty}
h1,h2,h3{text-wrap:balance}
:focus-visible{outline:2px solid #a85d42;outline-offset:3px}
[id]{scroll-margin-top:96px}

/* Kopfbereich */
.hm-header-part{position:sticky;top:0;z-index:50;background:rgba(250,248,244,.95);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-bottom:1px solid #ebe4d8}
.admin-bar .hm-header-part{top:32px}
@media (max-width:782px){.admin-bar .hm-header-part{top:46px}}
.hm-header{padding-top:12px;padding-bottom:12px}
.hm-header .alignwide{gap:24px}
.hm-logo img{height:auto;max-height:56px;width:auto}
.hm-nav{gap:26px;color:#3f3a32}
.hm-nav a{text-decoration:none}
.hm-nav a:hover{color:#7a6526}
.hm-nav .wp-block-navigation__submenu-container{border:1px solid #ebe4d8!important;border-radius:8px;padding:8px 0;background:#fff!important;min-width:280px!important}
.hm-nav .wp-block-navigation__submenu-container a{padding:8px 18px!important;font-weight:600}
.hm-header-cta .wp-block-button__link{padding:11px 22px;font-size:16px}
@media (max-width:1000px){.hm-header .hm-header-cta{display:none}}

/* Abschnitte */
.hm-section{padding-top:clamp(64px,9vw,104px);padding-bottom:clamp(64px,9vw,104px)}
.hm-top{padding-top:clamp(28px,5vw,56px)}
.hm-prose{padding-top:clamp(40px,6vw,72px)}
.hm-prose h2{margin-top:56px}
.hm-prose > h2:first-child{margin-top:0}
.hm-sand{background:#efeae1}
.hm-sage{background:#efeae1}
.hm-dark{background:#272320;color:#faf8f4}
.hm-dark :is(h1,h2,h3){color:#fff}
.hm-dark a:not(.wp-element-button){color:#e3a88e}
.hm-dark .hm-small{color:#bfb5a6}
.hm-dark .is-style-outline .wp-block-button__link{color:#fff;border-color:#6f6558}
.hm-cta p{max-width:560px;margin-left:auto;margin-right:auto;color:#d8d0c3}
.hm-center{justify-content:center}
.hm-mt{margin-top:48px!important}

/* Text */
.hm-eyebrow{font-size:13px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#7a6526;margin-bottom:-6px!important}
.hm-lead{font-size:clamp(19px,2vw,22px);line-height:1.55;color:#3f3a32}
.hm-intro{max-width:680px}
.hm-small{font-size:15px;color:#6f6558}
.hm-muted{font-weight:400;color:#6f6558;font-size:15px}
.hm-role{font-weight:700;color:#7a6526;margin-top:4px!important}
.hm-pullquote{border-left:2px solid #a85d42;padding-left:20px;font-family:var(--wp--preset--font-family--newsreader);font-style:italic;font-size:22px;line-height:1.4}
.hm-crumbs{font-size:14px;color:#6f6558;margin-bottom:28px!important}
.hm-crumbs a{color:#6f6558}
.hm-label{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#6f6558;margin-top:28px!important;margin-bottom:-14px!important}
.hm-info{font-family:var(--wp--preset--font-family--newsreader);font-size:21px;line-height:1.4}
.hm-more{font-weight:700;margin-top:auto!important}
.hm-todo{background:#fff3c4;border:1px dashed #b88a1d;border-radius:6px;padding:14px 16px;font-size:15px;color:#4a3a0e}

/* Karten */
.hm-card{background:#fff;border:1px solid #ebe4d8;border-radius:8px;padding:28px}
.hm-card > *{margin-block:0}
.hm-card > * + *{margin-top:10px}
.hm-card--link{display:flex;flex-direction:column;transition:border-color .2s}
.hm-card--link:hover{border-color:#a85d42}
.hm-card h3 a{color:inherit;text-decoration:none}
.hm-card h3 a:hover{color:#7a6526}
.hm-card ul{padding-left:20px;font-size:16px;color:#4a443b}
.hm-card-label{font-size:13px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#6f6558}
.hm-principle{border-top:2px solid #a85d42;padding-top:18px}
.hm-principle > *{margin-block:0}.hm-principle > * + *{margin-top:8px}
.hm-step{background:#efeae1;border-radius:6px;padding:22px}
.hm-sand .hm-step{background:#fff}
.hm-step > *{margin-block:0}.hm-step > * + *{margin-top:6px}
.hm-num{font-family:var(--wp--preset--font-family--newsreader);font-size:34px;line-height:1;color:#a85d42}
.hm-steps-list{display:grid;gap:14px}
.hm-note{border-left:3px solid #a85d42;background:#efeae1;padding:20px 22px;border-radius:0 6px 6px 0;color:#3f3a32}
.hm-note > p{margin:0}
.hm-quote{background:#fff;border-radius:6px;padding:26px;display:flex;flex-direction:column}
.hm-quote-text{font-family:var(--wp--preset--font-family--newsreader);font-size:20px;line-height:1.45;margin:0}
.hm-name{font-size:14px;font-weight:800;color:#7a6526;margin-top:auto!important;padding-top:14px}
.hm-author{margin-top:56px!important;gap:20px}
.hm-author p{margin:0}
.hm-avatar{flex:none;margin:0!important}
.hm-avatar img{width:72px;height:72px;border-radius:50%;object-fit:cover}
.hm-portrait img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:6px}
.hm-featured img{border-radius:6px}
.hm-hero{gap:clamp(32px,5vw,64px)}
.hm-about{align-items:center}

/* Listen */
.hm-checks{list-style:none;padding:0;display:grid;gap:12px}
.hm-checks li{position:relative;padding-left:30px}
.hm-checks li::before{content:"";position:absolute;left:0;top:.62em;width:16px;height:2px;background:#a85d42}
ul.hm-chips{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:8px}
ul.hm-chips li{font-size:15px;font-weight:600;color:#4a443b;background:#fff;border:1px solid #e3dccf;border-radius:30px;padding:7px 15px}

/* Tabellen */
.hm-prices table,.hm-quali table{width:100%;border-collapse:collapse}
.hm-prices td,.hm-quali td{border:0;border-bottom:1px solid #d9d0c1;padding:16px 0;vertical-align:top}
.hm-prices tr:first-child td,.hm-quali tr:first-child td{border-top:1px solid #d9d0c1}
.hm-prices td:last-child{text-align:right;font-weight:700;white-space:nowrap;padding-left:16px}
.hm-quali td:first-child{width:150px;font-weight:800;color:#7a6526;font-size:15px;padding-right:20px}
@media (max-width:600px){.hm-quali td{display:block;width:auto!important;border-bottom:0;padding:4px 0}.hm-quali tr{display:block;border-bottom:1px solid #d9d0c1;padding:12px 0}.hm-quali tr:first-child td{border-top:0}}

/* FAQ */
.hm-faq{border-top:1px solid #e3dccf}
.hm-faq .wp-block-details{border-bottom:1px solid #e3dccf;margin:0}
.hm-faq summary{cursor:pointer;list-style:none;padding:20px 0;font-family:var(--wp--preset--font-family--newsreader);font-size:21px;display:flex;justify-content:space-between;gap:16px}
.hm-faq summary::-webkit-details-marker{display:none}
.hm-faq summary::after{content:"+";color:#a85d42;font-size:26px;line-height:1}
.hm-faq details[open] summary::after{content:"–"}
.hm-faq details > p{margin:0 0 20px;color:#4a443b}

/* Ratgeber */
.hm-post-list{display:grid;gap:16px;list-style:none;padding:0}
.hm-post-list h2{font-size:26px;margin:6px 0}
.hm-post-list h2 a{text-decoration:none;color:inherit}

/* Fußbereich */
.hm-footer{background:#1f1c1a;color:#d8d0c3;font-size:15px;padding-top:48px;padding-bottom:48px}
.hm-footer a{color:#d8d0c3}
.hm-footer a:hover{color:#fff}
.hm-footer strong{color:#fff;font-family:var(--wp--preset--font-family--newsreader);font-size:20px;font-weight:500}
.hm-footer-label{font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#bfb5a6;margin-bottom:-10px!important}
.hm-crisis{margin-top:32px!important;color:#bfb5a6}
.hm-footer-bottom{border-top:1px solid #3a3531;margin-top:20px!important;padding-top:20px}
.hm-footer-bottom p{margin:0}

/* Feste Leiste auf dem Handy */
.hm-mobilebar{display:none}
@media (max-width:781px){
 .hm-mobilebar{display:block;position:fixed;left:0;right:0;bottom:0;z-index:60;background:rgba(250,248,244,.97);border-top:1px solid #ebe4d8;padding:10px 16px calc(10px + env(safe-area-inset-bottom))}
 .hm-mobilebar .wp-block-buttons{flex-wrap:nowrap;gap:10px}
 .hm-mobilebar .wp-block-button:first-child{flex:1}
 .hm-mobilebar .wp-block-button__link{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;padding:10px 18px}
 body{padding-bottom:80px}
 .hm-buttons-stack .wp-block-button{width:100%}
}
.hm-full .wp-block-button{width:100%}
.hm-full .wp-block-button__link{width:100%;min-height:56px}
.wp-block-button__link{min-height:52px;display:inline-flex;align-items:center;justify-content:center}

/* Editor-Hilfe: leere Bildplätze sichtbar machen */
.editor-styles-wrapper .hm-portrait:not(:has(img[src])){min-height:280px;background:#e6ded1;border-radius:6px}

/* Ratgeber */
.hm-summary{border-left:3px solid #a85d42;border-radius:0 8px 8px 0}
.hm-summary .hm-lead{font-size:19px;color:#272320}
ul.hm-related{list-style:none;padding:0;border-top:1px solid #e3dccf}
ul.hm-related li{border-bottom:1px solid #e3dccf}
ul.hm-related a{display:flex;justify-content:space-between;gap:16px;padding:16px 0;color:#272320;text-decoration:none;font-family:var(--wp--preset--font-family--newsreader);font-size:20px}
ul.hm-related a::after{content:"→";color:#a85d42}
ul.hm-related a:hover{color:#7a6526}

/* Erfahrungen */
.hm-case{background:#fff;border:1px solid #ebe4d8;border-radius:8px;padding:28px;display:flex;flex-direction:column;gap:18px}
.hm-case p{margin:0}
.hm-case > .wp-block-group > * + *{margin-top:6px}
.hm-case-tag{font-size:13px;font-weight:800;letter-spacing:.08em;color:#7a6526}
.hm-case-label{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#6f6558}
.hm-case .hm-case-label + p{font-size:16px;line-height:1.55;color:#3f3a32}
.hm-case-res{border-top:2px solid #a85d42;padding-top:16px}
.hm-case-res .hm-case-label{color:#8f4c34}
.hm-case p.hm-case-result{font-family:var(--wp--preset--font-family--newsreader);font-size:21px;line-height:1.4;color:#272320}
.hm-case-who{margin-top:auto!important;font-size:14px;font-weight:700;color:#5d564c}

/* Karussell Erfahrungen (manuell, kein Autoplay) */
.hm-carousel{display:flex!important;flex-wrap:nowrap!important;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:2px 2px 18px;scrollbar-width:thin;scrollbar-color:#ccb878 transparent}
.hm-carousel > .hm-case{flex:0 0 min(86%,360px);scroll-snap-align:start}
.hm-carousel-nav{display:flex;gap:10px;justify-content:flex-end;margin-top:12px}
.hm-carousel-nav button{width:48px;height:48px;border-radius:50%;border:1.5px solid #272320;background:#fff;color:#272320;font-size:20px;cursor:pointer}
.hm-carousel-nav button:hover,.hm-carousel-nav button:focus-visible{background:#ccb878;border-color:#ccb878}
.editor-styles-wrapper .hm-carousel{overflow-x:auto}

.hm-case-stack{display:grid;gap:16px;margin-top:20px}

.hm-step{background:#efeae1;border-radius:6px;padding:20px}
.hm-step p{margin:0}
.hm-step p + p{margin-top:6px}
.hm-step-nr{font-family:var(--wp--preset--font-family--newsreader);font-size:32px;line-height:1;color:#a85d42}

/* Startseite: an die Design-Vorschau angeglichen */
.hm-home h1{font-size:clamp(40px,6vw,70px);line-height:1.04;letter-spacing:-.018em}
.hm-home .hm-lead{max-width:540px}
.hm-home .hm-small{white-space:pre-wrap}
.hm-portrait-col{position:relative;max-width:520px;margin-left:auto;margin-right:auto}
.hm-portrait img{object-position:50% 20%}
.hm-badge{position:absolute;left:-14px;bottom:28px;margin:0!important;background:#fff;border:1px solid #ebe4d8;border-radius:4px;padding:14px 18px;box-shadow:0 10px 30px rgba(39,35,32,.08);font-size:13px;line-height:1.35;color:#6f6558}
.hm-badge strong{display:block;font-family:var(--wp--preset--font-family--newsreader);font-weight:400;font-size:19px;line-height:1.2;color:#272320;margin-bottom:3px}
.hm-badge br{display:none}
@media (max-width:781px){.hm-badge{left:10px;bottom:18px}}
.hm-btn-text .wp-block-button__link{background:none!important;color:#272320;padding:0 4px;border:0;text-decoration:underline;text-underline-offset:3px}
.hm-btn-text .wp-block-button__link:hover{color:#7a6526}
ul.hm-rules{list-style:none;padding:0;margin:0;border-top:1px solid #d9d0c1}
ul.hm-rules li{padding:18px 0;border-bottom:1px solid #d9d0c1;font-family:var(--wp--preset--font-family--newsreader);font-size:21px;line-height:1.4}
.hm-card--link{min-height:210px}
.hm-card--link .hm-eyebrow{letter-spacing:.08em;margin-bottom:0!important}
.hm-card--link h3{font-weight:400;font-size:25px;line-height:1.2}
.hm-card--link p:not(.hm-eyebrow):not(.hm-more){font-size:16px;line-height:1.55;color:#5d564c}
.hm-card--link .hm-more{font-size:15px}
.hm-card--link .hm-more a{text-decoration:none}
.hm-line{border-top:1px solid #ebe4d8}
.hm-line .hm-card{background:#efeae1;border:0;border-radius:6px;padding:22px}
.hm-line .hm-card h3{font-weight:400;font-size:21px}
.hm-white{background:#fff;border-top:1px solid #ebe4d8;border-bottom:1px solid #ebe4d8}
.hm-dark .hm-eyebrow{color:#ccb878}
.hm-dark .hm-principle p{color:#d8d0c3;font-size:17px}
.hm-steps-row{margin-top:40px!important;gap:28px}
.hm-steps-row .hm-step{background:none;border-top:1px solid #d9d0c1;border-radius:0;padding:18px 0 0}
.hm-steps-row .hm-num{font-size:36px}
.hm-steps-row .hm-step strong{font-family:var(--wp--preset--font-family--newsreader);font-weight:500;font-size:23px}
.hm-steps-row .hm-step .hm-small{font-size:16px;color:#5d564c}
.hm-steps-row + .hm-small{margin-top:26px}
.hm-top h2#leistungen{margin-top:clamp(56px,8vw,88px)}
/* Leerer Bildplatz: sichtbar, bis ein Foto eingesetzt ist */
.hm-about > .wp-block-column:first-child:not(:has(img)){aspect-ratio:1/1;max-width:480px;background:#efeae1;border:1px solid #e3dccf;border-radius:6px}
.hm-footer .wp-block-social-links .wp-social-link{background:none;color:#d8d0c3}
.hm-footer .wp-block-social-links .wp-social-link svg{width:26px;height:26px}
.hm-footer .wp-block-social-links .wp-social-link:hover{color:#fff}
