/*
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.0
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 – Homepage is built from normal WordPress blocks.
   Texts, headings, buttons and images can be edited directly in Seite > Bearbeiten. */
.mh-page-content > .entry-content > .wp-block-group.alignfull{padding-left:24px;padding-right:24px}
.mh-editor-section{padding-top:86px;padding-bottom:86px}
.mh-editor-section > .wp-block-group__inner-container{width:min(var(--mh-max),100%);margin-inline:auto}
.mh-hero-editor{padding-top:70px;padding-bottom:80px}
.mh-editor-hero-columns{gap:56px;margin:0 auto!important;max-width:var(--mh-max)}
.mh-editor-hero-columns h1{font-size:clamp(42px,5vw,76px);line-height:1.02;letter-spacing:-.045em;margin:18px 0 28px;color:#20252a}
.mh-editor-hero-columns .has-large-font-size{font-size:19px;color:#5e6266}
.mh-hero-editor-image{margin:0!important}
.mh-hero-editor-image img{width:100%;border-radius:2px}
.mh-editor-section .mh-eyebrow{margin:0;color:var(--mh-yellow);font-size:15px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.mh-editor-section .mh-accent{width:34px;height:3px;background:var(--mh-yellow);margin:24px 0;padding:0;min-height:3px}
.mh-editor-section .wp-block-button__link{background:var(--mh-yellow);color:#16181a;border-radius:0;font-weight:800;padding:15px 24px}
.mh-editor-section.mh-section-light{background:var(--mh-light)}
.mh-product-intro{gap:72px;margin-bottom:52px!important}
.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 .has-large-font-size{margin:4px 0 0;font-size:19px;color:#62666a}
.mh-product-lines{gap:0!important;border-top:1px solid var(--mh-border);border-bottom:1px solid var(--mh-border);margin:0!important}
.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-stats{gap:1px!important;background:var(--mh-border);margin:0!important}
.mh-stat{background:#fff;padding:38px}
.mh-stat h3{margin:0;color:#22272b;font-size:44px;line-height:1}
.mh-stat p{margin:8px 0 0;color:var(--mh-gray);font-weight:700;text-transform:uppercase;font-size:13px;letter-spacing:.06em}
.mh-refs{background:#fff}
.mh-refs > .wp-block-group__inner-container > .wp-block-heading{margin:0 0 12px;font-size:40px;line-height:1.1;letter-spacing:-.03em}
.mh-refs > .wp-block-group__inner-container > .has-text-align-center{color:#62666a}
.mh-ref-grid{gap:1px!important;background:var(--mh-border);margin:46px 0 0!important}
.mh-ref-grid + .mh-ref-grid{margin-top:1px!important}
.mh-ref{background:#fff;min-height:150px;display:flex;align-items:center;justify-content:center;padding:24px}
.mh-ref figure{margin:0;width:100%;text-align:center}
.mh-ref img{max-height:70px;width:auto;filter:grayscale(1);object-fit:contain}
.mh-cta{background:#fff;border:1px solid var(--mh-border);padding:30px 34px;margin-top:46px!important}
.mh-cta p{margin:0}
@media (max-width:1050px){
  .mh-editor-hero-columns{gap:30px}
}
@media (max-width:900px){
  .mh-editor-hero-columns,.mh-product-intro,.mh-product-lines,.mh-stats{display:block!important}
  .mh-editor-hero-columns .wp-block-column,.mh-product-intro .wp-block-column,.mh-product-lines .wp-block-column,.mh-stats .wp-block-column{margin-bottom:30px}
  .mh-product-line{border-right:0;border-bottom:1px solid var(--mh-border)}
  .mh-product-line:last-child{border-bottom:0;margin-bottom:0}
  .mh-ref-grid{display:grid!important;grid-template-columns:repeat(2,1fr)}
  .mh-stats .wp-block-column:last-child{margin-bottom:0}
}
@media (max-width:620px){
  .mh-page-content > .entry-content > .wp-block-group.alignfull{padding-left:15px;padding-right:15px}
  .mh-editor-section{padding-top:60px;padding-bottom:60px}
  .mh-hero-editor{padding-top:45px;padding-bottom:55px}
  .mh-editor-hero-columns h1{font-size:43px}
  .mh-ref-grid{grid-template-columns:1fr 1fr}
}


/* v1.6 – Homepage and footer content is stored in the actual Startseite page.
   Everything inside the page can be edited with WordPress blocks. */
.mh-page-content .entry-content{width:100%;max-width:none;margin:0}
.mh-page-content .entry-content > .wp-block-group.alignfull{width:100%;margin-left:0;margin-right:0;padding-left:24px;padding-right:24px}
.mh-editor-section > .wp-block-group__inner-container,
.mh-editor-section > .wp-block-columns,
.mh-editor-section > .wp-block-group__inner-container > .wp-block-columns{width:min(var(--mh-max),100%);margin-left:auto!important;margin-right:auto!important}
.mh-hero-editor{padding-top:72px;padding-bottom:82px}
.mh-editor-hero-columns{max-width:var(--mh-max);gap:64px!important}
.mh-editor-hero-columns h1{max-width:700px}
.mh-editor-hero-columns .has-large-font-size{max-width:650px}
.mh-hero-editor-image{overflow:hidden}
.mh-hero-editor-image img{display:block;width:100%;height:auto}
.mh-section-light .wp-block-group__inner-container{padding-left:0;padding-right:0}
.mh-product-intro{gap:80px!important}
.mh-product-intro .wp-block-column:last-child{padding-left:24px;padding-right:48px}
.mh-product-intro .has-large-font-size{max-width:620px;margin-left:auto}
.mh-refs{padding-top:90px;padding-bottom:70px}
.mh-ref-grid{max-width:var(--mh-max);margin-left:auto!important;margin-right:auto!important}
.mh-ref{min-height:145px}
.mh-ref .wp-block-image{margin:0;width:100%}
.mh-ref img{max-width:190px;max-height:62px}
.mh-contact-section{padding-top:0!important;padding-bottom:90px!important}
.mh-contact-box{max-width:var(--mh-max);margin:0 auto!important;padding:34px 40px;border:1px solid var(--mh-border);background:#fff;border-radius:8px}
.mh-contact-box .wp-block-columns{margin:0!important;align-items:center}
.mh-contact-box .wp-block-button__link{border-radius:999px;padding:15px 28px}
.mh-site-footer{background:var(--mh-dark-gray);color:#fff;padding:72px 24px 28px}
.mh-site-footer > .wp-block-group__inner-container{width:min(var(--mh-max),100%);margin-inline:auto}
.mh-footer-editable-grid{gap:48px!important;margin:0!important}
.mh-footer-editable-grid h3{margin:0 0 16px;color:#fff;font-size:14px;letter-spacing:.08em;text-transform:uppercase}
.mh-footer-editable-grid p,.mh-footer-editable-grid a{color:#d7d9db}
.mh-footer-editable-grid a{text-decoration:none}
.mh-footer-editable-grid a:hover{color:var(--mh-yellow)}
.mh-site-footer .wp-block-separator{border-color:rgba(255,255,255,.18);margin:44px 0 20px}
.mh-footer-copy{margin:0!important;color:#aeb3b7;font-size:13px}
@media(max-width:900px){
  .mh-editor-hero-columns{gap:34px!important}
  .mh-product-intro .wp-block-column:last-child{padding-left:0;padding-right:0}
  .mh-product-intro .has-large-font-size{margin-left:0}
  .mh-contact-box{padding:28px}
}
