/* ======================================================================
   Colerful by NitroNico™ — zentrale Website-Styles
   Farbwelt und Abstände lassen sich hier über die Variablen anpassen.
   ====================================================================== */

:root {
  --blue: #1d4ed8;
  --violet: #6d28d9;
  --pink: #db2777;
  --orange: #ea580c;
  --yellow: #facc15;
  --ink: #11131a;
  --ink-soft: #3d4250;
  --muted: #697080;
  --paper: #ffffff;
  --surface: #f5f6fa;
  --line: #dfe2ea;
  --dark: #12131a;
  --gradient: linear-gradient(110deg, var(--blue), var(--violet) 30%, var(--pink) 55%, var(--orange) 78%, var(--yellow));
  --gradient-soft: linear-gradient(135deg, #eef4ff, #f7efff 42%, #fff0f6 70%, #fff8e8);
  --page-gradient: linear-gradient(135deg, #e8edff 0%, #f0e8ff 45%, #ffe8f0 100%);
  --shadow-sm: 0 12px 35px rgba(20, 24, 40, 0.08);
  --shadow-lg: 0 26px 70px rgba(20, 24, 40, 0.16);
  --radius-sm: 0.8rem;
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --container: 1180px;
  --header-height: 5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page-gradient);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

main {
  background: var(--page-gradient);
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

::selection {
  color: #fff;
  background: var(--violet);
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 2rem), 800px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background: var(--page-gradient);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--surface {
  background: var(--page-gradient);
}

.section--gradient {
  background: var(--page-gradient);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
}

.section-heading h2 {
  margin-bottom: 1rem;
}

.section-heading p {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.5rem;
  height: 0.22rem;
  border-radius: 99px;
  background: var(--gradient);
  content: "";
}

.text-gradient {
  color: var(--violet);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #fff;
  background: var(--dark);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Kopfbereich und Navigation */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(223, 226, 234, 0.8);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 30px rgba(15, 18, 30, 0.04);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 2.35rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.12;
}

.brand-copy strong {
  font-size: 0.93rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.7rem;
}

.menu-toggle {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  place-items: center;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 1.35rem;
  height: 2px;
  border-radius: 9px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle-lines::before {
  transform: translateY(-0.4rem);
}

.menu-toggle-lines::after {
  transform: translateY(0.4rem);
}

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

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  transform: rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: var(--header-height) 0 0;
  display: none;
  overflow-y: auto;
  padding: 1.25rem 1rem 3rem;
  background: rgba(255, 255, 255, 0.99);
}

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

.nav-list {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1.12rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--violet);
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button-row--spaced {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 12px 30px rgba(109, 40, 217, 0.2);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  box-shadow: 0 16px 38px rgba(109, 40, 217, 0.28);
  transform: translateY(-2px);
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(17, 19, 26, 0.35);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.button--outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.button--light {
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

/* Hero Startseite */
.hero {
  position: relative;
  display: grid;
  min-height: min(820px, calc(100svh - var(--header-height)));
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.hero-media,
.hero-media::after {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  z-index: 1;
  /* Gleichmäßiges Dark-Overlay: Das Originalbild bleibt unverändert. */
  background: rgba(0, 0, 0, 0.46);
  content: "";
}

.hero-content {
  max-width: 920px;
  padding-block: clamp(5rem, 12vw, 9rem);
}

.hero .eyebrow {
  color: #fff;
}

.hero h1 {
  max-width: 850px;
  margin-bottom: 0.6rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.68);
  text-wrap: balance;
}

.hero h2 {
  margin-bottom: 1rem;
  color: var(--yellow);
  font-size: clamp(1.65rem, 4vw, 3rem);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.62);
}

.hero-subtitle {
  max-width: 760px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  font-weight: 600;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.hero .button {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
}

.hero .button--secondary {
  background: rgba(10, 11, 18, 0.58);
}

/* Unterseiten-Kopf */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 10vw, 8rem);
  background: var(--page-gradient);
}

.page-hero::after {
  position: absolute;
  right: -10rem;
  bottom: -16rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: var(--gradient);
  content: "";
  filter: blur(85px);
  opacity: 0.15;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 920px;
  margin-bottom: 1rem;
  font-size: clamp(2.7rem, 7vw, 5rem);
}

.page-hero p {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 2vw, 1.28rem);
}

/* Layouts und Karten */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.25rem;
}

.split {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.card-number,
.icon-tile {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.35rem;
  border-radius: 1rem;
  place-items: center;
  color: #fff;
  background: var(--gradient);
  font-size: 0.95rem;
  font-weight: 900;
}

.service-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--ink-soft);
}

.service-card .text-link {
  margin-top: auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--violet);
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(0.25rem);
}

.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e9ef;
}

.media-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.media-card:hover .media-card-image img {
  transform: scale(1.025);
}

.media-card-body {
  padding: 1.5rem;
}

.tag {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  color: var(--violet);
  background: #f2ebff;
  font-size: 0.75rem;
  font-weight: 800;
}

.image-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-lg);
  background: #e8e9ef;
  box-shadow: var(--shadow-lg);
}

.image-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.rich-text > * + * {
  margin-top: 1.25rem;
}

.rich-text h2,
.rich-text h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.rich-text p,
.rich-text li {
  color: var(--ink-soft);
}

.rich-text strong {
  color: var(--ink);
}

.authority-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-left: 0.35rem solid var(--violet);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-style: normal;
  overflow-wrap: anywhere;
}

.authority-card strong {
  display: inline-block;
  margin-bottom: 0.45rem;
}

.authority-card a {
  color: var(--violet);
  font-weight: 700;
}

.quote-panel {
  margin-block: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-left: 0.4rem solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--gradient-soft);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 800;
}

/* Ablauf */
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.process-grid li {
  position: relative;
  min-height: 9rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  counter-increment: steps;
}

.process-grid li::before {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: var(--dark);
  content: counter(steps, decimal-leading-zero);
  font-size: 0.7rem;
  font-weight: 900;
}

.process-grid strong {
  display: block;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.faq-item summary {
  position: relative;
  padding: 1.2rem 3.6rem 1.2rem 1.25rem;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  color: var(--violet);
  content: "+";
  font-size: 1.6rem;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-soft);
}

/* Referenz-Detailkarten */
.portfolio-list {
  display: grid;
  gap: 2rem;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.project-image {
  display: grid;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  align-self: start;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #171822, #242132);
}

.project-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.project-gallery-trigger {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: linear-gradient(145deg, #171822, #242132);
  cursor: zoom-in;
  text-align: left;
}

.project-gallery-trigger img {
  transition: filter 220ms ease;
}

.project-gallery-trigger:hover img {
  filter: brightness(0.9);
}

.project-gallery-trigger:focus-visible {
  outline: 4px solid var(--violet);
  outline-offset: -4px;
}

.project-gallery-badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff;
  background: rgba(12, 13, 20, 0.78);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  font-size: 0.85rem;
  font-weight: 800;
}

/* Wiederverwendbare Galerie / Lightbox für Referenzprojekte */
.project-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: clamp(1rem, 3vw, 2rem);
  color: #fff;
  background: rgba(8, 9, 14, 0.94);
  backdrop-filter: blur(18px);
}

.project-lightbox__dialog {
  width: min(1120px, 100%);
}

.project-lightbox__header,
.project-lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-lightbox__header {
  margin-bottom: 1rem;
}

.project-lightbox__header h2,
.project-lightbox__footer p {
  margin: 0;
}

.project-lightbox__header h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.75rem);
}

.project-lightbox__close,
.project-lightbox__nav {
  display: inline-grid;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(18, 19, 26, 0.82);
  cursor: pointer;
}

.project-lightbox__close {
  font-size: 2rem;
  line-height: 1;
}

.project-lightbox__close:hover,
.project-lightbox__nav:hover,
.project-lightbox__close:focus-visible,
.project-lightbox__nav:focus-visible {
  border-color: #fff;
  background: var(--violet);
  outline: none;
}

.project-lightbox__media {
  position: relative;
  display: grid;
  min-height: min(68svh, 720px);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #090a0f;
}

.project-lightbox__media img {
  width: 100%;
  max-height: min(72svh, 780px);
  object-fit: contain;
}

.project-lightbox__nav {
  position: absolute;
  top: 50%;
  font-size: 2.2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.project-lightbox__nav--previous {
  left: 1rem;
}

.project-lightbox__nav--next {
  right: 1rem;
}

.project-lightbox__footer {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.84);
}

.project-lightbox__counter {
  flex: 0 0 auto;
  font-weight: 800;
}

.project-content {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.project-content h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.project-content h3 {
  margin-top: 1.7rem;
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.project-content p,
.project-content li {
  color: var(--ink-soft);
}

.project-note {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: #fff7d6;
  color: #604b00;
}

/* Kontakt */
.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4rem);
  border-radius: var(--radius-lg);
  color: #fff;
  background: var(--dark);
}

.contact-panel::after {
  position: absolute;
  z-index: 0;
  right: -10rem;
  bottom: -13rem;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: var(--gradient);
  content: "";
  filter: blur(70px);
  opacity: 0.55;
}

.contact-panel > * {
  position: relative;
  z-index: 1;
}

.contact-panel h2 {
  max-width: 720px;
}

.contact-panel p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

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

.contact-card {
  display: flex;
  min-height: 9rem;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-card:hover {
  border-color: var(--violet);
  transform: translateY(-3px);
}

.contact-card .icon-tile {
  flex: 0 0 auto;
  margin: 0;
}

.contact-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-card strong {
  display: block;
  overflow-wrap: anywhere;
}

/* Rechtliche Seiten */
/* Footer */
.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: var(--dark);
}

.footer-main {
  display: grid;
  gap: 2.5rem;
  padding-block: 4rem;
}

.footer-brand {
  max-width: 430px;
}

.footer-brand .brand {
  margin-bottom: 1rem;
  color: #fff;
}

.footer-brand .brand-logo {
  height: 3.1rem;
}

.footer-brand .brand-copy small {
  color: rgba(255, 255, 255, 0.58);
}

.footer-links h2 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.28rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0;
}

/* Desktop */
@media (min-width: 680px) {
  .grid-2,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .project-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  }

  .project-card:nth-child(even) .project-image {
    order: 2;
  }

  .project-card:nth-child(even) .project-content {
    order: 1;
  }
}

@media (min-width: 900px) {
  /* Desktop-Hero: flächige Darstellung mit bewusst großzügiger Höhe. */
  .hero {
    min-height: clamp(760px, 56vw, 1024px);
    align-items: center;
  }

  .hero-media img {
    object-fit: cover;
    /* Oberes Branding mit Krone und Logo im Desktop-Ausschnitt halten. */
    object-position: 50% 10%;
  }

  .hero-content {
    max-width: var(--container);
    padding-block: clamp(5rem, 8vw, 7rem);
    text-align: center;
  }

  .hero h1 {
    max-width: none;
    margin-bottom: 0.45rem;
    font-size: clamp(3.25rem, 5vw, 5.8rem);
    white-space: nowrap;
    text-wrap: nowrap;
  }

  .hero h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.8rem, 3vw, 3rem);
  }

  .hero-subtitle {
    max-width: 1000px;
    margin-inline: auto;
    margin-bottom: 1.75rem;
    font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  }

  .hero .button-row {
    justify-content: center;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    position: static;
    display: block;
    overflow: visible;
    padding: 0;
    background: transparent;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 0.1rem;
  }

  .nav-list a {
    position: relative;
    padding: 0.72rem 0.5rem;
    border: 0;
    font-size: 0.73rem;
    white-space: nowrap;
  }

  .nav-list a::after {
    position: absolute;
    right: 0.5rem;
    bottom: 0.45rem;
    left: 0.5rem;
    height: 2px;
    border-radius: 9px;
    background: var(--gradient);
    content: "";
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-list a:hover::after,
  .nav-list a[aria-current="page"]::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .split {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  }

  .split--reverse {
    grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: minmax(300px, 1.6fr) repeat(2, minmax(150px, 0.7fr));
  }
}

@media (min-width: 1160px) {
  .nav-list {
    gap: 0.25rem;
  }

  .nav-list a {
    padding-inline: 0.7rem;
    font-size: 0.79rem;
  }

  .nav-list a::after {
    right: 0.7rem;
    left: 0.7rem;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    height: 1.9rem;
  }

  .brand-copy strong {
    max-width: 7rem;
    font-size: 0.75rem;
  }

  .brand-copy small {
    display: none;
  }

  .button-row .button {
    width: 100%;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 679px) {
  .hero-media::after {
    background: rgba(0, 0, 0, 0.5);
  }

  .hero-content {
    padding-block: 4.5rem;
  }

  .project-lightbox {
    padding: 0.75rem;
  }

  .project-lightbox__media {
    min-height: 60svh;
  }

  .project-lightbox__footer {
    align-items: flex-start;
    font-size: 0.9rem;
  }

  .project-lightbox__nav--previous {
    left: 0.5rem;
  }

  .project-lightbox__nav--next {
    right: 0.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .button-row,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .page-hero,
  .section {
    padding-block: 1.5rem;
    background: #fff;
  }
}
