/*
Theme Name: TWM Edelstahltechnik
Theme URI: https://twm-edelstahltechnik.de
Author: erstellt für TWM-Edelstahltechnik GmbH
Description: Individuelles WordPress-Theme für die TWM-Edelstahltechnik GmbH – Metallbau- und Aufzugskabinen-Spezialist aus Berlin. Modern, minimalistisch, im Edelstahl-Look. Keine externen Font- oder Skript-Anfragen (DSGVO-freundlich).
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: twm-edelstahltechnik
*/

/* ==========================================================================
   0. Design tokens
   ========================================================================== */
:root{
  --bg:            #f5f6f7;
  --bg-panel:      #ffffff;
  --bg-alt:        #ececef;
  --ink:           #1a2228;
  --ink-soft:      #4c5760;
  --ink-faint:     #7c868d;
  --steel:         #3e5568;
  --steel-dark:    #1f2b34;
  --steel-darker:  #161e25;
  --line:          #d7dbdd;
  --line-strong:   #b7bec2;
  --accent:        #b9812e;
  --accent-soft:   #e7cd9c;
  --accent-ink:    #4a3512;
  --radius:        2px;
  --wrap:          1180px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Roboto Mono", Consolas, "Liberation Mono", monospace;

  --step-1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.97rem + 0.2vw, 1.08rem);
  --step-2: clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.2vw, 2.5rem);
  --step-4: clamp(2.6rem, 2.1rem + 2.2vw, 4rem);
}

/* ==========================================================================
   1. Reset & base
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--steel); text-decoration: none; }
a:hover{ color: var(--accent); }
ul, ol{ padding-left: 1.2em; }
h1,h2,h3,h4{ font-family: var(--font-sans); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--ink); }
p{ margin: 0 0 1.1em; }
.wrap{ max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.screen-reader-text{
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link{
  position: fixed; top: -50px; left: 12px; z-index: 999; background: var(--steel-darker); color: #fff;
  padding: 10px 16px; border-radius: var(--radius); transition: top .2s ease;
}
.skip-link:focus{ top: 12px; color: #fff; }

:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel); font-weight: 600; margin-bottom: 14px;
}
.eyebrow::before{ content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block; }

.btn{
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem;
  padding: 13px 26px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary{ background: var(--steel-darker); color: #fff; }
.btn-primary:hover{ background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost{ border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover{ border-color: var(--steel); color: var(--steel); }

/* ==========================================================================
   2. Header
   ========================================================================== */
.site-header{
  position: sticky; top: 0; z-index: 500;
  background: rgba(245,246,247,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner{ display: flex; align-items: center; gap: 24px; height: 76px; }
.brand{ display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.brand:hover{ color: inherit; }
.brand-mark{ font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); }
.brand-sub{ font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); margin-top: 4px; }

.site-nav ul{ list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.site-nav a{
  color: var(--ink-soft); font-size: 0.94rem; font-weight: 500; position: relative; padding: 6px 0;
}
.site-nav a:hover{ color: var(--ink); }
.site-nav a::after{
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent);
  transition: right .18s ease;
}
.site-nav a:hover::after{ right: 0; }

.phone-pill{
  display: flex; flex-direction: column; align-items: flex-end; border-left: 1px solid var(--line); padding-left: 22px;
}
.phone-label{ font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.phone-number{ font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.phone-pill:hover .phone-number{ color: var(--accent); }

.nav-toggle{
  display: none; width: 38px; height: 32px; background: none; border: none; cursor: pointer; padding: 0;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span{ display: block; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 900px){
  .nav-toggle{ display: flex; }
  .site-nav{
    position: fixed; inset: 76px 0 0 0; background: var(--bg); border-top: 1px solid var(--line);
    padding: 10px 24px 30px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .18s ease;
  }
  .site-nav.is-open{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav ul{ flex-direction: column; gap: 4px; }
  .site-nav a{ display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .phone-pill{ display: none; }
}

/* ==========================================================================
   3. Hero + blueprint diagram
   ========================================================================== */
.hero{ padding: 76px 0 96px; background: var(--bg); }
.hero-inner{ display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1{ font-size: var(--step-4); font-weight: 650; letter-spacing: -0.02em; }
.hero .lede{ font-size: var(--step-1); color: var(--ink-soft); max-width: 46ch; margin-bottom: 30px; }
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats{ display: flex; gap: 34px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-stat b{ display: block; font-size: 1.5rem; font-weight: 700; color: var(--steel-darker); }
.hero-stat span{ font-size: 0.8rem; color: var(--ink-faint); }

.blueprint{ width: 100%; height: auto; }
.blueprint .cabin-outline{ fill: none; stroke: var(--steel); stroke-width: 1.4; }
.blueprint .cabin-fill{ fill: var(--bg-panel); }
.blueprint .divider{ stroke: var(--line-strong); stroke-width: 1; }
.blueprint .leader{ stroke: var(--line-strong); stroke-width: 1; }
.blueprint .dim{ stroke: var(--ink-faint); stroke-width: 1; }
.blueprint .label{ font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.03em; fill: var(--ink-soft); }
.blueprint .dim-label{ font-family: var(--font-mono); font-size: 9.5px; fill: var(--ink-faint); }
.blueprint .accent-fill{ fill: var(--accent-soft); opacity: 0.55; }

@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero{ padding: 44px 0 60px; }
}

/* ==========================================================================
   4. Sections generic
   ========================================================================== */
section{ padding: 84px 0; }
.section-alt{ background: var(--bg-alt); }
.section-dark{ background: var(--steel-darker); color: #e8ebed; }
.section-dark h2, .section-dark h3{ color: #fff; }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head h2{ font-size: var(--step-3); }
.section-head p{ color: var(--ink-soft); font-size: var(--step-1); }
.section-dark .section-head p{ color: #b7c0c6; }

/* ==========================================================================
   5. Services grid
   ========================================================================== */
.services-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card{ background: var(--bg-panel); padding: 32px 26px; display: flex; flex-direction: column; gap: 14px; }
.service-card .icon{ width: 40px; height: 40px; }
.service-card h3{ font-size: 1.05rem; }
.service-card p{ color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 6px; }
.service-card .more{ margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--steel); }
.service-card .more:hover{ color: var(--accent); }

@media (max-width: 1000px){ .services-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .services-grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   6. About / process
   ========================================================================== */
.about-grid{ display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.material-list{ list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.material-list li{ display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.material-list b{ color: var(--ink); font-weight: 600; }
.material-list span{ color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.78rem; }

@media (max-width: 900px){ .about-grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   7. Reference strip
   ========================================================================== */
.clients-strip{ display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; }
.clients-strip span{ font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink-faint); border: 1px solid var(--line-strong); padding: 8px 14px; border-radius: var(--radius); }

.project-list{ display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 10px; }
.project-row{ background: var(--bg-panel); padding: 22px 26px; display: grid; grid-template-columns: 1.4fr 0.8fr 1.8fr; gap: 20px; align-items: baseline; }
.project-row .name{ font-weight: 600; }
.project-row .meta{ font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-faint); }
.project-row .desc{ font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 800px){ .project-row{ grid-template-columns: 1fr; gap: 6px; } }

/* ==========================================================================
   8. CTA banner
   ========================================================================== */
.cta-banner{ background: var(--steel-darker); color: #fff; padding: 64px 0; }
.cta-inner{ display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-inner h2{ color: #fff; font-size: var(--step-2); max-width: 34ch; margin: 0; }
.cta-inner .btn-primary{ background: var(--accent); color: var(--accent-ink); }
.cta-inner .btn-primary:hover{ background: #fff; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer{ background: var(--steel-darker); color: #c3cbd0; padding: 60px 0 0; font-size: 0.92rem; }
.footer-grid{ display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid h4{ color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-mono); margin-bottom: 18px; }
.footer-grid ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a{ color: #c3cbd0; }
.footer-grid a:hover{ color: var(--accent-soft); }
.footer-brand .brand-mark{ color: #fff; }
.footer-brand p{ color: #9aa5ab; max-width: 34ch; margin-top: 14px; }
.footer-bar{ display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 22px 0; font-size: 0.8rem; color: #8b969c; }
.footer-bar ul{ list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }

@media (max-width: 800px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   10. Generic page / entry content (Über TWM, Leistungen, Referenzen, Impressum, ...)
   ========================================================================== */
.page-hero{ padding: 56px 0 20px; border-bottom: 1px solid var(--line); }
.page-hero h1{ font-size: var(--step-3); margin-bottom: 6px; }
.entry-wrap{ padding: 56px 0 100px; }
.entry-content{ max-width: 760px; }
.entry-content h1,.entry-content h2,.entry-content h3{ margin-top: 1.6em; }
.entry-content h1:first-child,.entry-content h2:first-child{ margin-top: 0; }
.entry-content p{ color: var(--ink-soft); }
.entry-content strong{ color: var(--ink); }
.entry-content ul li, .entry-content ol li{ margin-bottom: 6px; color: var(--ink-soft); }
.entry-content a{ text-decoration: underline; text-underline-offset: 3px; }
.entry-content img{ border-radius: var(--radius); border: 1px solid var(--line); }
.entry-content hr{ border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry-content blockquote{ border-left: 3px solid var(--accent); padding-left: 18px; color: var(--ink-soft); font-style: italic; margin: 1.6em 0; }

/* Referenzen page: bold project labels rendered by WP as <strong>Bauvorhaben:</strong> etc. */
.entry-content p strong:first-child{
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--steel); display: inline-block; margin-right: 4px;
}

.gallery-row{ display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 36px; }
.entry-content a img{ margin: 0; }

@media (max-width: 700px){
  section{ padding: 56px 0; }
  .cta-inner{ flex-direction: column; align-items: flex-start; }
}
