/* Complete IT Solutions – c-its.at
   Farben: #519325 / #2F6B16 / #E8F3E1
   Keine externen Schriftarten, keine Cookies, keine Tracker. */

:root {
  --green: #519325;
  --green-dark: #2f6b16;
  --green-light: #e8f3e1;
  --green-mid: #cde5be;
  --green-hover: #3f7a1c;
  --text: #1a1a1a;
  --text-muted: #3d3d3d;
  --text-on-green: #ffffff;
  --bg: #f7faf5;
  --white: #ffffff;
  --border: #c9ddbb;
  --focus: #2f6b16;
  --error: #8a1f1f;
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --shadow: 0 1px 2px rgba(47, 107, 22, 0.06), 0 8px 24px rgba(47, 107, 22, 0.07);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --max: 70rem;
  --header-h: 4.25rem;
  --space: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--green-dark);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--green);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 1000;
  background: var(--white);
  color: var(--green-dark);
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 0.75rem;
}

/* ---------- Header / Navigation ---------- */

.site-header {
  background: var(--green);
  color: var(--text-on-green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 4px 16px rgba(47, 107, 22, 0.18);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.4rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
  border-radius: 0.35rem;
}

.logo img {
  height: 4.2rem;
  width: auto;
}

@media (min-width: 44rem) {
  .logo img {
    height: 5.75rem;
  }
}

.logo:focus-visible {
  outline-color: #fff;
}

.nav-toggle {
  display: none;
}

.nav-toggle-btn {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  border-radius: var(--radius-sm);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
}

.nav-toggle-btn span {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle-btn:focus-visible {
  outline-color: #fff;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  display: inline-block;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.site-nav a[aria-current="page"] {
  background: #fff;
  color: var(--green-dark);
}

.site-nav a:focus-visible {
  outline-color: #fff;
}

@media (max-width: 44rem) {
  .nav-toggle-btn {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--green-dark);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    display: none;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 1rem;
  }

  #nav-toggle:checked ~ .header-inner .site-nav,
  #nav-toggle:checked ~ .site-nav,
  body:has(#nav-toggle:checked) .site-nav {
    display: block;
  }

  body:has(#nav-toggle:checked) {
    overflow: hidden;
  }

  #nav-toggle:checked + .header-inner .nav-toggle-btn span:nth-child(1) {
    transform: translateY(0.42rem) rotate(45deg);
  }
  #nav-toggle:checked + .header-inner .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
  }
  #nav-toggle:checked + .header-inner .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-0.42rem) rotate(-45deg);
  }
}

/* The checkbox sits before .header-inner, so the sibling selectors above work. */

/* ---------- Main layout ---------- */

main {
  flex: 1 0 auto;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero {
  background:
    radial-gradient(ellipse 80% 70% at 90% 10%, rgba(81, 147, 37, 0.12), transparent 55%),
    linear-gradient(180deg, var(--green-light) 0%, var(--bg) 100%);
  padding: 2.5rem 0 2.75rem;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 0.5rem;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 0.75rem;
}

.hero h1,
.page-head h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.125rem;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero p {
  margin: 0 0 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.3;
  cursor: pointer;
}

.btn:focus-visible {
  outline-offset: 3px;
}

.btn-primary {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--green-light);
  color: var(--green-dark);
}

.btn-light {
  background: #fff;
  color: var(--green-dark);
  border-color: #fff;
}

.btn-light:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  color: var(--green-dark);
}

/* Sections */

.section {
  padding: 3rem 0;
}

.section h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--green-dark);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-intro {
  max-width: 42rem;
  margin: 0 0 2rem;
  color: var(--text-muted);
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Cards / Leistungen */

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 36rem) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60rem) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid.cols-5 > :nth-child(5) {
    grid-column: auto;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

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

.card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.1rem;
  color: var(--green-dark);
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--green);
  display: block;
}

.icon svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Slogan strip */

.slogan-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.chip {
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-weight: 700;
  font-size: 0.875rem;
}

/* CTA band */

.cta-band {
  background: var(--green);
  color: #fff;
  padding: 2.5rem 0;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.cta-band a:not(.btn) {
  color: #fff;
}

/* Page header (inner pages) */

.page-head {
  background: linear-gradient(180deg, var(--green-light) 0%, var(--bg) 100%);
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-head p {
  margin: 0;
  max-width: 42rem;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: start;
  }
}

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

.contact-list li {
  margin: 0 0 1.15rem;
  padding: 0;
}

.contact-list .label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  margin-bottom: 0.15rem;
}

.contact-list a,
.contact-list address {
  font-style: normal;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.contact-list a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.map-hint {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* Steps (Fernwartung) */

.steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  counter-increment: step;
  position: relative;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--green-dark);
}

.steps p {
  margin: 0;
  color: var(--text-muted);
}

.note {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.note p {
  margin: 0;
}

/* Legal pages */

.legal {
  padding: 2rem 0 3rem;
}

.legal h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  color: var(--green-dark);
  margin: 0 0 0.35rem;
}

.legal .stand {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
}

.legal h2 {
  font-size: 1.2rem;
  color: var(--green-dark);
  margin: 2rem 0 0.6rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.4rem;
}

.legal p,
.legal li {
  max-width: 48rem;
}

.legal address {
  font-style: normal;
  margin: 0 0 1rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal .block {
  margin: 0 0 1rem;
}

/* Footer */

.site-footer {
  background: var(--green-dark);
  color: #eef6e8;
  padding: 2.25rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: #fff;
  text-decoration-thickness: 2px;
}

.site-footer .brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin: 0 0 0.2rem;
}

.site-footer .tagline {
  margin: 0 0 0.75rem;
  color: #d4e8c8;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0 0 0.4rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0.25rem 0 0;
}

.footer-nav a {
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
  color: #d4e8c8;
}

/* 404 */

.empty-state {
  text-align: center;
  padding: 4rem 1.25rem 5rem;
}

.empty-state h1 {
  color: var(--green-dark);
  margin: 1rem 0 0.5rem;
}

/* Print */

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .nav-toggle-btn,
  .hero-actions,
  .cta-band {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  a {
    color: #000;
    text-decoration: none;
  }
  .legal a[href^="http"]::after,
  .legal a[href^="mailto"]::after,
  .legal a[href^="tel"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #333;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.card-heading {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--green-dark);
}

.hero-actions-center {
  justify-content: center;
}


@media (min-width: 36rem) {
  .card-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc((100% - 1.25rem) / 2);
    justify-self: center;
    width: 100%;
  }
}

@media (min-width: 60rem) {
  .card-grid.cols-3 > :last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
}

/* ---------- Kopfbanner Netzwerkkabel (aus dem alten Design) ---------- */

.top-banner {
  position: relative;
  background: #2f6b16 url("../img/glasfaser-poster.jpg") center / cover no-repeat;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Hintergrundvideo Glasfaser (Pixabay, MrWashingt0n), stark abgeschwächt */
.banner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.banner-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(244, 245, 244, 0.5) 0%, rgba(232, 236, 230, 0.4) 100%);
}

.top-banner-inner {
  position: relative;
  max-width: var(--max);
  height: 150px;
  margin: 0 auto;
}

.banner-img {
  position: absolute;
  right: 0;
  top: 0;
  height: 150px;
  width: auto;
  max-width: none;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 88%, transparent 100%);
}

.banner-anim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 150px;
  overflow: visible;
}

.fiber-base {
  fill: none;
  stroke: #519325;
  stroke-width: 1.2;
  stroke-opacity: 0.18;
}

.fiber-pulse {
  fill: none;
  stroke: url(#fg);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 70 930;
  stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 3px rgba(127, 209, 74, 0.9));
  animation: fiber-flow 3.2s linear infinite;
}

.fiber-pulse.p1 { animation-delay: -0.7s; animation-duration: 2.8s; }
.fiber-pulse.p2 { animation-delay: -1.5s; animation-duration: 3.6s; }
.fiber-pulse.p3 { animation-delay: -2.2s; animation-duration: 3s; }
.fiber-pulse.p4 { animation-delay: -1.1s; animation-duration: 4s; }

@keyframes fiber-flow {
  to { stroke-dashoffset: 0; }
}

.bit {
  fill: #1c1c1c;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  opacity: 0;
}

.plug-glow {
  fill: #7fd14a;
  opacity: 0;
  filter: blur(6px);
  animation: plug-glow 3.2s ease-in-out infinite;
}

@keyframes plug-glow {
  0%, 70%, 100% { opacity: 0; }
  85% { opacity: 0.55; }
}


/* Datenfluss: Bits und Pakete wandern durch die Leitungen */
.data-flow > * { opacity: 0; }
.flow-bit {
  fill: #2f6b16;
  font-family: "Courier New", Consolas, monospace;
  font-weight: 700;
}
.packet rect {
  fill: #519325;
  stroke: #ffffff;
  stroke-width: 1;
  filter: drop-shadow(0 0 3px rgba(127, 209, 74, 0.8));
}
.packet text {
  fill: #ffffff;
  font-family: "Courier New", Consolas, monospace;
  font-weight: 700;
}

@media (max-width: 43.99rem) {
  .top-banner-inner,
  .banner-img,
  .banner-anim {
    height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fiber-pulse,
  .plug-glow {
    animation: none;
  }
  .fiber-pulse { stroke-dashoffset: 500; }
}

@media print {
  .top-banner { display: none; }
}

/* ---------- Layout: Banner kleiner, grüne Leiste mit Logo größer (ca. halbe/halbe) ---------- */

.top-banner-inner,
.banner-img {
  height: 112px;
}

.banner-anim {
  left: auto;
  right: 0;
  width: auto;
  height: 112px;
  aspect-ratio: 8 / 1;
}

.header-inner {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  transition: padding 0.25s ease;
}

.logo img {
  height: 4.8rem;
  transition: height 0.25s ease;
}

@media (min-width: 44rem) {
  .header-inner {
    min-height: 8rem;
  }
  .logo img {
    height: 7rem;
  }
}

/* Beim Scrollen wird die fixierte Leiste wieder kompakt */
.site-header.is-scrolled .header-inner {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  min-height: var(--header-h);
}

.site-header.is-scrolled .logo img {
  height: 3.8rem;
}

@media (max-width: 43.99rem) {
  .top-banner-inner,
  .banner-img,
  .banner-anim {
    height: 76px;
  }
}
