/*
Theme Name: Razingar Energieberater
Theme URI: https://example.com/
Author: ChatGPT
Description: Individuelles WordPress-Theme für Kai-Uwe Razingar, Energieberater. Fokus auf Fördermittelberatung, Energieeffizienz, GEG-Nachweise, Nachhaltigkeit und Ökobilanzen.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: razingar-energieberater
*/

:root {
  --orange: #F28C28;
  --blue: #1D3557;
  --green: #4CAF50;
  --light: #F7FAFC;
  --white: #FFFFFF;
  --text: #263238;
  --muted: #667085;
  --line: #E6EAF0;
  --shadow: 0 22px 60px rgba(29, 53, 87, 0.14);
  --radius: 24px;
}

* {
  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(--text);
  background: var(--white);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(230, 234, 240, 0.8);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.03em;
  font-size: 1.08rem;
}

.brand > span:last-child {
  min-width: 0;
}

.brand small {
  display: block;
  margin-top: -5px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0;
  font-weight: 600;
}


.brand-logo-wrap {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
}

.brand-logo-wrap .custom-logo-link,
.brand-logo-wrap .custom-logo {
  display: block;
  max-width: 100%;
  height: auto;
}

.brand-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(29, 53, 87, 0.12));
}
.contact-logo {
  width: 114px;
  height: 114px;
  object-fit: contain;
  display: block;
  margin: 0 0 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover {
  color: var(--orange);
  opacity: 1;
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(29, 53, 87, 0.18);
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(242, 140, 40, 0.22), transparent 34%),
    radial-gradient(circle at 10% 70%, rgba(76, 175, 80, 0.15), transparent 32%),
    linear-gradient(135deg, #F9FBFF 0%, #FFFFFF 58%, #F1F8F4 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(29, 53, 87, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 53, 87, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero-inner {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 54px;
  padding: 86px 0 74px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px 13px;
  border: 1px solid rgba(76, 175, 80, 0.32);
  border-radius: 999px;
  background: rgba(76, 175, 80, 0.09);
  color: var(--blue);
  font-weight: 800;
  font-size: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

h1,
h2,
h3 {
  color: var(--blue);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.45rem);
}

h3 {
  margin: 0;
  font-size: 1.35rem;
}

.lead {
  max-width: 700px;
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  color: #405166;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(242, 140, 40, 0.32);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(29, 53, 87, 0.08);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}

.proof-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(230, 234, 240, 0.86);
  box-shadow: 0 14px 38px rgba(29, 53, 87, 0.07);
}

.proof-card strong {
  display: block;
  color: var(--blue);
  font-size: 1.5rem;
  line-height: 1;
}

.proof-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
}

.house-card {
  position: relative;
  border-radius: 36px;
  background: var(--white);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.energy-house {
  min-height: 450px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(29, 53, 87, 0.95), rgba(29, 53, 87, 0.82)),
    radial-gradient(circle at 20% 20%, rgba(242, 140, 40, 0.5), transparent 40%);
  overflow: hidden;
}

.house-svg {
  width: 82%;
  filter: drop-shadow(0 20px 38px rgba(0,0,0,0.22));
}

.float-badge {
  position: absolute;
  right: -16px;
  bottom: 34px;
  max-width: 260px;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 20px 48px rgba(29, 53, 87, 0.18);
  border-left: 6px solid var(--green);
}

.float-badge strong {
  display: block;
  color: var(--blue);
}

.float-badge span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--light);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 42px;
}

.section-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 22px;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 46px rgba(29, 53, 87, 0.07);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--green));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover::after {
  opacity: 1;
}

.icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 20px;
  color: var(--white);
  background: var(--blue);
  font-size: 1.45rem;
}

.icon.orange {
  background: var(--orange);
}

.icon.green {
  background: var(--green);
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  padding-left: 18px;
  margin: 14px 0 0;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.panel {
  padding: 38px;
  border-radius: 34px;
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow);
}

.panel h2,
.panel h3 {
  color: var(--white);
}

.panel p {
  color: rgba(255, 255, 255, 0.78);
}

.steps {
  counter-reset: steps;
  display: grid;
  gap: 16px;
}

.step {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
}

.step::before {
  content: counter(steps);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(242, 140, 40, 0.13);
  color: var(--orange);
  font-size: 1.25rem;
  font-weight: 900;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.feature {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
  line-height: 1;
}

.cert-grid {
  grid-template-columns: repeat(4, 1fr);
}

.cert {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}

.cert strong {
  color: var(--white);
  display: block;
  font-size: 1.05rem;
}

.cert span {
  color: rgba(255,255,255,0.68);
  font-size: 0.92rem;
}

.contact-section {
  background:
    linear-gradient(135deg, rgba(29, 53, 87, 0.98), rgba(29, 53, 87, 0.92)),
    radial-gradient(circle at top left, rgba(242, 140, 40, 0.35), transparent 36%);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 46px;
  align-items: stretch;
}

.contact-section h2 {
  color: var(--white);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-card {
  padding: 34px;
  border-radius: 30px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 28px 70px rgba(0,0,0,0.22);
}

.contact-line {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-line:last-child {
  border-bottom: 0;
}

.contact-line .icon-mini {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(242, 140, 40, 0.12);
  color: var(--orange);
  font-weight: 900;
}

.contact-line strong {
  display: block;
  color: var(--blue);
}

.contact-line a,
.contact-line span {
  color: var(--muted);
}

.cta-box {
  margin-top: 26px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.28);
}

.footer {
  padding: 32px 0;
  background: #152842;
  color: rgba(255, 255, 255, 0.75);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  font-size: 0.92rem;
}

.footer a {
  color: var(--white);
}

.mobile-note {
  display: none;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero-inner,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .services-grid,
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .float-badge {
    right: 16px;
  }
}

@media (max-width: 640px) {
  .brand-logo-wrap {
    width: 62px;
    height: 62px;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
  }

  .hero-logo-chip {
    width: 82px;
    height: 82px;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .header-inner {
    min-height: 72px;
  }

  .header-cta {
    display: none;
  }

  .mobile-note {
    display: inline-flex;
  }

  .section {
    padding: 68px 0;
  }

  .hero-inner {
    padding: 64px 0 52px;
  }

  .services-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 16px;
  }

  .panel,
  .contact-card {
    padding: 26px;
  }

  .energy-house {
    min-height: 330px;
  }

  .float-badge {
    position: static;
    margin-top: 18px;
    max-width: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Legal pages and contact form */
.page-hero {
  padding: 78px 0 46px;
  background:
    radial-gradient(circle at top right, rgba(242, 140, 40, 0.16), transparent 34%),
    linear-gradient(135deg, #F9FBFF 0%, #FFFFFF 72%);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.content-card {
  padding: clamp(26px, 4vw, 46px);
  border-radius: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 52px rgba(29, 53, 87, 0.08);
}

.content-card h2 {
  margin-top: 38px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card h3 {
  margin-top: 26px;
  font-size: 1.2rem;
}

.content-card p,
.content-card li {
  color: var(--muted);
}

.content-card a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(242, 140, 40, 0.45);
  text-underline-offset: 4px;
}

.legal-note {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(242, 140, 40, 0.10);
  border: 1px solid rgba(242, 140, 40, 0.24);
  color: var(--blue);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #FBFCFE;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 140, 40, 0.14);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.checkbox-field input {
  margin-top: 6px;
}

.form-status {
  padding: 16px 18px;
  border-radius: 16px;
  font-weight: 800;
}

.form-status.success {
  background: rgba(76, 175, 80, 0.12);
  color: #276C2A;
  border: 1px solid rgba(76, 175, 80, 0.25);
}

.form-status.error {
  background: rgba(242, 140, 40, 0.12);
  color: #A45205;
  border: 1px solid rgba(242, 140, 40, 0.25);
}

@media (max-width: 860px) {
  .contact-page-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
}


/* Premium contact presentation */
.contact-grid-stylish {
  align-items: center;
}

.contact-copy {
  max-width: 620px;
}

.contact-showcase {
  position: relative;
  padding: 30px;
  border-radius: 36px;
  color: var(--blue);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92)),
    radial-gradient(circle at 90% 0%, rgba(242, 140, 40, 0.22), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(76, 175, 80, 0.18), transparent 36%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 30px 80px rgba(0,0,0,0.24);
  overflow: hidden;
}

.contact-showcase::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(29, 53, 87, 0.08);
  border-radius: 28px;
  pointer-events: none;
}

.contact-showcase-top {
  position: relative;
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 20px;
  align-items: center;
  padding-bottom: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(29, 53, 87, 0.10);
}

.contact-logo.premium {
  width: 116px;
  height: 116px;
  object-fit: contain;
  margin: 0;
  padding: 8px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(29, 53, 87, 0.12);
}

.contact-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--orange);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-showcase-top strong {
  display: block;
  color: var(--blue);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.contact-showcase-top small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.contact-mosaic {
  position: relative;
  display: grid;
  gap: 14px;
}

.contact-tile {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(230, 234, 240, 0.92);
  box-shadow: 0 14px 34px rgba(29, 53, 87, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.contact-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(29, 53, 87, 0.12);
}

.contact-tile.main {
  background: linear-gradient(135deg, var(--blue), #274B78);
  color: var(--white);
  border-color: rgba(255,255,255,0.15);
}

.tile-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--green));
  font-weight: 900;
  font-size: 1.35rem;
}

.contact-tile.main .tile-icon {
  background: rgba(255,255,255,0.15);
}

.contact-tile small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-tile.main small,
.contact-tile.main strong {
  color: var(--white);
}

.contact-tile strong {
  display: block;
  color: var(--blue);
  line-height: 1.35;
}

.contact-actions-premium {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.contact-page-showcase {
  box-shadow: 0 24px 62px rgba(29, 53, 87, 0.12);
}

@media (max-width: 640px) {
  .contact-showcase {
    padding: 22px;
    border-radius: 28px;
  }

  .contact-showcase-top {
    grid-template-columns: 86px 1fr;
  }

  .contact-logo.premium {
    width: 86px;
    height: 86px;
    border-radius: 22px;
  }

  .contact-tile {
    grid-template-columns: 48px 1fr;
    padding: 15px;
  }

  .tile-icon {
    width: 48px;
    height: 48px;
  }
}


/* Simple contact image presentation */
.contact-image-panel {
  padding: 0;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(230, 234, 240, 0.85);
  box-shadow: 0 18px 42px rgba(0,0,0,0.16);
  overflow: hidden;
}

.contact-image-panel-page {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(29, 53, 87, 0.08);
}

.contact-image {
  width: 100%;
  display: block;
  border-radius: 0;
  background: #fff;
}

.contact-note-protection {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.contact-image-panel-page .contact-note-protection {
  background: #fff;
  color: var(--muted);
}

@media (max-width: 860px) {
  .image-contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .image-contact-grid {
    grid-template-columns: 1fr;
  }
}


/* Normal, simple contact card */
.contact-card-simple {
  box-shadow: 0 20px 54px rgba(29, 53, 87, 0.13);
}

.contact-card-head {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
  padding-bottom: 22px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.contact-card-head .contact-logo {
  width: 92px;
  height: 92px;
  margin: 0;
  object-fit: contain;
}

.contact-card-head strong {
  display: block;
  color: var(--blue);
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.contact-card-head span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.contact-card-simple .contact-line a {
  color: var(--blue);
  font-weight: 800;
}

.contact-card-simple .hero-actions {
  margin-top: 24px;
}
