/* ==========================================================================
   Leo&Co Coworking St. Gallen – Stylesheet
   Ein einziges Stylesheet für die ganze Website (Contao-Layout «Standard»).
   Eingebunden im Seiten-Template templates/leo-co-redesign/fe_page.html5.

   Inhalt
   1.  Schriften
   2.  Variablen (Farben, Linien, Abstände)
   3.  Grundlagen (Text, Links, Buttons)
   4.  Seitenrahmen, Kopf und Hamburger
   5.  Navigation (Vollbild-Overlay)
   6.  Footer
   7.  Bausteine: Abschnitt, 2 Spalten, Text, Bild
   8.  Leo-Elemente: Seitenkopf, Bild + Text, Karten-Grid,
       Newsletter-Box, Partner-Logos, Preiskarten, Team, Karte
   9.  News und Events
   10. Formulare
   11. Textseiten (FAQ, Impressum, Datenschutz)
   12. Hilfsklassen
   13. Mobile (bis 760px bzw. 480px)
   ========================================================================== */


/* 1. Schriften ------------------------------------------------------------- */

@font-face { font-family:'Px Grotesk'; src:url('/files/leo-co/layout/PxGrotesk-Regular.woff2') format('woff2'); font-weight:normal; font-style:normal; font-display:swap; }
@font-face { font-family:'Px Grotesk'; src:url('/files/leo-co/layout/PxGrotesk-Bold.woff2') format('woff2'); font-weight:bold; font-style:normal; font-display:swap; }


/* 2. Variablen -------------------------------------------------------------
   Hier zentral ändern, wirkt überall. */

:root {
  --leo-gelb: #ffda7d;        /* Hintergrund */
  --leo-gelb-hell: #ffe39e;   /* Boxen, Platzhalter */
  --leo-feld: #ffecbe;        /* Formularfelder */
  --leo-blau: #354193;        /* Preise, Hervorhebungen, Hover */
  --leo-rot: #e93614;         /* Schräger Hinweis im Seitenkopf */
  --leo-schwarz: #000;
  --leo-linie: 7px solid var(--leo-schwarz);   /* Die dicken Trennlinien */
  --leo-rand: 40px;          /* Seitenrand links/rechts: Logo, Menü und alle Inhalte beginnen hier (mobil 25px) */
  --leo-abstand: 40px;        /* Innenabstand von Abschnitten */
  --leo-abstand-spalte: 35px; /* Innenabstand in Spalten */
  --leo-max-breite: 1600px;
}


/* 3. Grundlagen ------------------------------------------------------------ */

body { margin:0; font-family:'Px Grotesk', 'Roboto Condensed', sans-serif; color:var(--leo-schwarz); background:var(--leo-gelb); }
a { color:var(--leo-schwarz); text-decoration:underline; }
a:hover { color:var(--leo-gelb); background-color:var(--leo-blau); }
.lk { text-decoration:underline; }

.btn { display:inline-block; border:2px solid var(--leo-schwarz); padding:10px 22px; font-weight:700; text-decoration:none; color:var(--leo-schwarz); cursor:pointer; background:transparent; font-family:inherit; font-size:1em; }
.btn:hover { background:var(--leo-blau); border-color:var(--leo-blau); color:var(--leo-gelb); }


/* 4. Seitenrahmen, Kopf und Hamburger -------------------------------------- */

.leo-page { max-width:var(--leo-max-breite); margin:0 auto; border:var(--leo-linie); background:var(--leo-gelb); position:relative; }
/* Kopf bleibt beim Scrollen oben stehen (sticky). Die negative Marge sorgt dafür,
   dass der Inhalt wie bisher ganz oben beginnt. Klicks gehen durch den leeren Kopfbereich hindurch. */
.leo-header { position:sticky; top:0; z-index:10; height:115px; margin-bottom:-115px; box-sizing:border-box; display:flex; align-items:center; justify-content:space-between; padding:20px var(--leo-rand); pointer-events:none; }
.leo-header a, .leo-header #nav-toggle { pointer-events:auto; }
/* Logo: oben schräg und gross, beim Scrollen gerade und kleiner (Klasse leo-scrolled per JS) */
.leo-logo { display:block; height:70px; transform:rotate(-5deg); transition:height .5s, transform .5s; }
.leo-scrolled .leo-logo { height:50px; transform:rotate(0deg); }
.leo-header a:hover { background:none; }

/* Hamburger: 34 × 24 px, drei Balken à 4 px */
#nav-toggle { display:flex; flex-direction:column; gap:6px; cursor:pointer; }
#nav-toggle span { width:34px; height:4px; background:var(--leo-schwarz); }


/* 5. Navigation (Vollbild-Overlay) ----------------------------------------- */

#nav-overlay { display:none; position:fixed; inset:0; z-index:100; width:100%; height:100vh; box-sizing:border-box; border:var(--leo-linie); background:var(--leo-gelb); padding:var(--leo-abstand) var(--leo-rand); overflow-y:auto; }
#nav-overlay.open { display:block; }

/* Schliessen-Kreuz: gleich gross wie der Hamburger (34 × 24 px, 4 px Balken).
   Die genaue Position setzt das Script im Seiten-Template auf die des Hamburgers. */
#nav-overlay #nav-close { position:fixed; top:20px; width:34px; height:24px; padding:0; margin:0; font-size:0; line-height:0; cursor:pointer; z-index:2; background:none; }
#nav-overlay #nav-close span { position:absolute; left:50%; top:50%; width:41.6px; height:4px; margin:-2px 0 0 -20.8px; background:var(--leo-schwarz); }
#nav-overlay #nav-close span:first-child { transform:rotate(35.22deg); }
#nav-overlay #nav-close span:last-child { transform:rotate(-35.22deg); }
#nav-toggle:focus-visible, #nav-close:focus-visible { outline:2px solid var(--leo-blau); outline-offset:6px; }

.leo-nav-inner { display:flex; flex-wrap:wrap; gap:40px; }
ul.navlist { list-style:none; margin:0; padding:0; flex:2 1 500px; }
ul.navlist li { font-size:4em; line-height:1; font-weight:700; text-transform:uppercase; margin-bottom:4px; }
ul.navlist li a { text-decoration:none; }
ul.navlist li.active a { color:var(--leo-blau); }
.leo-nav-side { flex:1 1 320px; padding-top:10px; }
.leo-nav-title { margin:0 0 10px; font-weight:700; font-size:1.25em; }
.leo-nav-links { margin:0 0 30px; font-size:1.1em; line-height:1.6; }
.leo-nav-text { margin:0 0 20px; font-size:1.1em; line-height:1.6; }


/* 6. Footer ---------------------------------------------------------------- */

.leo-footer { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:30px; padding:var(--leo-abstand) var(--leo-rand); }
.leo-footer-logo { height:70px; }
.leo-footer a:has(.leo-footer-logo):hover { background:none; }
.leo-footer-title { margin:0 0 10px; font-weight:700; }
.leo-footer-addr { margin:0 0 8px; font-size:1em; line-height:1.5; }
.leo-footer-line { margin:0; display:flex; align-items:center; gap:8px; font-size:1em; }
.leo-footer-line + .leo-footer-line { margin-top:4px; }
.leo-footer-text { margin:0; font-size:1em; line-height:1.5; }
.leo-social-list { display:flex; gap:14px; }
.leo-social { display:inline-flex; color:var(--leo-schwarz); }
.leo-social:hover { background:none !important; opacity:.6; }
.leo-legal-links { margin:14px 0 0; line-height:1.6; }


/* 7. Bausteine ------------------------------------------------------------- */

/* Abschnitt mit dicker Linie unten */
.sec { border-bottom:var(--leo-linie); }
/* Spalte mit dicker Linie rechts */
.divr { border-right:var(--leo-linie); }

/* Text-Element direkt im Artikel */
.mod_article > .content-text { padding:var(--leo-abstand) var(--leo-rand); border-bottom:var(--leo-linie); }
.mod_article > .content-text h1 { margin:90px 0 10px; font-size:3em; line-height:1.1; font-weight:700; }
.mod_article > .content-text h2 { margin:0 0 15px; font-size:2em; font-weight:700; }
.mod_article > .content-text p { margin:0; font-size:1.2em; max-width:900px; }
.mod_article > .content-text a.btn { display:inline-block; margin-top:12px; }

/* Elementgruppe mit CSS-Klasse «leo-2col»: Kinder nebeneinander, Linie dazwischen */
.leo-2col { display:flex; flex-wrap:wrap; border-bottom:var(--leo-linie); }
.leo-2col > * { flex:1 1 480px; min-width:320px; box-sizing:border-box; }
.leo-2col > *:not(:last-child) { border-right:var(--leo-linie); }
.leo-2col > .content-text { padding:var(--leo-abstand-spalte) var(--leo-rand); }
.leo-2col > .content-text h2 { margin:0 0 15px; font-size:1.6em; font-weight:700; }
.leo-2col > .content-text p { margin:0 0 15px; font-size:1.05em; line-height:1.4; }

/* Spalten mit CSS-Klasse «leo-col» (z.B. News + Events auf der Startseite) */
.leo-2col > .leo-col { padding:var(--leo-abstand-spalte) var(--leo-rand); }
.leo-col h2 { margin:0 0 15px; font-size:1.6em; font-weight:700; }
.leo-col .layout_simple { margin:0 0 10px; font-size:1.05em; }
.leo-col .layout_simple time, .leo-col .event .date, .leo-col .event time { color:var(--leo-blau); font-weight:700; margin-right:.6em; }
.leo-col .empty { margin:0 0 15px; opacity:.6; }
.leo-col .content-text p { margin:15px 0 0; }

/* Bild-Element */
.mod_article > .content-image { padding:var(--leo-abstand) var(--leo-rand); border-bottom:var(--leo-linie); margin:0; }
.mod_article > .content-image figure { margin:0; }
.mod_article > .content-image img { display:block; max-width:100%; height:auto; }
.mod_article > .content-image h2 { margin:0 0 20px; font-size:1.6em; font-weight:700; }
/* Bilder in einer leo-2col-Gruppe = Galerie, randabfallend */
.leo-2col > .content-image figure, .leo-2col > .content-image { margin:0; }
.leo-2col > .content-image img { display:block; width:100%; height:100%; min-height:300px; object-fit:cover; }

/* Preisangaben im Fliesstext (Klassen label, price, unit im Editor) */
.rte .label, .leo-bildtext-text .label { font-size:.95em; text-transform:uppercase; letter-spacing:.03em; opacity:.7; margin:20px 0 6px; }
.rte .price, .leo-bildtext-text .price { font-size:2.1em; font-weight:700; color:var(--leo-blau); margin:0; line-height:1; }
.rte .unit, .leo-bildtext-text .unit { font-size:.55em; font-weight:400; opacity:.8; }
.rte hr, .leo-bildtext-text hr { border:none; border-top:2px solid var(--leo-schwarz); margin:12px 0 16px; opacity:.15; }

/* Liste in zwei Spalten (Klasse «leo-feat» an der Liste) */
.mod_article .content-text ul.leo-feat { columns:2; column-gap:30px; font-size:1.05em; line-height:1.5; margin:0 0 15px; padding-left:20px; }
.mod_article .content-text ul.leo-feat li { break-inside:avoid; }

/* Hervorgehobene Box, z.B. Bankverbindung (Klasse «addr») */
.mod_article .content-text .addr { background:var(--leo-gelb-hell); padding:16px 18px; font-size:1.05em; line-height:1.5; max-width:600px; }


/* 8. Leo-Elemente ---------------------------------------------------------- */

/* Leo Hero / Seitenkopf: Bild links, Text unten rechts */
.leo-hero { display:flex; flex-wrap:wrap; }
.leo-hero-media { flex:1 1 480px; min-width:320px; min-height:800px; box-sizing:border-box; } /* border-box: Trennlinie liegt bündig mit den Zeilen darunter */
.leo-hero-media img { display:block; width:100%; height:100%; min-height:800px; object-fit:cover; }
.leo-hero-body { flex:1 1 480px; min-width:320px; padding:var(--leo-abstand) var(--leo-rand); box-sizing:border-box; display:flex; flex-direction:column; justify-content:flex-end; gap:20px; }
.leo-hero-eyebrow { transform:rotate(5deg); width:fit-content; }
.leo-hero-eyebrow span { color:var(--leo-rot); font-weight:700; font-size:1.25em; }
.leo-hero-title { margin:0; font-size:3.4em; line-height:1.1; font-weight:700; }
.leo-hero-text { margin:0; font-size:1.2em; line-height:1.4; }
.leo-hero-body .btn { width:fit-content; }

/* Leo Bild + Text */
.leo-bildtext { display:flex; flex-wrap:wrap; }
.leo-bildtext-media { flex:1 1 480px; min-width:320px; min-height:300px; box-sizing:border-box; }
.leo-bildtext-media img { display:block; width:100%; height:100%; min-height:300px; object-fit:cover; }
.leo-bildtext-body { flex:1 1 480px; min-width:320px; padding:var(--leo-abstand-spalte) var(--leo-rand); box-sizing:border-box; }
.leo-bildtext-title { margin:0 0 15px; font-size:1.8em; font-weight:700; }
.leo-bildtext-text { margin:0; font-size:1.15em; line-height:1.4; }

/* Leo Karten-Grid (Icons, Titel, Text, Link) */
.gridb4 { display:grid; grid-template-columns:repeat(var(--leo-spalten, 4), minmax(0,1fr)); }
.gridb4 > div { padding:25px var(--leo-rand); border-right:var(--leo-linie); }
.gridb4 > div:last-child { border-right:0; }
.leo-card-icon { margin-bottom:12px; }
.leo-card-title { margin:0 0 10px; font-size:1.3em; font-weight:700; }
.leo-card-text { margin:0 0 15px; font-size:1.05em; }

/* Leo Newsletter-Box (zweite Spalte in einer leo-2col-Gruppe) */
.leo-newsletter { padding:var(--leo-abstand-spalte) var(--leo-rand); }
.leo-newsletter-title { margin:0 0 15px; font-size:1.6em; font-weight:700; }
.leo-newsletter-text { margin:0 0 15px; font-size:1.05em; }
.leo-newsletter input { width:100%; box-sizing:border-box; padding:12px; margin-bottom:10px; border:0; background:var(--leo-feld); }
.leo-newsletter input:last-of-type { margin-bottom:15px; }

/* Leo Partner-Logos */
.leo-partner { padding:var(--leo-abstand) var(--leo-rand); }
.leo-partner-title { margin:0 0 25px; font-size:1.6em; font-weight:700; }
.pgrid { display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:30px; align-items:center; }
.pgrid img { width:100%; }

/* Leo Preiskarten */
.leo-prices-head { padding:40px var(--leo-rand) 25px; }
.leo-prices-head h2 { margin:0; font-size:2em; font-weight:700; }
.leo-prices { display:grid; grid-template-columns:repeat(var(--leo-spalten, 3), minmax(0,1fr)); }
.leo-price-card { display:flex; flex-direction:column; border-right:var(--leo-linie); }
.leo-price-card:last-child { border-right:0; }
.leo-cols-3 > .leo-price-card:nth-child(3n), .leo-cols-2 > .leo-price-card:nth-child(2n) { border-right:0; }
.leo-cols-3 > .leo-price-card:nth-child(n+4), .leo-cols-2 > .leo-price-card:nth-child(n+3) { border-top:var(--leo-linie); }
.leo-price-img { display:block; width:100%; height:240px; object-fit:cover; }
.leo-price-body { padding:30px var(--leo-rand); display:flex; flex-direction:column; flex:1; }
.leo-price-card .label { font-size:.95em; text-transform:uppercase; letter-spacing:.03em; opacity:.7; margin:0 0 6px; }
.leo-price-title { margin:0 0 4px; font-weight:700; font-size:1.2em; }
.leo-price-card .divider { border:none; border-top:2px solid var(--leo-schwarz); margin:16px 0; opacity:.15; }
.leo-price-card .price { font-size:2.1em; font-weight:700; color:var(--leo-blau); margin:0; line-height:1; }
.leo-price-card .price.price-text { font-size:1.3em; margin-bottom:20px; }
.leo-price-card .unit { font-size:.55em; font-weight:400; opacity:.8; }
.leo-price-note { margin:6px 0 16px; }
.leo-price-card ul.chk { list-style:none; margin:0 0 24px; padding:0; }
.leo-price-card ul.chk li { display:flex; align-items:center; gap:10px; font-size:1.02em; margin-bottom:8px; }
.leo-price-card ul.chk svg { flex:0 0 18px; }
.leo-price-extra-title { margin:4px 0 8px; font-weight:700; }
.leo-price-card .addr { background:var(--leo-gelb-hell); padding:16px 18px; font-size:.95em; line-height:1.5; margin:0 0 20px; }
.leo-price-btn { margin-top:auto; }
/* Karte ohne Label und Preis = Aufforderung («Weiteres Büro gesucht?») */
.leo-price-card.is-cta .leo-price-body { justify-content:center; }
.leo-price-card.is-cta .leo-price-title { font-size:1.3em; margin-bottom:10px; }
.leo-price-card.is-cta .leo-price-note { margin:0 0 20px; }
.leo-price-card.is-cta .leo-price-btn { margin-top:0; }
/* Preiskarten als Spalte in einer leo-2col-Gruppe */
.leo-2col > .leo-prices { border-bottom:0; display:block; }
.leo-2col > .leo-prices .leo-price-card { border-right:0; height:100%; box-sizing:border-box; }

/* Leo Team */
.leo-team { padding:var(--leo-abstand) var(--leo-rand); }
.leo-team h2 { margin:0 0 10px; font-size:2em; font-weight:700; }
.leo-team-intro { margin:0 0 30px; font-size:1.15em; }
.leo-team-intro p { margin:0; }
.leo-team-grid { display:grid; grid-template-columns:repeat(var(--leo-spalten, 4), minmax(0,1fr)); gap:30px; }
.leo-team-card img, .leo-team-ph { display:block; width:100%; aspect-ratio:1; object-fit:cover; margin-bottom:12px; }
.leo-team-ph { display:flex; align-items:center; justify-content:center; background:var(--leo-gelb-hell); font-size:.85em; opacity:.7; }
.leo-team-name, .leo-team-role { margin:0; font-weight:700; }
.leo-team-tasks { margin:0 0 10px; }

/* Leo Karte (Google Maps) */
.leo-map iframe { display:block; width:100%; border:0; }


/* 9. News und Events ------------------------------------------------------- */

.leo-news-list .layout_latest { padding:20px var(--leo-rand); border-bottom:var(--leo-linie); }
.leo-news-list .info { margin:0; color:var(--leo-blau); font-weight:700; }
.leo-news-list h2 { margin:4px 0 0; font-size:1.2em; font-weight:700; }
.leo-news-list .content-text p { margin:5px 0 0; }
.leo-news-list .more { display:none; }
/* Liste ohne Bilder (wie Design-Vorlage); Bild wird für Vorschau/Teilen trotzdem genutzt */
.leo-news-list figure { display:none; }
.leo-news-list .pagination { padding:20px var(--leo-rand); }

.leo-events-list .empty { padding:30px var(--leo-rand); font-size:1.1em; color:rgba(0,0,0,.6); border-bottom:var(--leo-linie); margin:0; }
.leo-events-list .event { padding:20px var(--leo-rand); border-bottom:var(--leo-linie); }

/* Detailseite (News- und Event-Leser) */
.mod_article > .content-text.leo-back { padding:130px var(--leo-rand) 0; border-bottom:0; }
.leo-reader { padding:10px var(--leo-rand) 40px; border-bottom:var(--leo-linie); }
.leo-reader h1 { margin:10px 0 10px; font-size:3em; line-height:1.1; font-weight:700; }
.leo-reader .info, .leo-reader h2 { margin:0 0 5px; color:var(--leo-blau); font-weight:700; font-size:1em; }
.leo-reader .content-text { max-width:760px; font-size:1.1em; line-height:1.5; margin-top:25px; }
/* Bild über dem Text (News/Events) */
.leo-reader .content-text figure { margin:0 0 20px; }
.leo-reader .content-text figure img { display:block; max-width:100%; height:auto; }
/* Bildergalerie in News (3 Spalten, mobil 2) */
.leo-reader .content-gallery { max-width:1100px; margin-top:30px; }
.leo-reader .content-gallery ul { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; list-style:none; margin:0; padding:0; }
.leo-reader .content-gallery figure { margin:0; }
.leo-reader .content-gallery img { display:block; width:100%; height:auto; }
@media (max-width:760px) { .leo-reader .content-gallery ul { grid-template-columns:repeat(2,1fr); gap:8px; } }
/* Autor ausblenden, nur Datum zeigen */
.leo-news-list .info, .leo-reader .info { font-size:0; }
.leo-news-list .info time, .leo-reader .info time { font-size:1rem; }


/* 10. Formulare (Kontaktformular) ------------------------------------------ */

.mod_article > .ce_form, .mod_article > .mod_form, .mod_article > .content-form { padding:var(--leo-abstand) var(--leo-rand); }
.mod_article > .ce_form { border-bottom:var(--leo-linie); }
.mod_article .ce_form h2, .mod_article .mod_form h2, .mod_article .content-form h2 { margin:0 0 25px; font-size:2em; font-weight:700; }
.mod_article form .formbody { max-width:700px; }
.mod_article form input.text, .mod_article form textarea { width:100%; box-sizing:border-box; padding:14px; margin-bottom:12px; border:0; background:var(--leo-feld); font-family:inherit; font-size:1em; }
.mod_article form textarea { height:150px; }
.mod_article form .widget label { position:absolute; left:-9999px; }
.mod_article form button.submit { display:inline-block; border:2px solid var(--leo-schwarz); padding:10px 22px; font-weight:700; color:var(--leo-schwarz); cursor:pointer; background:transparent; font-family:inherit; font-size:1em; }
.mod_article form button.submit:hover { background:var(--leo-blau); border-color:var(--leo-blau); color:var(--leo-gelb); }
.leo-kontakt-info p { display:flex; gap:10px; align-items:flex-start; }


/* 11. Textseiten mit leerer Randspalte (Klasse «leo-legal» am Text-Element) */

.mod_article > .content-text.leo-legal { margin-left:33%; border-left:var(--leo-linie); border-bottom:0; padding-top:0; }
.leo-legal h1 { margin:0 calc(-1 * var(--leo-rand)) 40px !important; padding:130px var(--leo-rand) 40px; border-bottom:var(--leo-linie); font-size:2.8em; }
.leo-legal h2 { font-size:1.3em !important; margin:0 0 10px !important; }
.leo-legal p { font-size:1.05em !important; line-height:1.5; max-width:800px; margin:0 0 22px !important; }


/* 12. Hilfsklassen --------------------------------------------------------- */

/* Spaltenzahl für Karten-Grid, Preiskarten und Team (setzt das Template) */
.leo-cols-1 { --leo-spalten:1; }
.leo-cols-2 { --leo-spalten:2; }
.leo-cols-3 { --leo-spalten:3; }
.leo-cols-4 { --leo-spalten:4; }
.leo-cols-5 { --leo-spalten:5; }
.leo-cols-6 { --leo-spalten:6; }

/* Platzhalter für fehlende Fotos */
.ph { display:flex; align-items:center; justify-content:center; text-align:center; background:var(--leo-gelb-hell); color:#7a6a3a; font-size:.9em; padding:10px; box-sizing:border-box; }
/* Blau-fett hervorgehobenes Wort (Klasse «bold» an einem span) */
span.bold { font-weight:700; color:var(--leo-blau); }


/* 13. Mobile --------------------------------------------------------------- */

@media (max-width:760px) {
  :root { --leo-rand: 25px; }
  .divr { border-right:0; border-bottom:var(--leo-linie); }
  .leo-2col > *:not(:last-child) { border-right:0; border-bottom:var(--leo-linie); }

  /* Seitenkopf: Bild niedriger */
  .leo-hero-media { min-height:0; }
  .leo-hero-media img { min-height:0; height:380px; }
  /* Bild + Text mit Bild links: gleich wie Seitenkopf */
  .leo-bildtext--left .leo-bildtext-media { min-height:0; }
  .leo-bildtext--left .leo-bildtext-media img { min-height:0; height:380px; }

  /* Lange Titel umbrechen */
  .mod_article h1:not(.leo-bildtext-title) { font-size:2.2em !important; line-height:1.1; hyphens:auto; -webkit-hyphens:auto; overflow-wrap:break-word; }
  .mod_article h2 { hyphens:auto; -webkit-hyphens:auto; overflow-wrap:break-word; }

  /* Navigation */
  ul.navlist { margin-top:56px; }
  ul.navlist li { font-size:2.4em; line-height:1.15; }
  ul.navlist li a { overflow-wrap:break-word; }

  /* Footer */
  .leo-footer { grid-template-columns:repeat(2, minmax(0,1fr)); }

  /* Karten-Grid */
  .gridb4 { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .gridb4 > div { border-right:var(--leo-linie); border-bottom:var(--leo-linie); }
  .gridb4 > div:nth-child(2n) { border-right:0; }

  /* Partner-Logos */
  .pgrid { grid-template-columns:repeat(3, minmax(0,1fr)); }

  /* Preiskarten und Team untereinander */
  .leo-prices, .leo-team-grid { grid-template-columns:1fr; }
  .leo-price-card { border-right:0; border-bottom:var(--leo-linie); }
  .leo-price-card:last-child { border-bottom:0; }
  .leo-prices > .leo-price-card:nth-child(n) { border-top:0; }

  /* Listen und Textseiten */
  .mod_article .content-text ul.leo-feat { columns:1; }
  .mod_article > .content-text.leo-legal { margin-left:0; border-left:0; }
}

@media (max-width:480px) {
  .leo-footer { grid-template-columns:1fr; }
  .gridb4 { grid-template-columns:1fr; }
  .gridb4 > div { border-right:0; }
  .gridb4 > div:last-child { border-bottom:0; }
  .pgrid { grid-template-columns:repeat(2, minmax(0,1fr)); }
}
