/* PrellDynamics – Ideas in Motion
   Farben laut Brand-Sheet: Petrol #0B3A4A, Blau #2E7D9B, Off-White #F4F6F8, Charcoal #1F2930 */

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

:root {
  --petrol: #0b3a4a;
  --petrol-deep: #0b2430;
  --ink: #071820;
  --blue: #2e7d9b;
  --blue-bright: #4aa8dd;
  --offwhite: #f4f6f8;
  --charcoal: #1f2930;

  --bg: var(--offwhite);
  --surface: #ffffff;
  --text: var(--charcoal);
  --text-2: #55656f;
  --line: #dde4e9;
  --link: #1f6782;
  --chip-bg: #e6f0f5;
  --chip-text: #1f5f78;

  --on-dark: #ffffff;
  --on-dark-2: #b6c6ce;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 36, 48, 0.06), 0 8px 24px rgba(11, 36, 48, 0.07);
  --shadow-hover: 0 2px 4px rgba(11, 36, 48, 0.08), 0 16px 40px rgba(11, 36, 48, 0.13);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1b22;
    --surface: #10252f;
    --text: #e7eef1;
    --text-2: #a7b8c1;
    --line: #1d3845;
    --link: #6cbde8;
    --chip-bg: #15394a;
    --chip-text: #9fd3ee;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

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

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--link);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 24, 32, 0.95);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--on-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: auto;
}

.wordmark {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.wordmark span {
  color: var(--blue-bright);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  color: var(--on-dark-2);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--on-dark);
}

.nav .nav-cta {
  display: inline-block;
  padding: 8px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: var(--on-dark);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nav .nav-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--on-dark);
}

@media (max-width: 600px) {
  .site-header .wordmark {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .nav .nav-cta {
    padding: 6px 14px;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(1100px 520px at 85% 10%, rgba(46, 125, 155, 0.35), transparent 60%),
    linear-gradient(160deg, var(--petrol) 0%, var(--petrol-deep) 55%, var(--ink) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-block: clamp(72px, 13vw, 150px) clamp(72px, 11vw, 130px);
}

.hero .eyebrow {
  color: var(--blue-bright);
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  margin-bottom: 0.4em;
}

.hero h1 .accent {
  background: linear-gradient(100deg, #6cc0ee, var(--blue-bright) 40%, #2e8fbf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--on-dark-2);
  margin-bottom: 2.2em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-art {
  position: absolute;
  right: max(0px, calc((100vw - var(--max)) / 2 + 24px));
  top: 50%;
  width: min(34vw, 400px);
  transform: translateY(-50%);
  filter: drop-shadow(0 30px 60px rgba(74, 168, 221, 0.22));
  pointer-events: none;
}

.hero-art .chev {
  animation: glide 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}

@keyframes glide {
  from {
    transform: translateX(-34px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 1023px) {
  .hero-art {
    width: 300px;
    right: -110px;
    top: auto;
    bottom: -70px;
    transform: none;
    opacity: 0.18;
    filter: none;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 20px rgba(46, 125, 155, 0.35);
}

.btn-primary:hover {
  background: #348cad;
}

.btn-ghost {
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Sektionen ---------- */

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

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.section-head p:not(.eyebrow) {
  color: var(--text-2);
  font-size: 1.125rem;
  margin: 0;
}

/* ---------- Projekte ---------- */

.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card.featured {
    grid-column: span 2;
    flex-direction: row;
  }

  .card.featured .card-visual {
    flex: 0 0 42%;
    aspect-ratio: auto;
    min-height: 100%;
  }

  .card.featured .card-visual svg {
    width: 136px;
    height: 136px;
  }

  .card.featured .card-body {
    padding: 32px;
  }

  .card.featured h3 {
    font-size: 1.75rem;
  }
}

@media (min-width: 1040px) {
  .projects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:has(.card-link:hover) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 8;
  color: #fff;
  background: linear-gradient(140deg, var(--petrol) 0%, var(--petrol-deep) 100%);
  overflow: hidden;
}

.card-visual::after {
  /* Diagonale aus dem Logo als dezentes Muster */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-37deg, transparent 0 22px, rgba(255, 255, 255, 0.035) 22px 23px);
}

.card-visual svg {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
}

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

.card-visual.v-blue {
  background: linear-gradient(140deg, #3b97c7 0%, var(--blue) 55%, var(--petrol) 100%);
}

.card-visual.v-charcoal {
  background: linear-gradient(140deg, #2b3a43 0%, var(--charcoal) 60%, #12191d 100%);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 26px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.4em;
}

.card p {
  color: var(--text-2);
  font-size: 0.98rem;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: auto;
  padding-top: 6px;
}

.card-sublink {
  position: relative;
  z-index: 2;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
}

.card-sublink:hover {
  color: var(--link);
}

.fineprint {
  max-width: 52rem;
  margin: clamp(28px, 4vw, 40px) 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-2);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}

/* ganze Karte klickbar, Link bleibt das einzige interaktive Element */
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card-link:hover .arrow {
  transform: translate(2px, -2px);
}

.card-link:focus-visible {
  outline: none;
}

.card:has(.card-link:focus-visible) {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
}

.arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.card-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
}

.card-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

@media (max-width: 699px) {
  .card-visual {
    aspect-ratio: 16 / 6.5;
  }
}

/* ---------- Über mich ---------- */

.about {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.about-text p:not(.eyebrow) {
  font-size: 1.125rem;
}

.about-text .lead {
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 500;
}

.facts {
  margin: 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
}

.facts div + div {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 4px;
}

.facts dd {
  margin: 0;
  font-weight: 600;
}

@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Kontakt ---------- */

.contact {
  color: var(--on-dark);
  background:
    radial-gradient(700px 360px at 10% 0%, rgba(46, 125, 155, 0.3), transparent 60%),
    linear-gradient(160deg, var(--petrol-deep), var(--ink));
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.contact .eyebrow {
  color: var(--blue-bright);
}

.contact h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.contact p:not(.eyebrow) {
  color: var(--on-dark-2);
  font-size: 1.125rem;
}

.contact-box {
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-box .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-bottom: 6px;
}

.contact-mail {
  display: block;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 700;
  word-break: break-word;
  text-decoration: none;
}

.contact-mail:hover {
  text-decoration: underline;
}

.contact-box .btn {
  width: 100%;
}

.contact-hint {
  margin: 14px 0 0;
  font-size: 0.85rem !important;
}

.contact-hint a {
  color: var(--on-dark);
}

@media (max-width: 820px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

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

.site-footer {
  background: var(--ink);
  color: var(--on-dark-2);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 32px;
}

.site-footer .brand {
  color: var(--on-dark);
}

.site-footer .wordmark {
  font-size: 1rem;
}

.footer-tagline {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

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

.footer-links a {
  color: var(--on-dark-2);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--on-dark);
  text-decoration: underline;
}

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

.legal-hero {
  color: var(--on-dark);
  background: linear-gradient(160deg, var(--petrol) 0%, var(--petrol-deep) 70%, var(--ink) 100%);
}

.legal-hero .container {
  padding-block: clamp(48px, 8vw, 88px) clamp(36px, 6vw, 64px);
}

.legal-hero .eyebrow {
  color: var(--blue-bright);
}

.legal-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0;
}

.legal {
  max-width: 46rem;
  padding-block: clamp(40px, 7vw, 80px);
}

.legal h2 {
  font-size: 1.4rem;
  margin-top: 2.2em;
}

.legal h3 {
  font-size: 1.1rem;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal ul {
  padding-left: 1.2em;
}

.legal li + li {
  margin-top: 0.35em;
}

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

.legal .meta {
  margin-top: 3em;
  color: var(--text-2);
  font-size: 0.9rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2em;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
