/*
Theme Name: Public Media Group
Theme URI: https://www.public-media-group.de/
Author: Public Media Group
Description: Schlankes, redaktionell geprägtes Corporate Theme für die Public Media Group GmbH.
Version: 0.8.0
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: pmg
*/

:root{
  --pmg-red:#C93C2B;
  --pmg-ink:#34383D;
  --pmg-muted:#6B747C;
  --pmg-paper:#FBFAF7;
  --pmg-white:#FFFFFF;
  --pmg-line:#E9E5DF;
  --pmg-max:1240px;
  --pmg-serif:Georgia,"Times New Roman",serif;
  --pmg-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,Helvetica,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--pmg-white);color:var(--pmg-ink);font-family:var(--pmg-sans);font-size:18px;line-height:1.65}
a{color:inherit;text-decoration:none}
a:hover{color:var(--pmg-red)}
img{max-width:100%;height:auto;display:block}
.container{width:min(calc(100% - 48px),var(--pmg-max));margin-inline:auto}
.site-header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid rgba(21,32,42,.08)}
.header-inner{min-height:94px;display:flex;align-items:center;gap:32px;justify-content:space-between}
.brand img{width:min(360px,42vw);max-height:70px;object-fit:contain;object-position:left center}
.site-nav ul{display:flex;gap:30px;align-items:center;list-style:none;margin:0;padding:0;font-size:14px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.site-nav a{padding:35px 0 31px;border-bottom:3px solid transparent}
.site-nav a:hover,.site-nav .current-menu-item>a{border-bottom-color:var(--pmg-red);color:var(--pmg-ink)}
.hero{background:linear-gradient(90deg,var(--pmg-paper) 0 55%,#eeeae4 55% 100%);min-height:650px;display:grid;align-items:center}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:64px;align-items:center}
.kicker{font-size:13px;text-transform:uppercase;letter-spacing:.14em;font-weight:800;color:var(--pmg-red);margin-bottom:20px}
h1,h2,h3{font-family:var(--pmg-serif);font-weight:500;letter-spacing:-.025em;line-height:1.04;margin:0}
h1{font-size:clamp(58px,7vw,106px)}
h2{font-size:clamp(42px,5vw,70px)}
h3{font-size:30px}
.hero .lead{font-size:clamp(20px,2vw,27px);max-width:720px;margin:34px 0 0;line-height:1.45}
.red{color:var(--pmg-red)}
.rule{width:64px;height:4px;background:var(--pmg-red);margin:28px 0}
.hero-visual{min-height:480px;position:relative;border-left:1px solid var(--pmg-line);overflow:hidden}
.hero-visual::before{content:"";position:absolute;inset:0;background:
  radial-gradient(circle at 68% 33%,rgba(255,255,255,.95),rgba(255,255,255,0) 8%),
  linear-gradient(132deg,rgba(201,60,43,0) 45%,rgba(201,60,43,.08) 46%,rgba(21,32,42,.06) 100%)}
.hero-visual::after{content:"";position:absolute;right:12%;top:16%;width:2px;height:66%;background:var(--pmg-ink);box-shadow:0 0 0 1px rgba(21,32,42,.05)}
.spotlight{position:absolute;right:10%;top:8%;width:60%;height:68%;background:conic-gradient(from 218deg at 100% 8%,rgba(255,255,255,0),rgba(255,255,255,.82),rgba(255,255,255,0) 28%);filter:blur(4px);transform:rotate(-7deg)}
.section{padding:110px 0}
.section.alt{background:var(--pmg-paper)}
.section.dark{background:#3A3D42;color:white}
.section-head{display:grid;grid-template-columns:.85fr 1.15fr;gap:72px;align-items:start;margin-bottom:70px}
.section-head p{margin:0;font-size:21px}
.cards{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--pmg-line);border-bottom:1px solid var(--pmg-line)}
.card{padding:36px 28px 42px;border-right:1px solid var(--pmg-line)}
.card:last-child{border-right:0}
.card-num{font-size:13px;font-weight:800;color:var(--pmg-red);letter-spacing:.12em;margin-bottom:22px}
.card p{font-size:16px;color:var(--pmg-muted);margin:16px 0 0}
.statement{font-family:var(--pmg-serif);font-size:clamp(42px,6vw,78px);line-height:1.05;max-width:1100px}
.statement span{color:var(--pmg-red)}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:start}
.copy p:first-child{margin-top:0}
.copy strong{color:var(--pmg-ink)}
.quote{padding:54px;border-left:5px solid var(--pmg-red);background:#fff}
.quote p{font-family:var(--pmg-serif);font-size:34px;line-height:1.25;margin:0}
.profile-hero{padding:90px 0;background:var(--pmg-paper)}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:72px;align-items:center}
.profile-photo{aspect-ratio:4/5;background:linear-gradient(145deg,#ece8e2,#d8d3cc);display:flex;align-items:center;justify-content:center;color:#7d746a;font-size:15px;text-transform:uppercase;letter-spacing:.12em}
.profile-meta{font-size:20px;line-height:1.55;max-width:640px}
.timeline{display:grid;gap:0;border-top:1px solid var(--pmg-line)}
.timeline-row{display:grid;grid-template-columns:180px 1fr;gap:32px;padding:24px 0;border-bottom:1px solid var(--pmg-line)}
.timeline-row strong{font-family:var(--pmg-serif);font-size:22px}
.client-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.client-card{padding:38px;border:1px solid var(--pmg-line);background:white;min-height:230px}
.client-card p{color:var(--pmg-muted);font-size:16px}
.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.team-card{background:var(--pmg-paper);padding:28px}
.team-photo{aspect-ratio:1/1;background:#e7e2dc;margin-bottom:24px}
.contact-panel{display:grid;grid-template-columns:1.1fr .9fr;gap:80px}
.contact-list{list-style:none;padding:0;margin:34px 0 0}
.contact-list li{padding:10px 0;border-bottom:1px solid rgba(255,255,255,.18)}
.site-footer{padding:36px 0;border-top:1px solid var(--pmg-line);font-size:14px}
.footer-inner{display:flex;justify-content:space-between;gap:20px;align-items:center;flex-wrap:wrap}
.footer-nav{display:flex;gap:24px}
.legal{max-width:900px}
.legal h2{font-size:38px;margin-top:48px}
.legal h3{font-size:25px;margin-top:34px}
.legal p,.legal li{font-size:17px}
.button{display:inline-block;border:1px solid var(--pmg-red);padding:12px 18px;color:var(--pmg-red);font-weight:700;margin-top:24px}
.button:hover{background:var(--pmg-red);color:white}
@media(max-width:900px){
  .site-nav{display:none}
  .header-inner{min-height:76px}
  .brand img{width:270px}
  .hero{min-height:auto;padding:72px 0;background:var(--pmg-paper)}
  .hero-grid,.section-head,.two-col,.profile-grid,.contact-panel{grid-template-columns:1fr}
  .hero-visual{min-height:240px;border-left:0;border-top:1px solid var(--pmg-line)}
  .cards,.client-grid,.team-grid{grid-template-columns:1fr 1fr}
  .section{padding:76px 0}
}
@media(max-width:600px){
  .container{width:min(calc(100% - 32px),var(--pmg-max))}
  body{font-size:17px}
  .cards,.client-grid,.team-grid{grid-template-columns:1fr}
  .card{border-right:0;border-bottom:1px solid var(--pmg-line)}
  .timeline-row{grid-template-columns:1fr;gap:4px}
  h1{font-size:52px}
}

/* v0.3 visual refinements */
.hero{background:#3f4247 url('assets/images/hero-stage.jpg') center/cover no-repeat;color:white;position:relative}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(49,52,57,.93) 0%,rgba(49,52,57,.74) 46%,rgba(49,52,57,.18) 76%,rgba(49,52,57,.05) 100%)}
.hero .container{position:relative;z-index:1}
.hero-visual{display:none}
.hero-grid{grid-template-columns:1fr;max-width:1000px;margin-left:0}
.hero .lead{max-width:780px;color:rgba(255,255,255,.92)}
.profile-photo{background:none;overflow:hidden}
.profile-photo img{width:100%;height:100%;object-fit:cover}
.team-intro{max-width:920px}
.team-intro p{font-size:21px}
.profile-card-links{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:48px}
.profile-card{display:grid;grid-template-columns:180px 1fr;border:1px solid var(--pmg-line);background:white}
.profile-card img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/5}
.profile-card .pcopy{padding:28px}
@media(max-width:700px){
  .profile-card-links{grid-template-columns:1fr}
  .profile-card{grid-template-columns:140px 1fr}
}

/* v0.4 customer grid and portraits */
.client-grid.six{grid-template-columns:repeat(3,1fr)}
.client-card{display:flex;flex-direction:column;gap:18px}
.client-logo-placeholder{
  min-height:86px;border:1px dashed #CFC9C2;background:#fff;
  display:flex;align-items:center;justify-content:center;text-align:center;
  padding:18px;font-weight:800;letter-spacing:.02em;color:#34383D;
}
.client-logo-placeholder small{display:block;font-weight:500;color:#8A837B;margin-top:4px}
.client-card p{margin:0}
@media(max-width:900px){.client-grid.six{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.client-grid.six{grid-template-columns:1fr}}

/* v0.5 corrections */
.hero .container{
  width:min(calc(100% - 96px),var(--pmg-max));
  margin-inline:auto;
}
.profile-photo{
  background:#555b66;
  overflow:hidden;
}
.profile-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.profile-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.profile-card.jens img{
  object-position:72% center;
}
.profile-card.katharina img{
  object-position:center center;
}
.profile-photo.jens img{
  object-position:72% center;
}
.profile-photo.katharina img{
  object-position:center center;
}
.kunden-subline{
  font-family:var(--pmg-serif);
  font-size:clamp(34px,3.3vw,52px);
  line-height:1.12;
  margin:28px 0 16px;
  color:var(--pmg-ink);
}
.kunden-intro{
  max-width:760px;
  font-size:20px;
}
@media(max-width:700px){
  .hero .container{width:min(calc(100% - 36px),var(--pmg-max));}
}

/* v0.6 — portrait and mobile-navigation fixes */
.nav-toggle{
  display:none;
  width:48px;
  height:48px;
  padding:11px 8px;
  border:0;
  background:transparent;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  height:2px;
  width:30px;
  margin:6px auto;
  background:var(--pmg-ink);
  transition:transform .2s ease, opacity .2s ease;
}
.profile-card{
  min-height:340px;
}
.profile-card > img{
  width:100%;
  height:100%;
  min-height:340px;
  object-fit:cover;
  background:#e6e6e6;
}
.profile-card.jens > img{object-position:72% center}
.profile-card.katharina > img{object-position:center 28%}

.profile-photo{
  min-height:560px;
}
.profile-photo > img{
  width:100%;
  height:100%;
  min-height:560px;
  object-fit:cover;
  background:#e6e6e6;
}
.profile-photo.jens > img{object-position:72% center}
.profile-photo.katharina > img{object-position:center 28%}

.hero .container{
  width:min(calc(100% - 96px),var(--pmg-max));
  margin-inline:auto;
}

@media(max-width:900px){
  .header-inner{
    position:relative;
  }
  .nav-toggle{
    display:block;
    position:relative;
    z-index:41;
    flex:0 0 auto;
  }
  .site-nav{
    display:none !important;
    position:absolute;
    left:-24px;
    right:-24px;
    top:100%;
    z-index:40;
    background:#fff;
    border-top:1px solid var(--pmg-line);
    border-bottom:1px solid var(--pmg-line);
    box-shadow:0 14px 32px rgba(0,0,0,.08);
  }
  body.nav-open .site-nav{
    display:block !important;
  }
  .site-nav ul{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:8px 24px 18px;
  }
  .site-nav li{
    width:100%;
  }
  .site-nav a{
    display:block;
    width:100%;
    padding:15px 0;
    border-bottom:1px solid var(--pmg-line);
  }
  .site-nav li:last-child a{
    border-bottom:0;
  }
  body.nav-open .nav-toggle span:nth-child(1){
    transform:translateY(8px) rotate(45deg);
  }
  body.nav-open .nav-toggle span:nth-child(2){
    opacity:0;
  }
  body.nav-open .nav-toggle span:nth-child(3){
    transform:translateY(-8px) rotate(-45deg);
  }
}
@media(max-width:700px){
  .hero .container{
    width:min(calc(100% - 36px),var(--pmg-max));
  }
  .profile-card{
    grid-template-columns:42% 58%;
  }
  .profile-card > img{
    min-height:300px;
  }
}
