/* ==========================================================================
   Nanbit - Typografie & Responsive Overrides
   Wird NACH nanbit2.webflow.css geladen und ersetzt die vw-basierten
   Webflow-Schriftgrößen durch eine begrenzte, fließende Skala (clamp).
   Faustregel: min = Smartphone (~375px), max = ab ~1440px Viewport.
   ========================================================================== */

/* Anton SC (SIL Open Font License) - selbst gehostet, keine Verbindung zu Google */
@font-face {
  font-family: "Anton SC";
  src: url("../fonts/AntonSC-Regular-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Anton SC";
  src: url("../fonts/AntonSC-Regular-latin-ext.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Display - Anton SC, uppercase */
  --fs-hero: clamp(3.5rem, 1.25rem + 9.6vw, 9.5rem);        /* 56 → 152px  Hero, Pageloader */
  --fs-section: clamp(3rem, 1.6rem + 6vw, 7rem);            /* 48 → 112px  Sektions-Titel */
  --fs-display: clamp(2.5rem, 1.4rem + 4.6vw, 5.5rem);      /* 40 → 88px   Statements, Seiten-H1 */
  --fs-h2: clamp(2rem, 1.3rem + 3vw, 4rem);                 /* 32 → 64px   Karten-/Service-Titel */
  --fs-h3: clamp(1.625rem, 1.2rem + 1.8vw, 2.75rem);        /* 26 → 44px */
  --fs-h4: clamp(1.375rem, 1.15rem + 1vw, 2rem);            /* 22 → 32px */
  --fs-h5: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);           /* 20 → 24px */
  --fs-h6: 1.125rem;                                        /* 18px */

  /* Text - Poppins */
  --fs-lead-lg: clamp(1.25rem, 1.05rem + .9vw, 1.875rem);   /* 20 → 30px  Hero-Unterzeile */
  --fs-lead: clamp(1.125rem, 1rem + .55vw, 1.5rem);         /* 18 → 24px  Intro-Absätze */
  --fs-body-lg: clamp(1.0625rem, 1rem + .3vw, 1.25rem);     /* 17 → 20px */
  --fs-body: clamp(1rem, .96rem + .15vw, 1.125rem);         /* 16 → 18px */
  --fs-small: .9375rem;                                     /* 15px */
  --fs-xsmall: .8125rem;                                    /* 13px */
  --fs-meta: clamp(1rem, .94rem + .25vw, 1.25rem);          /* 16 → 20px  Gambetta-Labels */
  --fs-ui: clamp(1rem, .96rem + .15vw, 1.125rem);           /* 16 → 18px  Nav & Buttons */

  --lh-display: .95;
  --lh-heading: 1.05;
  --lh-snug: 1.3;
  --lh-text: 1.6;

  --measure: 62ch;

  /* Webflow-Variablen, die auf vw liefen, einfangen */
  --global--body-font-size: var(--fs-body);
  --text-size--default: var(--fs-body);
  --text-size--large: var(--fs-body-lg);
  --text-size--medium: var(--fs-body-lg);
  --text-size--xlarge: var(--fs-lead);
  --text-size--small: var(--fs-small);
  --text-size--xsmall: var(--fs-xsmall);
  --text-meta--font-size: var(--fs-meta);
  --button--font-size: var(--fs-ui);
  --button-text--font-size: var(--fs-ui);
  --nav--font-size: var(--fs-ui);
  --navbar-item--font-size: var(--fs-ui);
  --global--heading-font-family: "Anton SC", "Anton", Impact, "Arial Narrow", sans-serif;
}

/* --- Basis ----------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, .body { font-size: var(--fs-body); line-height: var(--lh-text); }

h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; hyphens: manual; }
h1 { font-size: var(--fs-display); line-height: var(--lh-heading); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); }
h3 { font-size: var(--fs-h3); line-height: 1.1; }
h4 { font-size: var(--fs-h4); line-height: 1.15; }
h5 { font-size: var(--fs-h5); line-height: 1.2; }
h6 { font-size: var(--fs-h6); line-height: 1.3; }

/* --- Display-Überschriften (Anton SC) ----------------------------------- */
.heading-style-large,
.pageloader-heading      { font-size: var(--fs-hero);    line-height: var(--lh-display); }
.heading-style-xxlarge,
.heading-style-xlarge    { font-size: var(--fs-section); line-height: var(--lh-display); }
.heading-style-medium,
.heading-style-h1,
.heading-style-h2        { font-size: var(--fs-display); line-height: var(--lh-heading); }
.heading-style-small     { font-size: var(--fs-h2);      line-height: var(--lh-heading); }
.heading-style-h3        { font-size: var(--fs-h3);      line-height: 1.1; }
.heading-style-h4        { font-size: var(--fs-h4);      line-height: 1.15; }
.heading-style-h5        { font-size: var(--fs-h5);      line-height: 1.2; }
.heading-style-h6        { font-size: var(--fs-h6);      line-height: 1.3; }

/* --- Alt-Überschriften (Poppins, als Lead-/Fließtext genutzt) ------------- */
.heading-alt-h1,
.heading-alt-h2          { font-size: var(--fs-lead-lg); line-height: var(--lh-snug); }
.heading-alt-h1          { font-weight: 500; max-width: var(--measure); }
.heading-alt-small       { font-size: var(--fs-lead);    line-height: 1.4; }
.heading-alt-h3          { font-size: var(--fs-lead);    line-height: 1.4; }
.heading-alt-h4          { font-size: var(--fs-body-lg); line-height: var(--lh-snug); }
.heading-alt-h5          { font-size: var(--fs-body-lg); line-height: 1.5; }
.heading-alt-h6          { font-size: var(--fs-body);    line-height: 1.5; }

/* Lesbare Zeilenlänge für längere Absätze */
p.heading-alt-small,
p.heading-alt-h2,
p.heading-alt-h3,
p.heading-alt-h5 { max-width: var(--measure); }

/* --- Fließtext-Klassen ----------------------------------------------------- */
.text-size-xlarge  { font-size: var(--fs-lead); }
.text-size-large   { font-size: var(--fs-body-lg); line-height: var(--lh-text); }
.text-size-medium  { font-size: var(--fs-body-lg); line-height: var(--lh-text); }
.text-size-regular { font-size: var(--fs-body); line-height: var(--lh-text); }
.text-size-small   { font-size: var(--fs-small); line-height: 1.6; }
.text-size-tiny    { font-size: var(--fs-xsmall); }
.text-meta,
.text-meta.text-color-muted { font-size: var(--fs-meta); }
.text-meta-small   { font-size: var(--fs-small); }
.text-rich-text blockquote { font-size: var(--fs-h4); line-height: 1.3; }
.post-preview .heading-style-h3 { font-size: var(--fs-h4); line-height: 1.1; }
.text-rich-text p,
.text-rich-text li { max-width: 70ch; }
.text-rich-text h2 { font-size: var(--fs-h3); margin: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0 1rem; }
.text-rich-text h3 { font-size: var(--fs-h4); margin: 2rem 0 .75rem; }
.text-rich-text > :first-child { margin-top: 0; }

/* --- Navigation & Buttons ------------------------------------------------- */
.nav-item, .nav-item.inverse, .styleguide-nav-item,
.navbar-menu-item, .menu-nav-text { font-size: var(--fs-ui); }
.menu-nav-item-text { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); line-height: 1; }
.button, .button-2, .button-text { font-size: var(--fs-ui); }

/* --- Sonstige Komponenten ------------------------------------------------- */
.services-heading   { font-size: var(--fs-display); line-height: var(--lh-heading); }
.service-card-title { font-size: var(--fs-h4); }
.accordion-title    { font-size: var(--fs-h5); }
.legal-heading      { font-size: var(--fs-h4); }

/* --- Abstände: Überschrift → Einleitung ---------------------------------- */
p.heading-alt-small,
p.heading-alt-h2,
p.heading-alt-h3 { margin-top: clamp(.75rem, .5rem + .8vw, 1.5rem); }

/* Meta-Labels bündig zum Inhalt statt zentriert */
.text-meta, .text-meta.text-color-muted { text-align: left; }

/* --- Mobile --------------------------------------------------------------- */

.text-meta.extra { text-align: center; }

@media (max-width: 767px) {
  .footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 2.5rem; }
  .footer-column { align-items: flex-start; text-align: left; gap: 1.1rem; }
  .footer-column .nav, .footer-column .nav-item { align-items: flex-start; justify-content: flex-start; }
}

/* --- Über uns: „Was wir tun“-Karten --------------------------------------- */
.services-section { padding: clamp(4rem, 3rem + 4vw, 7rem) clamp(1.25rem, 6vw, 6rem); }
.services-section-header { gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.service-card-tag { font-size: .8125rem; letter-spacing: .12em; }
.services-section-label { font-family: var(--text-meta--font-family); font-style: italic; font-weight: 500;
  text-transform: none; letter-spacing: 0; font-size: var(--fs-meta); color: #9a9a9a; margin-bottom: .75rem; }
.services-subtitle { font-size: var(--fs-body-lg); max-width: 36ch; }
.services-grid { gap: clamp(12px, 1.5vw, 20px); }
.service-card { min-height: 0; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); gap: .75rem; }
.service-card-tag { margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.service-card-title { margin-bottom: .25rem; }
.service-card-description { text-align: left; font-size: var(--fs-body); max-width: 48ch; }

@media (max-width: 767px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-section-header { flex-direction: column; align-items: flex-start; }
}

/* --- Formulare ------------------------------------------------------------ */
@media (max-width: 767px) {
  form input:not([type=checkbox]):not([type=radio]):not([type=submit]),
  form textarea, form select { width: 100%; max-width: none; }
  form input[type=submit], form .button { width: 100%; }
}

@media (max-width: 767px) {
  /* !important nötig: Webflow setzt grid-area per ID-Selektor */
  .footer-nav > .footer-column:first-child { grid-column: 1 / -1 !important; }
  .footer-column .button { white-space: nowrap; }
}

/* Webflow hatte hier -1rem gesetzt -> Überlappungen (z. B. Projekt-Header) */
.margin-bottom.margin-large { margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 3rem); }

/* --- Kontaktformular ------------------------------------------------------ */
.nb-form { display: flex; flex-direction: column; gap: 1.25rem; width: 100%; max-width: 44rem; }
.nb-form .form-row-1-2 { gap: 1.25rem; }
.nb-form-intro { font-size: var(--fs-body-lg); color: var(--global-colors--text-muted); margin: 0 0 .25rem; max-width: 52ch; }
.nb-field { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.nb-field label { font-size: var(--fs-small); font-weight: 500; line-height: 1.3; }
.nb-optional { color: var(--global-colors--text-muted); font-weight: 400; }
.nb-form .form-input { width: 100%; font-size: 1rem; }  /* 16px: kein Auto-Zoom auf iOS */
.nb-form .form-input:focus-visible { outline: 2px solid var(--global-colors--background-primary); outline-offset: 2px; }
.nb-form .form-input.is-invalid { border-color: #c0392b; }
.nb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nb-consent { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--fs-small); line-height: 1.5; cursor: pointer; }
.nb-consent input { width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; flex: none; accent-color: var(--global-colors--background-primary); }
.nb-consent input.is-invalid { outline: 2px solid #c0392b; outline-offset: 2px; }
.nb-consent a { text-decoration: underline; }
.nb-form-status { padding: 1rem 1.25rem; font-size: var(--fs-small); line-height: 1.5; border-left: 3px solid; }
.nb-form-status.is-success { background: #e8f6f3; border-color: #14b8a6; color: #0b4d45; }
.nb-form-status.is-error { background: #fdecea; border-color: #c0392b; color: #7b241c; }
.nb-form button[disabled] { opacity: .6; cursor: progress; }
.nb-form-note { font-size: var(--fs-xsmall); color: var(--global-colors--text-muted); margin: 0; }
@media (max-width: 767px) {
  .nb-form .form-row-1-2 { display: grid; grid-template-columns: 1fr; row-gap: 1.25rem; }
}

/* --- Cookie-Einstellungen (js/consent.js) --------------------------------- */
.nb-legal-links { display: flex; justify-content: center; padding: 20px 16px; background: #0e1011; }
.nb-legal-links button { background: none; border: 0; padding: .25rem .5rem; color: #a1a1aa; font: inherit; font-size: .875rem; cursor: pointer; }
.nb-legal-links button:hover, .nb-legal-links button:focus-visible { color: #14b8a6; }
.nb-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 99998; display: none; max-width: 30rem; margin: 0 auto;
  padding: 1.5rem; background: #0f0f11; color: #f5f5f5; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.nb-cookie.nb-show { display: block; }
.nb-cookie-title { font-family: var(--global--body-font-family); text-transform: none; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; margin: 0 0 .5rem; }
.nb-cookie p, .nb-modal-box p { margin: 0 0 1rem; font-size: .875rem; line-height: 1.55; color: #a1a1aa; }
.nb-cookie a, .nb-modal-box a { color: #14b8a6; text-decoration: underline; }
.nb-cookie-row { display: flex; gap: .625rem; flex-wrap: wrap; }
/* Beide Buttons gleich gewichtet (keine Bevorzugung der Zustimmung) */
.nb-btn { flex: 1; min-width: 8.5rem; padding: .75rem 1rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.35);
  background: transparent; color: #f5f5f5; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.nb-btn:hover, .nb-btn:focus-visible { background: rgba(255,255,255,.08); border-color: #fff; }
.nb-modal { position: fixed; inset: 0; z-index: 99999; display: none; align-items: flex-start; justify-content: center;
  padding: 40px 16px; background: rgba(0,0,0,.7); overflow-y: auto; }
.nb-modal.nb-open { display: flex; }
.nb-modal-box { position: relative; width: 100%; max-width: 35rem; padding: 2.25rem; background: #0f0f11; color: #f5f5f5;
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px; line-height: 1.6; }
.nb-modal-box h2 { font-family: var(--global--body-font-family); text-transform: none; font-size: 1.5rem; font-weight: 600; margin: 0 0 .5rem; }
.nb-modal-box h3 { font-family: var(--global--body-font-family); text-transform: none; font-size: 1.0625rem; font-weight: 600; margin: 1.25rem 0 .25rem; }
.nb-current { color: #f5f5f5 !important; margin-top: 1.25rem !important; }
.nb-close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12);
  background: none; color: #f5f5f5; font-size: 1.125rem; line-height: 1; cursor: pointer; }

/* --- Rechtstexte (Impressum, Datenschutz) --------------------------------- */
.changelog-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.changelog-right p { max-width: 68ch; }
.changelog-right p + p { margin-top: 1rem; }
.changelog-right .legal-heading { margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem); margin-bottom: .75rem; }
.changelog-right a { text-decoration: underline; }

/* --- Touch-Ziele: mind. ~44px Tippfläche, ohne das Layout zu verschieben --- */
@media (max-width: 991px) {
  .navbar-logo, .navbar-menu-item, .mobile-menu-toggle,
  .footer-column .nav-item, .nb-legal-links button { position: relative; }
  .navbar-logo::after, .navbar-menu-item::after, .footer-column .nav-item::after,
  .nb-legal-links button::after { content: ""; position: absolute; inset: -10px -6px; }
  .mobile-menu-toggle::after { content: ""; position: absolute; inset: -8px; }
  .nb-consent input { width: 1.5rem; height: 1.5rem; }
}

/* Logo in der Navigation nicht zusammenquetschen (Startseite war auf dem Handy 35px breit) */
.navbar-logo, .navbar-logo > * { flex-shrink: 0; }
.navbar-logo { min-width: max-content; }  /* sonst ist die Tippfläche nur 35px breit */
.navbar-logo-image { max-width: none; }

/* Cookie-Banner auf dem Handy kompakt, Buttons untereinander */
@media (max-width: 479px) {
  .nb-cookie { left: 12px; right: 12px; bottom: 12px; padding: 1.125rem; }
  .nb-cookie p { font-size: .8125rem; margin-bottom: .875rem; }
  .nb-cookie-row { flex-direction: column; gap: .5rem; }
  .nb-btn { min-width: 0; width: 100%; padding: .7rem 1rem; }
  .nb-modal { padding: 16px 12px; }
  .nb-modal-box { padding: 1.5rem; }
}

/* Nur für Screenreader und Suchmaschinen sichtbar */
.nb-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Umlaut-Punkte (Ä, Ö, Ü) in großen Überschriften nicht abschneiden.
   Der Rahmen (für die Einblende-Animation) bekommt oben Luft, die per negativem
   Margin ausgeglichen wird: Die Überschrift bleibt exakt an ihrer Position. */
.overflow-hidden:has(> h1, > h2, > h3, > [class*="heading-style"]) {
  padding-top: calc(var(--fs-hero) * 0.15);
  margin-top: calc(var(--fs-hero) * -0.15);
}

/* --- Hover-Effekte (vorher per webflow.js) --------------------------------- */
.nav-item-line, .navbar-item-line { transition: width .5s cubic-bezier(.25,1,.5,1); }
.nav-item:hover .nav-item-line,
.navbar-menu-item:hover .navbar-item-line { width: 100%; }
.button-text-line { transition: width .5s cubic-bezier(.25,1,.5,1); }
.button-text:hover .button-text-line { width: 0; }

/* --- Ohne JavaScript oder mit "Bewegung reduzieren": alles sofort sichtbar --- */
@media (prefers-reduced-motion: reduce) {
  [data-nb-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* --- Zum Inhalt springen (nur bei Tastaturfokus sichtbar) ------------------- */
.nb-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100000; padding: .75rem 1.25rem; background: #0e1011; color: #fff;
  font-weight: 600; border-radius: 8px; text-decoration: none; transition: top .2s; }
.nb-skip:focus { top: 1rem; }

/* --- Abschluss mit Kontaktaufforderung (Projekt- & Blogseiten) ------------ */
.nb-cta { background: #0e1011; color: #fff; padding: clamp(4rem, 3rem + 4vw, 7rem) clamp(1.25rem, 6vw, 6rem); }
.nb-cta-inner { max-width: 44rem; }
.nb-cta-title { font-family: var(--global--heading-font-family); text-transform: uppercase; font-weight: 400;
  font-size: var(--fs-h2); line-height: var(--lh-heading); margin: 0 0 1rem; color: #fff; }
.nb-cta-text { font-size: var(--fs-body-lg); color: #b9b9b9; margin: 0 0 2rem; max-width: 52ch; }
.nb-cta .button.primary { background: #fff; color: #0e1011; border-color: #fff; }
.nb-cta .button.primary:hover { background: #e8eded; border-color: #e8eded; }

.nb-form-alt { font-size: var(--fs-small); color: var(--global-colors--text-muted); margin: .25rem 0 0; }
.nb-form-alt a { text-decoration: underline; }

/* Footer-Button nicht umbrechen */
.footer-column .button { white-space: nowrap; }

/* --- Moderne Bewegungen (js/nanbit.js) ------------------------------------- */
/* Seitenwechsel: weiches Überblenden statt hartem Neuladen */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: nb-vt-out .3s cubic-bezier(.76,0,.24,1) both; }
::view-transition-new(root) { animation: nb-vt-in .6s cubic-bezier(.22,1,.36,1) both; }
@keyframes nb-vt-out { to { opacity: 0; transform: translateY(-1.5%); } }
@keyframes nb-vt-in { from { opacity: 0; transform: translateY(2.5%); } }

/* Bilder von unten aufdecken */
.nb-unveil { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s cubic-bezier(.76,0,.24,1); }
.nb-unveil.nb-in { clip-path: inset(0 0 0 0); }

/* Leitsätze: Wörter hellen sich beim Lesen auf */
.nb-word { opacity: .18; transition: opacity .4s ease; }
.nb-word.is-lit { opacity: 1; }

/* Lesefortschritt oben am Rand (Projekt- und Blogseiten) */
.nb-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10001; pointer-events: none;
  background: var(--global-colors--text-default, #0e1011); transform: scaleX(0); transform-origin: 0 50%; }
@supports (animation-timeline: scroll()) {
  .nb-progress { animation: nb-grow linear both; animation-timeline: scroll(root); }
  @keyframes nb-grow { to { transform: scaleX(1); } }
}

/* Magnetische Buttons */
.nb-magnet { transition: border-color .2s, color .2s, background-color .2s, transform .6s cubic-bezier(.22,1,.36,1); will-change: transform; }

.section-home-hero { overflow-x: clip; } /* vergrößerte Grafik darf nicht seitlich überstehen */

/* Kundenstimmen heben sich beim Überfahren leicht an */
.clients-item { transition: transform .6s cubic-bezier(.22,1,.36,1), box-shadow .6s cubic-bezier(.22,1,.36,1); }
@media (hover: hover) {
  .clients-item:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(14,16,17,.25); }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .nb-progress { animation: none; }
  .nb-letter { transform: none !important; transition: none !important; }
  .nb-word { opacity: 1; }
}

/* Galerie: "Ansehen"-Button verdeckt sonst die Gerätebildschirme; erscheint erst beim Überfahren (js/nanbit.js) */
.project-gallery-image-wrapper .view-button { transform: scale(0); }

/* Mehrzeilige Großüberschriften: mehr Luft zwischen den Zeilen (Umlaut-Punkte stoßen sonst an die Zeile darüber) */
.overflow-hidden > [class*="heading-style"] { padding-bottom: .1em; }

/* Leistungen auf der Startseite: Stichpunkte nicht so gedrängt */
.home-services-list { row-gap: 1.75rem; column-gap: 3.5rem; }
.home-services-item-content { padding-bottom: calc(6vw + 1rem); }
@media (max-width: 991px) {
  .home-services-list { row-gap: 1.25rem; column-gap: 2rem; }
  .home-services-item-content { padding-bottom: 4rem; }
}

/* Startbild: lebendiges Netzwerk (Canvas, js/nanbit.js) hinter dem Logo */
.nb-net { background: #0a0a0b; overflow: hidden; }
.nb-net-canvas, .nb-net-logo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nb-net-logo { object-fit: cover; pointer-events: none; }

/* Fußzeile: Schriftzug baut sich Buchstabe für Buchstabe auf */
.nb-letters { overflow: hidden; padding-bottom: .04em; }
.nb-letter { display: inline-block; transform: translate3d(0, 110%, 0);
  transition: transform 1s cubic-bezier(.22,1,.36,1); }
.nb-letters.nb-in .nb-letter { transform: translate3d(0, 0, 0); }
@media (max-width: 991px) { .nb-net { position: relative; } }

/* --- Anfrage-Assistent (Kontaktformular in Schritten, js/contact-form.js) --
   Inspiriert von Cuberto (Gesprächston, Auswahl statt Freitext), basement.studio
   (große Schrift, Haarlinien statt Kästen) und Locomotive (entschlüsselnde Zahlen). */
.nb-form [hidden] { display: none !important; }
.nb-form:not(.is-wizard) .nb-wiz-head,
.nb-form:not(.is-wizard) .nb-back,
.nb-form:not(.is-wizard) .nb-next,
.nb-form:not(.is-wizard) .nb-key-hint { display: none; }
.nb-form.is-wizard { gap: 1.75rem; }
.nb-step { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.nb-form:not(.is-wizard) .nb-step + .nb-step { margin-top: 2rem; }

/* Kopf: große Schrittzahl + Linie */
.nb-wiz-head { display: flex; align-items: flex-end; gap: clamp(1rem, 2vw, 1.75rem); }
.nb-wiz-count { font-family: var(--global--heading-font-family); line-height: .82; white-space: nowrap; display: flex; align-items: flex-start; }
.nb-wiz-now { font-size: clamp(3.75rem, 2.4rem + 5vw, 6.75rem); font-variant-numeric: tabular-nums; }
.nb-wiz-total { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); color: var(--global-colors--text-muted); margin-left: .35rem; }
.nb-progress-track { flex: 1; height: 2px; margin-bottom: .55rem; background: var(--global-colors--border-default, #e3e3e3); overflow: hidden; }
.nb-progress-fill { display: block; height: 100%; width: 25%; background: var(--global-colors--text-default, #0e1011);
  transition: width .9s cubic-bezier(.76,0,.24,1); }

/* Bisherige Antworten, anklickbar */
.nb-wiz-summary { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin-top: -.5rem; }
.nb-wiz-summary button { font-family: var(--text-meta--font-family); font-style: italic; font-weight: 500; font-size: var(--fs-meta);
  color: var(--global-colors--text-muted); background: none; border: 0; padding: 0; cursor: pointer;
  animation: nb-fade-up .5s cubic-bezier(.22,1,.36,1) both; }
.nb-wiz-summary button:hover, .nb-wiz-summary button:focus-visible { color: var(--global-colors--text-default); text-decoration: underline; text-underline-offset: .2em; }

/* Frage: Wörter steigen aus einer Maske auf (wie die Überschriften der Seite) */
.nb-step-title { font-family: var(--global--heading-font-family); text-transform: uppercase; font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); line-height: 1.08; padding: 0; margin: 0;
  outline: none; float: left; width: 100%; } /* float: Legende wird normales Element, damit der Abstand (gap) greift */
.nb-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em 0 .04em; margin: -.12em 0 -.04em; }
.nb-w > span { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform .9s cubic-bezier(.22,1,.36,1); }
.nb-step.is-shown .nb-w > span { transform: none; }

/* Antworten: nummerierte Zeilen mit Haarlinien; Schwarz füllt sich von unten */
.nb-choices { display: flex; flex-direction: column; border-top: 1px solid var(--global-colors--border-default, #d9d9d9); }
.nb-choice { position: relative; display: block; cursor: pointer; }
.nb-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nb-choice-box { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  align-items: baseline; column-gap: 1rem; padding: 1.35rem 1.25rem 1.35rem .75rem; border-bottom: 1px solid var(--global-colors--border-default, #d9d9d9);
  transition: color .45s cubic-bezier(.22,1,.36,1), padding .6s cubic-bezier(.22,1,.36,1); }
.nb-choice-box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #0e1011;
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s cubic-bezier(.76,0,.24,1); }
.nb-choice-num { font-family: var(--text-meta--font-family); font-style: italic; font-weight: 500; font-size: var(--fs-meta); color: var(--global-colors--text-muted); transition: color .45s; }
.nb-choice-title { font-weight: 600; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.25; }
.nb-choice-text { font-size: var(--fs-small); color: var(--global-colors--text-muted); line-height: 1.4; text-align: right; transition: color .45s; }
@media (hover: hover) {
  .nb-choice:hover .nb-choice-box { color: #fff; padding-left: 1.25rem; }
  .nb-choice:hover .nb-choice-box::before { transform: scaleY(1); }
  .nb-choice:hover .nb-choice-num, .nb-choice:hover .nb-choice-text { color: #a9a9a9; }
}
.nb-choice input:checked + .nb-choice-box { color: #fff; padding-left: 1.25rem; }
.nb-choice input:checked + .nb-choice-box::before { transform: scaleY(1); }
.nb-choice input:checked + .nb-choice-box .nb-choice-num,
.nb-choice input:checked + .nb-choice-box .nb-choice-text { color: #a9a9a9; }
.nb-choice input:focus-visible + .nb-choice-box { outline: 2px solid var(--global-colors--background-primary); outline-offset: -2px; }
.nb-step.has-error .nb-choices { border-top-color: #c0392b; }
.nb-step.has-error .nb-choice-box { border-bottom-color: #c0392b; }
.nb-step.is-shown .nb-choice { animation: nb-fade-up .7s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i, 0) * 70ms + 180ms); }
.nb-key-hint { margin: -.25rem 0 0; font-size: var(--fs-xsmall); color: var(--global-colors--text-muted); }
@media (hover: none), (max-width: 767px) { .nb-key-hint { display: none; } }

/* Kontaktdaten: nur eine Linie statt Kasten */
.nb-form.is-wizard .form-input { background: transparent; border: 0; border-bottom: 1px solid var(--global-colors--border-default, #cfcfcf);
  border-radius: 0; padding: .7rem 0; font-size: 1.125rem; min-height: 0; height: auto; transition: border-color .3s, box-shadow .3s; }
.nb-form.is-wizard .form-input:focus { outline: none; border-bottom-color: var(--global-colors--text-default, #0e1011);
  box-shadow: 0 1px 0 var(--global-colors--text-default, #0e1011); }
.nb-form.is-wizard .form-input.is-invalid { border-bottom-color: #c0392b; box-shadow: 0 1px 0 #c0392b; }
.nb-form.is-wizard .form-input.is-text-area { min-height: 6.5rem; resize: vertical; }
.nb-form.is-wizard .nb-field label { color: var(--global-colors--text-muted); font-weight: 500; }

/* Navigation */
.nb-step-nav { display: flex; flex-direction: row; gap: 1.5rem; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
.nb-back { background: none; border: 0; padding: 0; font-weight: 600; font-size: var(--fs-small); color: var(--global-colors--text-muted);
  text-decoration: underline; text-underline-offset: .25em; cursor: pointer; order: 2; }
.nb-back:hover { color: var(--global-colors--text-default); }
.nb-next { order: 1; }
/* Absenden: großer Schriftzug mit Linie, die beim Überfahren durchläuft */
.nb-submit { order: 1; position: relative; background: none; border: 0; padding: 0 0 .2rem; cursor: pointer; color: var(--global-colors--text-default, #0e1011);
  font-family: var(--global--heading-font-family); text-transform: uppercase; font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); line-height: 1; }
.nb-submit::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: currentColor; transform-origin: 100% 50%; }
@media (hover: hover) {
  .nb-submit:hover::after { animation: nb-line-run .9s cubic-bezier(.76,0,.24,1); }
}
@keyframes nb-line-run { 0% { transform: scaleX(1); transform-origin: 100% 50%; } 45% { transform: scaleX(0); transform-origin: 100% 50%; }
  46% { transform: scaleX(0); transform-origin: 0 50%; } 100% { transform: scaleX(1); transform-origin: 0 50%; } }
.nb-submit[disabled] { opacity: .45; cursor: progress; }

/* Abschluss */
.nb-wiz-done { display: flex; flex-direction: column; gap: 1.5rem; outline: none; }
.nb-done-title { font-family: var(--global--heading-font-family); text-transform: uppercase; font-size: clamp(4.5rem, 2.5rem + 8vw, 9.5rem);
  line-height: .9; margin: 0; overflow: hidden; padding-bottom: .04em; }
.nb-done-title .nb-letter { transition-duration: 1.1s; }
.nb-done-text { font-size: var(--fs-body-lg); color: var(--global-colors--text-muted); max-width: 40ch; margin: 0; }
.nb-done-list { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.5rem; margin: .5rem 0 0; padding: 1.25rem 0 0;
  border-top: 1px solid var(--global-colors--border-default, #d9d9d9); font-size: var(--fs-small); }
.nb-done-list dt { font-family: var(--text-meta--font-family); font-style: italic; color: var(--global-colors--text-muted); }
.nb-done-list dd { margin: 0; font-weight: 600; }
.nb-done-again { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: .25em; align-self: flex-start; }

/* Schrittwechsel */
.nb-step-in { animation: nb-step-in .6s cubic-bezier(.22,1,.36,1) both; }
.nb-step-back { animation: nb-step-back .6s cubic-bezier(.22,1,.36,1) both; }
@keyframes nb-step-in { from { opacity: 0; transform: translate3d(32px, 0, 0); } }
@keyframes nb-step-back { from { opacity: 0; transform: translate3d(-32px, 0, 0); } }
@keyframes nb-fade-up { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

@media (max-width: 479px) {
  .nb-choice-box { grid-template-columns: 2.5rem minmax(0, 1fr); padding: 1.1rem .5rem; }
  .nb-choice-text { grid-column: 2; text-align: left; margin-top: .2rem; }
  .nb-choice:hover .nb-choice-box, .nb-choice input:checked + .nb-choice-box { padding-left: 1rem; }
  .nb-done-list { grid-template-columns: 1fr; gap: .15rem; }
  .nb-done-list dd { margin-bottom: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nb-w > span { transform: none !important; transition: none !important; }
  .nb-step.is-shown .nb-choice, .nb-step-in, .nb-step-back, .nb-wiz-summary button { animation: none !important; }
  .nb-choice-box, .nb-choice-box::before { transition: none !important; }
}

/* --- Projektseiten: Website in Bewegung (Bildschirmaufnahmen in Geräterahmen) --- */
.nb-motion { background: var(--global-colors--background-muted, #f0f0f0); padding: clamp(4rem, 3rem + 4vw, 7rem) clamp(1.25rem, 6vw, 6rem); }
.nb-motion-head { display: flex; flex-direction: column; gap: .75rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.nb-motion-title { font-family: var(--global--heading-font-family); text-transform: uppercase; font-weight: 400;
  font-size: var(--fs-h2); line-height: var(--lh-heading); margin: 0; }
.nb-motion-stage { display: grid; grid-template-columns: minmax(0, 1fr) clamp(180px, 20vw, 300px); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: end; }
.nb-motion figure { margin: 0; }
.nb-video { display: block; width: 100%; height: auto; background: #111; }
.nb-browser { border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 80px -40px rgba(14,16,17,.45), 0 0 0 1px rgba(14,16,17,.08); }
.nb-browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #ececec; border-bottom: 1px solid #dedede; }
.nb-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfcfcf; }
.nb-browser-url { margin-left: 12px; flex: 1; max-width: 340px; height: 20px; border-radius: 6px; background: #fff; color: #777;
  font-size: 11px; line-height: 20px; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-browser .nb-video { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.nb-phone { border-radius: 38px; padding: 10px; background: #0e1011; box-shadow: 0 40px 80px -40px rgba(14,16,17,.55); }
.nb-phone .nb-video { border-radius: 28px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
@media (max-width: 767px) {
  .nb-motion-stage { grid-template-columns: 1fr; justify-items: center; }
  .nb-browser { width: 100%; }
  .nb-phone { width: min(260px, 70vw); border-radius: 32px; padding: 8px; }
  .nb-phone .nb-video { border-radius: 24px; }
}

/* Blogartikel: lange Titel brauchen etwas Zeilenabstand (Umlaut-Punkte) */
.post-grid-right-top h1 { line-height: 1.12; }
/* Blogartikel am Handy: Einleitung und erste Zwischenüberschrift überlappten (Webflow: margin-top -2rem) */
@media (max-width: 767px) {
  .post-content { margin-top: 0; }
  .post-grid-right-bottom { padding-top: 2.5rem; }
}

/* Kontakt: Überschrift "Reden wir" kleiner, damit der Anfrage-Assistent mehr Platz hat */
.contact-right .heading-style-large { font-size: clamp(2.75rem, 1.6rem + 4vw, 5.25rem); line-height: .95; }
.contact-right { row-gap: 1.5rem; }
.contact-right > .margin-bottom.margin-large:first-child { margin-bottom: clamp(.5rem, .25rem + 1vw, 1.25rem); }

/* Sprachumschalter DE | EN: Pille gleitet beim Überfahren zur anderen Sprache (.tools/i18n/build_en.py) */
.nb-lang-switch { position: relative; display: inline-flex; align-items: center; padding: 3px; border-radius: 999px;
  border: 1px solid var(--global-colors--border-default, #d9d9d9); isolation: isolate; flex-shrink: 0; }
.nb-lang-opt { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 2.6em; height: 2em; border-radius: 999px; font-family: var(--navbar-item--font-family); font-weight: 600;
  font-size: .8125rem; letter-spacing: .06em; line-height: 1; text-decoration: none; color: var(--global-colors--text-default, #0e1011);
  transition: color .45s cubic-bezier(.22,1,.36,1); }
.nb-lang-opt.is-active { color: #fff; cursor: default; }
.nb-lang-pill { position: absolute; z-index: 0; top: 3px; left: 3px; width: 2.6em; height: 2em; border-radius: 999px;
  font-size: .8125rem; background: var(--global-colors--text-default, #0e1011); transition: transform .5s cubic-bezier(.76,0,.24,1); }
.nb-lang-en .nb-lang-pill { transform: translateX(100%); }
/* Überfahren der anderen Sprache: Pille gleitet hinüber, Farben tauschen */
.nb-lang-de:has(a.nb-lang-opt:hover) .nb-lang-pill, .nb-lang-de:has(a.nb-lang-opt:focus-visible) .nb-lang-pill { transform: translateX(100%); }
.nb-lang-en:has(a.nb-lang-opt:hover) .nb-lang-pill, .nb-lang-en:has(a.nb-lang-opt:focus-visible) .nb-lang-pill { transform: translateX(0); }
.nb-lang-switch:has(a.nb-lang-opt:hover) a.nb-lang-opt, .nb-lang-switch:has(a.nb-lang-opt:focus-visible) a.nb-lang-opt { color: #fff; }
.nb-lang-switch:has(a.nb-lang-opt:hover) .nb-lang-opt.is-active, .nb-lang-switch:has(a.nb-lang-opt:focus-visible) .nb-lang-opt.is-active { color: var(--global-colors--text-default, #0e1011); }
.nb-lang-opt:focus-visible { outline: 2px solid var(--global-colors--background-primary); outline-offset: 2px; }
.navbar-menu-item-text { white-space: nowrap; }
/* Handy-Menü: Schalter größer und mittig unter den Menüpunkten */
.nb-lang-switch.nb-lang-mobile { font-size: 1.15rem; margin: 2.5rem auto 0; display: flex; width: max-content; }
.nb-lang-mobile .nb-lang-opt, .nb-lang-mobile .nb-lang-pill { font-size: 1rem; width: 3.2em; height: 2.4em; }
.navbar-right, .navbar-small-right { align-items: center; }
.navbar-right { display: flex; justify-content: flex-end; gap: 1.5rem; }
/* Startseite/Kontakt (zweite Kopfzeile): genug Abstand zwischen Menü, Kontakt und Schalter */
@media (min-width: 992px) {
  .navbar-small-right { padding-left: clamp(2rem, 3vw, 4rem); column-gap: 1.5rem; justify-content: flex-start; }
  .navbar-small-menu { column-gap: clamp(1.25rem, 2.2vw, 3rem); margin-right: 1rem; }
  .navbar-small-right .button-text { margin-left: auto; }  /* freier Platz zwischen Menü und Kontakt */
}
.navbar-right .nb-lang-switch, .navbar-small-right .nb-lang-switch { margin-left: 0; }
@media (max-width: 767px) { .navbar-right .nb-lang-switch:not(.nb-lang-mobile) { display: none; } }
@media (prefers-reduced-motion: reduce) { .nb-lang-pill, .nb-lang-opt { transition: none; } }

/* Projektseiten und Projektübersicht: große Bilder auf dem Desktop in der Höhe begrenzen (sonst bildschirmfüllend).
   Das Bild ist höher als der Rahmen, damit die Parallax-Verschiebung keine Ränder freilegt. */
@media (min-width: 992px) {
  .project-hero-image-wrapper, .project-preview-large-image-wrapper { position: relative; height: min(72vh, 46vw); }
  .project-hero-image-wrapper .image-cover-parallax,
  .project-preview-large-image-wrapper .image-cover-parallax { position: absolute; left: 0; top: -10%; height: 120%; }
}
