/* Landing page (frontend/home.html) - mobile-first from the Phone XD,
 * desktop from Web 1920 - 1. */

/* Hero: full-bleed media with overlaid headline */
.home-hero {
    position: relative;
    min-height: var(--dbj-hero-max-home);
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--dbj-white);
    overflow: hidden;
    background: var(--dbj-text);
}
@media (max-width: 767px) {
    .home-hero { min-height: 0; aspect-ratio: 8 / 11; }   /* XD phone hero ≈ 375x515 */
}
.home-hero__media,
.home-hero__media img,
.home-hero__media iframe,
.home-hero__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}
/* Board Thema 18: Slideshow. Alle Bilder liegen uebereinander, sichtbar
   ist nur das aktive; home-hero.js wechselt die Klasse, das hier blendet. */
.home-hero__slide { opacity: 0; transition: opacity 1.2s ease; }
.home-hero__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .home-hero__slide { transition: none; }
}
/* Board Thema 18 (Pin 6): weisse Schrift ohne Umrandung. Ein leichter
   dunkler Verlauf hinter der Titelzeile, nach aussen fast klar - das Bild
   bleibt hell, der Text liest sich. */
.home-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 42% at 50% 50%, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0) 100%),
        rgba(0, 0, 0, 0.1);
}
.home-hero__content {
    position: relative;
    z-index: 1;
    padding: var(--dbj-space-6) var(--dbj-space-3);
    display: grid;
    gap: var(--dbj-space-4);
    justify-items: center;
}
.home-hero__content h1 { line-height: 1.0; }
/* Pins #55/#56 (Sitzung 23.10.): Handy ein Wort pro Zeile; ab Tablet eine
   Zeile, Grösse wächst mit der Breite: 73 px bei 1920 (3.8vw) */
.home-hero__title > span { display: block; }
@media (min-width: 768px) {
    .home-hero__title { font-size: clamp(2.25rem, 3.8vw, 4.5625rem); white-space: nowrap; text-wrap: nowrap; }
    .home-hero__title > span { display: inline; }
    /* Nick 23.10.: "Develop, Scan, Process" ist kürzer - gleich breit wie der
       deutsche Titel (~61 % der Breite), also ~107 px bei 1920 */
    html[lang="en"] .home-hero__title { font-size: clamp(2.25rem, 5.55vw, 6.75rem); }
}
.home-hero__actions { display: flex; gap: var(--dbj-space-3); flex-wrap: wrap; justify-content: center; }
.home-hero__cta {
    /* Pin #57 (Sitzung 23.10.): grösser, halb so gross wie der Titel (36 px
       bei 1920), schlanker Rand wie die anderen Pillen-Knöpfe */
    padding: 0.28em 1.25em;
    line-height: 1.15;
    font-size: clamp(1.5rem, 1.9vw, 2.25rem);
}
@media (max-width: 767px) {
    .home-hero__cta { font-size: 1.75rem; padding: 0.4rem 1.9rem; }   /* XD phone: big type, slim pill (pin 95) */
}

/* Bestseller: quick-order pills left + accordion right (XD) */
.home-bestseller-section { padding-bottom: var(--dbj-space-2); }   /* tighter gap to the cards section (pin 94) */
/* Runde 2 (Nick 5.11., XD 25.10. Desktop 01): mehr Luft um den Bestseller-Block.
   Titel 74 px unter dem Hero (vorher 54), erste Kachel 190 px unter dem
   Akkordeon (vorher 78). Ersetzt Pin 94 auf Desktop. */
@media (min-width: 1200px) { .home-bestseller-section { padding-top: 58px; padding-bottom: 120px; } }
.home-bestseller { display: grid; gap: var(--dbj-space-5); }
@media (min-width: 1200px) { .home-bestseller { grid-template-columns: 1fr 1fr; gap: var(--dbj-space-7); } }

.home-order { display: grid; gap: var(--dbj-space-3); align-content: start; max-width: 42rem; }
.home-order__pill {
    display: flex;
    align-items: baseline;
    gap: var(--dbj-space-2);
    border-radius: var(--dbj-radius-field);   /* Pin #165 (Nick nach Eva 9.11.): keine Pille, Ecken wie die Auswahlfelder im Konfigurator */
    padding: 0.25rem 1.3rem;   /* XD: slim pill despite bigger text */
    font-size: var(--dbj-fs-body);   /* pin 60: widget a notch bigger than body text */
    font-weight: 500;   /* Lettera Medium wie XD 260904 (Abgleich 06.10.2026) */
    width: 100%;
}
.home-order__pill { border: 1px solid var(--dbj-text-2); color: var(--dbj-text); background: var(--dbj-white); cursor: pointer; text-align: left; font-family: inherit; transition: background 0.15s ease, color 0.15s ease; }
.home-order__pill.is-selected { background: var(--dbj-teal); color: var(--dbj-white); border-color: var(--dbj-teal); }
.home-order__pill small { font-weight: 400; opacity: 0.85; }
@media (max-width: 767px) {
    /* pin 84: compact two-line pill - title, then one meta line
       (price · days · digital only, joined by the cart wiring) */
    .home-order__pill { display: block; text-align: left; padding-block: 0.3rem; }
    .home-order__pill-title { display: block; font-size: var(--dbj-fs-small); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* pin 88 */
    .home-order__pill-meta { display: block; font-size: var(--dbj-fs-micro, 0.75rem); }
}
.home-order__row { display: flex; align-items: center; gap: var(--dbj-space-4); flex-wrap: wrap; }
.home-order__qty { display: flex; align-items: center; gap: var(--dbj-space-2); font-size: var(--dbj-fs-body); }
.home-order__qty [data-qty-value] { display: inline-block; min-width: 2.2ch; text-align: center; font-weight: 500; }   /* Pin #64: Zahl Medium */
.home-order__label { display: block; font-size: var(--dbj-fs-body); font-weight: 700; margin-bottom: var(--dbj-space-1); }
/* Pin #66 (Sitzung 23.10.) / XD 260904: alles Medium 16/20 px, eine
   Leerzeile unter "Added to your cart!", Links ohne Unterstrich mit Pfeil,
   Abstände wie im XD ("View cart  →    or    continue shopping  →") */
.home-order__feedback { text-align: center; font-size: 16px; line-height: 20px; font-weight: 500; width: 100%; color: var(--dbj-text); }
.home-order__feedback strong { display: block; font-weight: 500; margin-bottom: 20px; }
.home-order__feedback a { color: inherit; text-decoration: none; font-weight: 500; }
.home-order__feedback a:hover, .home-order__feedback a:focus-visible { text-decoration: none; }
.home-order__arrow { margin-left: 0.4em; }
.home-order__or { margin-inline: 0.55em; }
.home-order .dbj-btn--outline { width: 100%; text-align: center; }
.home-order .dbj-btn:not(.dbj-btn--sm) { padding-block: 0.4rem; }
.home-order__qty button {
    width: 2.4rem;
    height: 1.5rem;
    border-radius: 0;   /* XD 25.10.: + und - ohne Rahmen (Review-Board Thema 5) */
    border: 0;
    background: none;
    cursor: pointer;
    line-height: 1;
    display: inline-grid;
    place-items: center;
}
.home-order__note { font-size: var(--dbj-fs-small); color: var(--dbj-text-2); }

/* Service cards - XD: square images, BOLD body text, no bullets;
   desktop: text block indented right of the image edge; mobile: full-bleed images */
.home-cards { margin-top: var(--dbj-space-4); }
.home-cards + .home-cards { margin-top: var(--dbj-space-6); }
@media (max-width: 767px) {
    .home-cards + .home-cards { margin-top: var(--dbj-space-4); }   /* same rhythm as stacked cards */
}
.home-cards .dbj-card img { aspect-ratio: 1 / 1; }
.home-cards .dbj-card__body p,
.home-cards .dbj-card__body ul { font-weight: 500;   /* Lettera Medium wie XD 260904 (Abgleich 06.10.2026) */ color: var(--dbj-text); font-size: var(--dbj-fs-emph); line-height: 1.15; }   /* XD leading; 1.15 per pin 102 */
/* Runde 2 (Nick 5.11.: Titel Bold, Text Medium wie im XD): Schnitt stimmte
   schon, aber das XD setzt Titel, Text und Link in #343434 statt #1C1C1C -
   darum wirkte der Text bei uns fetter. */
.home-cards .dbj-card__body,
.home-cards .dbj-card__body h3,
.home-cards .dbj-card__body p,
.home-cards .dbj-card__body ul,
.home-cards .dbj-card__body .dbj-link { color: var(--dbj-text-2); }
.home-cards .dbj-card__body p { margin-bottom: var(--dbj-space-3); }   /* blank line before the list (pins 104/105) */
.home-cards .dbj-card__body .dbj-link { font-size: var(--dbj-fs-emph); font-weight: 500; }   /* XD: 17px (pin 91); Medium wie XD 260904 */   /* XD: 17px (pin 91) */
@media (max-width: 767px) {
    /* full-bleed images on phone (XD) - padding-based breakout (100vw would
       overflow by the scrollbar width in narrow desktop windows) */
    .home-cards .dbj-card img {
        width: calc(100% + 2 * var(--dbj-space-3));
        margin-inline: calc(-1 * var(--dbj-space-3));
        max-width: none;
    }
}
@media (min-width: 768px) {
    .home-cards .dbj-card__body { padding-left: 34%; padding-right: var(--dbj-space-4); }   /* Pin #71: rechts so viel Luft wie zwischen den Bildern (24 px) */
}
/* Board Thema 20 (Pins 10, 12): der Text stand zu weit rechts und zu
   schmal. XD 25.10. Desktop 01: Textblock 325 px breit (Bild 498 px), 35 px
   unter dem Bild, Titel Bold 20, danach je eine Leerzeile (18 px) vor Text,
   Liste und Link. Der Block endet 24 px vor der Bildkante (Pin #71) und
   rueckt nur so weit ein, wie die Breite es zulaesst - auf schmalen
   Bildschirmen weniger, nie mehr als 34 %. */
@media (min-width: 768px) {
    .home-cards .dbj-card__body {
        padding-top: 2.1875rem;
        padding-left: clamp(0px, 100% - 325px - var(--dbj-space-4), 34%);
        gap: 1.125rem;
    }
    .home-cards .dbj-card__body p { margin-bottom: 0; }
}
/* Nick 25.11.2026: der Link («Zum Shop ->» usw.) steht bei allen Karten einer
   Reihe auf gleicher Höhe, auch wenn Text und Punkte verschieden lang sind.
   Die Karte füllt die Reihe, der Textblock die Karte, und der freie Platz
   kommt vor den Link. Handy (eine Spalte) unverändert. */
@media (min-width: 768px) {
    .home-cards .dbj-card__body { flex: 1 1 auto; display: flex; flex-direction: column; }
    .home-cards .dbj-card__body > :has(+ .dbj-link, + .home-card-links) { margin-bottom: auto; }
}
/* Nick 25.11.2026 (e14-1, «3 und 3»): zweite Reihe wie die erste, drei Karten */
.home-grid--3 { display: grid; gap: var(--dbj-space-4); }
@media (min-width: 768px) { .home-grid--3 { grid-template-columns: repeat(3, 1fr); } }
/* Karte mit zwei Links: beide untereinander, zusammen unten in der Karte */
.home-card-links { display: grid; justify-items: start; }

/* About / team - XD: wide centered image, BOLD copy below offset to the right, no title */
.home-about { display: grid; gap: var(--dbj-space-4); }
.home-about img { width: 100%; object-fit: cover; }
@media (max-width: 767px) {
    /* XD phone: storefront photo edge to edge, SQUARE (pin 106) */
    .home-about img {
        width: calc(100% + 2 * var(--dbj-space-3));
        margin-inline: calc(-1 * var(--dbj-space-3));
        max-width: none;
        aspect-ratio: 1 / 1;
    }
}
@media (min-width: 768px) {
    /* Bild + Text nebeneinander, als Block zentriert; der Text sitzt an der
       rechten Bildkante, startet aber mit eigenem Abstand (Nick 2026-07-15) */
    .home-about { grid-template-columns: minmax(0, 46%) minmax(0, 38%); justify-content: center; align-items: center; gap: 0; }
    .home-about img { width: 100%; margin: 0; }
    .home-about__copy { margin-left: 0; padding-left: var(--dbj-space-5); }
}
.home-about__copy { display: grid; gap: var(--dbj-space-3); }
.home-about__copy p { font-size: var(--dbj-fs-emph); font-weight: 500;   /* Lettera Medium wie XD 260904 (Abgleich 06.10.2026) */ color: var(--dbj-text); line-height: 1.15; }   /* XD: 17px, tight leading (pins 87/90/102) */
/* Runde 2 (XD 25.10. Desktop 01): Text vor dem Newsletter-Bild Medium 17 in
   #343434, Zeile 19 px. */
.home-about__copy p, .home-about__copy .dbj-link { color: var(--dbj-text-2); }
@media (min-width: 1200px) { .home-about__copy p { line-height: 19px; } }

/* Full-bleed film photo band (XD desktop only - the phone artboard has no band) */

/* Über-uns photo above the text, full container width, capped (pin 142) */
.about-photo { margin-block: var(--dbj-space-2) var(--dbj-space-4); width: 100%; max-height: 26rem; object-fit: cover; display: block; }

/* XD 260904 Desktop 01: der "Alle Services & Preise ansehen"-CTA ist auf
   Desktop ein grosser Kreis zwischen Bestseller und Akkordeon */
@media (min-width: 1200px) {
    .home-bestseller { grid-template-columns: minmax(0, 5fr) minmax(0, 3.5fr) minmax(0, 6fr); align-items: stretch;   /* Pin 9 Runde 3: gleich hohe Spalten */ }
    /* Pin #69: home-faq.js hält den Kreis an dieser Stelle fest, wenn eine
       FAQ-Frage aufgeht (sonst wandert er mit der wachsenden Spalte) */
    .home-allcta { align-self: center; justify-self: center; }
    /* Pin #65: Kreis bleibt 240 px wie vorher (Nick 23.10.: nur der Text
       neu, nicht der Kreis kleiner); Text 40 px in drei Zeilen, Zeilenhöhe 1 */
    .home-allcta .dbj-btn {
        width: 15rem; height: 15rem; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        text-align: center; white-space: normal; padding: 0;
        font-size: 2.5rem; line-height: 1;
    }
    .home-allcta__long { display: none; }
    .home-allcta__circle { display: flex; flex-direction: column; align-items: center; }
}
/* Handy und Tablet: eine normale Pille über die ganze Breite mit dem ganzen Satz */
@media (max-width: 1199px) {
    .home-allcta__circle { display: none; }
    .home-allcta .dbj-btn { display: block; width: 100%; text-align: center; }
}

/* DEV-614 Pin 7 + 9 (XD 260904 Desktop 01): "Bestseller" ist im XD klar
   groesser als die Akkordeon-Titel (≈34 gegen 25px @1920), steht mit Luft
   ueber den Pillen und beginnt auf der Textkante der Pillen, nicht auf
   deren Rand. Das Akkordeon selbst bleibt (Pin 93), nur der Titel waechst. */
.home-bestseller .dbj-section__title {
    font-size: var(--dbj-fs-h2);
    margin-bottom: var(--dbj-space-4);
    padding-left: 0.5rem;
}

/* Pins #61/#62 (Sitzung 23.10.) + XD 260904 Bestseller: zwei Zeilen gleich
   gross - oben das Produkt (Medium), darunter Preis, Dauer, "digital only"
   (Regular; der Preis Medium wie im XD, Pin #68). Desktop 17/18 px, Pille 50 px hoch; Handy 13/16 px, 40 px.
   Abstände wie im XD: nach dem Preis ~1.4em, danach ~0.8em. */
.home-order__pill { display: block; font-size: 17px; line-height: 18px; padding: 6px 16px; min-height: var(--dbj-choice-h); }
.home-order__pill .home-order__pill-title { display: block; font-weight: 500; }
.home-order__pill .home-order__pill-meta { display: block; font-size: inherit; font-weight: 400; opacity: 1; }
.home-order__pill-meta > .home-order__price { font-weight: 500; }   /* Pin #68 / XD: Preis Medium, Dauer und "digital only" Regular */
.home-order__pill-meta > span + span { margin-left: 0.6em; }
.home-order__pill-meta > .home-order__price + span { margin-left: 1.2em; }
/* Nick 23.10.: auf Desktop bleiben beide Zeilen je eine Zeile. Die Box
   wird zwischen 1200 und ~1400 px schmal; dann wird die Schrift kleiner
   statt umzubrechen. Längster Titel (EN "Colour C-41 ...") ist bei 17 px
   355 px breit -> höchstens 4.65 % der Innenbreite, maximal 17 px. */
@media (min-width: 768px) {
    .home-order__pill { container-type: inline-size; }
    .home-order__pill .home-order__pill-title,
    .home-order__pill .home-order__pill-meta { font-size: min(17px, 4.65cqi); white-space: nowrap; }
}
@media (max-width: 767px) {
    .home-order__pill { font-size: 13px; line-height: 16px; padding: 3px 16px; }
    .home-order__pill .home-order__pill-title { font-size: inherit; line-height: inherit; }
    .home-order__pill .home-order__pill-meta { font-size: inherit; }
}

/* Pin 9 Runde 3 (Nick: "height wise the FAQ doesn't fit left one"): auf
   Desktop sind Bestseller, Kreis und Akkordeon gleich hoch. Das Raster
   streckt alle drei Spalten; das Akkordeon ist knapper gesetzt als der
   Bestseller-Block (XD 260904 Desktop 01: Oberkante = Titel, Unterkante =
   Kreis) und verteilt die Restluft gleichmässig auf seine Zeilen - die
   Titel stehen mittig in ihrer Zeile, die Linien wandern mit, nichts wird
   gedehnt. Geht ein Eintrag auf, wächst die Zeile wie bisher. Handy:
   gestapelt wie vorher (nur >=1200px). */
@media (min-width: 1200px) {
    .home-bestseller > :last-child { display: flex; flex-direction: column; }
    .home-bestseller .dbj-accordion { flex: 1 1 auto; display: flex; flex-direction: column; }
    .home-bestseller .dbj-accordion details {
        flex: 1 1 auto;
        display: flex; flex-direction: column; justify-content: center;
    }
    .home-bestseller .dbj-accordion summary { padding-block: 0.1rem; }
}
/* Board Thema 20 (Pin 9): Akkordeon und Bestseller-Block einheitlich wie im
   XD 25.10. Desktop 01. Die Spalten folgen den XD-Massen (Bestseller 436,
   Raum um den Kreis 429, Akkordeon 671 px von 1536): das Akkordeon beginnt
   bei etwa 56 % statt 65 % und ist so breit wie im XD. Jede Zeile ist
   mindestens 50 px hoch wie im XD (sechs Zeilen = 300 px, Oberkante auf
   der Titelzeile "Bestseller"). Der Kreis selbst bleibt, wie er ist (Pin 8). */
@media (min-width: 1200px) {
    .home-bestseller { grid-template-columns: minmax(0, 436fr) minmax(0, 429fr) minmax(0, 671fr); gap: 0; }
    .home-bestseller .dbj-accordion details { min-height: 3.125rem; }
}

/* ── Abgleich 4.11. (XD 25.10. Desktop/Mobile 01) ─────────────────────── */
/* Handy-Hero: Titel Bold 33 / 35, Knopf "let's go" wie der XD-Knopf
   (Bold 16, schmale Pille), Abstand wie im XD */
@media (max-width: 767px) {
    .home-hero__content h1.home-hero__title { font-size: 2.0625rem; line-height: 2.1875rem; }
    .home-hero__cta { font-size: 1rem; font-weight: 700; line-height: 1.25rem; padding: 0.45rem 0.95rem; }
    .home-hero__content { gap: 1.375rem; }
    .home-bestseller .dbj-section__title { font-size: 1.5625rem; }   /* XD: Bold 25 */
}
/* Desktop-Hero so hoch wie im XD (920 bei 1920), wächst mit der Breite */
@media (min-width: 1200px) {
    .home-hero { min-height: 0; aspect-ratio: auto; height: min(47.9vw, var(--dbj-hero-max-home)); }
    .home-bestseller .dbj-section__title { font-size: 2.1875rem; }   /* XD: Bold 35 */
}
/* GoLive-Punkt 21: über 1920 Breite wächst der Kasten nicht mehr in die
   Höhe (höchstens 920 px wie bei 1920, höchstens 70vh). Nick 26.11.
   (Runde 9): «Volle Breite» - das Foto geht bis zum Rand, kein Seitengrund
   links und rechts. Titel und Knopf bleiben in der Mitte. Bis 1920 ändert
   sich nichts. sizes dazu in app/services/home_hero.py (100vw). */
@media (min-width: 1921px) {
    .home-hero { height: min(920px, var(--dbj-hero-max-home)); }
}
/* Linker Inhaltsrand bei x 192 (XD), nur die Inhaltsblöcke der Startseite */
@media (min-width: 1200px) {
    .home-bestseller-section > .dbj-container,
    #services > .dbj-container,
    .home-about-section > .dbj-container { max-width: calc(var(--dbj-container) + 2 * var(--dbj-space-4)); }
}
/* Kreis grösser wie im XD (ca. 290 px), Text und Zeilen bleiben (Pin #65) */
@media (min-width: 1200px) {
    .home-allcta .dbj-btn { width: 18.125rem; height: 18.125rem; }
}
/* "Menge:" Bold 13. "In den Warenkorb" ist Slim (.dbj-btn--sm, 37 px) wie
   auf der Produktseite (Nick 24.11.: zwei Knopfgrössen). */
.home-order__label { font-size: 0.8125rem; }
/* Karten: Zeile 18 wie im XD (Titel Bold 20, Text Medium 17) */
.home-cards .dbj-card__body h3,
.home-cards .dbj-card__body p,
.home-cards .dbj-card__body ul { line-height: 1.125rem; }
/* Filmverkauf: die Kodak-Schachtel gross wie im XD (ca. 70 % der Breite) */
.home-card-media { overflow: hidden; aspect-ratio: 1 / 1; }
.home-cards .dbj-card .home-card-media img { width: 100%; height: 100%; margin: 0; object-fit: cover; transform: scale(1.75); }
@media (max-width: 767px) {
    .home-card-media { width: calc(100% + 2 * var(--dbj-space-3)); margin-inline: calc(-1 * var(--dbj-space-3)); }
}
/* Über-uns-Block: grosses Ladenfoto mittig, schmale Textspalte darunter
   (XD: Foto 1190 x 790, Text ab 44 % der Fotobreite, 660 breit). Handy
   gleich aufgebaut, Foto randlos. */
.home-about { grid-template-columns: minmax(0, 1fr); }
.home-about img { aspect-ratio: 1190 / 790; }
.home-about__copy p { line-height: 1.125rem; }
@media (max-width: 767px) {
    .home-about img { aspect-ratio: 375 / 470; object-position: 45% 50%; }   /* XD Mobile 01: Ladenfoto hoch, randlos */
}
@media (min-width: 768px) {
    .home-about { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--dbj-space-5); }
    .home-about img { width: min(100%, 74.375rem); }
    .home-about__copy { width: min(100%, 74.375rem); padding-left: min(32.5rem, 43.7%); }   /* % misst am Container, nicht am Foto */
}
