/*
Theme Name: PHPR
Description: Block-Theme für Präzision Härtnerei Polissage Ruch GmbH.
Version: 1.3.0
Text Domain: phpr
*/
:root{--phpr-ink:#2f2e2e;--phpr-muted:#605e5e;--phpr-light:#f2f5f6;--phpr-accent:#476074}
body{margin:0;color:var(--phpr-ink);background:#fff}
.phpr-bar,.phpr-footer{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;padding:1.25rem max(5vw,1.25rem);flex-wrap:wrap}
.phpr-bar{border-bottom:1px solid #dce3e6}.phpr-brand{margin:0;font-weight:900;font-size:1.6rem;letter-spacing:.12em}.phpr-brand a{text-decoration:none}
.phpr-hero{background:var(--phpr-light);color:var(--phpr-ink);display:grid;grid-template-columns:1fr 1fr;align-items:stretch;gap:0;margin:0}
.phpr-hero-copy{padding:clamp(2.5rem,7vw,8rem) max(5vw,1.25rem)}.phpr-hero-copy>p:first-child{font-weight:500;color:var(--phpr-accent);letter-spacing:.07em;text-transform:uppercase;font-size:.85rem}
.phpr-hero h1{font-size:clamp(2.7rem,5.6vw,6rem);line-height:.98;letter-spacing:-.035em;margin:.35em 0}
.phpr-hero figure{margin:0;height:100%;min-height:17rem}.phpr-hero img{display:block;width:100%;height:100%;object-fit:cover}
.phpr-main .wp-block-post-content{margin-block-start:0}.phpr-section,.phpr-page-title{width:min(90%,75rem);margin-inline:auto}.phpr-section{padding-block:clamp(2rem,5vw,5rem);border-bottom:1px solid #e2e8eb}.phpr-section:last-child{border:0}
.phpr-page-title{margin-block:clamp(2rem,6vw,6rem) 0}.phpr-section h2,.phpr-page-title{letter-spacing:-.045em}
.phpr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-block:1.6rem}
.phpr-card{background:var(--phpr-light);padding:1.3rem;border-top:2px solid #476074}.phpr-card figure{margin:0}.phpr-card img{width:100%;aspect-ratio:4/3;object-fit:cover}
.phpr-footer{background:var(--phpr-ink);color:#fff}.phpr-footer a{color:#fff}.phpr-footer p{margin:0}
a:focus-visible,button:focus-visible{outline:3px solid #476074;outline-offset:4px}
@media(max-width:780px){.phpr-hero,.phpr-grid{grid-template-columns:1fr}.phpr-hero figure{height:auto;max-height:26rem}.phpr-hero img{max-height:26rem}.phpr-bar .wp-block-navigation{margin-left:auto}}
.phpr-bar .wp-block-navigation{font-family:"DIN Next",Jost,Helvetica,Arial,sans-serif;font-weight:400}
.phpr-brand img{display:block;height:auto}

@font-face {
  font-family: "PHPR Copperplate";
  src: local("Copperplate Gothic Bold"), local("CopperplateGothic-Bold");
  font-weight: 700;
}
@font-face {
  font-family: "Cinzel";
  src: url("assets/Cinzel.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
.phpr-main h1, .phpr-main h2, .phpr-main h3,
.editor-styles-wrapper h1, .editor-styles-wrapper h2, .editor-styles-wrapper h3 {
  font-family: "PHPR Copperplate", "Copperplate Gothic Bold", Cinzel, Georgia, serif;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.16;
}
.phpr-hero {
  background: #eaf0f3;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 4px solid #476074;
}
.phpr-hero-copy {
  background-image:
    linear-gradient(90deg, #47607415 1px, transparent 1px),
    linear-gradient(#47607415 1px, transparent 1px);
  background-size: 32px 32px;
  padding: clamp(2rem, 5vw, 5.5rem) max(5vw, 1.25rem);
}
.phpr-hero-copy .phpr-hero-logo {
  width: clamp(8rem, 18vw, 13rem);
  height: auto;
  min-height: 0;
  margin: 0 0 1.5rem;
}
.phpr-hero-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.phpr-hero-copy > .phpr-hero-logo + p {
  color: #334d62;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.phpr-hero h1 {
  font-size: clamp(2rem, 3.7vw, 4.5rem);
  max-width: 16ch;
}
.phpr-hero > figure { overflow: hidden; }
.phpr-hero > figure img { height: 100%; object-fit: cover; }
.phpr-card { transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) {
  .phpr-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #16293918; }
}
@media (prefers-reduced-motion: no-preference) {
  .phpr-hero > figure img { animation: phpr-photo-reveal .8s ease-out both; }
  @keyframes phpr-photo-reveal {
    from { opacity: .65; transform: scale(1.035); }
    to { opacity: 1; transform: scale(1); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .phpr-card { transition: none; }
  .phpr-card:hover { transform: none; }
}
@media (max-width: 780px) {
  .phpr-hero { grid-template-columns: minmax(0, 1fr); }
  .phpr-hero > figure { min-height: 0; }
  .phpr-hero > figure img { aspect-ratio: 16 / 10; }
}

:root {
  --phpr-heat: #9d3118;
  --phpr-copper: #ca6a38;
  --phpr-steel: #222c35;
}
.phpr-hero {
  background: #edf0f2;
  border-bottom-color: var(--phpr-copper);
}
.phpr-hero-copy {
  background-image:
    linear-gradient(90deg, #28394413 1px, transparent 1px),
    linear-gradient(#28394413 1px, transparent 1px),
    linear-gradient(145deg, #f8f9fa, #e1e7eb);
  background-size: 32px 32px, 32px 32px, 100% 100%;
}
.phpr-hero-copy > .phpr-hero-logo + p { color: var(--phpr-heat); }
.phpr-hero .wp-block-button__link {
  background: var(--phpr-heat);
  color: #fff;
}
.phpr-hero .wp-block-button__link:hover { background: #7b2817; }
.phpr-hero > figure {
  position: relative;
  isolation: isolate;
  background: var(--phpr-steel);
}
.phpr-hero > figure img { filter: saturate(.74) brightness(.83) contrast(1.08); }
.phpr-hero > figure::before, .phpr-hero > figure::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
}
.phpr-hero > figure::before {
  z-index: 1;
  background:
    radial-gradient(ellipse 8% 31% at 69% 108%, #fff4c8 4%, #ffb447 30%, #e35d20a8 52%, transparent 75%),
    radial-gradient(ellipse 12% 44% at 76% 116%, #ffe5a1 7%, #ff9b36 24%, #d3331680 57%, transparent 75%),
    radial-gradient(ellipse 7% 23% at 82% 103%, #ffe6a3 7%, #fd9338 27%, #ce391857 56%, transparent 77%),
    radial-gradient(ellipse 44% 46% at 75% 100%, #b3481e9e, #962b2338 51%, transparent 78%),
    linear-gradient(155deg, #14222d30 28%, transparent 60%, #30181166);
}
.phpr-hero > figure::after {
  z-index: 2;
  background:
    radial-gradient(circle at 64% 77%, #ffcc7a 0 1px, transparent 2px),
    radial-gradient(circle at 72% 73%, #ff9f50 0 1px, transparent 2px),
    radial-gradient(circle at 77% 84%, #fff0bd 0 1.5px, transparent 3px),
    radial-gradient(circle at 83% 68%, #ffaa59 0 1px, transparent 2px),
    radial-gradient(circle at 89% 86%, #ff9b54 0 2px, transparent 4px),
    radial-gradient(circle at 87% 75%, #ffe4a6 0 1px, transparent 2px),
    radial-gradient(circle at 94% 71%, #ffad60 0 1px, transparent 2px);
}
.phpr-card { border-top-color: var(--phpr-copper); }
.phpr-footer { background: var(--phpr-steel); }
@media (prefers-reduced-motion: no-preference) {
  .phpr-hero > figure::after { animation: phpr-embers 3.2s ease-out both; }
  @keyframes phpr-embers {
    from { opacity: .22; transform: translateY(12px); }
    65% { opacity: 1; }
    to { opacity: .78; transform: translateY(-5px); }
  }
}
