/* ETK Elektrotechnik.Kiel – Design nach Entwurf 2 (Version 6)
   Datei: media/templates/site/cassiopeia/css/user.css */

:root {
  --etk-blau: #0b4a94;
  --etk-blau-dunkel: #08377a;
  --etk-gelb: #f9c80e;
  --etk-hell: #f0f5fb;
  --etk-text: #12315c;
}

body {
  color: var(--etk-text);
  background: #fff;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

/* Gemeinsame Regel: Blöcke über die volle Bildschirmbreite */
.etk-hero,
.etk-leistungen {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
}
/* Kopf und Fußleiste liegen in Joomla schon in voller Breite */
.etk-kopf,
.etk-vorteile,
.etk-rechtliches {
  width: 100vw;
  max-width: 100vw;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
/* Hintergrund reicht bei Bedarf über die Ränder hinaus */
.etk-kopf { box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); }
.etk-vorteile { box-shadow: 0 0 0 100vmax var(--etk-blau); clip-path: inset(0 -100vmax); }
.etk-rechtliches { box-shadow: 0 0 0 100vmax var(--etk-blau-dunkel); clip-path: inset(0 -100vmax); }

.etk-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: max(1.25rem, calc((100vw - 1200px) / 2));
  padding-right: max(1.25rem, calc((100vw - 1200px) / 2));
  box-sizing: border-box;
}

/* ---------- Kopf: Menü oben, Logo-Band darunter ---------- */
.container-header {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--etk-blau) !important;
  background-image: none !important;
  box-shadow: none;
}
.container-header > *,
.container-header .grid-child {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.container-header .navbar-brand { display: none; }
.container-header .container-nav {
  order: -1;
  background: var(--etk-blau);
}
.container-header .container-below-top {
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch !important;
  align-self: stretch !important;
  flex: 1 1 100% !important;
  order: 1;
  background: #fff;
  box-shadow: 0 4px 14px rgba(11, 74, 148, .10);
}
.container-header .container-nav {
  display: block !important;
}
.container-header .container-nav nav {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.container-header .container-nav .mod-menu {
  max-width: none;
  margin: 0;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  justify-content: center;
  box-sizing: border-box;
}
.container-header .mod-menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
}
.container-header .mod-menu a {
  display: block;
  color: #fff;
  background: none;
  padding: .95rem 1.1rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.container-header .mod-menu > li:first-child > a::before { content: "\2302\00a0"; }
.container-header .mod-menu a:hover,
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-bottom-color: var(--etk-gelb);
}

/* ---------- Kopfbereich (Position "below-top") ---------- */
.etk-kopf { background: #fff; padding: 1.5rem 0; }
.etk-kopf .etk-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.etk-logo img { height: 150px; width: auto; display: block; }
.etk-titel {
  flex: 1 1 320px;
  border-left: 2px solid var(--etk-blau);
  padding-left: 1.5rem;
}
.etk-firma {
  margin: 0;
  font-weight: 800;
  color: var(--etk-blau);
  line-height: 1.05;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}
.etk-firma span { display: block; font-size: 1.5em; letter-spacing: .02em; }
.etk-slogan {
  margin: .5rem 0 0;
  font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
  font-style: italic;
  color: var(--etk-blau);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
}
.etk-kontakt { list-style: none; margin: 0; padding: 0; flex: 0 1 auto; }
.etk-kontakt li {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: .45rem 0;
  font-size: 1rem;
}
.etk-kontakt li > span:not(.etk-icon-rund),
.etk-kontakt a { color: var(--etk-text) !important; text-decoration: none; }
.etk-kontakt .etk-icon-rund,
.etk-kontakt .etk-icon-rund i { color: #fff !important; }
.etk-firma, .etk-firma span { color: var(--etk-blau) !important; }
.etk-slogan { color: var(--etk-blau) !important; }
.etk-kontakt a:hover { text-decoration: underline; }
.etk-kontakt .etk-icon-rund {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--etk-blau);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
}

/* ---------- Hero (Position "top-a") ---------- */
.etk-hero {
  background:
    linear-gradient(90deg, rgba(8,55,122,.97) 0%, rgba(8,55,122,.92) 38%, rgba(8,55,122,.45) 62%, rgba(8,55,122,0) 85%),
    url("/images/etk-hero.jpg") right 65% / cover no-repeat;
  color: #fff;
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}
.etk-hero .etk-inner { width: 100%; }
.etk-hero .etk-klein { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }
.etk-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  margin: 0 0 .4rem;
  line-height: 1.05;
}
.etk-hero .etk-claim { font-size: clamp(1.1rem, 2.4vw, 1.5rem); margin: 0 0 1rem; }
.etk-hero .etk-balken {
  width: 70px;
  height: 4px;
  background: var(--etk-gelb);
  margin: 0 0 1rem;
}
.etk-hero .etk-text { max-width: 30rem; margin: 0; }

/* ---------- Leistungen (Position "top-b") ---------- */
.etk-leistungen { background: var(--etk-hell); padding: 3rem 0 3.5rem; }
.etk-ueberschrift {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--etk-blau);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-align: center;
  margin: 0 0 .4rem;
}
.etk-ueberschrift::before,
.etk-ueberschrift::after {
  content: "";
  flex: 0 0 clamp(20px, 5vw, 60px);
  height: 3px;
  background: var(--etk-gelb);
}
.etk-unter { text-align: center; margin: 0 0 2.2rem; }
.etk-karten {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.etk-karte {
  flex: 0 1 calc(25% - 1rem);
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 0 1rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(11, 74, 148, .12);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.etk-karte:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(11, 74, 148, .20);
}
.etk-karte img {
  display: block;
  width: calc(100% + 2rem) !important;
  max-width: none !important;
  margin: 0 -1rem;
  height: 160px !important;
  object-fit: cover;
}
.etk-karte .etk-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  margin: -34px auto .6rem;
  border-radius: 50%;
  background: var(--etk-blau);
  color: #fff;
  font-size: 1.6rem;
  border: 4px solid #fff;
  position: relative;
}
.etk-karte h3 { color: var(--etk-blau); font-size: 1.15rem; font-weight: 700; margin: 0 0 .5rem; }
.etk-karte p { margin: 0; font-size: .95rem; line-height: 1.5; }

/* ---------- Fußbereich (Position "footer") ---------- */
footer.footer,
.container-footer {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  background: var(--etk-blau) !important;
  background-image: none !important;
  color: #fff;
  padding: 0 !important;
  margin: 0 !important;
}
.container-footer .grid-child,
.container-footer > * {
  background: none !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  justify-self: stretch !important;
  align-self: stretch !important;
  flex: 1 1 100% !important;
}
.etk-vorteile { background: var(--etk-blau); }
.etk-vorteile .etk-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}
.etk-vorteil {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  font-size: .95rem;
  color: #fff;
}
.etk-vorteil i { color: var(--etk-gelb); font-size: 1.8rem; }
.etk-rechtliches {
  background: var(--etk-blau-dunkel);
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  padding: .8rem 1rem;
  font-size: .85rem;
}
.etk-rechtliches a { color: #fff; margin: 0 .7rem; text-decoration: none; opacity: .9; }
.etk-rechtliches a:hover { text-decoration: underline; opacity: 1; }

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
  .etk-karte { flex-basis: calc(50% - .7rem); }
  .etk-vorteile .etk-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Handy ---------- */
@media (max-width: 767px) {
  .container-header .container-nav .mod-menu { justify-content: center; padding-left: .5rem; padding-right: .5rem; }
  .container-header .mod-menu a { padding: .8rem .75rem; font-size: .95rem; }

  .etk-kopf { padding: 1rem 0; }
  .etk-kopf .etk-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .6rem 1rem;
    align-items: center;
  }
  .etk-logo img { height: 84px; }
  .etk-titel { border-left: 0; padding-left: 0; flex: none; }
  .etk-firma { font-size: 1.15rem; }
  .etk-slogan { font-size: 1rem; }
  .etk-kontakt { grid-column: 1 / -1; }
  .etk-kontakt li { margin: .3rem 0; font-size: .95rem; }
  .etk-kontakt .etk-icon-rund { flex-basis: 34px; width: 34px; height: 34px; }

  .etk-hero {
    min-height: 0;
    padding: 2.2rem 0;
    background:
      linear-gradient(180deg, rgba(8,55,122,.88), rgba(8,55,122,.80)),
      url("/images/etk-hero.jpg") 70% center / cover no-repeat;
  }
  .etk-hero .etk-text { font-size: .98rem; }

  .etk-leistungen { padding: 2rem 0 2.5rem; }
  .etk-karte { flex-basis: 100%; }
  .etk-karte img { height: 170px !important; }
}

@media (max-width: 479px) {
  .etk-vorteile .etk-inner { gap: .8rem .6rem; }
  .etk-vorteil { font-size: .85rem; gap: .5rem; justify-content: flex-start; }
  .etk-vorteil i { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .etk-karte { transition: none; }
  .etk-karte:hover { transform: none; }
}
