/* Digitalstickerei Eggersberger – eigenes Stylesheet (Brizy-/WordPress-frei).
   Farben und Typografie sind am Original gemessen, nicht geschätzt. */

:root {
  --red:        #b61f3a;   /* Überschriften, Buttons, Logo */
  --red-hero:   #c31130;   /* linker Anfang des Hero-Verlaufs */
  --red-dark:   #89081f;   /* linker Anfang des Anfahrt-Verlaufs */
  --blue:       #1da6cb;   /* Akzentband, Galerie, rechtes Verlaufsende */
  --ink:        #333;
  --muted:      #6b6b6b;
  --line:       #e3e3e3;
  --paper:      #fff;
  --paper-2:    #fafafa;
  --wrap:       1170px;
  --pad:        20px;
  --serif:      'Noto Serif', Georgia, serif;
  --sans:       'Montserrat', system-ui, sans-serif;
  --head:       'Ubuntu', system-ui, sans-serif;
  --script:     'Lato', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: 12px 20px;
}
.skip:focus { left: 0; }

/* ---------- Kopf ---------- */
.site-header {
  background: var(--paper);
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 155px;
  transition: min-height .3s ease;
}
.logo img { width: 225px; height: auto; transition: width .3s ease; }
/* beim Scrollen kompakter (Klasse setzt app.js) */
.site-header.is-small { box-shadow: 0 2px 14px rgba(0,0,0,.10); }
.site-header.is-small .header-inner { min-height: 96px; }
.site-header.is-small .logo img { width: 165px; }
.main-nav ul {
  display: flex; gap: 34px; list-style: none; margin: 0; padding: 0;
}
.main-nav a {
  font-family: var(--sans); font-size: 17px; font-weight: 500;
  text-transform: uppercase; text-decoration: none; color: var(--red);
  letter-spacing: .02em; white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.main-nav a:hover, .main-nav a:focus-visible { border-bottom-color: var(--red); }

.nav-toggle {
  display: none; width: 46px; height: 40px; padding: 8px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 3px; background: var(--red); border-radius: 2px;
  margin: 4px 0; transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; text-decoration: none;
  color: #fff; padding: 16px 26px; border: 0; border-radius: 2px;
  cursor: pointer; transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn--blue { background: var(--blue); }
.btn--red  { background: var(--red); }
.btn--wide { width: 100%; justify-content: center; padding: 18px 26px; }
.btn i { font-style: normal; font-size: 15px; line-height: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 591px; overflow: hidden; }
.hero__slides { height: 100%; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .9s ease;
  display: flex; align-items: center;
}
.hero__slide.is-active { opacity: 1; }
/* Hintergrund als eigene Ebene: so kann das Parallax ihn zoomen, ohne den
   Text mitzuskalieren. */
.hero__bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(195,17,48,.84) 0%, rgba(29,166,203,.84) 100%), var(--shot);
  background-size: cover, cover;
  background-position: center, center;
  will-change: transform;
}
.hero__inner { position: relative; width: 100%; }
.hero__title {
  font-family: var(--sans); font-size: 56px; line-height: 1.3;
  letter-spacing: -1.5px; text-transform: uppercase; color: #fff;
  margin: 0 0 28px;
}
.hero__title span { display: block; }
.hero__title .thin { font-weight: 200; }
.hero__title .bold { font-weight: 700; }

.hero__dots {
  position: absolute; left: 0; right: 0; bottom: 22px;
  display: flex; justify-content: center; gap: 10px;
}
.hero__dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.55); cursor: pointer; transition: background .2s;
}
.hero__dots button[aria-selected="true"] { background: #fff; }

/* ---------- …ganz einfach… ---------- */
.steps { background: var(--blue); color: #fff; }
.steps__inner {
  display: flex; align-items: center; gap: 40px;
  min-height: 124px; flex-wrap: wrap;
}
.steps__lead {
  font-family: var(--script); font-size: 36px; font-weight: 700; font-style: italic;
  margin: 0; flex: 0 0 auto; line-height: 1.2;
}
.steps__list {
  display: flex; gap: 54px; list-style: none; margin: 0; padding: 0;
  flex: 1 1 auto; justify-content: flex-end; flex-wrap: wrap;
}
.steps__list li { display: flex; align-items: center; gap: 14px; }
.steps__num {
  font-family: var(--script); font-size: 52px; font-weight: 400; font-style: italic;
  opacity: .55; line-height: 1;
}
.steps__txt {
  font-family: var(--script); font-size: 26px; font-weight: 700; line-height: 1.15;
}

/* ---------- Überschriften ---------- */
.h-section {
  font-family: var(--head); font-size: 52px; font-weight: 300;
  color: var(--red); text-align: center; margin: 0 0 34px; line-height: 1.2;
}
.h-section--light { color: #fff; }

/* ---------- Dienstleistungen ---------- */
.services { padding: 70px 0 80px; }
.services__intro { max-width: 980px; margin: 0 auto 46px; }
.services__intro p { margin: 0 0 18px; font-size: 18px; }
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.card {
  border: 0; padding: 0; background: none; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; gap: 16px;
}
.card img {
  width: 100%; aspect-ratio: 358 / 343; object-fit: cover;
  transition: transform .4s, filter .3s;
}
.card:hover img { transform: scale(1.03); filter: brightness(1.05); }
.card__title {
  font-family: var(--head); font-size: 30px; font-weight: 400; color: var(--red);
}

/* ---------- Über uns ---------- */
.about {
  background-image: linear-gradient(rgba(182,31,58,.85), rgba(182,31,58,.85));
  background-color: var(--red);
  color: #fff; padding: 60px 0;
}
.about .h-section { text-align: left; margin-bottom: 22px; }
.about__inner {
  display: grid; grid-template-columns: 1fr 315px; gap: 50px; align-items: start;
}
.about__text p { margin: 0 0 16px; font-size: 18px; }
.about__photo { margin: 44px 0 0; }
.about__photo img { width: 315px; }

/* ---------- Online-Katalog ---------- */
.shop { background: var(--paper-2); padding: 70px 0; }
.shop__lead { text-align: center; max-width: 860px; margin: 0 auto 34px; }
.shop__lead p { margin: 0 0 16px; }
.shop__box {
  background: var(--paper); border: 1px solid var(--line);
  padding: 40px; display: flex; justify-content: center;
}
.ico-basket, .ico-upload {
  width: 18px; height: 18px; display: inline-block; background: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
}
.ico-basket {
  -webkit-mask-image: url("assets/img/icon-basket.svg");
          mask-image: url("assets/img/icon-basket.svg");
}
.ico-upload {
  -webkit-mask-image: url("assets/img/icon-upload.svg");
          mask-image: url("assets/img/icon-upload.svg");
}

/* ---------- Impressionen ---------- */
.gallery { background: var(--blue); padding: 60px 0 70px; color: #fff; }
.gallery__lead { text-align: center; margin: 0 0 34px; }
.gallery__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.shot { border: 0; padding: 0; background: none; cursor: pointer; overflow: hidden; }
.shot img {
  width: 100%; aspect-ratio: 285 / 350; object-fit: cover;
  transition: transform .4s;
}
.shot:hover img { transform: scale(1.05); }

/* ---------- Kontakt ---------- */
.contact { background: var(--paper); padding: 70px 0 80px; }
.contact__lead { text-align: center; max-width: 900px; margin: 0 auto 34px; }
.contact__lead p { margin: 0 0 12px; }
.contact__note { color: var(--red); font-size: 16px; }

.form {
  max-width: 900px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line); padding: 34px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin: 0 0 18px; }
.field__label {
  display: block; font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 6px;
}
.field__label b { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--paper); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,166,203,.15);
}
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--red); }

.field--file input[type=file] { position: absolute; left: -9999px; }
.filebtn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--red); color: #fff; padding: 11px 18px; border-radius: 2px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase;
}
.filebtn:hover { filter: brightness(1.1); }
.filename { display: inline-block; margin-left: 14px; font-size: 15px; color: var(--muted); }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 22px; font-size: 15px; }
.check input { margin-top: 4px; }
.check b { color: var(--red); }
.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: var(--red);
  text-decoration: underline; cursor: pointer;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin: 16px 0 0; font-size: 16px; min-height: 1.6em; }
.form__status.is-ok  { color: #1a7a3c; }
.form__status.is-err { color: var(--red); }

/* ---------- Anfahrt ---------- */
.visit {
  background-image: linear-gradient(90deg, rgba(137,8,31,.94) 0%, rgba(29,166,203,.94) 100%);
  color: #fff; padding: 60px 0 70px;
}
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.visit__name { font-family: var(--head); font-size: 22px; font-weight: 400; margin: 0 0 18px; }
.visit__meta { margin: 0 0 18px; font-size: 16px; }
.visit__meta a { color: #fff; }
.visit__map {
  aspect-ratio: 545 / 400; margin: 0 0 22px; background: rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.visit__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.mapload {
  border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.28); color: #fff;
  padding: 22px 26px; cursor: pointer; max-width: 420px; text-align: center;
  font-family: var(--serif); border-radius: 2px; transition: background .2s;
}
.mapload:hover { background: rgba(0,0,0,.45); }
.mapload strong {
  display: block; font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; margin: 0 0 8px;
}
.mapload span { font-size: 14px; line-height: 1.5; opacity: .9; }

/* ---------- Fuß ---------- */
.site-footer { background: #2f2f2f; color: #cfcfcf; padding: 26px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer__by {
  margin: 0;
  font-family: 'Quattrocento Sans', system-ui, sans-serif; font-size: 15px;
}
.footer__by a { color: #cfcfcf; text-decoration: none; }
.footer__by a:hover { color: #fff; }
.footer__legal { display: flex; gap: 10px; }
.footer__legal button {
  background: none; border: 1px solid rgba(255,255,255,.25); color: #cfcfcf;
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 9px 16px; cursor: pointer; border-radius: 2px;
  transition: background .2s, color .2s;
}
.footer__legal button:hover { background: rgba(255,255,255,.12); color: #fff; }

/* destec-Credit „Website by [Logo]" + Hover-Popup (Standard wie auf den anderen Seiten) */
.footer-promo { position: relative; display: inline-flex; }
.footer-made-by {
  display: inline-flex; align-items: center; gap: 10px;
  opacity: .62; transition: opacity .25s; text-decoration: none;
}
.footer-made-by:hover { opacity: 1; }
.footer-made-by span {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5);
}
.footer-made-by img { height: 22px; width: auto; }
.destec-pop {
  position: absolute; bottom: 100%; left: 50%; margin-left: -150px; padding-bottom: 14px;
  width: 300px; max-width: min(300px, 84vw);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.96);
  transform-origin: bottom center; z-index: 50; pointer-events: none;
  transition: opacity .28s ease, transform .28s cubic-bezier(.22,1,.36,1), visibility .28s;
}
.footer-promo:hover .destec-pop,
.footer-promo:focus-within .destec-pop {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto;
}
.destec-pop-inner {
  position: relative; text-align: left;
  background: linear-gradient(150deg, #3d3d3d 0%, #1e1e1e 100%);
  border: 1px solid rgba(182,31,58,.45); border-radius: 14px;
  padding: 18px 20px 20px; box-shadow: 0 24px 54px rgba(0,0,0,.55);
}
.destec-pop-inner::after {
  content: ""; position: absolute; bottom: -8px; left: 50%; margin-left: -7px;
  width: 14px; height: 14px; background: #1e1e1e;
  border-right: 1px solid rgba(182,31,58,.45); border-bottom: 1px solid rgba(182,31,58,.45);
  transform: rotate(45deg);
}
.destec-pop-eyebrow {
  display: block; font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 7px;
}
.destec-pop-title {
  font-family: var(--head); font-weight: 300; font-size: 24px; line-height: 1.15;
  color: #fff; margin: 0 0 8px;
}
.destec-pop-text {
  font-family: var(--serif); font-size: 15px; line-height: 1.5;
  color: rgba(255,255,255,.72); margin: 0 0 14px;
}
.destec-pop-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--red); color: #fff; text-decoration: none;
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 1.3px;
  text-transform: uppercase; padding: 11px 16px; border-radius: 2px; white-space: nowrap;
  transition: filter .2s, transform .2s;
}
.destec-pop-cta svg { width: 13px; height: 13px; }
.destec-pop-cta:hover { filter: brightness(1.1); transform: translateY(-2px); }
/* Das 300px breite Popup ragt in schmalen Fenstern über den Rand und erzeugt
   horizontales Scrollen. Auf Touch-Geräten gibt es ohnehin kein Hover –
   dort bleibt der Logo-Link zu destec, der reicht. */
@media (max-width: 900px), (hover: none) {
  .destec-pop { display: none; }
}

/* ---------- Popup ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.modal__box {
  position: relative; background: var(--paper); max-width: 760px; width: 100%;
  max-height: 86vh; overflow: auto; padding: 46px 44px; border-radius: 2px;
  animation: pop .25s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }
.modal__x {
  position: absolute; top: 10px; right: 14px; background: none; border: 0;
  font-size: 32px; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal__x:hover { color: var(--red); }
.modal__content h3 {
  font-family: var(--head); font-size: 34px; font-weight: 300; color: var(--red);
  margin: 0 0 20px;
}
.modal__content h4 { font-family: var(--head); font-weight: 400; margin: 22px 0 8px; }
.modal__content p { margin: 0 0 14px; font-size: 17px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 88vw; max-height: 86vh; object-fit: contain; }
.lightbox__x, .lightbox__nav {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 44px; line-height: 1; padding: 12px; opacity: .8;
}
.lightbox__x:hover, .lightbox__nav:hover { opacity: 1; }
.lightbox__x { top: 10px; right: 18px; font-size: 38px; }
.lightbox__nav--prev { left: 12px; font-size: 60px; }
.lightbox__nav--next { right: 12px; font-size: 60px; }

/* ---------- Mobil ---------- */
/* Breakpoints wie im Original (Brizy: Tablet ab 991px, Handy ab 767px). */
@media (max-width: 991px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__photo { margin: 0; }
  .about__photo img { width: 100%; max-width: 315px; }
  .visit__grid { grid-template-columns: 1fr; gap: 40px; }
  .steps__inner { flex-direction: column; align-items: flex-start; gap: 22px; padding-top: 26px; padding-bottom: 26px; }
  .steps__list { justify-content: flex-start; gap: 30px; }
}

@media (max-width: 767px) {
  /* Am Original gemessen: 16px/24px Text, 25px Sektionspolster. */
  body { font-size: 16px; line-height: 1.5; }
  .services, .about, .shop, .gallery, .contact, .visit { padding: 25px 0; }
  .services__intro p, .about__text p { margin-bottom: 12px; }
  .services__intro { margin-bottom: 26px; }
  .h-section { margin-bottom: 20px; }
  .about__photo img { width: 161px; max-width: 161px; }
  .field { margin-bottom: 12px; }
  .form { padding: 18px 14px; }

  .header-inner { min-height: 148px; }
  .logo img { width: 139px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 148px 0 auto; background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
    /* visibility statt nur translateY: das Menü sitzt 148px unter der Kante,
       eine Verschiebung um die eigene Höhe würde es nicht sicher verstecken. */
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .main-nav a { display: block; padding: 14px 20px; border-bottom: 0; }

  /* Das Original blendet das „…ganz einfach…“-Band auf dem Handy aus. */
  .steps { display: none; }

  .hero { height: 352px; }
  .hero__title { font-size: 26px; line-height: 1.25; letter-spacing: -.5px; margin-bottom: 20px; }
  .h-section { font-size: 36px; }

  /* Bildzuschnitt wie im Original: Karten werden zum flachen Banner,
     Galeriekacheln zu hohen schmalen Streifen in drei Spalten. */
  .cards { grid-template-columns: 1fr; gap: 26px; }
  .card img { aspect-ratio: 328 / 109; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .shot img { aspect-ratio: 113 / 290; }

  .form__row { grid-template-columns: 1fr; gap: 0; }
  .modal__box { padding: 40px 22px 30px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
