/* Beres Gravuren – clean, leicht edel, minimal verspielt */
:root {
  --bg: #0b0e2a;
  --surface: rgba(255, 255, 255, .08);
  --surface2: rgba(255, 255, 255, .12);
  --card: rgba(255, 255, 255, .10);
  --text: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .70);
  --muted2: rgba(255, 255, 255, .58);
  --line: rgba(255, 255, 255, .18);
  --line2: rgba(255, 255, 255, .12);
  --accent: #c6ffdd;
  --accent2: #68d391;
  --shadow: 0 18px 55px rgba(0, 0, 0, .38);
  --radius: 18px;
  --radius2: 24px;
  --max: 1080px;
  --pad: 18px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box
}

figure {
  margin: 0;
}

html,body{height:100%}

html{
  background: #06071a;
}

body{
  margin:0;
  min-height:100vh;
  background-color:#06071a; 
  font-family: var(--font);
  color: var(--text);

  background:
    radial-gradient(1400px 700px at 15% -10%, rgba(104,211,145,.12), transparent 70%),
    radial-gradient(1100px 600px at 85% 5%, rgba(198,255,221,.08), transparent 70%),
    linear-gradient(180deg, #06071a 0%, #0b0e2a 40%, #06071a 100%);

  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  border-radius: 999px;
}

.skip:focus {
  left: 12px;
  z-index: 999999
}

.container {
  width: min(var(--max), calc(100% - 2*var(--pad)));
  margin: 0 auto
}

/* =======================
   Desktop "boxed" Frame
   ======================= */
.site-frame {
  width: 100%;
}

/* Nur Desktop boxed – Mobile/Tablet bleibt wie bisher */
@media (min-width: 981px){
  .site-frame{
    width: min(var(--max), calc(100% - 2*var(--pad)));
    margin: 18px auto 22px;
    padding-top: 14px;                 /* ✅ Abstand oben im Frame */
    border-radius: var(--radius2);
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .footer{
    position: static;
  }
}

.hero {
  position: relative
}

/* Desktop: Hero nicht full-bleed */
@media (min-width: 981px) {
  .hero {
    width: min(var(--max), calc(100% - 2*var(--pad)));
    margin: 0 auto;
  }

  .hero-img {
    border-radius: var(--radius2);
    border: 1px solid var(--line2);
    box-shadow: var(--shadow);
  }
}

/* Standard (Mobile/Tablet): bleibt full width wie bisher */
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--line2);
}

.page {
  padding-bottom: 28px
}

.section {
  padding: 32px 0
}

.section.banner {
  padding: 18px 0 32px
}

.h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 8px;
  letter-spacing: -.02em
}

.h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0 0 8px;
  letter-spacing: -.01em
}

.h3 {
  font-size: 18px;
  margin: 0 0 6px
}

.lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  margin: 0
}

.muted {
  color: var(--muted);
  line-height: 1.6
}

.kicker {
  font-weight: 800;
  letter-spacing: .02em
}

.intro .intro-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
  border: 1px solid var(--line2);
  border-radius: var(--radius2);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.intro .intro-card:before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 30% 30%, rgba(198, 255, 221, .18), transparent 55%);
  transform: rotate(-8deg);
  pointer-events: none;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px
}

.btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .10);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .20);
}

.btn:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .22)
}

.btn:active {
  transform: translateY(1px)
}

.btn.primary {
  border-color: rgba(104, 211, 145, .55);
  background: linear-gradient(180deg, rgba(104, 211, 145, .35), rgba(104, 211, 145, .18));
}

.btn.ghost {
  background: rgba(0, 0, 0, .10);
}

.btn.small {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800
}

.banner-img{
  border-radius: var(--radius2);
  border:1px solid var(--line2);
  box-shadow: var(--shadow);
  margin: 0 auto;              
}

.grid {
  display: grid;
  gap: 14px;
}

/* Maschinen und Produkte exakt gleich */
.grid.machines,
.grid.products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Tablet */
@media (max-width: 980px) {

  .grid.machines,
  .grid.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 520px) {

  .grid.machines,
  .grid.products {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 26px 0;
  }
}


.card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line2);
  border-radius: var(--radius2);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
}

.card.soft {
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22)
}

.card-cap {
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 600
}

.card-img,
.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-video {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: #000;
  /* falls Video noch nicht geladen */
}

.product {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line2);
  border-radius: var(--radius2);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .26);
}

.product-body{
  padding:14px;
  display:flex;              
  flex-direction:column;
  flex:1;                    
}

.product-body .muted{
  margin:0 0 12px;
}

.product-body .btn{
  margin-top:auto;           
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px
}

.materials {
  margin-top: 18px;
  padding: 18px
}

.materials-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 700px) {
  .materials-grid {
    grid-template-columns: 1fr
  }
}

.footer {
  position: sticky;
  bottom: 0;
  backdrop-filter: blur(10px);
  background: rgba(7, 8, 26, .55);
  border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, .22);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 12px;
}

.footer {
  font-size: clamp(10px, 2.6vw, 13px);
}

.footer-left {
  color: var(--muted2);
  font-weight: 700;

  white-space: nowrap;

  min-width: 0;
  flex: 1;

  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.dot {
  opacity: .45
}

.linkbtn {
  all: unset;
  cursor: pointer;
  color: rgba(255, 255, 255, .80);
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 999px;
  transition: background .12s ease, opacity .12s ease;
}

.linkbtn:hover {
  background: rgba(255, 255, 255, .10)
}

.linkbtn:active {
  opacity: 1
}

/* =======================
    Modal System
 ======================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, .65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal {
  width: min(920px, 100%);
  height: min(80vh, 720px);
  background: #0f1333;
  border: 1px solid rgba(255, 255, 255, .18);
  /* dünner, eleganter Rahmen */
  border-radius: 18px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.modal-head {
  padding: 14px 18px;
}

.modal-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.01em;
}

.modal-body {
  flex: 1;

  /* Fenster-Rahmen */
  margin: 0 14px;
  border-radius: 14px;
  border: 1px solid #e6e6e6;
  background: #fff;

  position: relative;
  overflow: hidden;
  /* wichtig: Fades bleiben im Fenster */
}

.modal-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 18px;
  color: #1a1a1a;
}

/* Scroll-Fade als Overlay im weissen Scrollbereich (robust) */
.modal-body::before,
.modal-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 16px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  /* wird per JS-Klasse eingeblendet */
  transition: opacity .12s ease;
}

.modal-body::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .50), transparent);
}

.modal-body::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .50), transparent);
}

/* Klassen kommen schon aus deinem JS: .modal.can-scroll-up / .modal.can-scroll-down */
.modal.can-scroll-up .modal-body::before {
  opacity: 1;
}

.modal.can-scroll-down .modal-body::after {
  opacity: 1;
}

.modal-body p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: #444;
}

.modal-body .block-title {
  font-weight: 800;
  color: #111;
  margin: 10px 0 6px;
}

.modal-body .price {
  font-weight: 800;
  color: #000;
}

.modal-body .note {
  color: #666;
  font-weight: 600;
}

.modal-body img {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .26);
  margin: 10px 0 14px;
  width: 100%;
}

@media (min-width: 981px) {
  .modal-body img {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
}

.modal-foot {
  padding: 14px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-foot .btn {
  box-shadow: none
}

hr.pretty {
  border: none;
  height: 1px;
  background: #e2e2e2;
  margin: 18px auto;
  width: calc(100% - 60px);
}

/* Forms */
.form {
  display: grid;
  gap: 10px;
}

.field label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .86);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--text);
  padding: 12px 12px;
  border-radius: 14px;
  outline: none;
  font: inherit;
}

.field textarea {
  min-height: 120px;
  resize: vertical
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, .55)
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(104, 211, 145, .55);
  box-shadow: 0 0 0 3px rgba(104, 211, 145, .14);
}

.smallprint {
  color: var(--muted2);
  font-weight: 600;
  line-height: 1.55
}

/* Form-Styles im Modal (heller Inhalt) */
.modal-body .field label {
  color: #111;
}

.modal-body .field input,
.modal-body .field textarea,
.modal-body .field select {
  background: #f6f6f6;
  border: 1px solid #d8d8d8;
  color: #111;
}

.modal-body .field input::placeholder,
.modal-body .field textarea::placeholder {
  color: #777;
}

.modal-body .field input:focus,
.modal-body .field textarea:focus,
.modal-body .field select:focus {
  border-color: #7ad7a6;
  box-shadow: 0 0 0 3px rgba(122, 215, 166, .20);
}

.modal-body .smallprint {
  color: #444;
}

/* Footer kompakter auf Smartphone */
@media (max-width: 600px) {

  .footer {
    backdrop-filter: blur(6px);
  }

  .footer-inner {
    padding: 4px 0;
  }

  .footer-left {
    font-size: 10px;
    line-height: 1;
  }

  .footer-right {
    gap: 4px;
  }

  .linkbtn {
    font-size: 10px;
    padding: 0 2px;
    line-height: 1;
  }

  .dot {
    margin: 0 1px;
    opacity: .4;
  }

}

.modal-scroll::-webkit-scrollbar {
  width: 8px;
}

.modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .22);
  border-radius: 999px;
}

.modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* Maschinen-Kacheln: exakt wie Produkt-Kacheln (Grösse + Look) */
.grid.machines .card {
  display: flex;
  flex-direction: column;

  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line2);
  border-radius: var(--radius2);
  overflow: hidden;

  /* exakt gleiche Shadow wie .product */
  box-shadow: 0 14px 40px rgba(0, 0, 0, .26);
}

/* Bild bereits über .card-img,.product-img definiert (4:3) */

/* Textbereich exakt wie product-body */
.grid.machines .card-cap {
  padding: 14px;
  /* identisch zu .product-body */
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

/* =======================
   Lightbox Zoom (iOS Pinch)
======================= */
.lb-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  /* über .modal-backdrop (99999) */
  background: rgba(0, 0, 0, .82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.lb-sheet {
  max-width: min(980px, 100%);
  max-height: min(92vh, 900px);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .70);
  overflow: hidden;
  position: relative;
}

.lb-scroll {
  max-height: min(92vh, 900px);
  overflow: auto;
  /* wichtig für iOS-Pinch / grosses Bild */
  -webkit-overflow-scrolling: touch;
  background: #0b0e2a;
}

.lb-img {
  display: block;
  width: 100%;
  height: auto;
}

/* kleines "X" oben rechts */
.lb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid rgba(255, 255, 255, .20);
  background: rgba(0, 0, 0, .35);
  color: rgba(255, 255, 255, .92);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
}

.lb-close:active {
  transform: translateY(1px);
}

/* Cursor-Hinweis auf zoombaren Bildern */
img[data-lightbox="1"] {
  cursor: zoom-in;
}

.lb-scroll {
  touch-action: pan-x pan-y pinch-zoom;
}

.lb-img {
  touch-action: pinch-zoom;
}

/* =======================
   Facebook Section
======================= */
.facebook-section {
  padding-top: 10px;
}

.facebook-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
  border: 1px solid var(--line2);
  border-radius: var(--radius2);
  padding: 22px;
  box-shadow: var(--shadow);
}

.facebook-content {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.facebook-icon {
  width: 38px;
  height: 38px;
  color: #1877f2;
  /* offizielles Facebook Blau */
  flex-shrink: 0;
}

.facebook-text {
  flex: 1;
  min-width: 220px;
}

/* Mobile schöner umbrechen */
@media (max-width: 600px) {
  .facebook-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .facebook-icon {
    width: 32px;
    height: 32px;
  }
}

