/*
Theme Name: H247
Theme URI: https://h247.de/
Author: H247
Description: Schlankes WordPress-Theme für persönliche Produkterfahrungen, 3D-Druck, Werkstatt, Haushalt und Alltag. Optimiert für lesbare Artikel, eigene Fotos und transparent gekennzeichnete Partnerlinks.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: h247
*/

:root{
  --h247-bg:#f6f4ef;
  --h247-surface:#ffffff;
  --h247-surface-soft:#efede6;
  --h247-text:#1f2328;
  --h247-muted:#697078;
  --h247-line:#ddd9cf;
  --h247-accent:#d86f2d;
  --h247-accent-dark:#a94f18;
  --h247-dark:#1f2328;
  --h247-radius:18px;
  --h247-shadow:0 10px 30px rgba(0,0,0,.06);
  --h247-max:1180px;
  --h247-content:820px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--h247-text);
  background:var(--h247-bg);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
a:hover{color:var(--h247-accent-dark)}
img{max-width:100%;height:auto;display:block}
button,input,textarea,select{font:inherit}

.h247-container{width:min(var(--h247-max),calc(100% - 40px));margin-inline:auto}
.h247-container--narrow{width:min(var(--h247-content),calc(100% - 40px));margin-inline:auto}

.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(246,244,239,.94);
  border-bottom:1px solid rgba(221,217,207,.92);
  backdrop-filter:blur(12px);
}
.header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.site-branding{display:flex;align-items:center;gap:14px;min-width:0}
.custom-logo-link img{max-height:44px;width:auto}
.site-title{font-size:1.55rem;font-weight:900;letter-spacing:-.05em;white-space:nowrap}
.site-description{color:var(--h247-muted);font-size:.9rem;border-left:1px solid var(--h247-line);padding-left:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.primary-menu{display:flex;align-items:center;gap:24px;list-style:none;margin:0;padding:0;font-size:.95rem;font-weight:650}
.primary-menu .current-menu-item>a,.primary-menu .current_page_item>a{color:var(--h247-accent-dark)}
.menu-toggle{display:none;border:1px solid var(--h247-line);background:var(--h247-surface);border-radius:10px;padding:8px 11px;cursor:pointer}

.h247-hero{padding:86px 0 66px}
.h247-hero-grid{display:grid;grid-template-columns:1.45fr .75fr;gap:70px;align-items:center}
.h247-eyebrow{display:inline-block;margin-bottom:12px;color:var(--h247-accent-dark);font-size:.78rem;font-weight:850;text-transform:uppercase;letter-spacing:.12em}
.h247-hero h1{font-size:clamp(2.8rem,7vw,5.8rem);line-height:1.03;letter-spacing:-.055em;margin:0 0 24px}
.h247-lead{font-size:1.2rem;color:#4f555b;max-width:760px;margin:0}
.h247-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
.h247-button,.wp-block-button__link{
  display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border-radius:999px;font-weight:800;border:0;
}
.h247-button--primary,.wp-block-button__link{background:var(--h247-accent);color:#fff!important}
.h247-button--primary:hover,.wp-block-button__link:hover{background:var(--h247-accent-dark);color:#fff!important}
.h247-button--secondary{border:1px solid var(--h247-line);background:var(--h247-surface)}
.h247-hero-card{background:var(--h247-surface);padding:28px;border:1px solid var(--h247-line);border-radius:var(--h247-radius);box-shadow:var(--h247-shadow)}
.h247-hero-card h2{font-size:1.45rem;margin:0 0 14px;letter-spacing:-.03em}
.h247-hero-card ul{padding-left:20px;margin:0}
.h247-check{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--h247-surface-soft);font-weight:900;margin-bottom:18px}

.h247-disclosure{border-top:1px solid var(--h247-line);border-bottom:1px solid var(--h247-line);background:var(--h247-surface-soft)}
.h247-disclosure p{margin:0;padding:14px 0;font-size:.92rem}

.h247-section{padding:88px 0}
.h247-section--white{background:var(--h247-surface)}
.h247-section-head{display:flex;justify-content:space-between;align-items:end;gap:36px;margin-bottom:36px}
.h247-section-head h2{font-size:clamp(2rem,4vw,3rem);letter-spacing:-.045em;line-height:1.1;margin:0}
.h247-section-head p{max-width:520px;color:var(--h247-muted);margin:0}

.h247-post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.h247-card{overflow:hidden;background:var(--h247-surface);border:1px solid var(--h247-line);border-radius:var(--h247-radius);box-shadow:0 7px 22px rgba(0,0,0,.035);transition:.2s ease}
.h247-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.07)}
.h247-card-media{aspect-ratio:16/10;background:var(--h247-surface-soft);overflow:hidden}
.h247-card-media img{width:100%;height:100%;object-fit:cover}
.h247-card-placeholder{height:100%;display:grid;place-items:center;color:#9d978b;font-weight:900;letter-spacing:.1em}
.h247-card-body{padding:24px}
.h247-kicker{display:inline-block;margin-bottom:10px;color:var(--h247-accent-dark);font-size:.76rem;font-weight:850;text-transform:uppercase;letter-spacing:.09em}
.h247-card h3{font-size:1.34rem;line-height:1.22;letter-spacing:-.035em;margin:0 0 10px}
.h247-card p{color:var(--h247-muted);margin:0 0 15px}
.h247-text-link{font-weight:800}

.h247-category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.h247-category-tile{min-height:190px;padding:24px;border-radius:var(--h247-radius);background:var(--h247-bg);border:1px solid var(--h247-line);display:flex;flex-direction:column;justify-content:flex-end;gap:8px;transition:.2s ease}
.h247-category-tile:hover{transform:translateY(-2px);color:inherit}
.h247-category-tile strong{font-size:1.06rem}
.h247-category-tile span{color:var(--h247-muted);font-size:.92rem}

.site-main{min-height:60vh}
.h247-listing{padding:64px 0 88px}
.h247-page-title{font-size:clamp(2.4rem,5vw,4.2rem);line-height:1.06;letter-spacing:-.05em;margin:0 0 16px}
.h247-page-intro{font-size:1.12rem;color:var(--h247-muted);max-width:760px;margin:0 0 36px}

.h247-article{padding:64px 0 90px}
.h247-article-header{margin-bottom:28px}
.h247-article-title{font-size:clamp(2.4rem,6vw,4.7rem);line-height:1.05;letter-spacing:-.055em;margin:0 0 18px}
.h247-article-excerpt{font-size:1.18rem;color:#52585f;margin:0 0 14px}
.h247-meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--h247-muted);font-size:.91rem}
.h247-featured{margin:32px 0 42px;border-radius:var(--h247-radius);overflow:hidden;border:1px solid var(--h247-line);background:var(--h247-surface-soft)}
.h247-featured img{width:100%;height:auto}
.h247-content{font-size:1.06rem}
.h247-content>p,.h247-content>ul,.h247-content>ol{margin-top:0;margin-bottom:1.25em}
.h247-content h2{font-size:clamp(1.7rem,3vw,2.35rem);line-height:1.2;letter-spacing:-.04em;margin:2em 0 .7em}
.h247-content h3{font-size:1.35rem;margin:1.6em 0 .6em}
.h247-content a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.h247-content figure{margin:2em 0}
.h247-content blockquote{margin:2em 0;padding:18px 24px;border-left:4px solid var(--h247-accent);background:var(--h247-surface);border-radius:0 12px 12px 0}

.h247-affiliate-box,.is-style-h247-hinweis,.is-style-h247-empfehlung{
  border:1px solid var(--h247-line);background:var(--h247-surface);border-radius:14px;padding:20px;margin:24px 0;
}
.is-style-h247-empfehlung{border-left:5px solid var(--h247-accent)}
.h247-affiliate-box strong{display:block;margin-bottom:4px}
.h247-affiliate-box p{margin:0;color:var(--h247-muted)}

.h247-post-footer{margin-top:46px;padding-top:24px;border-top:1px solid var(--h247-line)}
.h247-tags{display:flex;gap:8px;flex-wrap:wrap}
.h247-tag{padding:6px 10px;border-radius:999px;background:var(--h247-surface-soft);font-size:.84rem}

.h247-pagination{display:flex;justify-content:space-between;gap:20px;margin-top:38px}
.h247-pagination a{font-weight:800}

.h247-page{padding:64px 0 90px}
.h247-page .h247-content{background:var(--h247-surface);border:1px solid var(--h247-line);border-radius:var(--h247-radius);padding:clamp(24px,5vw,52px)}

.site-footer{padding:42px 0 22px;background:var(--h247-dark);color:#fff}
.footer-grid{display:flex;justify-content:space-between;gap:30px}
.footer-brand{font-size:1.2rem;font-weight:900}
.site-footer p{color:#adb2b7;margin:.4rem 0}
.footer-menu{display:flex;gap:18px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.footer-bottom{margin-top:26px;padding-top:18px;border-top:1px solid rgba(255,255,255,.12);color:#adb2b7;font-size:.88rem}

.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(max-width:900px){
  .h247-hero-grid{grid-template-columns:1fr;gap:34px}
  .h247-post-grid{grid-template-columns:1fr 1fr}
  .h247-category-grid{grid-template-columns:1fr 1fr}
  .site-description{display:none}
}
@media(max-width:700px){
  .h247-container,.h247-container--narrow{width:min(100% - 28px,100%)}
  .menu-toggle{display:block}
  .site-navigation{position:relative}
  .primary-menu{display:none;position:absolute;right:0;top:50px;min-width:240px;flex-direction:column;align-items:stretch;gap:0;background:var(--h247-surface);border:1px solid var(--h247-line);border-radius:14px;padding:8px;box-shadow:var(--h247-shadow)}
  .primary-menu.is-open{display:flex}
  .primary-menu a{display:block;padding:10px 12px}
  .h247-hero{padding:58px 0 44px}
  .h247-post-grid,.h247-category-grid{grid-template-columns:1fr}
  .h247-section{padding:62px 0}
  .h247-section-head{display:block}
  .h247-section-head p{margin-top:12px}
  .footer-grid{flex-direction:column}
}
