/* ============================================
   Marco Reckeweg Heizung & Sanitär – Stylesheet
   ============================================ */

:root {
  --color-dark: #2c3e50;
  --color-dark-2: #1f2d3a;
  --color-orange: #f2a93b;
  --color-orange-2: #e07b28;
  --color-blue: #4a8fd1;
  --color-blue-2: #2f6fb0;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-text: #333c44;
  --color-text-light: #667080;
  --color-border: #e3e7ec;
  --shadow-soft: 0 10px 30px rgba(44, 62, 80, 0.08);
  --radius: 12px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-block;
  color: var(--color-orange-2);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

h1, h2, h3, h4 {
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.25;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-2) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(224, 123, 40, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 12px 26px rgba(224, 123, 40, 0.4);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-dark);
  color: var(--color-dark);
}

.btn-outline:hover {
  background: var(--color-dark);
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 50px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-dark);
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-orange);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  display: none;
  font-weight: 600;
  color: var(--color-blue-2);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-dark);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 55%, #16222c 100%);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 140px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 169, 59, 0.35) 0%, rgba(242, 169, 59, 0) 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -160px;
  left: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 143, 209, 0.35) 0%, rgba(74, 143, 209, 0) 70%);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content .eyebrow {
  color: var(--color-orange);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  margin-bottom: 20px;
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.hero-facts div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-facts .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  max-width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-logo {
  position: relative;
  width: min(320px, 62vw);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
  animation: hero-logo-float 6s ease-in-out infinite;
}

@keyframes hero-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo {
    animation: none;
  }
}

/* ---------- Services ---------- */
.services {
  background: var(--color-bg);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-blue) 100%);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ---------- About ---------- */
.about {
  background: var(--color-bg-alt);
}

.about .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-visual {
  background: linear-gradient(160deg, #ffffff 0%, var(--color-bg-alt) 100%);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.about-visual img {
  height: 200px;
}

.about-text .eyebrow {
  color: var(--color-orange-2);
}

.about-text p {
  color: var(--color-text-light);
  margin-bottom: 18px;
}

.about-list {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.96rem;
}

.about-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--color-orange-2);
  fill: none;
  stroke-width: 2.2;
  margin-top: 2px;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--color-bg);
}

.contact .container > .section-header {
  margin-bottom: 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-grid-single {
  display: block;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-grid-single .contact-info {
  flex-direction: row;
  align-items: stretch;
}

.contact-grid-single .contact-card,
.contact-grid-single .map-wrapper {
  flex: 1 1 0;
}

.contact-grid-single .contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.contact-row:last-child {
  margin-bottom: 0;
}

.contact-row svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-blue-2);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-row a:hover {
  color: var(--color-blue-2);
}

.map-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 260px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 28px;
  background: var(--color-bg-alt);
}

.map-consent svg {
  width: 30px;
  height: 30px;
  stroke: var(--color-blue-2);
  fill: none;
  stroke-width: 1.6;
}

.map-consent p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  max-width: 360px;
}

.map-consent .btn {
  padding: 10px 22px;
  font-size: 0.88rem;
}

.map-wrapper.map-loaded .map-consent {
  display: none;
}

/* Contact form */
.contact-form {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}

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

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(74, 143, 209, 0.18);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.form-consent input {
  margin-top: 3px;
}

.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.form-status.visible {
  display: block;
}

.form-status.success {
  color: #1e7d4c;
}

.form-status.error {
  color: #c0392b;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--color-blue-2) 0%, var(--color-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.cta-banner h2 {
  color: #fff;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin: 0 auto 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark-2);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 46px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.site-footer ul li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.site-footer ul li a:hover {
  color: var(--color-orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border);
  padding: 26px;
  z-index: 1000;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.cookie-banner p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 18px;
}

.cookie-banner p a {
  color: var(--color-blue-2);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-actions .btn {
  padding: 11px 20px;
  font-size: 0.88rem;
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 30, 0.35);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-settings-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 800;
  background: var(--color-dark);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border: none;
}

.cookie-settings-btn.visible {
  display: flex;
}

.cookie-settings-btn svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 140px 0 100px;
  max-width: 820px;
  margin: 0 auto;
}

.legal-page h1 {
  margin-bottom: 28px;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 36px;
  margin-bottom: 14px;
}

.legal-page p,
.legal-page li {
  color: var(--color-text-light);
  margin-bottom: 12px;
  font-size: 0.98rem;
}

.legal-page ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-page a {
  color: var(--color-blue-2);
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-weight: 600;
  color: var(--color-blue-2);
}

/* ---------- Responsive ---------- */
@media (min-width: 900px) {
  .header-phone {
    display: block;
  }
}

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

  .hero-visual {
    order: -1;
  }

  .about .container {
    grid-template-columns: 1fr;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid-single .contact-info {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.open {
    max-height: 400px;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .main-nav ul li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav ul li a {
    display: block;
    padding: 14px 0;
  }

  .nav-toggle {
    display: block;
  }

  .header-cta .btn {
    display: none;
  }

  section {
    padding: 64px 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
