/* =====================================================
   Minimal Viable Governance – Optimized Theme CSS
   (consolidated + fixes)
   ===================================================== */

:root {
  /* Colors */
  --bg: #ffffff;
  --text: #121417;
  --text-rgb: 18 20 23;
  --muted: #5b6472;

  --accent: rgb(192 221 221);
  --accent-rgb: 192 221 221;
  --accent-2: rgb(240 204 191);
  --accent-2-rgb: 240 204 191;
  --accent-3: #d0d1d2;
  --accent-4: #f5ff00;

  --surface: #f4f6f8;
  --line: #e6e9ee;

  /* Underlines */
  --underline-thickness: 5px;
  --underline-offset: 2px;

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-head: "Poppins", var(--font-body);

  --lead-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.35rem);
  --h1: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --h2: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);

  /* Layout */
  --radius: 14px;
  --shadow: 0 6px 20px rgba(0, 0, 0, .06);

  /* Themed section background */
  /*--hero-bg: #c8e2e5;*/
  --hero-bg: #fff;
}

/* ================= Base ================= */
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(16px, 2vw, 28px);
}

h1,
h2,
h3 {
  margin: 0 0 .55em;
  letter-spacing: .2px;
}

h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--h1);
  line-height: 1.1;
}

h2 {
  font-family: "Michroma", sans-serif;
  font-weight: 300;
  line-height: 1.15;
}

h3 {
  font-weight: 600;
  font-size: var(--h3);
  color: var(--text);
}

/* H2 decoline */
h2.decoline {
  position: relative;
  padding-bottom: .4rem;
}

h2.decoline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200px;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
  border-radius: 2px;
}

h2.decolineaction {
  position: relative;
  padding-bottom: .4rem;
}

h2.decolineaction::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200px;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-4), var(--bg));
  border-radius: 2px;
}

p {
  font-size: 1rem;
  margin: 0 0 1em;
  color: var(--text);
}

.lead {
  font-size: var(--lead-size);
  color: var(--muted);
}

ul,
ol {
  padding-left: 1.25rem;
  margin: 0 0 1em;
}

li+li {
  margin-top: .35em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.card+.card {
  margin-top: .9rem;
}

.card h3 {
  margin-top: .2rem;
}

/* ================= Links & Buttons ================= */
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

a:hover {
  opacity: .9;
}

/* Safer link-plain (kein all:unset → behält Accessibility) */
.link-plain {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

.link-plain:hover {
  border-bottom-color: var(--accent);
}

.link-plain:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb) / .6);
  outline-offset: 2px;
}

.button,
button,
.btn {
  display: inline-block;
  padding: .6rem .95rem;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .06s ease, opacity .2s ease;
}

.button.secondary {
  background: var(--accent-2);
}

.button.ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

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

/* ================= Typographic Underlines ================= */
.u-accent,
.u-accent-2,
.u-accent-3,
.u-accent-4 {
  text-decoration-line: underline;
  text-decoration-thickness: var(--underline-thickness);
  text-underline-offset: var(--underline-offset);
}

.u-accent {
  text-decoration-color: var(--accent);
}

.u-accent-2 {
  text-decoration-color: var(--accent-2);
}

.u-accent-3 {
  text-decoration-color: var(--accent-3);
}

.u-accent-4 {
  text-decoration-color: var(--accent-4);
}

.u-dotted {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--accent);
  text-underline-offset: var(--underline-offset);
}

.u-wavy {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--accent-2);
  text-underline-offset: var(--underline-offset);
}

/* Marker underline variants */
.u-marker,
.u-marker-red,
.u-marker-grey,
.u-marker-yellow {
  text-decoration-line: underline;
  text-decoration-thickness: var(--underline-thickness);
  text-underline-offset: 3px;
  text-decoration-skip-ink: none;
}

.u-marker {
  text-decoration-color: var(--accent);
}

.u-marker-red {
  text-decoration-color: var(--accent-2);
}

.u-marker-grey {
  text-decoration-color: var(--accent-3);
}

.u-marker-yellow {
  text-decoration-color: var(--accent-4);
}

/* Subtle background marker for callouts */
.u-marker {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 45%, transparent) 50%, transparent 0) no-repeat;
}

.u-marker-grey {
  background: linear-gradient(180deg, rgba(0, 0, 0, .08) 40%, transparent 0) no-repeat;
}

.u-marker-yellow {
  background: linear-gradient(180deg, rgba(242, 255, 34, .08) 40%, transparent 0) no-repeat;
}

.u-marker-red {
  background: linear-gradient(180deg, rgba(240, 204, 191, .2) 40%, transparent 0) no-repeat;
}

/* ================= Media & Hero ================= */
.logo-area {
  text-align: center;
  padding: 3rem 0;
  position: relative;
  z-index: 1;
  margin-bottom: -15rem;
}

.logo {
  width: 25%;
  height: auto;
}

.hero {
  background: var(--hero-bg);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-bg {
  position: relative;
  display: flex;
  justify-content: right;
  align-items: center;
}

.hero-image {
  width: 100%;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.hero-content {
  margin-top: 2rem;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  max-width: 480px;
}

/* Marker frame around images */
.img-marker {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.img-marker>img {
  display: block;
  border-radius: 10px;
}

.img-marker::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 12px;
  background: rgba(17, 99, 255, 0.25);
  z-index: -1;
}

.img-marker-frame {
  color: rgb(var(--accent));
  display: "block";
  width: 100%;
  max-width: 100%;
  padding: 6px;
  background: color-mix(in oklab, var(--accent) 40%, transparent);
  border-radius: 8px;
  box-sizing: border-box;
}

.img-marker-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ================= Expertise / Layout blocks ================= */
.expertise-grid {
  display: grid;
  grid-template-columns: 61.8% 38.2%;
  align-items: center;
  gap: 3rem;
  background: var(--hero-bg);
  padding: 4rem 8%;
}

.expertise-text {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  z-index: 2;
  text-align: center;
}

/* Split intro */
.expertise-section .intro-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-block: .75rem 1.25rem;
}

/* Kicker */
.expertise-section .kicker {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 .4rem;
}

/* Media overlay tint */
.media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media.with-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 15%, transparent) 0%, color-mix(in oklab, var(--accent-2) 10%, transparent) 100%);
  pointer-events: none;
}

.subtle {
  margin: 1.25rem 0 .5rem;
  font-size: 1rem;
  color: var(--muted);
}

.badge {
  display: inline-block;
  font-size: .75rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  margin-bottom: .4rem;
}

.badge.accent {
  border-color: var(--accent);
  background: #fff;
  color: var(--text);
}

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.pattern {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.pattern h5 {
  margin: .25rem 0 .35rem;
  font-size: 1rem;
}

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

/* ================= Callouts & Tables ================= */
.callout {
  border-left: 4px solid var(--accent-4);
  padding: .75rem 1rem;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: .98rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: .6rem .5rem;
  text-align: left;
}

th {
  font-weight: 600;
  color: var(--muted);
}

/* ================= Back links ================= */
.back-wrapper {
  margin-top: 2.5rem;
  text-align: right;
}

.back-link-accent {
  display: inline-block;
  padding-bottom: 0.05rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid rgb(192 221 221);
  transition: all .25s ease;
}

.back-link-accent:hover {
  color: #5b6472;
  border-color: rgb(240 204 191);
}

/* ================= Expertise list ================= */
.expertise-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expertise-list li {
  margin: .25rem 0;
}

.expertise-list a.back-link-accent {
  text-decoration: none;
  border-bottom: 2px solid rgba(192, 221, 221, .4);
  transition: border-color .2s ease;
}

.expertise-list a.back-link-accent:hover {
  border-color: rgba(192, 221, 221, 1);
}

/* ================= CTA blocks ================= */
.cta,
.cta_wide {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  border-radius: 12px;
  text-align: center;
  padding: 1.5rem;
}

.cta p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
}

.btn-accent {
  display: inline-block;
  padding: .8rem 1.4rem;
  border-radius: .6rem;
  background: var(--accent);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .04);
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-accent:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.btn-accent[disabled] {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ================= Footer ================= */
.nc-footer {
  padding: 48px 0;
  background: #fff;
  color: var(--text);
  font-family: Inter, "Inter Tight", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.nc-footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nc-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.nc-brand {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  position: relative;
}

.nc-col>div {
  position: relative;
  display: inline-block;
}

.nc-logo,
.dot {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 2px 0 var(--accent-4);
}

.nc-logo,
.dot {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-));
  box-shadow: 1px 2px 0 var(--accent);
}

.nc-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nc-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-weight: 700;
  letter-spacing: .2px;
}

.nc-name small {
  display: block;
  font-weight: 400;
  font-size: .7em;
  margin-top: .2em;
  color: var(--muted);
}

.nc-claim {
  margin-top: .35rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: .6rem;
  line-height: 1.4;
}

.nc-col h4 {
  font-size: .95rem;
  margin: 0 0 .7rem;
  color: var(--text);
  letter-spacing: .2px;
  font-weight: 600;
}

.nc-links {
  display: grid;
  gap: .45rem;
}

.nc-links a {
  color: var(--muted);
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nc-links a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nc-div {
  height: 1px;
  background: var(--line);
  margin: 1.5rem 0;
}

.nc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: .92rem;
}

.nc-legal a {
  color: var(--muted);
  text-decoration: none;
}

.nc-legal a:hover {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
}

.nc-social {
  display: flex;
  gap: .6rem;
  margin-top: 8px;
}

.nc-social a {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.nc-social a:hover {
  border-color: var(--accent);
}

.nc-social svg {
  width: 18px;
  height: 18px;
  stroke: var(--muted);
}

.nc-social a:hover svg {
  stroke: var(--text);
}

/* ================= Forms (Contact) ================= */
.contact-section {
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}

.contact-section h2 {
  text-align: left !important;
  margin-left: 0;
  margin-right: 0;
}

.contact-section .lead {
  text-align: left;
}

.contact-section label {
  display: block;
  margin-bottom: .9rem;
  font-weight: 500;
}

.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-section input[type="text"],
.contact-section input[type="email"],
.contact-section textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  transition: border .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
  text-align: left;
}

.contact-section textarea {
  resize: vertical;
}

.contact-section input:invalid,
.contact-section textarea:invalid {
  border-color: var(--accent-3);
}

.contact-section input:valid,
.contact-section textarea:valid {
  border-color: var(--line);
}

.contact-section .grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: 1fr 1fr;
}

.contact-section button {
  align-self: flex-start;
  padding: .75rem 1.5rem;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s ease;
  color: var(--text);
}

.contact-section button:hover {
  background: color-mix(in oklab, var(--accent) 85%, black);
}

/* Checkbox */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgb(var(--accent-rgb));
  border-radius: 4px;
  background: #fff;
  display: inline-block;
  position: relative;
  cursor: pointer;
}

input[type="checkbox"]:hover {
  box-shadow: 0 0 4px rgba(var(--accent-rgb) / .4);
}

input[type="checkbox"]:checked {
  background: rgb(var(--accent-rgb));
  border-color: rgb(var(--accent-rgb));
  box-shadow: 0 0 4px rgba(var(--accent-rgb) / .5);
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  top: -3px;
  left: 1px;
}

input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb) / .7);
  outline-offset: 2px;
}

/* Consent row */
.consent-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: .5rem 1rem;
  color: var(--muted);
  margin-top: 1rem;
}

.consent-row label {
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

.consent-link {
  white-space: nowrap;
  text-underline-offset: 3px;
  opacity: .8;
  transition: opacity .2s;
}

/* ncForm ids */
#ncForm input[type="text"],
#ncForm input[type="email"],
#ncForm textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  box-sizing: border-box;
}

#ncForm .consent {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  color: var(--muted);
}

#ncStatus {
  margin-top: .25rem;
}

#submitBtn {
  align-self: flex-end;
  padding: .8rem 1.4rem;
  border-radius: .6rem;
}

#submitBtn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ================= Utilities ================= */
.muted {
  color: var(--muted);
}

.hr {
  height: 1px;
  background: var(--line);
  margin: 1.2rem 0;
}

.tag {
  display: inline-block;
  font-size: .82rem;
  padding: .28rem .5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* ================= Anchor landing comfort ================= */
#contact {
  scroll-margin-top: 24px;
}

.expertise-section {
  scroll-margin-top: 24px;
}

/* =====================================================
   Accordion – Fixed circle + correct chevron + grid animation
   ===================================================== */
.expertise-section h2 {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.expertise-section h2.decoline {
  padding-right: 2.25rem;
}

/* fester, pixelgenauer Kreis */
.expertise-section h2 .exp-toggle {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  box-sizing: border-box;
  margin-left: auto;
  padding: 0 !important;
  color: rgb(var(--accent-rgb));
  border: 2px solid var(--line) !important;
  border-radius: 999px !important;
  background: rgb(var(--accent-3)) !important;
  display: inline-grid !important;
  place-items: center !important;
  cursor: pointer;
  font-size: 0 !important;
  line-height: 0 !important;
  -webkit-text-size-adjust: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.expertise-section h2 .exp-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.expertise-section h2 .exp-toggle:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb)/.6);
  outline-offset: 2px;
}

/* Chevron dreht nur bei expanded */
.expertise-section h2 .exp-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform .2s ease;
  transform: rotate(0deg);
}

.expertise-section h2 .exp-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Grid-Animation: kein Peek-through */
.exp-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}

.exp-content.is-open {
  grid-template-rows: 1fr;
}

.exp-inner {
  overflow: hidden;
}

.exp-inner> :first-child {
  margin-top: 0;
}

.exp-inner> :last-child {
  margin-bottom: 0;
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 6%;
  }

  .hero-image {
    display: none;
  }
}

@media (max-width: 880px) {

  .grid-3,
  .pattern-grid {
    grid-template-columns: 1fr;
  }

  .expertise-section .intro-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nc-top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 20px;
  }

  .nc-links a {
    display: inline-block;
    width: auto;
    text-align: center;
    padding: 6px 10px;
    margin: 2px 6px;
  }

  .logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0 1.5rem;
  }

  .logo-area .nc-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-area .dot {
    margin: 0 auto 10px;
    display: block;
  }

  .logo-area .nc-name {
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    line-height: 1.2;
  }

  /* gerne mittig – aber Kontakt-Section bleibt links, daher kein globales H2 zentrieren */
  section.container h2 {
    text-align: center;
    margin: 0 auto;
    width: min(90%, 640px);
    line-height: 1.3;
  }

  section.container h2 .u-marker-yellow {
    display: inline-block;
    text-align: center;
  }
}

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

  .contact-section {
    padding: 2.5rem 1.25rem;
  }
}

@media (max-width: 700px) {
  .consent-row {
    grid-template-columns: auto 1fr;
    grid-auto-rows: auto;
  }

  .consent-link {
    grid-column: 2 / -1;
    margin-top: .25rem;
  }
}

/* ================= Print ================= */
@media print {
  :root {
    --bg: #fff;
    --text: #000;
    --muted: #333;
    --surface: #fff;
    --line: #ccc;
    --underline-thickness: 2px;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .button,
  .btn {
    display: none !important;
  }

  .card {
    box-shadow: none;
  }

  @page {
    margin: 14mm;
  }
}

/* ================= Motion preferences ================= */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* === Section spacing below decoline when expanded === */
.expertise-section h2.decoline {
  padding-bottom: .5rem;
}

/* gib der geöffneten Section eine definierte Oberkante, ohne Peek-through */
.exp-content .exp-inner {
  padding-top: 0;
}

.exp-content.is-open .exp-inner {
  padding-top: .55rem;
}

/* Mobile: etwas mehr Luft */
@media (max-width: 768px) {
  .exp-content.is-open .exp-inner {
    padding-top: .85rem;
  }
}

/* Cases – Logos & Quotes */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  margin: .25rem 0 1rem;
}

.logo-row img {
  height: 26px;
  width: auto;
  filter: grayscale(100%) contrast(1.05) opacity(.8);
  transition: filter .2s ease, opacity .2s ease;
}

.logo-row img:hover {
  filter: grayscale(0%) opacity(1);
}

/* Zitate in den pattern-cards */
.pattern .quote {
  margin: .6rem 0 0;
  padding-left: .75rem;
  border-left: 3px solid var(--line);
  font-style: italic;
  color: var(--muted);
}

.pattern .quote cite {
  display: block;
  margin-top: .35rem;
  font-style: normal;
  color: var(--text);
  opacity: .9;
}

/* Etwas mehr Luft unter der decoline, harmoniert mit Accordion-Grid */
.expertise-section h2.decoline {
  padding-bottom: .55rem;
}

.exp-content.is-open .exp-inner {
  padding-top: .65rem;
}

@media (max-width: 768px) {
  .logo-row {
    gap: 14px 22px;
  }

  .exp-content.is-open .exp-inner {
    padding-top: .8rem;
  }
}

/* ===== Cases – punchy visuals ===== */
.case-filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: .5rem 0 1rem;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: .45rem .7rem;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .06s ease;
}

.chip:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.chip.is-active {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.logo-marquee {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin: .25rem 0 1.1rem;
}

.logo-marquee .track {
  display: flex;
  gap: 34px;
  align-items: center;
  padding: .65rem 1rem;
  animation: marquee 18s linear infinite;
}

.logo-marquee img {
  height: 22px;
  filter: grayscale(100%) contrast(1.05) opacity(.8);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

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

.case-tile {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
  padding: 1rem;
  isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease;
}

.case-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.case-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .07;
  transform: translateY(0);
  transition: transform .35s ease;
}

.case-tile:hover .case-media {
  transform: translateY(-6px);
}

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

.case-badge {
  position: absolute;
  top: .8rem;
  right: .8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 10px rgba(0, 0, 0, .05);
}

.case-badge .metric {
  font-weight: 800;
  font-size: 1rem;
}

.case-badge .label {
  font-size: .72rem;
  color: var(--muted);
}

.case-head {
  margin-top: .4rem;
}

.case-head .tag {
  display: inline-block;
  font-size: .72rem;
  padding: .25rem .5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
}

.case-head h3 {
  margin: .5rem 0 .35rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.case-copy {
  margin: 0 0 .65rem;
}

.case-foot blockquote {
  margin: 0;
  font-style: italic;
  color: var(--muted);
  border-left: 3px solid var(--line);
  padding-left: .6rem;
}

.case-foot cite {
  display: block;
  margin-top: .35rem;
  font-style: normal;
  color: var(--text);
  opacity: .9;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee .track {
    animation: none;
  }

  .case-media,
  .case-tile {
    transition: none !important;
  }
}

/* Drop-in Ersatz: Marker via inset shadow */
.u-marker,
.u-marker-red,
.u-marker-grey,
.u-marker-yellow {
  text-decoration: none !important;
  box-shadow: inset 0 -0.4em rgba(192, 221, 221, .20);
}

.u-marker-grey {
  box-shadow: inset 0 -0.4em rgba(0, 0, 0, .08);
}

.u-marker-yellow {
  box-shadow: inset 0 -0.4em rgba(245, 255, 0, .25);
}

.u-marker-red {
  box-shadow: inset 0 -0.4em rgba(240, 204, 191, .28);
}


/* ============================================
   Einheitliche, ruhige Bildsprache pro Section
   ============================================ */

/* Gemeinsame Basis für alle Section-Bilder */
.expertise-section .media img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: block;
  object-fit: cover;
  transition: filter 0.5s ease, opacity 0.5s ease;
  filter: grayscale(85%) contrast(1.05);
  opacity: 0.95;
}

/* Hover leicht farbiger, für subtilen Effekt */
.expertise-section .media:hover img {
  filter: grayscale(60%) contrast(1.1);
  opacity: 1;
}


/* ============================================
   Einheitliche Bildästhetik mit subtiler Tonung
   ============================================ */

.expertise-section .media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  object-fit: cover;
  transition: filter 0.8s ease, opacity 0.8s ease;
  filter: grayscale(85%) contrast(1.05);
  opacity: 0.95;
}

/* Hover-Effekt: leicht farbiger, minimal heller */
.expertise-section .media:hover img {
  filter: grayscale(65%) contrast(1.15);
  opacity: 1;
}

/* ============================================
   Feintuning pro Abschnitt
   ============================================ */

/* 1. Digital Strategy & Transformation – neutral, leicht silbrig */
#strategy .media img {
  filter: grayscale(85%) contrast(1.05) brightness(1.03) sepia(10%) hue-rotate(170deg) saturate(0.6);
}

/* 2. Operational Excellence – warm, „industriell“ mit gelblichem Akzent */
#operations .media img {
  filter: grayscale(90%) contrast(1.1) brightness(1.02) sepia(20%) hue-rotate(30deg) saturate(0.7);
}

/* 3. Software Engineering & Experience Design – neutral, leicht beige-grau */
#product .media img {
  filter: grayscale(88%) contrast(1.05) sepia(12%) hue-rotate(10deg) saturate(0.55);
}

/* 4. Data Intelligence & Applied AI – kühl, techy, leicht bläulich */
#data .media img {
  filter: grayscale(85%) contrast(1.1) sepia(15%) hue-rotate(185deg) saturate(0.65);
}

/* 5. Program Leadership & Delivery – maritim, ruhig, tiefes Blaugrün */
#program .media img {
  filter: grayscale(80%) contrast(1.05) sepia(18%) hue-rotate(155deg) saturate(0.55);
}

/* 5. Program Leadership & Delivery – maritim, ruhig, tiefes Blaugrün */
#start .img-marker-frame img {
  filter: grayscale(80%) contrast(1.05) sepia(18%) hue-rotate(155deg) saturate(0.55);
}



/* === Responsive Tuning for Headings & Deco Line === */
@media (max-width: 768px) {

  /* H2 headings smaller on mobile */
  h2 {
    font-size: 1.2rem;
    /* z.B. ~24px, statt 32px */
    line-height: 1.2;
  }

  /* Optional: falls deine H2s spezielle Klassen haben */
  .expertise-section h2,
  .container h2 {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .decoline::after {
    opacity: 0.4;
    height: 1px;
    ;
    transform-origin: left;
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-3), var(--accent));
    border-radius: 1px;
  }
}

.exp-content {
  display: block;
  width: 100%;
}

.exp-content._anim {
  overflow: hidden;
  will-change: height;
}


section.hero {
  position: relative;
  background: linear-gradient(180deg,
      #e9eff1 0%,
      /* leichtes Eisgrau oben */
      #f5f6f7 40%,
      /* neutraler Mittelton */
      #ffffff 100%
      /* auslaufend ins Weiß */
    );
  padding: 5rem 0 5rem 0;
  overflow: hidden;
}

section.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at 50% 10%,
      rgba(255, 255, 255, 0.6),
      transparent 70%);
  pointer-events: none;
}

section.hero img {
  display: block;
  margin: 2rem auto;
  border-radius: 10px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.05);
  max-width: 90%;
  height: auto;
}

section.hero h1,
section.hero h2,
section.hero p {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  section.hero {
    padding: 3rem 1.5rem;
    background: linear-gradient(180deg, #f3f4f5 0%, #ffffff 100%);
  }
}

/* globale Defaults */
html,
body {
  margin: 0;
}

/* Header ohne Collapsing + kontrollierte Abstände */
.logo-area {
  display: flow-root;
  /* verhindert Margin-Collapse */
  padding-bottom: 12px;
  /* gewünschter Abstand */
  /* optional: background der Seite lassen */
}

/* Headline-Margins neutralisieren */
.logo-area h2 {
  margin: 8px 0 0;
  /* kein bottom-gap zum Hero */
}

/* Hero direkt anschließen lassen */
.hero {
  margin-top: 0;
  /* falls irgendwo Margin gesetzt war */
}

/* Mobile-Layout für den Header */
@media (max-width: 768px) {

  /* Header wird eine kleine Grid-Spalte mit sauberem Zeilenabstand */
  .logo-area {
    display: grid;
    justify-items: center;
    text-align: center;
    /* genug Innenabstand, damit nichts kollidiert */
    padding: 20px 16px 14px;
    /* eigener Kontext -> kein Margin-Collapsing */
    overflow: auto;
  }

  /* Kreis-Logo */
  .logo-area .dot {
    display: block;
    margin: 0 auto 10px;
    /* Abstand unter dem Kreis */
    float: none;
    /* falls irgendwo float gesetzt war */
  }

  /* Markenname */
  .logo-area .nc-name {
    margin: 0 0 8px;
    /* Abstand zum H2 */
    line-height: 1.15;
    text-align: center;
  }

  /* Headline – explizite Abstände oben/unten */
  .logo-area h2 {
    margin: 0px 0 12px;
    /* << verhindert Überlappung mit folgendem Text */
    line-height: 1.25;
    text-wrap: balance;
    /* schönere Zeilenbrüche, wo unterstützt */
  }

  /* Sicherheit: nächstes Element direkt nach dem Header nicht hochziehen */
  /*.logo-area + * { margin-top: 0; }*/
  .logo-area {
    padding-bottom: clamp(50px, 2.5vw, 24px);
    /* sorgt für Luft nach unten */
  }

  /* verhindert Top-Margin-Collapse zum Body */
  .logo-area {
    display: flow-root;
    /* oder overflow:auto; */
    padding-top: 12px;
    /* Abstand oben jetzt über Padding */
  }

  /* erster Kinder-Margin darf NICHT kollabieren */
  .logo-area>*:first-child {
    margin-top: 0 !important;
  }

  /* .dot selbst ohne top-margin und sauber block-level */
  .logo-area .dot {
    display: block;
    margin: 0 auto 10px;
    /* nur unten Abstand */
    float: none;
    /* falls irgendwo float gesetzt war */
  }

  /* 1) Logo-Header bekommt die gleiche Fläche wie .hero */
  .logo-area {
    position: relative;
    display: grid;
    justify-items: center;
    text-align: center;

    /* wichtig: eigener BFC (kein Margin-Collapse) */
    isolation: isolate;
    /* modern & sauber */
    /* oder fallback: overflow:auto; */

    padding: 16px 16px 0;
    /* Abstand oben, unten fließend in .hero */
    background: linear-gradient(180deg, #e9eff1 0%, #f5f6f7 40%, #ffffff 100%);

    /* Headline unter dem Kreis */
    .logo-area h2 {
      margin: 8px 0 12px;
      line-height: 1.22;
      font-size: clamp(20px, 4.6vw, 30px);
      text-align: center;
    }

    /* „Lead“-Absatz direkt NACH der Headline */
    .logo-area+section .container .lead:first-child,
    .logo-area+section .lead:first-child {
      margin-top: 8px;
      /* Luft unter der H2 */
    }

    /* Sicherheit: keine negativen/zu großen top-margins am ersten Element im Container */
    section.container>*:first-child {
      margin-top: 0;
    }

  }

}

/* Standard: kein Überlappen */
.logo-area {
  text-align: center;
  padding: 3rem 0;
  position: relative;
  z-index: 2;
  margin-bottom: 0rem;
  /* war: -15rem */
}

/* Desktop: gewünschter Überlapp-Effekt */
@media (min-width: 981px) {
  .logo-area {
    margin-bottom: -15rem;
  }
}

.expertise-section {
  overflow-anchor: none;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #a3a3a3;
  margin-top: 2rem;
  text-align: right;
}

@media (max-width: 768px) {
  .footer-copyright {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #a3a3a3;
    margin-top: 2rem;

  }
}

@media (max-width: 768px) {
  .nc-footer {
    padding-top: 0px;
    background: #fff;
    color: var(--text);
    font-family: Inter, "Inter Tight", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  }
}

@media (max-width: 768px) {
  .expertise-list {
    padding-top: 20px;
  }
}

/* Usercentrics: "About / Um"-Tab ausblenden */
#about-tab-button {
  display: none !important;
}

/* Inhaltspanel "About / Um" ebenfalls verstecken */
#aboutPanel {
  display: none !important;
}

/* Basis – entfernt jegliches Link-Styling */
.nc-link {
  text-decoration: none;
  color: var(--text) !important
}

/* Hover-Effekt – subtil, aber spürbar */
.nc-link:hover {
  cursor: pointer;

  opacity: 0.9;
}