/*
Theme Name: MEDIENHAUS Clean
Theme URI: https://medienhaus.de/
Author: MEDIENHAUS
Description: Schlankes, editierbares WordPress-Theme für MEDIENHAUS – Targeted Audience Advertising.
Version: 1.6.2
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: medienhaus-clean
*/

:root{
  --mh-yellow:#f9b900;
  --mh-anthracite:#35383b;
  --mh-dark-gray:#2f3235;
  --mh-gray:#6d7074;
  --mh-light:#f4f5f6;
  --mh-border:#e3e5e7;
  --mh-white:#fff;
  --mh-max:1240px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--mh-anthracite);
  background:#fff;
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.6;
}
a{color:inherit}
img{max-width:100%;height:auto}
.mh-container{width:min(var(--mh-max),calc(100% - 48px));margin-inline:auto}
.mh-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid rgba(53,56,59,.08);
}
.mh-header-inner{
  min-height:92px;
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  align-items:center;
  column-gap:42px;
}
.mh-logo{display:block;width:280px;max-width:280px}
.mh-logo img{display:block;width:100%;height:auto}
.mh-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:30px;
  min-width:0;
  white-space:nowrap;
}
.mh-nav a{
  text-decoration:none;font-size:14px;font-weight:700;letter-spacing:.01em;
  padding:34px 0;position:relative;
}
.mh-nav a:hover,.mh-nav .current-menu-item>a{color:var(--mh-yellow)}
.mh-nav .current-menu-item>a:after{
  content:"";position:absolute;left:0;right:0;bottom:20px;height:3px;background:var(--mh-yellow);
}
.mh-main{min-height:60vh}
.mh-hero{
  display:grid;grid-template-columns:1fr 1.35fr;align-items:center;gap:56px;
  padding:70px 0 80px;
}
.mh-eyebrow{
  color:var(--mh-yellow);font-size:15px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
}
.mh-hero h1{
  font-size:clamp(42px,5vw,76px);line-height:1.02;letter-spacing:-.045em;margin:18px 0 28px;
  color:#20252a;
}
.mh-hero p{font-size:19px;max-width:610px;color:#5e6266}
.mh-accent{width:34px;height:3px;background:var(--mh-yellow);margin:24px 0}
.mh-btn{
  display:inline-flex;align-items:center;gap:12px;margin-top:18px;padding:15px 24px;
  background:var(--mh-yellow);color:#16181a;text-decoration:none;font-weight:800;
}
.mh-btn:hover{filter:brightness(.96)}
.mh-section{padding:86px 0}
.mh-section-light{background:var(--mh-light)}
.mh-section-title{text-align:center;margin:0 0 12px;font-size:40px;line-height:1.1;letter-spacing:-.03em}
.mh-section-intro{text-align:center;max-width:760px;margin:0 auto 46px;color:#62666a}
.mh-grid{display:grid;gap:24px}
.mh-products{grid-template-columns:repeat(3,1fr)}
.mh-card{
  border:1px solid var(--mh-border);background:#fff;padding:34px;border-radius:8px;
}
.mh-card h3{font-size:22px;margin:0 0 22px}
.mh-product-link{
  display:flex;justify-content:space-between;align-items:center;padding:15px 0;
  border-top:1px solid var(--mh-border);text-decoration:none;font-weight:600;
}
.mh-product-link span:last-child{color:var(--mh-yellow);font-size:22px}
.mh-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--mh-border)}
.mh-stat{background:#fff;padding:38px}
.mh-stat strong{display:block;font-size:44px;line-height:1;color:#22272b}
.mh-stat span{display:block;margin-top:8px;color:var(--mh-gray);font-weight:700;text-transform:uppercase;font-size:13px;letter-spacing:.06em}
.mh-refs{background:#fff}
.mh-ref-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--mh-border)}
.mh-ref{background:#fff;min-height:120px;display:flex;align-items:center;justify-content:center;padding:24px;filter:grayscale(1)}
.mh-cta{background:#fff;border:1px solid var(--mh-border);padding:30px 34px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.mh-footer{background:var(--mh-dark-gray);color:#fff;margin-top:0;padding:62px 0 26px}
.mh-footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1.2fr 1fr;gap:50px}
.mh-footer h3{font-size:14px;text-transform:uppercase;letter-spacing:.08em;margin:0 0 18px}
.mh-footer a{color:#fff;text-decoration:none;opacity:.9}
.mh-footer a:hover{color:var(--mh-yellow)}
.mh-footer p{color:#d7d9db}
.mh-footer-bottom{border-top:1px solid rgba(255,255,255,.15);margin-top:44px;padding-top:20px;color:#c9cccf;font-size:13px}
.entry-content{font-size:18px}
.entry-content h1,.entry-content h2,.entry-content h3{line-height:1.15;color:#22272b}
.entry-content a{color:#22272b}
.wp-block-button__link{background:var(--mh-yellow);color:#16181a}
@media (max-width:1050px){
  .mh-header-inner{grid-template-columns:235px minmax(0,1fr);column-gap:24px;min-height:76px}
  .mh-logo{width:235px;max-width:235px}
  .mh-nav{gap:18px}
  .mh-nav a{padding:26px 0;font-size:12px}
  .mh-hero{grid-template-columns:1fr;padding:50px 0 60px}
  .mh-products{grid-template-columns:1fr}
  .mh-stats{grid-template-columns:1fr}
  .mh-ref-grid{grid-template-columns:repeat(2,1fr)}
  .mh-footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:620px){
  .mh-container{width:min(var(--mh-max),calc(100% - 30px))}
  .mh-header-inner{align-items:flex-start;padding:16px 0;flex-direction:column}
  .mh-nav{width:100%;overflow:auto;gap:22px}
  .mh-nav a{padding:8px 0;white-space:nowrap}.mh-nav .current-menu-item>a:after{bottom:0}
  .mh-hero h1{font-size:43px}.mh-hero p{font-size:17px}
  .mh-section{padding:60px 0}.mh-section-title{font-size:32px}
  .mh-ref-grid{grid-template-columns:1fr 1fr}
  .mh-cta{align-items:flex-start;flex-direction:column}
  .mh-footer-grid{grid-template-columns:1fr}
}

/* v1.3 – clean product intro */
.mh-product-intro{
  display:grid;
  grid-template-columns:1fr 1.35fr;
  gap:72px;
  align-items:start;
  margin-bottom:52px;
}
.mh-product-intro h2{
  margin:0;
  font-size:clamp(36px,4.5vw,58px);
  line-height:1.04;
  letter-spacing:-.04em;
  color:#22272b;
}
.mh-product-intro p{
  margin:4px 0 0;
  font-size:19px;
  color:#62666a;
  max-width:700px;
}
.mh-product-lines{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--mh-border);
  border-bottom:1px solid var(--mh-border);
}
.mh-product-line{
  padding:30px 30px 34px;
  border-right:1px solid var(--mh-border);
}
.mh-product-line:last-child{border-right:0}
.mh-product-line h3{
  margin:0 0 16px;
  font-size:14px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#22272b;
}
.mh-product-line p{
  margin:0;
  color:#6d7074;
  line-height:1.8;
}
.mh-product-line strong{color:#35383b}
@media (max-width:900px){
  .mh-product-intro{grid-template-columns:1fr;gap:22px}
  .mh-product-lines{grid-template-columns:1fr}
  .mh-product-line{border-right:0;border-bottom:1px solid var(--mh-border)}
  .mh-product-line:last-child{border-bottom:0}
}

/* v1.4 – real reference names from the current MEDIENHAUS reference selection */
.mh-ref-name{
  background:#fff;
  min-height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  text-align:center;
  font-size:16px;
  font-weight:800;
  letter-spacing:.01em;
  color:#35383b;
  border:0;
}
.mh-ref-name span{max-width:190px}
.mh-ref-name:hover{color:#22272b}

/* v1.5 – reference logos supplied by client */
.mh-reference-logos{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  align-items:stretch;
}
.mh-reference-logo{
  background:#fff;
  border:1px solid var(--mh-border);
  min-height:130px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
}
.mh-reference-logo img{
  display:block;
  width:100%;
  height:auto;
  max-height:92px;
  object-fit:contain;
}
@media (max-width:900px){
  .mh-reference-logos{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:560px){
  .mh-reference-logos{grid-template-columns:1fr}
}

/* v1.6 – homepage is editable in Gutenberg */
.mh-editor-section{padding:86px 0}
.mh-editor-hero{padding:70px 0 80px}
.mh-editor-hero .wp-block-columns{gap:58px;align-items:center!important}
.mh-editor-hero h1{font-size:clamp(44px,5vw,68px);line-height:1.02;letter-spacing:-.045em;margin:12px 0 18px}
.mh-editor-hero p{font-size:19px;line-height:1.7;color:#5e6266}
.mh-editor-hero img{width:100%;border-radius:2px}
.mh-editor-section .wp-block-heading{color:#22272b}
.mh-editor-section .wp-block-columns{gap:28px}
.mh-product-column{padding:30px;border-top:1px solid var(--mh-border);border-bottom:1px solid var(--mh-border)}
.mh-product-column h3{font-size:14px;text-transform:uppercase;letter-spacing:.08em;margin-top:0}
.mh-product-column p{color:#62666a;line-height:1.8}
.mh-stat-row{padding:26px 0;border-top:1px solid var(--mh-border);border-bottom:1px solid var(--mh-border)}
.mh-stat-row .wp-block-column{border-right:1px solid var(--mh-border);padding:0 28px}
.mh-stat-row .wp-block-column:last-child{border-right:0}
.mh-stat-number{font-size:38px;font-weight:800;line-height:1;margin-bottom:8px}
.mh-stat-label{color:#62666a}
.mh-reference-logo-grid{gap:18px!important}
.mh-reference-logo-grid .wp-block-image{background:#fff;border:1px solid var(--mh-border);min-height:120px;display:flex;align-items:center;justify-content:center;padding:12px 18px;margin:0}
.mh-reference-logo-grid .wp-block-image img{max-height:82px;width:auto;object-fit:contain}
.mh-reference-logo-grid figcaption{display:none}
.mh-editor-cta{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:30px 34px;background:#f5f5f3}
.mh-editor-cta p{margin:0;color:#62666a}
@media (max-width:900px){
  .mh-editor-hero{padding:50px 0 60px}
  .mh-editor-hero .wp-block-columns{gap:30px}
  .mh-stat-row .wp-block-column{border-right:0;border-bottom:1px solid var(--mh-border);padding:18px 0}
  .mh-stat-row .wp-block-column:last-child{border-bottom:0}
  .mh-editor-cta{display:block}
  .mh-editor-cta .wp-block-button{margin-top:20px}
}
