/* Elektro Schiller Ummendorf — Stylesheet */

:root {
  --color-navy: #262626;
  --color-navy-light: #3d3d3d;
  --color-accent: #f7ce3e;
  --color-accent-dark: #d2af35;
  --color-bg: #f6f6f6;
  --color-surface: #ffffff;
  --color-text: #1f1f1f;
  --color-text-muted: #62626a;
  --color-border: #e2e2e2;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(38, 38, 38, 0.05);
  --shadow-md: 0 4px 16px rgba(38, 38, 38, 0.08);
  --header-height: 76px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

p {
  margin: 0;
}

section {
  scroll-margin-top: 64px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

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

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

.icon {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn .icon {
  width: 17px;
  height: 17px;
}

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

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

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

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

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

.btn-outline:hover {
  border-color: var(--color-navy);
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(38, 38, 38, 0.0);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, height 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(38, 38, 38, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  height: 64px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

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

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

.main-nav a.is-active,
.main-nav a:hover {
  color: #fff;
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Hero */

.hero {
  position: relative;
  padding: calc(var(--header-height) + 72px) 0 96px;
  background: var(--color-navy);
  color: #fff;
  overflow: hidden;
}

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

.hero-content h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

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

.hero-content p {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 540px;
  margin-bottom: 32px;
}

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

.hero-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

.hero-badges .badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-badges .icon {
  width: 13px;
  height: 13px;
  fill: var(--color-accent);
  stroke: none;
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card {
  display: block;
  position: relative;
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hero-card:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.05);
}

.hero-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.hero-card h3 .icon {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  stroke-width: 2;
  flex-shrink: 0;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
}

.status-pill.is-open .status-dot {
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

.status-pill.is-closed .status-dot {
  background: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.16);
}

/* Hero-Blitz-Sparkles (Mausbewegung) */

.hero-spark {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  color: var(--color-accent);
  opacity: 0;
  transform: scale(0.3) rotate(-10deg);
  animation: hero-spark-pop 700ms ease-out forwards;
  z-index: 2;
}

.hero-spark svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@keyframes hero-spark-pop {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg);
  }
  25% {
    opacity: 0.85;
    transform: scale(1) rotate(6deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.6) translateY(-14px) rotate(-6deg);
  }
}

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

/* Logos strip */

.trust-strip {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent);
}

.trust-track {
  display: flex;
  width: max-content;
  gap: 48px;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  animation: trust-scroll 28s linear infinite;
}

.trust-strip:hover .trust-track {
  animation-play-state: paused;
}

.trust-track span {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

@keyframes trust-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

.trust-strip .icon {
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
}

/* Generic sections */

.section {
  padding: 96px 0;
}

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

/* Services */

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

.service-item {
  padding: 26px 0;
  border-top: 1px solid var(--color-border);
}

.service-item:nth-child(1),
.service-item:nth-child(2) {
  border-top: none;
}

.service-item-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.service-item .icon {
  width: 22px;
  height: 22px;
  color: var(--color-navy);
  flex-shrink: 0;
}

.service-item h3 {
  font-size: 1.05rem;
}

.service-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-left: 36px;
}

/* About */

.about-photo {
  margin-bottom: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

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

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

.about-text p:last-child {
  margin-bottom: 0;
}

.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-item .year {
  display: block;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.stat-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.stat-card span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* References */

.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
}

.reference-card {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--color-border);
}

.reference-card:nth-child(1),
.reference-card:nth-child(2) {
  border-top: none;
}

.reference-card .index {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-muted);
  padding-top: 2px;
}

.reference-card h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.reference-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 32px;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-card h3 .icon {
  color: var(--color-navy);
  width: 22px;
  height: 22px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hours-table td {
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border);
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table td:first-child {
  font-weight: 600;
  width: 40%;
}

.hours-table tr.is-today td {
  color: var(--color-navy);
  font-weight: 700;
}

.hours-note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

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

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-list .icon {
  width: 20px;
  height: 20px;
  color: var(--color-navy);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-list strong {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.contact-list a,
.contact-list span.value {
  font-weight: 600;
  font-size: 1.02rem;
}

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

.contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Footer */

.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
}

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

.footer-brand .brand {
  margin-bottom: 14px;
}

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

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

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

.footer-col a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col a:hover {
  color: #fff;
}

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

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

.footer-bottom a:hover {
  color: #fff;
}

/* Reveal animation */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Legal pages */

.legal-page {
  padding: calc(var(--header-height) + 56px) 0 96px;
}

.legal-page .container {
  max-width: 760px;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-page .updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
  display: block;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--color-navy);
}

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

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

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

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

.back-link .icon {
  width: 16px;
  height: 16px;
}

/* Responsive */

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

  .hero-visual {
    order: -1;
  }

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

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

@media (max-width: 760px) {
  .main-nav,
  .header-actions .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.is-nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-navy);
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: var(--shadow-md);
  }

  .section {
    padding: 72px 0;
  }

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

  .service-item:nth-child(2) {
    border-top: 1px solid var(--color-border);
  }

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

  .reference-card:nth-child(2) {
    border-top: 1px solid var(--color-border);
  }

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

  .hero-badges {
    gap: 14px 20px;
  }
}
