/* ==========================================================================
   REISER Energietechnik – Stylesheet
   Theme: Schwarz (Logo/BORA-Anmutung) + Weiß (Apple-Anmutung) + Blau (Akzent)
   Schriftart: System-Font-Stack (sieht aus wie SF Pro / Inter, ohne externe
   Schriftart-Anfragen -> DSGVO-unkritisch)
   ========================================================================== */

:root {
  /* Farben */
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-bg-dark: #0a0a0c;
  --color-bg-dark-alt: #161619;
  --color-text: #1d1d1f;
  --color-text-muted: #6e6e73;
  --color-text-light: #ffffff;
  --color-text-light-muted: #a1a1a6;
  --color-accent: #0a84ff;
  --color-accent-dark: #0066cc;
  --color-border: #e3e3e6;
  --color-border-dark: #2c2c2e;

  /* Typografie */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Helvetica, Arial, sans-serif;

  /* Sonstiges */
  --container-width: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   Reset & Basics
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* Section spacing */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 17px;
}

.section-dark .section-head p {
  color: var(--color-text-light-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition),
    color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-text);
}

.section-dark .btn-secondary {
  color: var(--color-text-light);
  border-color: var(--color-border-dark);
}

.section-dark .btn-secondary:hover {
  border-color: var(--color-text-light);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  height: 34px;
}

.logo img {
  height: 100%;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-light-muted);
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--color-text-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-light);
  white-space: nowrap;
}

.header-phone svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  margin: -8px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-light);
  position: relative;
  transition: background var(--transition);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 168px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 60% 50% at 80% 0%,
      rgba(10, 132, 255, 0.25),
      transparent 60%
    ),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(10, 132, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light-muted);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--color-accent);
}

.hero p.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--color-text-light-muted);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-meta-item strong {
  font-size: 22px;
  font-weight: 700;
}

.hero-meta-item span {
  font-size: 14px;
  color: var(--color-text-light-muted);
}

/* ==========================================================================
   USP Bar
   ========================================================================== */

.usp {
  background: var(--color-bg-dark-alt);
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border-dark);
}

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

.usp-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 24px;
  font-size: 15px;
  font-weight: 600;
  border-left: 1px solid var(--color-border-dark);
}

.usp-item:first-child {
  border-left: none;
}

.usp-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: var(--color-accent);
}

/* ==========================================================================
   Leistungen / Service Cards
   ========================================================================== */

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

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

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

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(10, 132, 255, 0.1);
  margin-bottom: 24px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-accent);
}

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

.service-card p {
  font-size: 15px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   KNX Spotlight
   ========================================================================== */

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

.knx-content .eyebrow {
  color: var(--color-accent);
}

.knx-content h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 20px;
}

.knx-content p {
  color: var(--color-text-light-muted);
  font-size: 17px;
  margin-bottom: 28px;
}

.knx-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.knx-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--color-text-light);
}

.knx-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--color-accent);
  margin-top: 2px;
}

.knx-panel {
  background: var(--color-bg-dark-alt);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.knx-panel .knx-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 220px;
  padding: 28px 24px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  margin-bottom: 24px;
}

.knx-panel .knx-logo-badge img {
  width: 100%;
  height: auto;
}

.knx-panel h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.knx-panel p {
  font-size: 14px;
  color: var(--color-text-light-muted);
}

/* ==========================================================================
   Über mich
   ========================================================================== */

.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-bg-dark);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content .eyebrow {
  margin-bottom: 14px;
}

.about-content h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--color-text-muted);
  font-size: 17px;
  margin-bottom: 18px;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 600;
}

.about-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-accent);
}

/* ==========================================================================
   Einzugsgebiet
   ========================================================================== */

.area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.area-content h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 20px;
}

.area-content p {
  color: var(--color-text-muted);
  font-size: 17px;
  margin-bottom: 28px;
}

.area-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.area-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.area-list svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent);
  flex-shrink: 0;
}

.area-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
}

.area-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 32px;
  background: var(--color-bg);
}

.map-placeholder svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-accent);
}

.map-placeholder p {
  font-weight: 600;
  font-size: 16px;
}

.map-placeholder small {
  font-size: 12px;
  color: var(--color-text-muted);
  max-width: 280px;
}

.map-placeholder small a {
  color: var(--color-accent);
}

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
}

.contact-info h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--color-text-light-muted);
  font-size: 17px;
  margin-bottom: 36px;
}

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

.contact-list a,
.contact-list .contact-static {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  transition: color var(--transition);
}

.contact-list a:hover {
  color: var(--color-accent);
}

.contact-list .icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.12);
  flex-shrink: 0;
}

.contact-list .icon-circle svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
}

.contact-list .contact-text small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-light-muted);
  margin-bottom: 2px;
}

.contact-form {
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: var(--radius);
  padding: 40px;
}

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

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  transition: border-color var(--transition), background var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-bg);
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.form-checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
}

.form-checkbox a {
  color: var(--color-accent);
  text-decoration: underline;
}

.form-note {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.form-note.success {
  color: #1a8a4c;
}

.form-note.error {
  color: #d92d20;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light-muted);
  padding: 64px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border-dark);
}

.footer-brand .logo img {
  height: 32px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  max-width: 280px;
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-text-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 13px;
}

.footer-bottom a:hover {
  color: var(--color-text-light);
}

/* ==========================================================================
   Legal pages (Impressum / Datenschutz)
   ========================================================================== */

.legal {
  padding: 160px 0 100px;
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal p,
.legal li {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.legal a {
  color: var(--color-accent);
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .knx,
  .about,
  .area,
  .contact {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .knx-panel {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }

  .about-photo {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }

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

  .usp-item:nth-child(3) {
    border-left: none;
  }

  .usp-item:nth-child(2),
  .usp-item:nth-child(4) {
    border-left: 1px solid var(--color-border-dark);
  }

  .usp-item:nth-child(3),
  .usp-item:nth-child(4) {
    border-top: 1px solid var(--color-border-dark);
  }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-bg-dark);
    border-bottom: 1px solid var(--color-border-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .nav.open {
    max-height: 320px;
  }

  .nav a {
    width: 100%;
    padding: 16px 24px;
    border-top: 1px solid var(--color-border-dark);
  }

  .header-phone span {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 140px 0 80px;
  }

  .hero-meta {
    gap: 24px;
  }

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

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

  .usp-item {
    border-left: none !important;
    border-top: 1px solid var(--color-border-dark);
  }

  .usp-item:first-child {
    border-top: none;
  }

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

  .contact-form {
    padding: 28px;
  }

  .area-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-cols {
    gap: 40px;
  }

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