/* Elektrotechnik Sill – static site (light theme matching live site) */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/open-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/open-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --yellow: #fff600;
  --accent: #0496d8;
  --text: #212529;
  --topbar-text: #666;
  --nav-muted: rgba(26, 27, 31, 0.4);
  --submenu-text: #444;
  --contact-bg: #f1f1f1;
  --copyright: rgba(26, 27, 31, 0.4);
  --white: #fff;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: 'Open Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-padding {
  padding: 0 30px;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Topbar */
.topbar {
  background: var(--yellow);
  color: var(--topbar-text);
  font-size: 13px;
  letter-spacing: 5px;
  line-height: 1.5;
  padding: 15px;
  text-align: center;
  margin-bottom: 10px;
}

/* Header */
.site-header {
  background: var(--white);
  border: none;
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 107px;
  position: relative;
}

.logo {
  display: inline-flex;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  height: 81px;
  width: auto;
  max-width: none;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: #e9e9e9;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: #222;
  border-radius: 2px;
}

/* Desktop nav */
.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--nav-muted);
  text-decoration: none;
  position: relative;
  gap: 6px;
  transition: color 0.4s ease;
}

.nav-list > li > a:hover,
.nav-list > li > a:focus,
.nav-list > li > a.is-active {
  color: var(--accent);
}

.nav-list > li > a::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.nav-list > li > a:hover::after,
.nav-list > li > a:focus-visible::after,
.nav-list > li > a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.chevron {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.submenu-toggle {
  display: none;
}

/* Desktop dropdown */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: #f5f5f5;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
}

.submenu a {
  display: block;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 400;
  color: var(--submenu-text);
  text-decoration: none;
  text-transform: none;
}

.submenu a:hover,
.submenu a:focus,
.submenu a.is-active {
  color: var(--accent);
}

/* Banner */
.banner {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
}

.banner-slide.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .banner-slide {
    transition: none;
  }

  .nav-list > li > a,
  .nav-list > li > a::after {
    transition: none;
  }
}

/* Content */
.content-section {
  padding: 106px 0 190px;
}

main.is-centered {
  text-align: center;
}

h1 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 36px;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin: 0 0 20px;
  overflow-wrap: break-word;
}

h1::before,
h1::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--yellow);
}

h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 30px;
  text-transform: none;
  text-align: left;
  overflow-wrap: break-word;
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 8px;
  text-align: left;
  overflow-wrap: break-word;
}

p {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 16px;
}

main a {
  color: var(--accent);
}

main ul {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 16px;
  padding-left: 1.4em;
}

main li {
  margin-bottom: 0.35em;
}

.leistungen-liste {
  list-style: none;
  padding-left: 0;
}

.leistungen-liste li {
  margin-bottom: 12px;
}

.leistungen-liste a {
  font-weight: 700;
}

/* Contact page */
.contact-block {
  margin-top: 10px;
}

.contact-block dl {
  margin: 0;
}

.contact-block dt {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  margin: 24px 0 8px;
}

.contact-block dt:first-child {
  margin-top: 0;
}

.contact-block dd {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text);
}

.contact-block address {
  font-style: normal;
}

/* Contact footer */
.contact-footer {
  background-color: var(--contact-bg);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.55) 0 2px,
    rgba(255, 255, 255, 0) 2px 14px
  );
  padding: 30px 0 70px;
}

.contact-cols {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.contact-col {
  flex: 1 1 0;
  min-width: 0;
}

.contact-col .footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 14px;
}

.contact-col > p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}

.contact-col > p strong {
  font-weight: 700;
}

.contact-footer h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 20px;
  text-align: left;
}

.contact-list,
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  line-height: 24px;
}

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

.contact-list .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text);
}

.contact-list a {
  color: #000;
  text-decoration: none;
  font-size: 16px;
}

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

.info-list li {
  margin-bottom: 0;
  line-height: 24px;
}

.info-list a {
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  line-height: 24px;
}

.info-list a:hover,
.info-list a:focus {
  color: var(--accent);
}

/* Copyright footer */
.site-footer {
  background: var(--white);
  padding: 40px 0;
}

.site-footer p {
  font-size: 14px;
  color: var(--copyright);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* Mobile ≤991px */
@media (max-width: 991px) {
  .site-padding {
    padding: 0 15px;
  }

  .logo img {
    height: 47px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid #eee;
    z-index: 100;
    padding: 8px 15px 16px;
  }

  .site-nav.is-open {
    display: block;
  }

  .chevron {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
    position: static;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list > li > a {
    display: block;
    height: auto;
    padding: 12px 0;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 500;
  }

  .nav-list > li > a::after {
    display: none;
  }

  .has-submenu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .has-submenu > a {
    flex: 1 1 auto;
  }

  .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--nav-muted);
    position: relative;
  }

  .submenu-toggle::before {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
  }

  .has-submenu.is-open > .submenu-toggle {
    color: var(--accent);
  }

  .has-submenu.is-open > .submenu-toggle::before {
    transform: rotate(-135deg);
    margin-top: 2px;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
    min-width: 0;
    width: 100%;
    background: transparent;
    transition: none;
  }

  .has-submenu.is-open > .submenu {
    display: block;
  }

  .submenu a {
    padding: 10px 0 10px 20px;
  }

  .banner {
    height: 240px;
  }

  .content-section {
    padding: 60px 0 50px;
  }

  .contact-footer {
    padding: 30px 0 40px;
  }

  h1 {
    display: block;
  }

  h1::before,
  h1::after {
    display: none;
  }

  .contact-cols {
    flex-direction: column;
    gap: 30px;
  }
}
