/*
 * KaDaCom – Firmenwebsite kadacom.de
 * Datei: site/assets/site.css
 * Version: 1.0
 * Letzte Änderung: 2026-11-27
 *
 * Gestaltung nach „KaDaCom Corporate Identity v2.0“: KaDa-Blau und KaDa-Grau,
 * Josefin Sans für Wortmarke und Überschriften, DM Sans für Text.
 * Schriften liegen unter /fonts (SIL Open Font License 1.1) – nichts wird von
 * fremden Servern geladen.
 */

@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/josefin-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/josefin-sans-700.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/dm-sans-600.woff2") format("woff2");
}

:root {
  --kada-blue: #2b3d4f;
  --kada-blue-dark: #1a2a3a;
  --kada-blue-light: #3d5568;
  --com-gray: #8e9aab;
  --com-gray-light: #b4bcc8;
  --com-gray-lighter: #d6dae0;
  --bg: #f7f8fa;
  --white: #ffffff;
  --accent-light: #e8ecf1;

  --font-display: "Josefin Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 16px;
  --radius-btn: 8px;
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--kada-blue-light);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

a {
  color: var(--kada-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--kada-blue-dark);
}

:focus-visible {
  outline: 3px solid var(--com-gray);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--kada-blue);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--kada-blue);
  border-radius: var(--radius-btn);
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Wortmarke ---------- */

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark .kada {
  color: var(--kada-blue);
}
.wordmark .com {
  color: var(--com-gray);
}
.on-dark .wordmark .kada {
  color: var(--white);
}

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(247, 248, 250, 0.94);
  border-bottom: 1px solid var(--accent-light);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(247, 248, 250, 0.82);
    backdrop-filter: blur(8px);
  }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.site-header .wordmark {
  font-size: 1.6rem;
  text-decoration: none;
  padding-top: 0.2em; /* Josefin sitzt optisch hoch */
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a {
  text-decoration: none;
  color: var(--kada-blue-light);
}
.site-nav a:hover {
  color: var(--kada-blue);
}
.site-nav .lang {
  border: 1px solid var(--com-gray-light);
  border-radius: 6px;
  padding: 0.15rem 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.site-nav .lang:hover {
  border-color: var(--kada-blue);
}
@media (max-width: 40rem) {
  .site-nav .nav-optional {
    display: none;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--kada-blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--kada-blue-dark);
  color: var(--white);
}
.btn-light {
  background: var(--white);
  color: var(--kada-blue);
}
.btn-light:hover {
  background: var(--accent-light);
  color: var(--kada-blue-dark);
}
.btn-outline {
  background: transparent;
  color: var(--kada-blue);
  border-color: var(--kada-blue);
}
.btn-outline:hover {
  background: var(--kada-blue);
  color: var(--white);
}
.on-dark .btn-outline {
  color: var(--white);
  border-color: var(--com-gray-light);
}
.on-dark .btn-outline:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--kada-blue);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--kada-blue-dark) 0%, var(--kada-blue) 45%, var(--kada-blue-light) 100%);
  color: var(--com-gray-light);
  padding: clamp(4rem, 11vw, 8rem) 0 clamp(4rem, 10vw, 7rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 90%, rgba(142, 154, 171, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 85% 10%, rgba(142, 154, 171, 0.12) 0%, transparent 55%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--com-gray);
  margin: 0 0 1.25rem;
}
.hero .eyebrow {
  color: var(--com-gray-light);
}
.hero h1 {
  color: var(--white);
  max-width: 18ch;
  margin-bottom: 1.25rem;
}
.hero h1 .soft {
  color: var(--com-gray-light);
}
.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 40rem;
  color: var(--accent-light);
  margin-bottom: 2rem;
}
.hero .owner {
  margin: 2.5rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.95rem;
}
.hero .owner::before {
  content: "";
  width: 48px;
  height: 2px;
  background: var(--com-gray);
}

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

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section-alt {
  background: var(--white);
  border-top: 1px solid var(--accent-light);
  border-bottom: 1px solid var(--accent-light);
}
.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.section-head p {
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  overflow: hidden;
}
.section-alt .card {
  background: var(--bg);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--kada-blue), var(--com-gray));
}
.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}
.icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--kada-blue);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.icon svg {
  width: 1.6rem;
  height: 1.6rem;
}
.card ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}
.card li {
  margin-bottom: 0.25rem;
}
.card li::marker {
  color: var(--com-gray);
}

/* Arbeitsweise */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.steps li {
  counter-increment: step;
  padding-top: 1rem;
  border-top: 2px solid var(--com-gray-lighter);
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--com-gray);
  margin-bottom: 0.35rem;
}
.steps h3 {
  margin-bottom: 0.4rem;
}
.steps p {
  margin: 0;
}

/* Projekte */
.project {
  display: flex;
  flex-direction: column;
}
.project .project-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 0.4rem;
}
.project .project-name .kada {
  color: var(--kada-blue);
}
.project .project-name .suffix {
  color: var(--com-gray);
}
.project .tagline {
  font-weight: 600;
  color: var(--kada-blue);
  margin-bottom: 0.9rem;
}
.project .btn-row {
  margin-top: auto;
  padding-top: 0.5rem;
}
.project-featured::before {
  height: 6px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.tags li {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--kada-blue);
  margin: 0;
}

/* Über */
.about {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  align-items: start;
}
.facts {
  margin: 0;
  display: grid;
  gap: 1rem;
}
.facts div {
  border-left: 3px solid var(--com-gray-lighter);
  padding-left: 1rem;
}
.facts dt {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--com-gray);
}
.facts dd {
  margin: 0.15rem 0 0;
  color: var(--kada-blue);
  font-weight: 500;
}

/* Kontakt */
.contact {
  background: linear-gradient(160deg, var(--kada-blue-dark) 0%, var(--kada-blue) 60%, var(--kada-blue-light) 100%);
  color: var(--accent-light);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(2rem, 6vw, 3.5rem);
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  align-items: center;
}
.contact h2 {
  color: var(--white);
}
.contact p {
  max-width: 34rem;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.contact-list li {
  display: grid;
  gap: 0.1rem;
}
.contact-list .label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--com-gray-light);
}
.contact-list a {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 500;
}
.contact-list a:hover {
  color: var(--accent-light);
}
.contact-list address {
  font-style: normal;
  color: var(--white);
}

/* ---------- Rechtstexte ---------- */

.page-head {
  background: var(--white);
  border-bottom: 1px solid var(--accent-light);
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem);
}
.page-head h1 {
  margin-bottom: 0.5rem;
}
.page-head p {
  margin: 0;
  max-width: 44rem;
}
.legal {
  max-width: 46rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
}
.legal h2 {
  font-size: 1.45rem;
  margin-top: 2.5rem;
}
.legal h2:first-child {
  margin-top: 0;
}
.legal h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}
.legal address {
  font-style: normal;
}
.legal ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}
.legal li {
  margin-bottom: 0.35rem;
}
.legal li::marker {
  color: var(--com-gray);
}
.legal .box {
  background: var(--white);
  border: 1px solid var(--accent-light);
  border-left: 4px solid var(--kada-blue);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
}
.legal .box p:last-child,
.legal .box ul:last-child {
  margin-bottom: 0;
}
.legal .note {
  font-size: 0.95rem;
  color: var(--com-gray);
}
.legal .stand {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--com-gray);
}

/* ---------- Fußzeile ---------- */

.site-footer {
  background: var(--kada-blue-dark);
  color: var(--com-gray-light);
  padding: 3rem 0 2.5rem;
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  align-items: start;
}
.site-footer .wordmark {
  font-size: 1.7rem;
  display: inline-block;
  margin-bottom: 0.6rem;
}
.site-footer p {
  margin: 0 0 0.35rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.site-footer a {
  color: var(--white);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer .small {
  font-size: 0.85rem;
  color: var(--com-gray);
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding: 4rem 0;
}
.not-found .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 7rem);
  line-height: 1;
  color: var(--com-gray-lighter);
  margin: 0 0 1rem;
}
