/*
 * Theme „Jupix“ (jupix.de) – ruhiges Editorial-Design. Grundaussehen kommt aus dem Kern (site.css) und theme.json,
 * Bento-Raster und Gegenüberstellung aus den Erweiterungen.
 * Farben: Navy #0b1f3a (Text, dunkle Flächen), Weiß, Blau #0069d1 (Knöpfe, Links, Hervorhebungen),
 * Hellblau #eef5ff (höchstens ein Abschnitt pro Seite, über den Anker), Pink #c2185b/#e91e63 (Logo-Punkt, kleine Marker).
 * Schrift Inter liegt im Theme (SIL Open Font License, siehe schriften/inter-OFL.txt).
 */
@font-face {
  font-family: "Inter";
  src: url("schriften/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("schriften/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --jupix-navy: #0b1f3a;
  --jupix-pink: #e91e63;
  --jupix-hellblau: #eef5ff;
  --line: #dbe3ee;
  --header-h: 76px;
  --space: 80px;
}

@media (min-width: 960px) {
  :root {
    --space: 144px;
    --header-h: 84px;
  }
}

body {
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Logo als Schrift: „jupix.“ mit pinkem Punkt ---------- */
.site-logo {
  color: var(--jupix-navy);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-transform: lowercase;
}

.site-logo .site-logo__mark {
  display: none;
}

.site-logo > span::after,
.site-footer__cols .site-footer__col:first-child .site-footer__title::after {
  content: ".";
  color: var(--jupix-pink);
}

/* ---------- Kopf ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.site-nav a {
  color: var(--jupix-navy);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

@media (min-width: 900px) {
  .site-nav ul {
    gap: 36px;
    align-items: center;
  }

  .site-nav a {
    font-size: 0.98rem;
  }

  .site-nav li:not(.site-nav__button) a[aria-current="page"] {
    color: var(--jupix-navy);
    box-shadow: inset 0 -2px var(--color-primary);
  }
}

/* ---------- Typografie ---------- */
.section-title,
.banner__title,
.cta__title {
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

h1.section-title,
.banner__title {
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

:is(.section-title, .banner__title, .cta__title) strong {
  color: var(--color-primary);
}

:is(.jx-bg--dark, .jx-bg--accent) :is(.section-title, .banner__title, .cta__title) strong {
  color: #7fc1ff;
}

/* Abschnittsköpfe links (Editorial), nicht zentriert */
.section-head {
  max-width: 820px;
  margin: 0 0 clamp(40px, 5vw, 64px);
  text-align: left;
}

.section-intro {
  max-width: 34em;
  color: var(--color-muted);
  font-size: 1.15rem;
}

/* Kleine Zeile: Großbuchstaben, grau, mit pinkem Strich davor */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.4em;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.section-eyebrow::before {
  content: "";
  flex: 0 0 28px;
  height: 2px;
  background: var(--color-accent);
}

.jx-bg--dark .section-eyebrow {
  color: #9fb0c8;
}

.jx-bg--dark .section-eyebrow::before {
  background: var(--jupix-pink);
}

/* ---------- Knöpfe: rechteckig, 3 px ---------- */
.btn {
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.btn--small {
  font-size: 0.95rem;
}

.link-arrow {
  border-bottom-color: var(--line);
  color: var(--jupix-navy);
}

.link-arrow:hover {
  border-bottom-color: var(--color-primary);
}

/* ---------- Hero: Text + Bild als erster Abschnitt ---------- */
.jx-s--text_image:first-child .split__content .prose {
  max-width: 30em;
  color: #33445e;
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
}

.split__media img,
.bento__media img,
.jx-s--gallery img {
  border-radius: var(--radius);
}

/* Montagen (Rechner + Handy) haben eigenen Rahmen – kein grauer Grund dahinter */
.bento__media {
  background: none;
}


/* ---------- Merkmale: „Überschrift links, Liste rechts“ als Editorial-Komposition ---------- */
.jx-v--split .feature {
  display: grid;
  grid-template-columns: 56px 1fr;
  padding: 26px 0;
  counter-increment: aussage;
}

.jx-v--split .features {
  counter-reset: aussage;
  border-top: 1px solid var(--line);
}

.jx-v--split .feature::before {
  content: "0" counter(aussage);
  padding-top: 0.3em;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.jx-v--split .feature__title {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Merkmale „Icons“: links ausgerichtet, ruhig */
.jx-v--standard .feature {
  text-align: left;
}

.jx-v--standard .feature__icon {
  margin: 0 0 18px;
  color: var(--color-primary);
}

.feature__title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

.feature__text {
  color: var(--color-muted);
}

/* ---------- Ablauf: große Nummern statt Kreise, feine Linie oben ---------- */
.steps {
  counter-reset: none;
}

.step {
  text-align: left;
}

.jx-v--standard .step {
  padding-top: 24px;
  border-top: 2px solid var(--line);
}

.jx-v--standard .step:first-child {
  border-top-color: var(--color-primary);
}

.jx-v--standard .step__marker {
  width: auto;
  height: auto;
  margin: 0 0 18px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #c7d3e4;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  justify-content: flex-start;
}

.jx-v--standard .step:first-child .step__marker {
  color: var(--color-primary);
}

.jx-v--standard .step:not(:last-child)::after {
  display: none;
}

.step__number::before {
  content: "0";
}

.step__title {
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
}

.step__text {
  color: var(--color-muted);
}

/* ---------- Preisliste (Pakete): ruhige Zeilen ---------- */
.price__name {
  font-weight: 600;
}

/* ---------- Abschluss in Navy ---------- */
.jx-s--cta.jx-bg--dark .cta__title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 14em;
}

.jx-s--cta.jx-bg--dark .cta__text {
  color: #c4d0e1;
  font-size: 1.2rem;
}

.jx-s--cta .btn {
  padding: 1.1em 2em;
  font-size: 1.05rem;
}

/* ---------- Fuß hell (der dunkle Abschluss darüber bleibt allein) ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: var(--color-primary);
}

.site-footer__title {
  color: var(--jupix-navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer__cols .site-footer__col:first-child .site-footer__title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-transform: lowercase;
}

.site-footer__bottom {
  border-top-color: var(--line);
}

/* ---------- Galerie (Print, Designs) ---------- */
.gallery__caption,
.jx-s--gallery figcaption {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ---------- Projekt-Detail ---------- */
.jx-s--project .section-title {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
}

/* ---------- Korrekturen nach Sichtprüfung ---------- */
/* Überschriften immer links (Editorial) */
.section-title {
  text-align: left;
}

/* Text-Abschnitte linksbündig im Raster, nicht als schmale Spalte in der Mitte */
.text-block {
  margin-inline: 0;
}

/* „Worum es geht“: Aussagen untereinander als nummerierte Liste */
.jx-v--split .features {
  grid-template-columns: 1fr;
}

/* Bento „Wechselnd“: Bilder einheitlich hoch, Text direkt darunter */
.jx-v--wechselnd .bento__media img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.jx-v--wechselnd .bento__tile,
.jx-v--projekte .bento__tile {
  align-self: start;
}

/* „Ein stimmiger Auftritt“: vier gleich große Kacheln (2 × 2) */
@media (min-width: 960px) {
  #auftritt .bento > * {
    grid-column: span 6;
  }
}

#auftritt .bento__media img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Pakete: Liste linksbündig unter der Überschrift */
.jx-s--prices .prices {
  margin-inline: 0;
}

.jx-s--prices .prices__note {
  text-align: left;
}

/* Einleitungen von Galerien linksbündig wie die Überschrift */
.gallery__intro {
  margin-inline: 0;
  max-width: 34em;
  text-align: left;
}

/* „Weitere Projekte“: drei gleich große Kacheln */
@media (min-width: 960px) {
  #weitere .bento > * {
    grid-column: span 4;
  }
}

/* „Ein Design. Ein einheitlicher Auftritt.“: Website über die ganze Breite, darunter zwei gleich große Bilder */
@media (min-width: 960px) {
  #einheit .bento > :nth-child(n + 2) {
    grid-column: span 6;
  }

  #einheit .bento > :first-child .bento__media {
    max-width: 960px;
  }
}

#einheit .bento > :nth-child(n + 2) .bento__media img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* =====================================================================
 * Änderungswünsche 23.11.: Abschnitte heben sich voneinander ab
 * ===================================================================== */

/* Abschnitte im Wechsel: weiß / ganz leichter Blauton (der erste ist der Hero) */
main > .jx-s.jx-bg--light:nth-child(odd) {
  background: #f3f6fb;
}

/* Hero der Unterseiten: helle Berge schimmern durch, klare Linie nach unten */
main > .jx-s.jx-bg--light:first-child {
  border-bottom: 1px solid var(--line);
  background: #fff url("bilder/berge-hell.jpg") center 70% / cover no-repeat;
}

/* Kacheln auf getöntem Grund bleiben weiß */
.bento--rahmen .bento__tile,
.bento--linien .bento__tile {
  background: #fff;
}

.bento--rahmen .bento__tile {
  border-color: var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bento--rahmen .bento__tile:hover {
  border-color: #b9c7da;
  box-shadow: 0 10px 30px rgba(11, 31, 58, 0.06);
}

/* ---------- Start-Hero: Berg-Foto über die ganze Breite ---------- */
#start {
  border-bottom: 0;
}

#start .split {
  align-items: center;
}

#start .split__content .prose {
  color: rgba(255, 255, 255, 0.92);
}

#start .section-eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

#start .section-eyebrow::before {
  background: var(--jupix-pink);
}

#start .section-title strong {
  color: #7fc1ff;
}

#start .link-arrow {
  border-bottom-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

#start .link-arrow::after {
  color: #7fc1ff;
}

#start .split__media img {
  border-radius: 0;
}

@media (min-width: 960px) {
  #start {
    min-height: min(88vh, 820px);
    display: flex;
    align-items: center;
  }

  #start > .jx-s__inner {
    width: 100%;
  }

  #start .split {
    grid-template-columns: 5fr 7fr;
  }
}

/* ---------- Vorteile: sechs gleiche Kacheln, gelesen wie Text (01 02 03 / 04 05 06) ---------- */
@media (min-width: 960px) {
  #vorteile .bento > * {
    grid-column: span 4;
    grid-row: auto;
  }
}

/* ---------- Ablauf: beim Darüberfahren färbt sich der Schritt blau ---------- */
.jx-v--standard .step {
  transition: border-color 0.25s;
}

.jx-v--standard .step__marker {
  transition: color 0.25s;
}

.jx-v--standard .step:first-child {
  border-top-color: var(--line);
}

.jx-v--standard .step:first-child .step__marker {
  color: #c7d3e4;
}

.jx-v--standard .steps:not(:hover) .step:first-child,
.jx-v--standard .step:hover {
  border-top-color: var(--color-primary);
}

.jx-v--standard .steps:not(:hover) .step:first-child .step__marker,
.jx-v--standard .step:hover .step__marker {
  color: var(--color-primary);
}

/* ---------- Abschluss: Navy mit Bergen ---------- */
#anfrage-aufruf .cta__title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 14em;
}

#anfrage-aufruf .cta__text {
  color: #c4d0e1;
  font-size: 1.2rem;
}

#anfrage-aufruf .section-eyebrow {
  color: #9fb0c8;
}

/* Hervorhebungen auf Bild-Hintergründen (Hero, Abschluss) hell */
.jx-bg--image :is(.section-title, .banner__title, .cta__title) strong {
  color: #7fc1ff;
}

@media (min-width: 960px) {
  #start {
    padding-top: calc(var(--space) * 0.6);
    padding-bottom: calc(var(--space) * 0.6);
  }
}

/* Umrandete Kacheln einer Reihe gleich hoch (klare Raster-Linien) */
.bento--rahmen > .bento__tile {
  align-self: stretch;
}

/* =====================================================================
 * Änderungswünsche 2 (23.11.)
 * ===================================================================== */

/* Start-Hero hell: Berge deutlich sichtbar, aber weiß überlagert (wie die Unterseiten, nur kräftiger) */
#start {
  --heading-color: var(--jupix-navy);
  color: var(--color-text);
  border-bottom: 1px solid var(--line);
}

#start .jx-s__bg::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.78) 45%, rgba(255, 255, 255, 0.45) 100%);
  opacity: 1;
}

#start .split__content .prose {
  color: #33445e;
}

#start .section-eyebrow {
  color: var(--color-muted);
}

#start .section-eyebrow::before {
  background: var(--color-accent);
}

#start .section-title strong {
  color: var(--color-primary);
}

#start .link-arrow {
  border-bottom-color: var(--line);
  color: var(--jupix-navy);
}

#start .link-arrow::after {
  color: var(--color-primary);
}

@media (max-width: 959px) {
  #start .jx-s__bg::after {
    background: rgba(255, 255, 255, 0.82);
  }
}

/* Abschluss: kräftiges Dunkelblau, Berge schimmern nur leicht durch */
#anfrage-aufruf .jx-s__bg::after {
  background: linear-gradient(120deg, #0a2350 0%, #0b2f6b 100%);
  opacity: 0.9;
}

/* Galerien neben Text (Logo, Print): Bilder etwas größer, Hinweis klein */
.gallery-aside__text .prose p:last-child {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Überschriften neben Galerien: kleiner, lange Wörter trennen */
.gallery-aside__text .section-title {
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  hyphens: manual;
}

/* Start-Hero: Überschrift etwas kleiner, damit sie in der Textspalte sauber umbricht */
#start h1.section-title {
  font-size: clamp(2.4rem, 4.2vw, 3.9rem);
}

/* ---------- Logo: größerer pinker Punkt, der leicht ins x ragt – mit weißem Rand dazwischen ---------- */
.site-logo > span::after,
.site-footer__cols .site-footer__col:first-child .site-footer__title::after {
  content: "";
  display: inline-block;
  position: relative;
  width: 0.3em;
  height: 0.3em;
  margin-left: -0.11em;
  border-radius: 50%;
  background: var(--jupix-pink);
  box-shadow: 0 0 0 0.06em #fff;
  vertical-align: 0;
}

/* =====================================================================
 * Neues Logo und neue Bilder (24.11.)
 * ===================================================================== */

/* Logo im Kopf: Bild statt Schrift */
img.site-logo__image {
  max-width: 132px;
  max-height: 60px;
}

@media (max-width: 899px) {
  img.site-logo__image {
    max-height: 48px;
  }
}

/* Logo im Fuß: als Bild statt Text */
.site-footer__cols .site-footer__col:first-child .site-footer__title {
  width: 112px;
  height: 56px;
  margin-bottom: 14px;
  background: url("bilder/jupix-logo.png") left center / contain no-repeat;
  color: transparent;
  font-size: 0;
}

.site-footer__cols .site-footer__col:first-child .site-footer__title::after {
  content: none;
}

/* Referenzen und Arbeiten: immer zwei gleich große Kacheln nebeneinander */
@media (min-width: 960px) {
  :is(#referenzen, #arbeiten) .bento > * {
    grid-column: span 6;
  }
}

:is(#referenzen, #arbeiten, #auftritt) .bento__media img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* =====================================================================
 * Wünsche 25.11.: Menü-Knopf größer, Logo 90 px breit
 * ===================================================================== */
.nav-toggle svg {
  width: 36px;
  height: 36px;
}

img.site-logo__image {
  width: 90px;
  max-width: none;
  height: auto;
  max-height: none;
}

.site-footer__cols .site-footer__col:first-child .site-footer__title {
  width: 90px;
  height: 45px;
}
