/*
Theme Name: Demofirma Solarwerk Nord
Theme URI: https://25to.com
Author: 25to Communication
Author URI: https://25to.com
Description: Mehrseitiges WordPress-Theme fuer eine regionale Solarfirma mit Photovoltaik, Speicher, Wallbox, Wartung, Referenzen, Einsatzgebiet und Kontaktanfrage.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: handwerk-betrieb-demo
*/

:root {
  --hwd-ink: #1d2522;
  --hwd-ink-soft: #3e4d47;
  --hwd-muted: #6c7772;
  --hwd-paper: #f4f0e8;
  --hwd-white: #fffdf8;
  --hwd-steel: #49645e;
  --hwd-steel-dark: #263e39;
  --hwd-safety: #f0b23c;
  --hwd-rust: #a95835;
  --hwd-mint: #d9e6df;
  --hwd-line: rgba(29, 37, 34, 0.14);
  --hwd-shadow: 0 24px 70px rgba(29, 37, 34, 0.15);
  --hwd-radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--hwd-paper);
  color: var(--hwd-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
body.admin-bar .hwd-header { top: 32px; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

.hwd-shell {
  width: min(1540px, calc(100% - 48px));
  margin: 0 auto;
}
.hwd-skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--hwd-steel-dark);
  color: white;
  border-radius: var(--hwd-radius);
}
.hwd-skip-link:focus { top: 16px; }

.hwd-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--hwd-line);
  backdrop-filter: blur(18px);
}
.hwd-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.hwd-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 230px;
}
.hwd-brand__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--hwd-steel-dark);
  color: var(--hwd-safety);
  font-weight: 900;
  letter-spacing: 0;
}
.hwd-brand__text span {
  display: block;
  font-weight: 850;
  line-height: 1.1;
}
.hwd-brand__text small { color: var(--hwd-muted); }

.hwd-nav__list,
.hwd-nav__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hwd-nav a {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--hwd-ink-soft);
  font-weight: 760;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.hwd-nav a:hover {
  transform: translateY(-1px);
}
.hwd-nav a:hover,
.hwd-nav .current-menu-item a { background: var(--hwd-mint); color: var(--hwd-ink); }
.hwd-header__actions { display: flex; align-items: center; gap: 10px; }
.hwd-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hwd-line);
  background: var(--hwd-white);
  border-radius: 8px;
  color: var(--hwd-ink);
  font-size: 22px;
}

.hwd-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--hwd-steel-dark);
  border-radius: 8px;
  background: var(--hwd-steel-dark);
  color: white;
  font-weight: 820;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}
.hwd-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(29, 37, 34, 0.18);
}
.hwd-button--safety { background: var(--hwd-safety); border-color: var(--hwd-safety); color: #241a08; }
.hwd-button--ghost { background: transparent; color: var(--hwd-steel-dark); }
.hwd-button--light { background: var(--hwd-white); color: var(--hwd-ink); border-color: transparent; }
.hwd-button--cta {
  min-height: 44px;
  padding: 11px 18px;
  border-color: #1f5a4d;
  background: #1f5a4d;
  color: white;
  box-shadow: 0 10px 24px rgba(31, 90, 77, 0.22);
}
.hwd-button--cta::after {
  content: "→";
  margin-left: 10px;
  transition: transform 0.2s ease;
}
.hwd-button--cta:hover::after { transform: translateX(3px); }

.hwd-hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: stretch;
  background: var(--hwd-steel-dark);
  color: white;
}
.hwd-demo-note {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 820;
}
.hwd-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  gap: 56px;
  align-items: center;
  padding: 74px 0 56px;
  animation: hwd-fade-up 0.7s ease both;
}
.hwd-eyebrow {
  margin: 0 0 14px;
  color: var(--hwd-rust);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hwd-hero .hwd-eyebrow { color: var(--hwd-safety); }
.hwd-hero h1,
.hwd-section__head h2,
.hwd-page-title,
.hwd-page-block h2 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}
.hwd-hero__lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 1.8vw, 24px);
}
.hwd-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hwd-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 46px;
}
.hwd-hero__facts div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}
.hwd-hero__facts span { display: block; color: rgba(255, 255, 255, 0.64); font-size: 13px; }
.hwd-hero__facts strong { display: block; color: white; font-size: 28px; line-height: 1.1; }
.hwd-hero__visual {
  position: relative;
  min-height: 620px;
  border-radius: 8px;
  overflow: hidden;
  background-image: var(--hwd-img-1);
  background-size: cover;
  background-position: center;
  box-shadow: var(--hwd-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hwd-hero__visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 86px rgba(29, 37, 34, 0.22);
}
.hwd-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 37, 34, 0.02), rgba(29, 37, 34, 0.55));
}
.hwd-hero-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--hwd-ink);
}
.hwd-hero-card strong { font-size: 42px; line-height: 1; color: var(--hwd-rust); }

.hwd-section { padding: 94px 0; }
.hwd-section--white { background: var(--hwd-white); }
.hwd-section--dark { background: var(--hwd-steel-dark); color: white; }
.hwd-section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}
.hwd-section__head h2,
.hwd-page-block h2 { font-size: clamp(30px, 3vw, 52px); }
.hwd-section__head p { margin: 0; color: var(--hwd-muted); font-size: 18px; }
.hwd-section--dark .hwd-section__head p { color: rgba(255, 255, 255, 0.72); }

.hwd-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.hwd-card,
.hwd-service-card,
.hwd-highlight,
.hwd-project-card,
.hwd-form-demo {
  border: 1px solid var(--hwd-line);
  border-radius: 8px;
  background: var(--hwd-white);
  box-shadow: 0 14px 32px rgba(29, 37, 34, 0.06);
}
.hwd-card { padding: 26px; }
.hwd-card,
.hwd-service-card,
.hwd-page-teaser,
.hwd-project-card,
.hwd-highlight {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.hwd-card:hover,
.hwd-service-card:hover,
.hwd-page-teaser:hover,
.hwd-project-card:hover,
.hwd-highlight:hover {
  transform: translateY(-4px);
  border-color: rgba(169, 88, 53, 0.32);
  box-shadow: 0 20px 46px rgba(29, 37, 34, 0.12);
}
.hwd-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.hwd-card h3,
.hwd-service-card h3,
.hwd-project-card h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.15; }
.hwd-card__head h3 { margin: 0; }
.hwd-card p,
.hwd-service-card p,
.hwd-project-card p { margin: 0; color: var(--hwd-muted); }
.hwd-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--hwd-mint);
  color: var(--hwd-steel-dark);
  font-weight: 900;
}

.hwd-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.hwd-service-card { overflow: hidden; }
.hwd-service-card__image {
  min-height: 190px;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}
.hwd-service-card:hover .hwd-service-card__image { transform: scale(1.035); }
.hwd-service-card__body { padding: 22px; }
.hwd-service-card ul { margin: 16px 0 0; padding-left: 18px; color: var(--hwd-ink-soft); }
.hwd-service-card--1 .hwd-service-card__image { background-image: var(--hwd-img-2); }
.hwd-service-card--2 .hwd-service-card__image { background-image: var(--hwd-img-3); }
.hwd-service-card--3 .hwd-service-card__image { background-image: var(--hwd-img-4); }
.hwd-service-card--4 .hwd-service-card__image { background-image: var(--hwd-img-5); }

.hwd-pages-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.hwd-page-teaser {
  min-height: 190px;
  padding: 20px;
  border-radius: 8px;
  background: var(--hwd-mint);
  text-decoration: none;
}
.hwd-page-teaser strong { display: block; margin-bottom: 8px; font-size: 20px; }
.hwd-page-teaser span { color: var(--hwd-ink-soft); }

.hwd-job-hero,
.hwd-apply-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 24px;
  align-items: center;
  margin: 34px 0;
  padding: 30px;
  border-radius: 8px;
  background: var(--hwd-steel-dark);
  color: white;
  box-shadow: var(--hwd-shadow);
}
.hwd-job-hero h2,
.hwd-apply-panel h2 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.04;
}
.hwd-job-hero p,
.hwd-apply-panel p { color: rgba(255, 255, 255, 0.78); }
.hwd-job-tag {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--hwd-safety);
  color: #241a08;
  font-weight: 850;
  font-size: 13px;
}
.hwd-job-facts {
  display: grid;
  gap: 10px;
}
.hwd-job-facts div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}
.hwd-job-facts strong,
.hwd-job-facts span { display: block; }
.hwd-job-facts span { color: rgba(255, 255, 255, 0.66); }
.hwd-apply-panel {
  background: var(--hwd-mint);
  color: var(--hwd-ink);
}
.hwd-apply-panel p { color: var(--hwd-ink-soft); }

.hwd-reference {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}
.hwd-reference__image {
  min-height: 510px;
  border-radius: 8px;
  background-image: var(--hwd-img-6);
  background-size: cover;
  background-position: center;
}
.hwd-reference__body {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 38px;
  border-radius: 8px;
  background: var(--hwd-white);
}
.hwd-reference__body blockquote {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}
.hwd-metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hwd-metric { padding: 16px; border-radius: 8px; background: var(--hwd-paper); }
.hwd-metric strong { display: block; font-size: 30px; color: var(--hwd-rust); }
.hwd-metric span { color: var(--hwd-muted); font-size: 13px; }

.hwd-area {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 24px;
}
.hwd-area__map {
  min-height: 420px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 31px, rgba(29, 37, 34, 0.1) 32px),
    linear-gradient(transparent 31px, rgba(29, 37, 34, 0.1) 32px),
    var(--hwd-mint);
  background-size: 64px 64px;
  position: relative;
}
.hwd-area__map::after {
  content: "25 km";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170px;
  height: 170px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 2px solid var(--hwd-rust);
  border-radius: 50%;
  color: var(--hwd-rust);
  font-weight: 900;
}
.hwd-area__list { display: grid; gap: 12px; }
.hwd-area__item { padding: 18px; border-radius: 8px; background: var(--hwd-white); border: 1px solid var(--hwd-line); }
.hwd-area__item strong { display: block; }
.hwd-area__item span { color: var(--hwd-muted); }

.hwd-form-demo { padding: 26px; }
.hwd-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hwd-field { display: grid; gap: 7px; }
.hwd-field--full { grid-column: 1 / -1; }
.hwd-field label { font-weight: 800; font-size: 14px; }
.hwd-field input,
.hwd-field select,
.hwd-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--hwd-line);
  border-radius: 8px;
  background: white;
  color: var(--hwd-ink);
  font: inherit;
}
.hwd-field textarea { min-height: 128px; resize: vertical; }
.hwd-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: var(--hwd-ink-soft);
}
.hwd-toast {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--hwd-mint);
  color: var(--hwd-steel-dark);
  font-weight: 800;
}
.hwd-toast.is-visible { display: block; }

.hwd-content { padding: 72px 0 96px; }
.hwd-content__inner { width: min(1040px, calc(100% - 48px)); margin: 0 auto; }
.hwd-page-intro { margin-bottom: 36px; }
.hwd-page-title { font-size: clamp(38px, 4.5vw, 68px); }
.hwd-page-block { margin: 0 0 30px; }
.hwd-page-block p,
.hwd-page-block li { color: var(--hwd-ink-soft); font-size: 18px; }
.hwd-content-grid { gap: 18px; }
.hwd-highlight,
.hwd-project-card { padding: 24px; height: 100%; }
.hwd-highlight strong { display: block; font-size: 34px; color: var(--hwd-rust); }
.hwd-highlight span { color: var(--hwd-muted); }

.hwd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.hwd-gallery-item {
  min-height: 280px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.hwd-gallery-item:hover {
  transform: scale(1.015);
  box-shadow: 0 18px 42px rgba(29, 37, 34, 0.14);
}

@keyframes hwd-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
.hwd-gallery-item:nth-child(1) { background-image: var(--hwd-img-1); }
.hwd-gallery-item:nth-child(2) { background-image: var(--hwd-img-2); }
.hwd-gallery-item:nth-child(3) { background-image: var(--hwd-img-3); }
.hwd-gallery-item:nth-child(4) { background-image: var(--hwd-img-4); }
.hwd-gallery-item:nth-child(5) { background-image: var(--hwd-img-5); }
.hwd-gallery-item:nth-child(6) { background-image: var(--hwd-img-6); }

.hwd-footer {
  padding: 54px 0;
  background: var(--hwd-ink);
  color: white;
}
.hwd-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(220px, 0.45fr));
  gap: 28px;
}
.hwd-footer p,
.hwd-footer small { color: rgba(255, 255, 255, 0.72); }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

@media (max-width: 1180px) {
  .hwd-header__actions { display: none; }
  .hwd-hero__grid,
  .hwd-reference,
  .hwd-area,
  .hwd-job-hero,
  .hwd-apply-panel { grid-template-columns: 1fr; }
  .hwd-service-grid,
  .hwd-pages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hwd-hero__visual { min-height: 520px; }
}

@media (max-width: 860px) {
  body.admin-bar .hwd-header { top: 0; }
  .hwd-shell,
  .hwd-content__inner { width: min(100% - 28px, 720px); }
  .hwd-header__inner { min-height: 68px; }
  .hwd-menu-toggle { display: grid; place-items: center; }
  .hwd-nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    padding: 14px;
    border: 1px solid var(--hwd-line);
    border-radius: 8px;
    background: var(--hwd-white);
    box-shadow: var(--hwd-shadow);
  }
  .hwd-nav.is-open { display: block; }
  .hwd-nav__list,
  .hwd-nav__fallback { display: grid; gap: 4px; justify-content: stretch; }
  .hwd-nav a { width: 100%; }
  .hwd-hero { min-height: auto; }
  .hwd-hero__grid { padding: 44px 0; gap: 28px; }
  .hwd-hero__facts,
  .hwd-card-grid,
  .hwd-section__head,
  .hwd-footer__grid,
  .hwd-form-grid,
  .hwd-gallery-grid { grid-template-columns: 1fr; }
  .hwd-service-grid,
  .hwd-pages-grid { grid-template-columns: 1fr; }
  .hwd-hero__visual,
  .hwd-reference__image,
  .hwd-area__map { min-height: 360px; }
  .hwd-section { padding: 62px 0; }
  .hwd-metric-row { grid-template-columns: 1fr; }
}
