/* ==========================================================================
   ez digital – main.css
   Schriften lokal eingebunden (DSGVO-konform, keine Google-Server)
   ========================================================================== */

@font-face {
  font-family: "Lexend";
  src: url("../Fonts/lexend-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../Fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ez-navy-950: #08182a;
  --ez-navy-900: #0c1d31;
  --ez-navy-800: #10253d;
  --ez-ink: #13243a;
  --ez-text: #46566b;
  --ez-muted: #66768a;
  --ez-blue: #1a8cf6;
  --ez-blue-strong: #0f74d6;
  --ez-blue-light: #5aaeff;
  --ez-blue-tint: #eaf3fd;
  --ez-surface: #f3f6fa;
  --ez-line: #e1e8f0;
  --ez-white: #ffffff;

  --ez-font-head: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ez-font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ez-container: 1180px;
  --ez-gutter: clamp(20px, 4vw, 32px);
  --ez-header-h: 84px;
  --ez-radius: 6px;
}

/* ---------- Basis ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--ez-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ez-text);
  background: var(--ez-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
  display: block;
}

a {
  color: var(--ez-blue-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ez-blue);
}

:focus-visible {
  outline: 2px solid var(--ez-blue-light);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ez-font-head);
  color: var(--ez-ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ez-white);
  color: var(--ez-ink);
  border-radius: var(--ez-radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: calc(var(--ez-container) + 2 * var(--ez-gutter));
  margin-inline: auto;
  padding-inline: var(--ez-gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.8em 1.35em;
  border-radius: var(--ez-radius);
  border: 1.5px solid transparent;
  font-family: var(--ez-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
}

.btn--primary {
  background: var(--ez-blue);
  color: var(--ez-white);
}

.btn--primary:hover {
  background: var(--ez-blue-strong);
  color: var(--ez-white);
}

.btn--outline {
  border-color: var(--ez-blue);
  color: var(--ez-blue-strong);
  background: transparent;
  border-radius: 999px;
  padding: 0.7em 1.4em;
  font-size: 0.875rem;
}

.btn--outline:hover {
  background: var(--ez-blue);
  color: var(--ez-white);
}

.btn--sm {
  padding: 0.7em 1.15em;
  font-size: 0.875rem;
}

/* ---------- Kicker (kleine Zeile über Überschriften) ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--ez-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ez-ink);
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--ez-blue);
  flex: none;
}

.kicker--plain::before {
  display: none;
}

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--ez-font-head);
  font-size: 2rem;
  line-height: 1;
  color: var(--ez-white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--ez-white);
}

.logo__ez {
  font-weight: 700;
}

.logo__slash {
  color: var(--ez-blue);
  font-weight: 600;
  font-size: 1.18em;
  margin: 0 0.04em 0 0.02em;
  transform: skewX(-8deg) translateY(0.04em);
  display: inline-block;
}

.logo__digital {
  font-weight: 300;
}

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

.site {
  position: relative;
  overflow-x: clip;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  color: var(--ez-white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--ez-header-h);
}

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

.site-nav__list {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav__link:hover {
  color: var(--ez-white);
}

.site-nav__link.is-active {
  color: var(--ez-white);
  font-weight: 600;
}

.site-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--ez-blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--ez-radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ez-white);
  cursor: pointer;
  place-items: center;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle__bars {
  position: relative;
}

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

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: var(--ez-header-h);
    left: var(--ez-gutter);
    right: var(--ez-gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 20px 20px;
    background: var(--ez-navy-900);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(4, 12, 24, 0.45);
    display: none;
  }

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

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__link {
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav__link.is-active::after {
    display: none;
  }

  .site-nav__link.is-active {
    color: var(--ez-blue-light);
  }

  .site-header__cta {
    justify-content: center;
  }
}

/* ---------- Bühne (Hero) ---------- */

.ce--hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 72vh, 720px);
  padding: calc(var(--ez-header-h) + 56px) 0 80px;
  background: var(--ez-navy-900);
  color: var(--ez-white);
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  z-index: -2;
}

.ce--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 24, 42, 0.55) 0%, rgba(8, 24, 42, 0) 26%),
    linear-gradient(90deg, rgba(8, 24, 42, 0.82) 0%, rgba(8, 24, 42, 0.55) 42%, rgba(8, 24, 42, 0) 72%);
}

.hero__inner {
  position: relative;
}

.ce--hero .kicker {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 22px;
}

.hero__title {
  max-width: 11.5em;
  margin: 0 0 26px;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ez-white);
  text-wrap: balance;
}

.hero__text {
  max-width: 34em;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

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

.hero__btn {
  margin-top: 32px;
}

.hero-spacer {
  height: calc(var(--ez-header-h) + 40px);
  background: var(--ez-navy-900);
}

/* ---------- Abschnitte ---------- */

.section {
  padding-block: clamp(64px, 8vw, 104px);
}

.section--projects {
  background: var(--ez-surface);
}

.section--cta {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 90% at 85% 40%, rgba(26, 140, 246, 0.16), transparent 70%),
    var(--ez-navy-900);
  color: rgba(255, 255, 255, 0.78);
}

.section--cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../Images/network.svg") right center / cover no-repeat;
  opacity: 0.32;
}

/* Raster: kleine Elemente nebeneinander, alles andere über die volle Breite */
.ce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: 44px;
  align-items: start;
}

.ce-grid > * {
  grid-column: 1 / -1;
  min-width: 0;
}

.ce-grid > .ce--service,
.ce-grid > .ce--project,
.ce-grid > .ce--feature {
  grid-column: auto;
}

.section--projects .ce-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  column-gap: 24px;
  row-gap: 24px;
  align-items: stretch;
}

.section--projects .ce--intro {
  margin-bottom: 20px;
}

/* ---------- Abschnitts-Einleitung ---------- */

.ce--intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: 8px;
}

.intro__text {
  max-width: 52rem;
}

.ce--intro .kicker {
  color: var(--ez-ink);
}

.section--services .ce--intro .kicker,
.section--page .ce--intro .kicker {
  color: var(--ez-blue-strong);
}

.section--cta .kicker,
.ce--cta .kicker {
  color: var(--ez-blue-light);
}

.intro__title {
  margin: 0 0 14px;
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  line-height: 1.15;
  text-wrap: balance;
}

.intro__lead {
  max-width: 40em;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ez-text);
}

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

.intro__action {
  flex: none;
}

/* ---------- Leistung mit Icon ---------- */

.ce--service {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  align-items: start;
}

.service__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--ez-blue-tint);
  color: var(--ez-blue);
}

.service__icon .icon {
  width: 28px;
  height: 28px;
}

.service__title {
  margin: 4px 0 8px;
  font-size: 1.0625rem;
  font-weight: 600;
}

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

.service__title a:hover {
  color: var(--ez-blue-strong);
}

.service__text {
  margin: 0;
  max-width: 24em;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ez-muted);
}

/* ---------- Referenz-Karte ---------- */

.ce--project {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--ez-white);
  border: 1px solid var(--ez-line);
  border-radius: var(--ez-radius);
}

.project__media {
  aspect-ratio: 20 / 11;
  overflow: hidden;
  background: var(--ez-line);
}

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

.project__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.project__tags {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ez-ink);
  opacity: 0.8;
}

.project__title {
  margin: 0 0 10px;
  font-size: 1.125rem;
  line-height: 1.3;
}

.project__text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ez-muted);
}

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

.project__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  align-self: flex-start;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ez-blue-strong);
  text-decoration: none;
}

.project__link:hover {
  text-decoration: underline;
}

.project__link .icon {
  width: 1.1em;
  height: 1.1em;
}

/* ---------- Kontaktaufruf ---------- */

.section--cta .ce-grid {
  grid-template-columns: minmax(0, 3fr) repeat(4, minmax(0, 1fr));
  column-gap: 0;
  row-gap: 32px;
  align-items: center;
}

.section--cta .ce-grid > .ce--cta,
.section--cta .ce-grid > .ce--intro {
  grid-column: auto;
  display: block;
  margin: 0;
  padding-right: 48px;
}

.section--cta .intro__title {
  color: var(--ez-white);
  max-width: 13em;
}

.section--cta .intro__lead {
  color: rgba(255, 255, 255, 0.75);
  max-width: 30em;
}

.section--cta .intro__action {
  margin-top: 28px;
}

.section--cta .btn--outline {
  background: var(--ez-blue);
  border-color: var(--ez-blue);
  color: var(--ez-white);
  border-radius: var(--ez-radius);
  padding: 0.8em 1.35em;
  font-size: 0.9375rem;
}

.section--cta .btn--outline:hover {
  background: var(--ez-blue-strong);
  border-color: var(--ez-blue-strong);
}

.ce--feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  text-align: center;
}

.ce--feature + .ce--feature {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(90, 174, 255, 0.55);
  color: var(--ez-blue-light);
}

.feature__icon .icon {
  width: 22px;
  height: 22px;
}

.feature__title {
  margin: 0;
  max-width: 9em;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ez-white);
}

@media (max-width: 1080px) {
  .section--cta .ce-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section--cta .ce-grid > .ce--cta,
  .section--cta .ce-grid > .ce--intro {
    grid-column: 1 / -1;
    padding-right: 0;
    margin-bottom: 16px;
  }
}

@media (max-width: 600px) {
  .section--cta .ce-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0;
  }

  .ce--feature {
    padding: 22px 8px;
  }

  .ce--feature + .ce--feature {
    border-left: 0;
  }

  .section--cta .ce-grid > .ce--feature {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* ---------- Standardseite ---------- */

.page-banner {
  position: relative;
  isolation: isolate;
  padding: calc(var(--ez-header-h) + 56px) 0 64px;
  background: var(--ez-navy-900);
  color: var(--ez-white);
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../Images/network.svg") right center / cover no-repeat;
  opacity: 0.35;
}

.page-banner__title {
  margin: 0;
  max-width: 18em;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ez-white);
}

.page-banner__lead {
  margin: 16px 0 0;
  max-width: 36em;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Standard-Inhaltselemente (fluid_styled_content) */
.section--page .ce-grid {
  row-gap: 48px;
}

.frame > header h1,
.frame > header h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.frame > header h3 {
  font-size: 1.25rem;
}

.ce-bodytext {
  max-width: 46rem;
}

.ce-bodytext ul,
.ce-bodytext ol {
  padding-left: 1.3em;
}

.ce-bodytext li {
  margin-bottom: 0.4em;
}

.ce-bodytext table {
  border-collapse: collapse;
  width: 100%;
  display: block;
  overflow-x: auto;
}

.ce-bodytext th,
.ce-bodytext td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ez-line);
  text-align: left;
}

.ce-gallery img {
  border-radius: var(--ez-radius);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ez-navy-950);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.875rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ez-white);
  text-decoration: underline;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 48px;
}

.site-footer .logo {
  font-size: 1.75rem;
}

.site-footer .logo:hover {
  text-decoration: none;
}

.site-footer__claim {
  margin: 16px 0 20px;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--ez-radius);
  font-size: 0.8125rem;
  font-weight: 600;
}

.site-footer .social__link:hover {
  border-color: var(--ez-blue-light);
  text-decoration: none;
}

.social__link--icon {
  width: 34px;
  padding: 0;
}

.site-footer__heading {
  margin: 0 0 16px;
  font-family: var(--ez-font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ez-white);
  letter-spacing: 0;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
}

.contact-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__made {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-footer__made .icon {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Schlagworte der Referenz-Karte („TYPO3 · Website“) ---------- */

.project__tags span + span::before {
  content: "·";
  margin: 0 0.45em;
  opacity: 0.6;
}

/* ---------- Kontaktaufruf ---------- */

.ce--cta .intro__title {
  color: var(--ez-white);
  max-width: 15em;
  font-size: clamp(1.625rem, 2.3vw, 2rem);
}

.ce--cta .intro__lead {
  color: rgba(255, 255, 255, 0.75);
  max-width: 30em;
}

.ce--cta .intro__action {
  margin-top: 28px;
}

/* Kontaktaufruf auf normalen Unterseiten: eigener dunkler Block */
.section--page .ce--cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 10px;
  background:
    radial-gradient(ellipse 60% 90% at 85% 40%, rgba(26, 140, 246, 0.18), transparent 70%),
    var(--ez-navy-900);
  color: rgba(255, 255, 255, 0.78);
}

.section--page .ce--cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../Images/network.svg") right center / cover no-repeat;
  opacity: 0.45;
}

/* Abstand zwischen Einleitung und Raster auf Unterseiten */
.section--page .ce--intro + .ce--service,
.section--page .ce--intro + .ce--project {
  margin-top: 4px;
}
