/* Mobil-Optimierung traumgarten.de (Quick-Wins Paket 1, crawl/clean_hooks/mobil.py).
   Ergänzt style.min.css. Am Desktop (ab 1080 Pixel) ändert sich nichts; Handy bis 749, Tablet bis 1079 Pixel. */

/* Footer: eigenes Stylesheet footer.css (crawl/clean_hooks/footer.py) */

/* Brotkrumen (Handy und Tablet): immer sichtbar und kompakt statt eingeklapptem Kasten */
@media (max-width: 1079px) {
  #breadcrumb { border: 0; background: transparent; margin: 0 0 8px; }
  #breadcrumb > span { display: none; }
  #breadcrumb ul { max-height: none !important; overflow: visible !important; padding: 0 !important; margin: 0;
                   display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; font-size: 16px; line-height: 1.3; }
  #breadcrumb ul li:nth-child(n) { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; list-style: none !important; }
  #breadcrumb ul li:first-child:before { content: none; }
  #breadcrumb ul li a { display: inline-block; padding: 12px 0; }
  #breadcrumb ul li.current { color: #6b6b6a; }
}

/* Nicht breiter als der Bildschirm (Handy und Tablet): Innenabstand passend zu den -15px der Raster-Zeilen (grid--big) */
@media (max-width: 1079px) {
  .container { padding-left: 15px; padding-right: 15px; }
  .container .container { padding-left: 0; padding-right: 0; }
}

@media (max-width: 749px) {

  /* Tippflächen mindestens 44 Pixel */
  .language-navigation__content ul li { padding: 0; }
  .language-navigation__content ul li a { display: block; width: 100%; padding: 12px 0; }
  .button, a.button { min-height: 44px; display: inline-flex; align-items: center; }

  /* Produktbild in voller Breite statt halber */
  .tg-produktbild { width: 100%; }
  .tg-produktbild img.imageToZoom { width: 100%; height: auto; }
}

/* keine dunkle Linie am oberen Rand mehr (vorher border-top 5px #4b4b4a am body, alle Breiten) */
body { border-top: 0; }

/* Kopfzeile Desktop: Menü-Knopf (Icon und "Menü"), Logo, Suche, Sprache und Merkzettel auf der Mittellinie der 72px hohen
   Leiste (vorher Icon und Text versetzt, die Felder 14px von oben, die Leiste des Menü-Knopfs 80px mit 30px Innenabstand) */
@media (min-width: 1080px) {
  #responsive-navigation { max-height: 72px; }
  #responsive-navigation#responsive-navigation .toggle-bar { height: 72px; padding-top: 0; padding-bottom: 0; }
  #responsive-navigation#responsive-navigation .toggle-bar .toggle { display: flex; align-items: center; height: 72px; padding-top: 0; }
  #responsive-navigation#responsive-navigation .toggle-bar .toggle:before { line-height: 1; }
  #headerbadge #logo img { display: block; }
  #headerbadge #headSearchForm { top: 17.5px; }
  #headerbadge .language-navigation { top: 14px; }
  #headerbadge #headNotepad { top: 0; height: 72px; padding: 0; display: flex; align-items: center; }
  /* Hauptmenü mit acht Punkten (crawl/clean_hooks/navigation.py): Breite nach Textlänge statt fest 14 %, sonst passte
     "Sichtschutzzäune" zwischen 1080 und 1279 px nicht in sein Feld; "Tore" ist kurz und gibt Platz ab */
  /* "Menü"-Knopf nur, wo das Hauptmenü nicht passt (unter 1080px): auf dem Desktop doppelt; Logo dann bündig mit dem
     ersten Farbbalken (vorher 100 bzw. 150px Abstand für den Knopf) */
  #responsive-navigation { display: none; }
  #headerbadge #logo { margin-left: 1px; }
  #lvl-0 { display: flex; column-gap: 4px; }   /* Abstand zwischen den Farbbalken wie vorher (Leerzeichen zwischen inline-blocks, 4,3px) */
  #lvl-0#lvl-0 > li { flex: 1 1 auto; width: auto; }
}

/* Hauptmenü am Desktop bleibt beim Scrollen oben (Feedback 11.11.): Kopfzeile sticky mit top -72px, so scrollen Logo,
   Suche, Sprache und Merkzettel (#topbadge, 72px hoch) weg, die Leiste mit den acht Punkten klebt am oberen Rand (8px
   Luft darüber). Leichter Schatten, sobald sie klebt: Klasse tg-kopf-fest aus /_static/animation.js. */
@media (min-width: 1080px) {
  #header { position: sticky; top: -72px; z-index: 5000; background: #fff; transition: box-shadow .2s ease-out; }
  #header.tg-kopf-fest { box-shadow: 0 4px 12px rgba(0, 0, 0, .1); }
}
/* Sprungziele (Anker wie #tg-tore, FAQ, Reiter) landen nicht unter der klebenden Leiste: Handy und Tablet 61px Kopfzeile,
   Desktop 49px Menüleiste. Die Akkordeons in Main.static.min.js lesen denselben Wert (crawl/clean_hooks/fixes.py). */
html { scroll-padding-top: 72px; }
@media (min-width: 1080px) { html { scroll-padding-top: 64px; } }

/* Sprachwahl im Kopf (Tablet und Desktop): Globus und Kürzel rechts außen, ohne Kasten (Kürzel: crawl/clean_hooks/navigation.py);
   die Liste darunter rechtsbündig, volle Namen groß geschrieben. Merkzettel rückt links daneben. */
@media (min-width: 750px) {
  #headerbadge .language-navigation { right: 10px; left: auto; width: auto; }
  #headerbadge .language-navigation__title { position: relative; display: flex; align-items: center; height: 44px; padding: 0 26px 0 8px;
    border: 0; border-radius: 4px; box-sizing: border-box; }
  #headerbadge .language-navigation__title:hover { background: #f2f2f2; }
  #headerbadge .language-navigation__title p { display: flex; align-items: center; gap: 8px; padding: 0; line-height: 1; font-weight: 700; color: #4b4b4a; }
  #headerbadge .language-navigation__title p .fa { font-size: 24px; font-weight: 400; }
  #headerbadge .language-navigation__title:after { line-height: 44px; right: 6px; }
  #headerbadge .language-navigation__content { position: absolute; right: 0; top: 48px; min-width: 170px; z-index: 6000; }
  #headerbadge .language-navigation__content ul li a { display: block; text-transform: capitalize; }
  #headerbadge #headNotepad { right: 112px; }
}

/* schmaler Desktop: Suche zwischen Logo und Sprachwahl (vorher left 360px, überlappte bei 1080px die Sprachwahl um 15px) */
@media (min-width: 1080px) and (max-width: 1279px) { #headerbadge #headSearchForm { left: 280px; } }

/* Kopfzeile Handy und Tablet: bleibt beim Scrollen oben; der Menü-Knopf ist fest (vorher absolut, scrollte weg, und das
   Menü öffnete sich oben im Dokument außerhalb des Bildschirms) */
@media (max-width: 1079px) {
  #header { position: sticky; top: 0; z-index: 5000; background: #fff; border-bottom: 1px solid #e6e6e6; }
  #headerbadge { align-items: center; height: 60px; box-sizing: border-box; }
  #headerbadge #logo { margin-left: 64px; flex: 0 1 auto; min-width: 0; }
  #headerbadge #logo img { display: block; height: 40px; width: auto; max-width: 100%; }
  #responsive-navigation { position: fixed; }
  #responsive-navigation.open { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  /* alles auf einer Mittellinie (30px von oben): #topbadge ohne feste 80px (20px Leerraum unter dem Logo),
     Menü-Knopf geschlossen 60px hoch mit mittig gesetztem Icon (vorher padding-top und line-height 20px, saß tiefer) */
  #topbadge { height: auto; }
  #responsive-navigation:not(.open) .toggle-bar { height: 60px; padding: 0; }
  #responsive-navigation:not(.open) .toggle-bar .toggle { display: flex; align-items: center; height: 60px; padding-top: 0; }
  #responsive-navigation:not(.open) .toggle-bar .toggle:before { line-height: 1; }
  /* offenes Menü: Icon und "Menü" mittig in der 55px-Leiste, wie die Lupe rechts */
  #responsive-navigation.open .toggle-bar { padding-top: 0; }
  #responsive-navigation.open .toggle-bar .toggle { display: flex; align-items: center; height: 55px; }
  #responsive-navigation.open .toggle-bar .toggle:before { line-height: 1; }
  /* Tablet: Sprachwahl (44px hoch) und Merkzettel auf dieselbe Mittellinie (vorher top 14px und 8px plus 13px Innenabstand) */
  #headerbadge .language-navigation { top: 8px; }
  #headerbadge #headNotepad { top: 0; height: 60px; padding: 0; display: flex; align-items: center; }
}
@media (max-width: 749px) { #headerbadge #headNotepad { display: none; } }
/* Handy: Suche und Button "Händler" rechts in der Kopfzeile (crawl/clean_hooks/mobil.py) */
.tg-kopf-aktionen { display: none; }
@media (max-width: 749px) {
  #headerbadge { padding-right: 10px; }
  .tg-kopf-aktionen { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: 0 0 auto; }
  .tg-kopf-aktionen a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px;
    color: #4b4b4a; text-decoration: none; border-radius: 4px; font-size: 17px; box-sizing: border-box; }
  .tg-kopf-aktionen .fa { font-size: 22px; line-height: 1; }
  .tg-kopf-aktionen a.tg-kopf-haendler { background: #004e2d; color: #fff; padding: 0 12px; font-weight: 700; }
  .tg-kopf-aktionen a:focus-visible { outline: 3px solid #ee7f00; outline-offset: 2px; }
}
@media (max-width: 359px) { .tg-kopf-aktionen a.tg-kopf-haendler span { display: none; } }
/* Handy (Wunsch 13.11.): Logo links bündig und etwas größer (46 statt 40px), rechts Händler, Suche und ganz außen der
   Menü-Knopf; das Menü öffnet sich von rechts. #responsive-navigation ist fest positioniert und nicht Teil des Kopf-Flex,
   daher hält #headerbadge rechts 58px frei. */
@media (max-width: 749px) {
  #headerbadge { padding-right: 58px; }
  #headerbadge #logo { margin-left: 0; }
  #headerbadge #logo img { height: 46px; }
  .tg-kopf-aktionen a.tg-kopf-haendler { order: -1; margin-right: 2px; }   /* von rechts: Menü, Suche, Händler */
  #responsive-navigation { left: auto; right: 0; }
}

/* Aufklappmenü (Handy und Tablet, 13.11.): Kopfleiste weiß mit "Menü" links und rundem Schließen-Kreuz rechts, darunter
   ein festes Suchfeld (statt Lupe zum Aufklappen), Hauptpunkte groß mit Farbmarke wie die Balken am Desktop und Pfeil
   zum Aufklappen, Unterpunkte eingerückt auf hellem Grund, darunter "Händler finden" als grüner Button und die übrigen
   Service-Links als ruhige Liste, ganz unten die Sprachwahl DE EN FR NL. HTML: crawl/clean_hooks/mobil.py (_menue).
   Öffnen ohne die alte Verzögerung von 0,2 s; der Inhalt hat schon die Endbreite und gleitet mit der Kante herein. */
@media (max-width: 1079px) {
  #responsive-navigation.open, #responsive-navigation.open:hover { width: min(88vw, 400px); background: #fff;
    box-shadow: 0 0 48px rgba(0, 0, 0, .35); transition: width .38s cubic-bezier(.16, 1, .3, 1), max-height 0s, background-color 0s; }
  #responsive-navigation:not(.open) { transition: width .25s ease-in, max-height 0s .25s, background-color 0s .25s; }
  #responsive-navigation .toggle-bar .responsive-search { display: none !important; }
  #responsive-navigation.open .toggle-bar { height: 60px; padding: 0; background: #fff; border-bottom: 1px solid #e6e6e6; }
  #responsive-navigation.open .toggle-bar .toggle { float: none; display: flex; flex-direction: row-reverse; justify-content: space-between;
    align-items: center; gap: 12px; width: min(88vw, 400px); max-width: none; height: 60px; padding: 0 10px 0 20px; box-sizing: border-box;
    font-size: 24px; font-weight: 700; color: #2b2b2a; }
  #responsive-navigation.open .toggle-bar .toggle:before { content: "\f00d"; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 50%; background: #f0f0ef; font-size: 22px; color: #2b2b2a; }
  #responsive-navigation.open #responsive-navigation-menu-service { display: flex; flex-direction: column; width: min(88vw, 400px);
    height: calc(100% - 60px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  #responsive-navigation-menu-service > * { flex-shrink: 0; }
  #responsive-navigation #responsive-navigation-mobile-menu { height: auto; }

  /* Suchfeld (Schrift 18px: iOS zoomt bei unter 16px beim Antippen) */
  #responsive-navigation form.tg-menue-suche { display: flex; margin: 16px 20px 8px; border: 1px solid #d6d6d4; border-radius: 8px;
    background: #f7f7f6; overflow: hidden; }
  #responsive-navigation form.tg-menue-suche:focus-within { border-color: #004e2d; background: #fff; box-shadow: 0 0 0 3px rgba(0, 78, 45, .15); }
  #responsive-navigation form.tg-menue-suche input { flex: 1 1 auto; min-width: 0; height: 48px; margin: 0; padding: 0 14px; border: 0;
    background: transparent; font-size: 18px; color: #2b2b2a; outline: 0; box-shadow: none; -webkit-appearance: none; appearance: none; }
  #responsive-navigation form.tg-menue-suche button { flex: 0 0 52px; height: 48px; margin: 0; padding: 0; border: 0; background: transparent;
    color: #004e2d; font-size: 22px; cursor: pointer; }

  /* Hauptpunkte: Zeile 54px, Farbmarke links, Pfeil rechts (dreht sich beim Aufklappen) */
  #responsive-navigation .responsive-navigation-menu { padding: 6px 0 14px; margin: 0; overflow: visible; }
  #responsive-navigation .responsive-navigation-menu > li { border-bottom: 1px solid #ececeb; }
  #responsive-navigation .responsive-navigation-menu li { --tg-ci: #c9c9c7; }
  #responsive-navigation .responsive-navigation-menu > li.ci-green-l { --tg-ci: #a2cf44; }
  #responsive-navigation .responsive-navigation-menu > li.ci-orange { --tg-ci: #ee7f00; }
  #responsive-navigation .responsive-navigation-menu > li.ci-green-d { --tg-ci: #004e2d; }
  #responsive-navigation .responsive-navigation-menu > li.ci-cyan { --tg-ci: #31afe1; }
  #responsive-navigation .responsive-navigation-menu > li.ci-red { --tg-ci: #e85236; }
  #responsive-navigation .responsive-navigation-menu > li.ci-yellow { --tg-ci: #fc0; }
  #responsive-navigation .responsive-navigation-menu > li.ci-grey { --tg-ci: #4b4b4a; }
  #responsive-navigation.open .responsive-navigation-menu li a { float: none; display: block; width: auto; margin: 0; text-decoration: none; }
  #responsive-navigation.open .responsive-navigation-menu li.hassub > a { margin-right: 52px; }
  #responsive-navigation.open .responsive-navigation-menu li a:hover { background: #f4f6f4; }
  #responsive-navigation.open .responsive-navigation-menu > li > a { position: relative; padding: 15px 12px 15px 26px; font-size: 21px;
    line-height: 24px; font-weight: 700; color: #2b2b2a; }
  #responsive-navigation.open .responsive-navigation-menu > li > a:before { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px;
    width: 5px; border-radius: 0 3px 3px 0; background: var(--tg-ci); }
  #responsive-navigation.open .responsive-navigation-menu li:is(.navigation-item--current, .navigation-item--active) > a { color: #004e2d; }
  #responsive-navigation.open .responsive-navigation-menu li.hassub .toggle-sub { display: flex; align-items: center; justify-content: center;
    float: none; width: 52px; height: 54px; padding: 0; color: #4b4b4a; font-size: 20px; }
  #responsive-navigation .responsive-navigation-menu li.hassub .toggle-sub:after { content: "\f078"; font-family: "tg-lucide"; transition: rotate .25s ease-out; }
  #responsive-navigation .responsive-navigation-menu li.hassub .toggle-sub.toggle-active:after { content: "\f078"; rotate: 180deg; }
  #responsive-navigation .responsive-navigation-menu li.hassub .toggle-sub.toggle-active { color: #004e2d; }
  #responsive-navigation .responsive-navigation-menu > li.hassub ul.open { max-height: 2400px; }
  /* Unterpunkte */
  #responsive-navigation .responsive-navigation-menu .lvl-1 { background: #f7f7f6; }
  #responsive-navigation.open .responsive-navigation-menu > li .lvl-1 > li > a { padding: 12px 12px 12px 40px; font-size: 18px; line-height: 22px;
    font-weight: 400; color: #333; }
  #responsive-navigation.open .responsive-navigation-menu .lvl-1 > li.hassub .toggle-sub { height: 46px; }
  #responsive-navigation .responsive-navigation-menu .lvl-1 > li + li { border-top: 1px solid #ebebea; }
  #responsive-navigation.open .responsive-navigation-menu > li .lvl-2 > li > a { padding: 10px 12px 10px 56px; font-size: 17px; line-height: 21px; color: #555; }
  #responsive-navigation .responsive-navigation-menu .clearBoth { display: none; }

  /* Service: "Händler finden" als grüner Button zuerst, die übrigen als Liste mit grünen Icons */
  #responsive-navigation #responsive-service { display: flex; flex-direction: column; height: auto; padding: 14px 0 10px; background: #fff;
    border-top: 8px solid #f3f3f2; }
  #responsive-navigation #responsive-service .serviceButton { display: flex; align-items: center; gap: 14px; height: auto; min-height: 50px;
    padding: 0 20px; border-bottom: 0; background: none; text-decoration: none; }
  #responsive-navigation #responsive-service .serviceButton:hover { background: #f4f6f4; }
  #responsive-navigation #responsive-service .serviceButton:before { float: none; width: 24px; padding: 0; font-size: 22px; line-height: 1;
    text-align: center; color: #004e2d; }
  #responsive-navigation #responsive-service .serviceButton h4 { position: static; margin: 0; font-size: 19px; line-height: 1.2; font-weight: 400;
    color: #2b2b2a; }
  #responsive-navigation #responsive-service a.serviceButton.tg-ico--haendler { order: -1; justify-content: center; min-height: 54px;
    margin: 0 20px 10px; border-radius: 6px; background: #004e2d; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
  #responsive-navigation #responsive-service a.serviceButton.tg-ico--haendler:hover { background: #00693c; }
  #responsive-navigation #responsive-service a.serviceButton.tg-ico--haendler:before,
  #responsive-navigation #responsive-service a.serviceButton.tg-ico--haendler h4 { color: #fff; font-weight: 700; }

  /* Sprachwahl unten: Pillen DE EN FR NL, aktuelle grün */
  #responsive-navigation .tg-menue-sprachen { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto;
    padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #ececeb; }
  #responsive-navigation .tg-menue-sprachen__titel { font-size: 17px; color: #666; }
  #responsive-navigation .tg-menue-sprachen ul { display: flex; margin: 0; padding: 3px; list-style: none; border-radius: 999px; background: #f0f0ef; }
  #responsive-navigation .tg-menue-sprachen li { margin: 0; padding: 0; list-style: none; }
  #responsive-navigation .tg-menue-sprachen a { display: flex; align-items: center; justify-content: center; min-width: 50px; height: 40px;
    border-radius: 999px; font-size: 17px; font-weight: 700; color: #4b4b4a; text-decoration: none; }
  #responsive-navigation .tg-menue-sprachen a[aria-current] { background: #004e2d; color: #fff; }
  #responsive-navigation :is(.tg-menue-sprachen a, .serviceButton, form.tg-menue-suche button, .responsive-navigation-menu a):focus-visible {
    outline: 3px solid #ee7f00; outline-offset: -3px; }
}
/* Inhalt gleitet beim Öffnen nacheinander herein */
@keyframes tg-menue-ein { from { opacity: 0; translate: 22px 0; } }
@media (max-width: 1079px) and (prefers-reduced-motion: no-preference) {
  #responsive-navigation.open :is(form.tg-menue-suche, #responsive-service, .tg-menue-sprachen),
  #responsive-navigation.open .responsive-navigation-menu > li { animation: tg-menue-ein .5s cubic-bezier(.16, 1, .3, 1) backwards; }
  #responsive-navigation.open form.tg-menue-suche { animation-delay: .12s; }
  #responsive-navigation.open .responsive-navigation-menu > li { animation-delay: calc(.16s + var(--tg-m, 0) * 35ms); }
  #responsive-navigation.open .responsive-navigation-menu > li:nth-child(2) { --tg-m: 1; }
  #responsive-navigation.open .responsive-navigation-menu > li:nth-child(3) { --tg-m: 2; }
  #responsive-navigation.open .responsive-navigation-menu > li:nth-child(4) { --tg-m: 3; }
  #responsive-navigation.open .responsive-navigation-menu > li:nth-child(5) { --tg-m: 4; }
  #responsive-navigation.open .responsive-navigation-menu > li:nth-child(6) { --tg-m: 5; }
  #responsive-navigation.open .responsive-navigation-menu > li:nth-child(7) { --tg-m: 6; }
  #responsive-navigation.open .responsive-navigation-menu > li:nth-child(n+8) { --tg-m: 7; }
  #responsive-navigation.open #responsive-service { animation-delay: .42s; }
  #responsive-navigation.open .tg-menue-sprachen { animation-delay: .5s; }
}
@media (max-width: 374px) { #headerbadge #logo img { height: 40px; } }

/* Abstände und Lesbarkeit (Feedback 11.11.): Überschriften mit Luft davor (vorher 0 davor, 5px danach), Bilder in Reihen
   mit sichtbarem Abstand (vorher 2px), Bild unter Text mit Abstand, Fließtext höchstens etwa 72 Zeichen breit (vorher bis
   1260px). :where() hält die Spezifität niedrig: eigene Regeln der Unterseiten (.ci-*.subpage h2 usw.) bleiben. */
:where(#content) h1 { margin-bottom: 20px; line-height: 1.25; }
:where(#content) h2 { margin-top: 36px; margin-bottom: 14px; line-height: 1.25; }
:where(#content) h3 { margin-top: 16px; margin-bottom: 10px; line-height: 1.3; }
:where(#content) :is(.neos-nodetypes-image, .neos-nodetypes-textwithimage) figure { margin-bottom: 8px; }
:where(#content) .neos-nodetypes-text + .neos-nodetypes-image { margin-top: 28px; }
:where(#content) .neos-nodetypes-text :is(p, ul, ol):not([style*="center"]) { max-width: 72ch; }
/* Überschriften nicht viel breiter als der Text darunter (Feedback 12.11.): lange H2 wie "Gartentore nach Maß ...
   Schiebetore" liefen über 960px, der Absatz darunter endet bei 72ch (etwa 630px). Höchstens 700px, Zeilen gleichmäßig
   umbrochen. Zentrierte Überschriften (style="text-align: center", Videos, Objektberatung, Mein Traumprojekt) bleiben mittig. */
:where(#content) :is(.neos-nodetypes-text, .neos-nodetypes-headline) :is(h1, h2) { max-width: 700px; text-wrap: balance; }
:where(#content) :is(.neos-nodetypes-text, .neos-nodetypes-headline) :is(h1, h2)[style*="center"] { margin-left: auto; margin-right: auto; }
/* Abstand unter dem Hauptmenü: Inhaltsseiten ohne Brotkrumen (Startseite, Tore, Impressum, FAQ, Kataloge usw.) standen
   3 bis 7px unter der Farbleiste, die Überschrift mal direkt, mal in Container oder Raster. Ausgenommen, weil schon mit
   Luft: Produktseiten und Händlerliste (eigener #content darin, 33 bzw. 47px), Suche (26px), Seite 404 (leerer Text, dann
   Bild mit 28px). Seiten mit Brotkrumen (20px) haben #content in einer Rasterspalte und sind nicht betroffen.
   Spezifität 0,1,0: genug gegen den Reset (div { padding: 0 }) in style.min.css. */
:where(#responsive-navigation + #content.container) > .neos-contentcollection:where(:not(:has(> #content, > .flowpack-searchplugin-search, > .neos-nodetypes-text:first-child > div:empty))) { padding-top: 18px; }
@media (min-width: 1080px) {
  :where(#responsive-navigation + #content.container) > .neos-contentcollection:where(:not(:has(> #content, > .flowpack-searchplugin-search, > .neos-nodetypes-text:first-child > div:empty))) { padding-top: 28px; }
}
@media (min-width: 750px) {
  #content .grid.grid--small { margin-left: -10px; margin-right: -10px; }
  #content .grid.grid--small > .grid__column { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 749px) {
  :where(#content) h2 { margin-top: 28px; }
  :where(#content) :is(.neos-nodetypes-image, .neos-nodetypes-textwithimage) { margin-bottom: 12px; }
}

/* Handy und Tablet: nichts darf die Seite seitlich verschiebbar machen. Ursache war das alte Footer-Raster (grid--big
   ragte 1px über den rechten Rand), der Footer ist inzwischen neu (footer.py). overflow-x: clip bleibt als Sicherung
   (anders als hidden bleibt die Kopfzeile sticky). */
@media (max-width: 1079px) {
  html, body { overflow-x: clip; }
}
