/* Tankstopp Layout Core 3.17: one GeneratePress page frame.
   Intentionally NO 100vw breakouts, horizontal transforms, JS ancestor scans,
   duplicate navigation or changes to Cars/Fuel/Pannenhilfe business logic. */
body.tslc-premium-frame {
  --tslc-canvas: 1270px;
  --tslc-side-gap: 52px;
  --tslc-background: #f4f7f6;
  --tslc-surface: #fff;
  --tslc-border: #e7eeeb;
  --tslc-ink: #15211d;
  --tslc-accent: #185f4b;
  background: var(--tslc-background);
}
body.tslc-premium-frame #page.site,
body.tslc-premium-frame #page.grid-container,
body.tslc-premium-frame .site.grid-container.container {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  background: transparent;
}
body.tslc-premium-frame #content.site-content {
  box-sizing: border-box;
  display: block;
  float: none !important;
  width: min(var(--tslc-canvas), calc(100% - var(--tslc-side-gap))) !important;
  max-width: var(--tslc-canvas) !important;
  min-width: 0;
  margin: 0 auto !important;
  padding: 26px 0 60px;
}
body.tslc-premium-frame #primary.content-area {
  float: none !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 0 auto !important;
}
body.tslc-premium-frame #primary > .site-main,
body.tslc-premium-frame #primary .site-main {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}
/* Page body: identical white premium card for ordinary and service pages. */
body.tslc-premium-frame #primary .inside-article,
body.tslc-premium-archive #primary .site-main > .tankstopp-magazin {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid var(--tslc-border);
  border-radius: 25px;
  background: var(--tslc-surface);
  box-shadow: 0 12px 36px rgba(18, 35, 29, .055);
}
body.tslc-premium-frame #primary .entry-content,
body.tslc-premium-frame #primary .wp-block-post-content,
body.tslc-premium-frame #primary .tankstopp-page-system-shell {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin-top: 0;
}
/* GeneratePress renders the page title separately. The importer and page system
   supply their own headings, but regular pages still need an accessible h1. */
body.tslc-premium-page.page-magazin #primary .entry-header,
body.tslc-premium-page.page-magazin #primary .entry-title,
body.tslc-premium-service #primary .entry-header,
body.tslc-premium-service #primary .entry-title {
  display: none !important;
}
body.tslc-premium-page #primary .entry-content > .tankstopp-magazin,
body.tslc-premium-archive #primary .site-main > .tankstopp-magazin {
  width: 100%;
  max-width: none;
  margin: 0;
}
body.tslc-premium-page.page-magazin #primary .entry-content > .tankstopp-magazin {
  padding: 0;
}
body.tslc-premium-service #primary .entry-content {
  padding: 0 !important;
}
/* The frontend homepage retains its proven editorial/card internals. Its outer
   white page card is simply centred to the same dimensions as the other pages. */
body.tslc-premium-front #primary .inside-article {
  padding: clamp(22px, 3vw, 42px);
}
body.tslc-premium-front #primary .entry-content > .ts-home-magazine,
body.tslc-premium-front #primary .entry-content > .ts-home-zone,
body.tslc-premium-front #primary .ts-home-services {
  max-width: 100%;
}
/* Specialist widgets belong to their modules. Give them the frame's available
   inner width, never escape it by viewport-width calculations or transforms. */
body.tslc-premium-service #primary .tankstopp-cars-dashboard,
body.tslc-premium-service #primary .tankstopp-cars-teaser,
body.tslc-premium-service #primary .tankstopp-cars-archive-wrap,
body.tslc-premium-service #primary .tankstopp-cars-archive,
body.tslc-premium-service #primary .tankstopp-dealer-package-wrap,
body.tslc-premium-service #primary .tankstopp-sales-hero,
body.tslc-premium-service #primary .tankstopp-business-dashboard {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
}
body.tslc-premium-service #primary .fbp-shell {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
body.tslc-premium-service #primary .tankstopp-pannenhilfe-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-top: 0;
}
body.tslc-premium-service #primary .tankstopp-page-system-shell > :first-child {
  margin-top: 0;
}
/* A login form should be focused and readable INSIDE the same large page card. */
body.tslc-premium-page .tankstopp-page-login-box {
  box-sizing: border-box;
  width: min(100%, 610px);
  max-width: 100%;
  margin: 0 auto;
  color: var(--tslc-ink);
}
body.tslc-premium-page .tankstopp-page-login-box h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}
body.tslc-premium-page .tankstopp-page-login-box #loginform {
  width: 100%;
  max-width: 100%;
}
body.tslc-premium-page .tankstopp-page-login-box #loginform p {
  margin-bottom: 16px;
}
body.tslc-premium-page .tankstopp-page-login-box #loginform label {
  display: block;
  margin-bottom: 6px;
}
body.tslc-premium-page .tankstopp-page-login-box #loginform input[type="text"],
body.tslc-premium-page .tankstopp-page-login-box #loginform input[type="password"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbe5df;
  border-radius: 10px;
  background: #f8faf9;
}
body.tslc-premium-page .tankstopp-page-login-box #wp-submit {
  min-height: 46px;
  border-radius: 10px;
  background: #17241e;
  color: #fff;
}
/* Missing links use the same typography/card dimensions rather than the
   unstyled GeneratePress 404 with a tiny grey box. */
body.tslc-premium-notfound #primary .entry-title {
  margin-bottom: 18px;
  color: var(--tslc-ink);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.035em;
}
body.tslc-premium-notfound #primary .entry-content > p {
  max-width: 60ch;
  margin-bottom: 24px;
  color: #586961;
  font-size: 17px;
  line-height: 1.6;
}
body.tslc-premium-notfound .tslc-notfound-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 30px;
}
body.tslc-premium-notfound .tslc-notfound-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid #dbe5df;
  border-radius: 11px;
  color: var(--tslc-accent);
  background: #f8faf9;
  text-decoration: none;
  font-weight: 750;
}
body.tslc-premium-notfound #primary .search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 610px;
}
body.tslc-premium-notfound #primary .search-field {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #dbe5df;
  border-radius: 10px;
  background: #fff;
}
body.tslc-premium-notfound #primary .search-submit {
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #17241e;
  color: #fff;
}
/* Preserve the original Cars badge collision fix without globally resizing
   card grids or creating another responsive layout owner. */
body .tankstopp-car-card,
body .tankstopp-car-card * { box-sizing: border-box; }
body .tankstopp-car-card .tankstopp-car-card-image {
  position: relative !important;
  overflow: hidden !important;
  min-height: 210px !important;
}
body .tankstopp-car-card .tankstopp-car-chip {
  z-index: 20 !important;
  top: 14px !important;
  left: 14px !important;
  max-width: calc(100% - 28px);
  white-space: nowrap;
}
body .tankstopp-car-card .tankstopp-car-chip-gallery {
  left: auto !important;
  right: 14px !important;
}
body .tankstopp-car-card .tankstopp-v35-badges {
  z-index: 18 !important;
  top: 56px !important;
  left: 14px !important;
  right: 14px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  pointer-events: none !important;
}
body .tankstopp-car-card .tankstopp-v35-badge {
  max-width: 100%;
  line-height: 1.1 !important;
  white-space: nowrap;
}
body .tankstopp-car-card .tankstopp-car-card-placeholder {
  padding-top: 72px !important;
  min-height: 210px !important;
}
@media (max-width: 900px) {
  body.tslc-premium-frame { --tslc-side-gap: 32px; }
  body.tslc-premium-frame #content.site-content { padding: 18px 0 40px; }
  body.tslc-premium-frame #primary .inside-article,
  body.tslc-premium-archive #primary .site-main > .tankstopp-magazin {
    padding: 24px 22px;
    border-radius: 20px;
  }
  body.tslc-premium-page.page-magazin #primary .entry-content > .tankstopp-magazin { padding: 0; }
}
@media (max-width: 600px) {
  body.tslc-premium-frame { --tslc-side-gap: 20px; }
  body.tslc-premium-frame #content.site-content { padding: 12px 0 30px; }
  body.tslc-premium-frame #primary .inside-article,
  body.tslc-premium-archive #primary .site-main > .tankstopp-magazin {
    padding: 20px 16px;
    border-radius: 18px;
  }
  body.tslc-premium-page.page-magazin #primary .entry-content > .tankstopp-magazin { padding: 0; }
  body.tslc-premium-service #primary .fbp-shell {
    margin: 0 auto;
    padding: 18px;
  }
  body .tankstopp-car-card,
body .tankstopp-car-card * { box-sizing: border-box; }
body .tankstopp-car-card .tankstopp-car-card-image { min-height: 230px !important; }
  body .tankstopp-car-card .tankstopp-v35-badges { top: 58px !important; }
  body .tankstopp-car-card .tankstopp-car-chip { top: 14px !important; left: 14px !important; font-size: 12px !important; padding: 7px 10px !important; }
  body .tankstopp-car-card .tankstopp-car-card-placeholder { padding-top: 78px !important; }
}
