/*
 * Theme 3.9.5 – Tablet Responsive Stabilisierung
 *
 * Rein struktureller/visueller Feinschliff für Tablets im Hoch- und Querformat.
 * Keine neuen Inhaltsfunktionen. Smartphone-Swipe bleibt ausschließlich <=700px.
 */

/* ========================================================================== 
   A. Tablet-Grundschutz: keine senkrecht zerfallenden Wörter / keine Offsets
   ========================================================================== */
@media (min-width:701px) and (max-width:1024px),
       (min-width:701px) and (max-width:1600px) and (hover:none) and (pointer:coarse),
       (min-width:701px) and (max-width:1600px) and (any-pointer:coarse) {
  body,
  #content,
  main,
  section,
  article,
  aside,
  header,
  nav,
  div { min-width:0; }

  body :is(h1,h2,h3,h4,h5,h6,.section-kicker,.eyebrow,.fleet-switcher a,.desktop-nav a) {
    writing-mode:horizontal-tb !important;
    text-orientation:mixed !important;
    word-break:normal !important;
    overflow-wrap:normal !important;
    hyphens:auto;
  }

  /* Große Seitentitel dürfen kleiner werden, aber nie buchstabenweise brechen. */
  body :is(.page-hero h1,.vehicle-hero-copy h1,.article-page header h1,.sf2120-hero-copy h1) {
    max-width:100%;
    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:normal !important;
    writing-mode:horizontal-tb !important;
  }

  /* Tablet-Header bleibt statisch: verhindert Touch-/Sticky-Versatz auf Android. */
  .site-header,
  body.admin-bar .site-header,
  body.sf-page-scrolled .site-header {
    position:relative !important;
    top:auto !important;
    transform:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }

  .site-header :is(a,summary,button) {
    touch-action:manipulation;
    -webkit-tap-highlight-color:rgba(215,168,62,.18);
  }

  .site-header a::before,
  .site-header a::after { pointer-events:none; }

  /* Keine Transform-Verschiebung im Tablet-Header: sichtbare und klickbare Fläche bleiben identisch. */
  .site-header :is(a,summary):hover,
  .site-header :is(a,summary):focus,
  .header-social-link:hover,
  .header-favorites:hover,
  .header-search > summary:hover {
    transform:none !important;
  }

  /* Unterseiten kompakter, ohne riesige Leerflächen. */
  body.post-type-archive-fahrzeug .page-hero,
  body.post-type-archive-gastfahrzeug .page-hero {
    padding:clamp(44px,5vw,70px) clamp(26px,5vw,68px) !important;
  }
  body.post-type-archive-fahrzeug .page-hero h1,
  body.post-type-archive-gastfahrzeug .page-hero h1 {
    font-size:clamp(48px,7vw,82px) !important;
    line-height:.96 !important;
    letter-spacing:-.045em !important;
  }
  body.post-type-archive-fahrzeug .page-hero > p:last-child:not(.section-kicker),
  body.post-type-archive-gastfahrzeug .page-hero > p:last-child:not(.section-kicker) {
    max-width:760px;
    margin-top:20px !important;
    font-size:15px !important;
    line-height:1.6 !important;
  }

  body.post-type-archive-fahrzeug .subpage-section,
  body.post-type-archive-gastfahrzeug .subpage-section {
    padding:clamp(28px,4vw,54px) clamp(24px,4.5vw,62px) clamp(54px,6vw,82px) !important;
  }

  /* Fuhrpark-Wechsler: beide Archive identisch, Gastfahrzeug-Link sauber darunter. */
  body.post-type-archive-fahrzeug .fleet-switcher,
  body.post-type-archive-gastfahrzeug .fleet-switcher {
    width:min(100%,900px) !important;
    margin:0 0 22px !important;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:0 !important;
  }
  body.post-type-archive-fahrzeug .fleet-switcher a,
  body.post-type-archive-gastfahrzeug .fleet-switcher a {
    min-width:0 !important;
    min-height:52px !important;
    padding:10px 18px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    white-space:normal !important;
    line-height:1.25 !important;
    text-align:center !important;
  }
  body.post-type-archive-gastfahrzeug .fleet-switcher .fleet-submit-link {
    grid-column:1/-1 !important;
    margin:10px 0 0 !important;
  }

  /* ========================================================================
     B. Fuhrparkfilter – Tablet immer statisch, zweispaltig, ohne Swipe
     ======================================================================== */
  body.post-type-archive-fahrzeug .sf-fleet-filter-349,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-349 {
    width:100% !important;
    max-width:1180px !important;
    margin:0 auto 28px !important;
    padding:clamp(22px,3.2vw,40px) !important;
    display:block !important;
    overflow:visible !important;
    border:1px solid rgba(19,41,31,.14) !important;
    background:linear-gradient(135deg,#f8f3e5 0%,#fbf9f2 58%,#f4edda 100%) !important;
    box-shadow:0 14px 36px rgba(19,41,31,.055) !important;
  }

  body.post-type-archive-fahrzeug .sf-fleet-filter-heading-349,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-heading-349 {
    min-width:0 !important;
    min-height:0 !important;
    margin:0 0 22px !important;
    padding:0 !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(210px,34%) !important;
    gap:20px 30px !important;
    align-items:end !important;
  }

  body.post-type-archive-fahrzeug .sf-fleet-filter-heading-349::after,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-heading-349::after {
    content:"TECHNIK  •  TRADITION  •  GEMEINSCHAFT";
    position:static !important;
    width:auto !important;
    height:auto !important;
    aspect-ratio:auto !important;
    align-self:center !important;
    padding:13px 16px !important;
    border:1px solid rgba(19,41,31,.24) !important;
    border-radius:999px !important;
    background:rgba(255,253,248,.68) !important;
    color:#33483e !important;
    font-size:9px !important;
    font-weight:900 !important;
    line-height:1.35 !important;
    letter-spacing:.08em !important;
    text-align:center !important;
    white-space:normal !important;
    box-sizing:border-box !important;
  }

  body.post-type-archive-fahrzeug .sf-fleet-filter-heading-349 > div,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-heading-349 > div {
    min-width:0 !important;
  }
  body.post-type-archive-fahrzeug .sf-fleet-filter-heading-349 .section-kicker,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-heading-349 .section-kicker {
    margin:0 0 9px !important;
    font-size:10px !important;
    letter-spacing:.12em !important;
  }
  body.post-type-archive-fahrzeug .sf-fleet-filter-heading-349 h2,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-heading-349 h2 {
    max-width:720px !important;
    margin:0 !important;
    font-size:clamp(43px,5.8vw,70px) !important;
    line-height:.98 !important;
    letter-spacing:-.045em !important;
    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:normal !important;
    hyphens:none !important;
    writing-mode:horizontal-tb !important;
  }
  body.post-type-archive-fahrzeug .sf-fleet-filter-heading-349 h2 em,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-heading-349 h2 em {
    display:block !important;
    margin-top:2px !important;
    color:var(--brass) !important;
    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:normal !important;
    writing-mode:horizontal-tb !important;
  }
  body.post-type-archive-fahrzeug .sf-fleet-filter-heading-349 > p,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-heading-349 > p {
    grid-column:1/-1 !important;
    max-width:720px !important;
    margin:0 !important;
    color:#536158 !important;
    font-size:14px !important;
    line-height:1.55 !important;
  }

  body.post-type-archive-fahrzeug .sf-fleet-filter-mobile-help-349,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-mobile-help-349 {
    display:none !important;
  }
  body.post-type-archive-fahrzeug .sf-fleet-filter-fields-349,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-fields-349 {
    display:block !important;
    width:100% !important;
    overflow:visible !important;
  }
  body.post-type-archive-fahrzeug .sf-fleet-filter-pages-349,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-pages-349 {
    width:100% !important;
    min-width:0 !important;
    padding:18px !important;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:14px 16px !important;
    overflow:visible !important;
    scroll-snap-type:none !important;
    transform:none !important;
    border:1px solid rgba(19,41,31,.14) !important;
    background:rgba(255,253,248,.90) !important;
    box-sizing:border-box !important;
  }
  body.post-type-archive-fahrzeug .sf-fleet-filter-page-349,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-page-349 {
    display:contents !important;
    width:auto !important;
    min-width:0 !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
    transform:none !important;
  }
  body.post-type-archive-fahrzeug .sf-fleet-filter-control-349,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-control-349 {
    min-width:0 !important;
    width:100% !important;
    margin:0 !important;
    display:block !important;
  }
  body.post-type-archive-fahrzeug .sf-fleet-filter-control-349 > span,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-control-349 > span {
    min-height:0 !important;
    margin:0 0 7px !important;
    display:block !important;
    color:#33483e !important;
    font-size:11px !important;
    font-weight:900 !important;
    line-height:1.3 !important;
    letter-spacing:.065em !important;
    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:normal !important;
  }
  body.post-type-archive-fahrzeug .sf-fleet-filter-control-349 select,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-control-349 select {
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    min-height:56px !important;
    padding:0 44px 0 15px !important;
    border:1px solid rgba(19,41,31,.19) !important;
    background-color:#fffdf8 !important;
    color:var(--ink) !important;
    font:16px/1.3 Arial,Helvetica,sans-serif !important;
    box-sizing:border-box !important;
  }
  body.post-type-archive-fahrzeug .sf-fleet-filter-actions-349,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-actions-349 {
    margin:15px 0 0 !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:12px 18px !important;
    align-items:center !important;
  }
  body.post-type-archive-fahrzeug .sf-fleet-filter-actions-349 .button,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-actions-349 .button {
    width:100% !important;
    min-height:58px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border:1px solid var(--forest) !important;
    background:var(--forest) !important;
    color:#fff !important;
    font-size:11px !important;
    letter-spacing:.10em !important;
    text-transform:uppercase !important;
  }
  body.post-type-archive-fahrzeug .sf-fleet-filter-actions-349 .text-link,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-actions-349 .text-link {
    white-space:nowrap !important;
  }
  body.post-type-archive-fahrzeug .sf-fleet-filter-349::after,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-349::after {
    content:"Historische Fahrzeuge  •  Technik mit Geschichte  •  Unsere Leidenschaft  •  Gemeinsam unterwegs" !important;
    display:block !important;
    margin-top:22px !important;
    padding-top:17px !important;
    border-top:2px solid rgba(196,143,35,.55) !important;
    color:#33483e !important;
    font-size:11px !important;
    font-weight:800 !important;
    line-height:1.6 !important;
    letter-spacing:.03em !important;
    text-align:center !important;
  }

  body.post-type-archive-fahrzeug .fleet-filter-result,
  body.post-type-archive-gastfahrzeug .fleet-filter-result {
    max-width:1180px !important;
    margin:0 auto 20px !important;
  }
}

/* ========================================================================== 
   C. Tablet Hochformat – 701–1024 px
   ========================================================================== */
@media (min-width:701px) and (max-width:1024px),
       (min-width:701px) and (max-width:1600px) and (orientation:portrait) and (any-pointer:coarse) {
  body.post-type-archive-fahrzeug .sf-fleet-filter-heading-349,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-heading-349 {
    grid-template-columns:minmax(0,1fr) !important;
    gap:12px !important;
  }
  body.post-type-archive-fahrzeug .sf-fleet-filter-heading-349::after,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-heading-349::after {
    justify-self:start !important;
    max-width:100% !important;
  }
  body.post-type-archive-fahrzeug .sf-fleet-filter-heading-349 h2,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-heading-349 h2 {
    font-size:clamp(42px,7.2vw,62px) !important;
  }
  body.post-type-archive-fahrzeug .sf-fleet-filter-pages-349,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-pages-349 {
    gap:12px !important;
    padding:15px !important;
  }
  body.post-type-archive-fahrzeug .full-tractor-grid,
  body.post-type-archive-gastfahrzeug .full-tractor-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

/* ========================================================================== 
   D. Tablet Querformat – Fuhrpark bleibt großzügig, aber kompakt
   ========================================================================== */
@media (min-width:1025px) and (max-width:1600px) and (hover:none) and (pointer:coarse),
       (min-width:1025px) and (max-width:1600px) and (any-pointer:coarse) {
  body.post-type-archive-fahrzeug .sf-fleet-filter-349,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-349 {
    max-width:1240px !important;
  }
  body.post-type-archive-fahrzeug .full-tractor-grid,
  body.post-type-archive-gastfahrzeug .full-tractor-grid {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

/* ========================================================================== 
   E. Große Tablet-/Touch-Navigation – ab Desktop-Navigationsmodus
   Sichtbarer Text und Touchfläche liegen exakt übereinander.
   ========================================================================== */
@media (min-width:1151px) and (max-width:1600px) and (hover:none) and (pointer:coarse),
       (min-width:1151px) and (max-width:1600px) and (any-pointer:coarse) {
  .site-header {
    min-height:82px !important;
    padding:0 clamp(18px,2.4vw,36px) !important;
    grid-template-columns:minmax(240px,auto) minmax(0,1fr) auto !important;
    gap:clamp(12px,1.5vw,22px) !important;
  }
  .header-brand-area {
    width:auto !important;
    max-width:330px !important;
    gap:10px !important;
  }
  .brand { gap:10px !important; }
  .brand-mark { width:48px !important; height:48px !important; flex-basis:48px !important; }
  .brand strong { font-size:16px !important; white-space:nowrap !important; }
  .brand small { font-size:8px !important; letter-spacing:.19em !important; }
  .header-social-links { gap:5px !important; margin-left:4px !important; }
  .header-social-link { width:34px !important; height:34px !important; transform:none !important; }
  .header-social-link img { width:20px !important; height:20px !important; }

  .desktop-nav {
    min-width:0 !important;
    width:100% !important;
    justify-self:center !important;
    display:block !important;
    font-size:12px !important;
  }
  .desktop-nav > ul,
  .desktop-nav .menu {
    min-width:0 !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    align-items:stretch !important;
    justify-content:center !important;
    gap:2px !important;
    list-style:none !important;
  }
  .desktop-nav li {
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    display:block !important;
  }
  .desktop-nav a {
    min-width:0 !important;
    min-height:54px !important;
    margin:0 !important;
    padding:0 clamp(7px,1vw,14px) !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    position:relative !important;
    z-index:1 !important;
    line-height:1.15 !important;
    text-align:center !important;
    white-space:nowrap !important;
    transform:none !important;
    box-sizing:border-box !important;
  }
  .desktop-nav a::after {
    left:8px !important;
    right:8px !important;
    bottom:7px !important;
    width:auto !important;
    height:2px !important;
    opacity:0 !important;
    transform:none !important;
    pointer-events:none !important;
  }
  .desktop-nav a:hover::after,
  .desktop-nav .current-menu-item > a::after,
  .desktop-nav .current_page_item > a::after,
  .desktop-nav a[aria-current="page"]::after { opacity:1 !important; }

  .header-actions { gap:5px !important; }
  .header-favorites,
  .header-search > summary {
    min-width:46px !important;
    min-height:50px !important;
    padding:0 8px !important;
    transform:none !important;
  }
  .header-favorites > span { display:none !important; }
  .mobile-menu { display:none !important; }
}

/* Handys bleiben beim bestehenden Swipe-System. */
@media (max-width:700px) {
  body.post-type-archive-fahrzeug .sf-fleet-filter-349,
  body.post-type-archive-gastfahrzeug .sf-fleet-filter-349 {
    /* keine Tablet-Regel darf hier hineinreichen */
  }
}

/* ========================================================================== 
   F. 3.9.5 – Startseite auf Tablets: kompakter Seitenrhythmus statt Desktop-
   Mindesthöhen. Greift auch auf großen Android-Touch-Tablets.
   ========================================================================== */
@media (min-width:701px) and (max-width:1024px),
       (min-width:701px) and (max-width:1600px) and (hover:none) and (pointer:coarse),
       (min-width:701px) and (max-width:1600px) and (any-pointer:coarse) {
  body.home main > :is(.hero,.sf2146-hero-quicklinks,.intro,.home-event,.fleet,.project,.news,.contact) {
    min-height:0 !important;
    margin-top:0 !important;
    margin-bottom:0 !important;
    box-sizing:border-box !important;
  }

  body.home main > .section {
    padding:clamp(44px,4.5vw,64px) clamp(24px,4.2vw,58px) !important;
  }

  /* Hero: kein 700px-Desktop-Zwang mehr. */
  body.home .hero {
    min-height:0 !important;
    grid-template-columns:minmax(0,46%) minmax(0,54%) !important;
    align-items:stretch !important;
  }
  body.home .hero-copy {
    min-height:0 !important;
    padding:clamp(42px,4.6vw,64px) clamp(28px,4.2vw,54px) clamp(34px,4vw,50px) !important;
  }
  body.home .hero h1 {
    font-size:clamp(48px,6.2vw,76px) !important;
    line-height:.94 !important;
  }
  body.home .hero-lead {
    margin-top:22px !important;
    font-size:15px !important;
    line-height:1.6 !important;
  }
  body.home .hero-actions { margin-top:26px !important; gap:20px !important; }
  body.home .hero-stats {
    margin-top:38px !important;
    padding-top:24px !important;
    gap:12px !important;
  }
  body.home .hero-stats strong { font-size:26px !important; }
  body.home .hero-visual {
    min-height:0 !important;
    height:auto !important;
    aspect-ratio:4 / 3 !important;
  }
  body.home .hero-visual > img,
  body.home .hero-visual--wide-photo > img {
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center !important;
  }
  body.home .year-stamp {
    top:42px !important;
    width:118px !important;
    height:118px !important;
    padding:20px 12px !important;
  }
  body.home .year-stamp strong { font-size:20px !important; }
  body.home .year-stamp span { font-size:7px !important; }

  /* Schnellzugriffe: direkt am Hero, ohne leere Zwischenfläche. */
  body.home .sf2146-hero-quicklinks {
    min-height:0 !important;
    padding:20px clamp(22px,4vw,50px) !important;
  }
  body.home .sf2146-hero-quicklinks .sf2146-home-connect {
    width:min(1180px,100%) !important;
    margin:0 auto !important;
  }
  body.home .sf2146-hero-quicklinks .sf2146-home-connect a {
    min-height:88px !important;
    padding:14px 16px !important;
    transform:none !important;
  }
  body.home .sf2146-hero-quicklinks .sf2146-home-connect strong {
    font-size:16px !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
  }
  body.home .sf2146-hero-quicklinks .sf2146-home-connect small {
    font-size:11px !important;
    line-height:1.35 !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
  }

  /* Über uns / Werte. */
  body.home .intro-grid {
    gap:clamp(28px,4vw,56px) !important;
    align-items:start !important;
  }
  body.home .section h2 {
    font-size:clamp(42px,5vw,66px) !important;
    line-height:1 !important;
  }
  body.home .intro-copy p,
  body.home .project-lead { font-size:15px !important; line-height:1.65 !important; }
  body.home .values-grid { margin-top:38px !important; }
  body.home .values-grid article { padding-top:24px !important; padding-bottom:4px !important; }
  body.home .values-grid h3 { margin:14px 0 9px !important; font-size:22px !important; }
  body.home .values-grid p { line-height:1.55 !important; }

  /* Nächster Termin: kein breites Desktop-3-Spalten-Konstrukt. */
  body.home .home-event {
    grid-template-columns:minmax(180px,230px) minmax(0,1fr) !important;
    gap:24px 30px !important;
    align-items:start !important;
  }
  body.home .home-event-label { min-height:150px !important; padding:22px !important; }
  body.home .home-event-copy h2 { font-size:clamp(38px,4.6vw,58px) !important; }
  body.home .home-event-copy > p:not(.section-kicker) { margin-top:18px !important; }
  body.home .home-event-facts { margin-top:18px !important; gap:8px !important; }
  body.home .home-event > .button {
    grid-column:1 / -1 !important;
    justify-self:start !important;
    min-width:0 !important;
  }

  /* Fuhrpark: Karten dichter und ohne übergroße Desktop-Zeilen. */
  body.home .section-heading { margin-bottom:30px !important; gap:24px !important; }
  body.home .tractor-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-auto-rows:clamp(270px,31vw,350px) !important;
    gap:12px !important;
  }
  body.home .tractor-card-featured,
  body.home .tractor-card:last-child { grid-column:span 1 !important; }

  /* Projektbild nie wieder 680px hoch auf einem Tablet. */
  body.home .project {
    gap:clamp(28px,4vw,48px) !important;
    align-items:center !important;
  }
  body.home .project-image,
  body.home .project-image img {
    min-height:0 !important;
    height:clamp(330px,37vw,460px) !important;
    max-height:460px !important;
  }
  body.home .project-lead { margin:22px 0 26px !important; }
  body.home .spec-list { margin-bottom:24px !important; }

  /* Aktuelles: Bild + Liste bleiben kompakt, kein ganzer leerer Bildschirm. */
  body.home .news-header { margin-bottom:30px !important; gap:24px !important; }
  body.home .news-grid { gap:24px !important; }
  body.home .news-feature {
    min-height:0 !important;
    height:clamp(330px,38vw,460px) !important;
  }
  body.home .news-list > a {
    min-height:132px !important;
    gap:14px !important;
  }
  body.home .news-overlay { left:24px !important; right:24px !important; bottom:22px !important; }

  body.home .contact {
    padding:clamp(56px,6vw,82px) clamp(24px,4vw,54px) !important;
  }
  body.home .contact h2 { font-size:clamp(42px,5.3vw,68px) !important; }
  body.home .contact > p:not(.section-kicker) { margin:22px auto 26px !important; }
}

/* ==========================================================================
   G. Tablet Hochformat – klare Einspalten-Hierarchie, 2×2 Quicklinks.
   ========================================================================== */
@media (min-width:701px) and (max-width:1024px),
       (min-width:701px) and (max-width:1600px) and (orientation:portrait) and (any-pointer:coarse) {
  body.home .hero { grid-template-columns:1fr !important; }
  body.home .hero-visual { aspect-ratio:16 / 9 !important; max-height:460px !important; }
  body.home .year-stamp {
    top:auto !important;
    left:auto !important;
    right:24px !important;
    bottom:24px !important;
    transform:rotate(4deg) !important;
  }
  body.home .sf2146-hero-quicklinks .sf2146-home-connect {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  body.home .sf2146-hero-quicklinks .sf2146-home-connect a {
    border-bottom:1px solid rgba(201,154,48,.45) !important;
  }
  body.home .sf2146-hero-quicklinks .sf2146-home-connect a:nth-child(2n) { border-right:0 !important; }
  body.home .sf2146-hero-quicklinks .sf2146-home-connect a:nth-last-child(-n+2) { border-bottom:0 !important; }
  body.home .intro-grid,
  body.home .project,
  body.home .news-grid { grid-template-columns:1fr !important; }
  body.home .home-event { grid-template-columns:1fr !important; }
  body.home .home-event > .button { grid-column:1 !important; }
  body.home .values-grid { grid-template-columns:1fr !important; }
  body.home .values-grid article,
  body.home .values-grid article + article {
    padding:20px 0 !important;
    border-right:0 !important;
    border-bottom:1px solid var(--line) !important;
  }
  body.home .values-grid article:last-child { border-bottom:0 !important; }
  body.home .project-image,
  body.home .project-image img { height:390px !important; max-height:390px !important; }
  body.home .news-feature { height:390px !important; }
}

/* ==========================================================================
   H. Tablet Querformat – echte Tablet-Dichte, keine Desktop-Leerräume.
   ========================================================================== */
@media (min-width:1025px) and (max-width:1600px) and (orientation:landscape) and (hover:none) and (pointer:coarse),
       (min-width:1025px) and (max-width:1600px) and (orientation:landscape) and (any-pointer:coarse) {
  body.home .sf2146-hero-quicklinks .sf2146-home-connect {
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
  body.home .intro-grid { grid-template-columns:1.05fr .85fr !important; gap:54px !important; }
  body.home .values-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
  body.home .tractor-grid {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    grid-auto-rows:clamp(280px,25vw,340px) !important;
  }
  body.home .project { grid-template-columns:.9fr 1.1fr !important; }
  body.home .news-grid { grid-template-columns:1.05fr .95fr !important; }
}
