/*
Theme Name: Humanus
Description: Block-Theme für die Humanus Holding AG: feste Seitenleiste links, Vollbild-Hero-Slider, Mehrsprachigkeit (DE/EN/RU/CZ) ohne Plugin. PHP 7.4 bis 8.4.
Version: 1.2.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: humanus
*/

:root { --sidebar-w: 304px; --hm-orange: #ff6a13; --hm-dark: #1b1b1b; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: 0.2em; }
:where(a, button):focus-visible { outline: 3px solid var(--hm-orange); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Seitenleiste ---------- */
.hm-sidebar { background: var(--hm-dark); color: #fff; text-align: center; }
.hm-sidebar a { color: #fff; text-decoration: none; }
.hm-bar { padding: 1.5rem 1rem 1.25rem; }
.hm-logo { display: inline-block; }
.hm-logo img { display: block; width: 150px; height: auto; margin: 0 auto; }
.hm-toggle { display: none; }
.hm-nav { list-style: none; margin: 0; padding: 0; }
.hm-nav li { border-top: 1px dashed var(--wp--preset--color--line); }
.hm-nav li:last-child { border-bottom: 1px dashed var(--wp--preset--color--line); }
.hm-nav a { display: block; padding: 0.8rem 0.5rem; text-transform: uppercase; font-weight: 500; }
.hm-nav a:hover, .hm-nav .is-current a { color: var(--hm-orange); }
.hm-lang { margin: 1.25rem 0 0; }
.hm-lang a { display: inline-block; padding: 0 0.4rem; font-size: 0.9rem; color: #c9c9c9; }
.hm-lang a:hover, .hm-lang a[aria-current] { color: var(--hm-orange); }
.hm-contact { margin: 2.5rem 0 0.5rem; line-height: 1.9; font-size: 0.95rem; color: #9a9a9a; }
.hm-contact a { color: #9a9a9a; }
.hm-contact a:hover { color: var(--hm-orange); }
.hm-contact svg { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.1em; margin-right: 0.35em; }
.hm-foot { margin: 2rem 0 0; padding: 1.5rem 0; border-top: 1px dashed var(--wp--preset--color--line); font-size: 0.75rem; color: #9a9a9a; }

@media (min-width: 701px) {
  body { padding-left: var(--sidebar-w); }
  .hm-sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidebar-w); overflow-y: auto; display: flex; flex-direction: column; z-index: 40; }
  .admin-bar .hm-sidebar { top: 32px; }
  .hm-panel { display: flex; flex-direction: column; flex: 1 1 auto; }
  .hm-contact { margin-top: auto; padding-top: 2.5rem; }
}
@media (min-width: 701px) and (max-width: 1000px) { :root { --sidebar-w: 240px; } }
@media (max-width: 700px) {
  .hm-sidebar { position: sticky; top: 0; z-index: 50; }
  .admin-bar .hm-sidebar { top: 46px; }
  .hm-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 1rem; }
  .hm-logo img { width: 90px; margin: 0; }
  .hm-toggle { display: block; background: none; border: 1px solid var(--wp--preset--color--line); color: #fff; padding: 0.4rem; cursor: pointer; }
  .hm-toggle svg { display: block; width: 1.6rem; height: 1.6rem; fill: currentColor; }
  .hm-panel { display: none; padding-bottom: 1rem; }
  .hm-sidebar.is-open .hm-panel { display: block; }
}

/* ---------- Hero-Slider ---------- */
.hm-hero { position: relative; height: 100vh; min-height: 520px; overflow: hidden; background: #0d3340; }
.hm-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0.9s; }
.hm-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hm-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-cap { position: absolute; left: 0; right: 0; bottom: 0; }
.hm-label { width: fit-content; margin: 0 0 0 auto; background: var(--hm-orange); color: #fff; text-transform: uppercase; font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.6rem); padding: 1.2rem 3rem; }
.hm-band { background: rgba(27, 27, 27, 0.84); color: #fff; text-align: center; padding: 2rem 1.25rem 3.25rem; }
.hm-title { margin: 0 0 1.25rem; text-transform: uppercase; font-weight: 300; line-height: 1.2; font-size: clamp(1.5rem, 1rem + 2vw, 2.9rem); }
.hm-sub { margin: 0 auto; max-width: 52rem; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.4rem); }
.hm-dots { position: absolute; top: 1.25rem; right: 1.5rem; z-index: 5; display: flex; gap: 0.6rem; }
.hm-dots button { width: 1.1rem; height: 1.1rem; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.hm-dots button[aria-current] { background: #fff; }
@media (prefers-reduced-motion: reduce) { .hm-slide { transition: none; } html { scroll-behavior: auto; } }
@media (max-width: 700px) {
  .hm-hero { height: 78vh; min-height: 420px; }
  .hm-label { padding: 0.8rem 1.5rem; }
  .hm-band { padding: 1.25rem 1rem 2.25rem; }
}

/* ---------- Karten ---------- */
.hm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; padding: 3.5rem 1.25rem 1rem; }
.hm-card { border-top: 4px solid var(--hm-orange); background: var(--wp--preset--color--mist); padding: 1.75rem; }
.hm-card h2 { margin: 0 0 0.75rem; font-size: 1.25rem; text-transform: uppercase; font-weight: 500; }
.hm-card p { margin: 0 0 1rem; }
.hm-card a { font-weight: 600; }

/* ---------- Inhalt ---------- */
.page-pad { padding-left: 1.25rem; padding-right: 1.25rem; }
.hm-main { padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-bottom: clamp(3rem, 2.5rem + 3vw, 6rem); }
.hm-main .wp-block-heading { margin-top: 2rem; }
.wp-block-quote { border-left: 4px solid var(--hm-orange); padding-left: 1.25rem; margin-left: 0; }
.wp-block-table td { padding: 0.4rem 1rem 0.4rem 0; border: 0; }
.wp-block-table table { width: auto; }
.wp-block-list li { margin-bottom: 0.25rem; }

/* ---------- Fusszeile ---------- */
.hm-footer { background: var(--hm-dark); color: #c9c9c9; padding: 3rem 1.25rem; }
.hm-footer-in { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.hm-footer h2 { color: #fff; font-size: 1.1rem; text-transform: uppercase; font-weight: 500; margin: 0 0 0.75rem; }
.hm-footer ul { list-style: none; margin: 0; padding: 0; }
.hm-footer a { color: #fff; text-decoration: none; }
.hm-footer a:hover { color: var(--hm-orange); text-decoration: underline; }
