/* theissen.pro medientechnik — Landing */
:root {
  --blue-900: #10164a;
  --blue-800: #1a2373;
  --blue-700: #232b8a;
  --blue-500: #3949ab;
  --green:    #8bc34a;
  --green-dark: #6fa933;
  --grey-900: #1c1c1e;
  --grey-700: #3a3b3f;
  --grey-500: #6b6d75;
  --grey-300: #d8dae0;
  --grey-100: #f4f5f8;
  --white:    #ffffff;
  --radius:   14px;
  --shadow-sm: 0 2px 8px rgba(16, 22, 74, 0.08);
  --shadow-md: 0 10px 30px rgba(16, 22, 74, 0.15);
  --shadow-lg: 0 24px 60px rgba(16, 22, 74, 0.25);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { color: var(--blue-900); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--grey-300);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav__logo img { height: 96px; width: auto; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu li {
  display: flex;
  align-items: center;
}
.nav__menu a {
  display: inline-flex;
  align-items: center;
  color: var(--grey-700);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700) !important;
  padding: 0 !important;
  border-bottom: none !important;
}
.nav__social svg { width: 22px; height: 22px; display: block; flex: 0 0 auto; }
.nav__social:hover { color: var(--green-dark) !important; }
/* Icon-only on desktop; the text label is revealed in the mobile menu. */
.nav__social-label { display: none; }
/* Language pill shows the short code on desktop, the full word on mobile. */
.nav__lang-full { display: none; }
.nav__menu a:hover { color: var(--blue-900); border-bottom-color: var(--green); }
.nav__menu a.nav__lang {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--blue-700);
  border-radius: 999px;
  padding: 6px 18px;
  border-bottom: none;
  transition: background .2s, color .2s;
}
.nav__menu a.nav__lang:hover {
  color: var(--white);
  background: var(--blue-900);
  border-bottom-color: transparent;
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-900);
  margin: 5px 0;
  transition: transform .2s;
}

@media (max-width: 760px) {
  .nav__logo img { height: 56px; }
  .nav__menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 24px 28px;
    border-bottom: 1px solid var(--grey-300);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu li { align-self: stretch; justify-content: center; }
  .nav__menu a {
    justify-content: center;
    padding: 18px 2px;
    border-bottom: 1px solid var(--grey-300);
    font-size: 1.1rem;
  }
  /* First item ("Kontakt") sits flush at the top — no divider above the list. */
  .nav__menu li:first-child a { border-bottom: none; }
  .nav__social { padding: 18px 2px !important; gap: 14px; }
  /* Reveal the text label next to each social icon. */
  .nav__social-label { display: inline; font-weight: 500; }
  /* Full-width language row spelling out the language, matching the others. */
  .nav__menu a.nav__lang {
    align-self: center;
    margin-top: 10px;
    padding: 12px 26px;
    font-size: 1rem;
  }
  .nav__lang-short { display: none; }
  .nav__lang-full { display: inline; }
  .nav__toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  padding: clamp(32px, 5vw, 60px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(1200px 500px at 90% 10%, rgba(139, 195, 74, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(57, 73, 171, 0.5), transparent 60%),
    linear-gradient(180deg,
      var(--white) 0%,
      var(--blue-900) clamp(40px, 5vw, 70px),
      var(--blue-800) 60%,
      var(--blue-700) 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  /* Span the full container width so the heading + CTA row align with the
     card rows below (client feedback: match "Technik für Ihren Markenauftritt"
     to the width of the buttons underneath). */
  padding-top: clamp(12px, 2.5vw, 28px);
}
/* Desktop: centre the hero content. The CTA buttons stay in one row on wide
   screens and wrap gracefully (still centred) on narrower desktops. */
@media (min-width: 761px) {
  .hero__inner { text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  /* When centred, mirror the eyebrow's leading line on the trailing side. */
  .hero__eyebrow::after {
    content: "";
    width: 32px; height: 2px;
    background: var(--green);
  }
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: "";
  width: 32px; height: 2px;
  background: var(--green);
}
.hero h1 {
  color: var(--white);
  margin: 0 0 20px;
}
.hero h1 .accent { color: var(--green); }
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn--primary {
  background: var(--green);
  color: var(--blue-900);
}
.btn--primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(139, 195, 74, 0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ---------- Section base ---------- */
.section { padding: clamp(70px, 9vw, 110px) 0; }
.section--muted { background: var(--grey-100); }
.section__head {
  max-width: 780px;
  margin: 0 auto clamp(40px, 6vw, 60px);
  text-align: center;
}
.section__eyebrow {
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.section__lead {
  color: var(--grey-700);
  font-size: 1.05rem;
}

/* ---------- Card grid ---------- */
.grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid transparent;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}
.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--grey-300);
  margin: 22px 22px 0;
  border-radius: calc(var(--radius) - 6px);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card__media img { transform: scale(1.05); }
.card__media { position: relative; }

/* Play badge on any cover / thumbnail that represents a video */
.play-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(16, 22, 74, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  padding-left: 3px; /* optically centre the ▶ glyph */
  pointer-events: none;
  transition: background .2s, transform .2s;
}
.card:hover .play-overlay { background: var(--green-dark); }
.card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card__kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.card__title {
  color: var(--blue-900);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}
/* Short description line under the card title (standard font/size, wraps). */
.card__desc {
  margin: 0;
  color: var(--grey-700);
  font-size: 0.95rem;
  line-height: 1.4;
}
.card__hint {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card__hint::after {
  content: "→";
  transition: transform .2s;
}
.card:hover .card__hint::after { transform: translateX(4px); }
.badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--green);
  color: var(--blue-900);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
}

/* Draft / preview entries (folders starting with "_", shown via ?preview=1).
   A distinct corner ribbon plus a dashed outline so they stand out from the
   live cards. Visitors never see these; the client uses them to proof-read. */
.badge--preview {
  left: auto;
  right: 14px;
  background: #f5a623;
  color: #3a2400;
}
.card--draft {
  outline: 2px dashed #f5a623;
  outline-offset: -2px;
}

/* ---------- Slider (references / exhibits) ---------- */
.slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.slider__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  /* Vertical breathing room so a hovered card's lift + shadow isn't clipped
     top/bottom; matched by negative margins so section spacing is unchanged.
     Horizontal padding is kept at 0 so exactly 3 cards fill the viewport. */
  padding: 20px 0;
  margin: -20px 0;
}
/* The grid becomes the sliding track: a single row of fixed-width cards.
   100% here is the viewport's content width (already minus its padding). */
.slider__track {
  display: grid;
  /* Override the .grid base (auto-fit template) so every card is an implicit
     column sized to exactly one-third of the viewport — 3 visible, no peek. */
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 26px) / 3);
  gap: 26px;
  transition: transform .4s ease;
  align-items: stretch;
}
@media (max-width: 760px) {
  .slider__track { grid-auto-columns: 100%; }
  /* On mobile fully collapse hidden arrows to reclaim the full width. */
  .slider__arrow--hidden { display: none; }
}
.slider__arrow {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: var(--white);
  color: var(--green-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: background .2s, color .2s, transform .15s, opacity .2s;
}
/* Optically centre the ‹ / › glyphs, which sit slightly low in their line box. */
.slider__arrow::before {
  display: block;
  content: attr(data-glyph);
  transform: translateY(-1px);
}
.slider__arrow { font-size: 0; }
.slider__arrow::before { font-size: 1.6rem; }
.slider__arrow:hover:not(:disabled) {
  background: var(--green);
  color: var(--white);
  transform: scale(1.05);
}
.slider__arrow:disabled { opacity: 0.35; cursor: default; }
/* Hidden arrows keep their box (so card widths stay consistent across sliders)
   but are invisible and non-interactive. */
.slider__arrow--hidden { visibility: hidden; pointer-events: none; }

/* Caption under a section's cards */
.section__note {
  margin: 32px auto 0;
  max-width: 720px;
  text-align: center;
  color: var(--grey-700);
  font-size: 1.05rem;
}

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(800px 300px at 100% 0%, rgba(139, 195, 74, 0.12), transparent 60%),
    linear-gradient(180deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
}
.contact h2 { color: var(--white); }
.contact__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
}
@media (max-width: 820px) {
  .contact__grid { grid-template-columns: 1fr; }
}
.contact__intro { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 24px; }
.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255,255,255,0.9);
}
.contact-details .ico {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 1.1rem;
}
.contact-details a { color: var(--white); border-bottom: 1px solid rgba(139, 195, 74, 0.5); }
.contact-details a:hover { color: var(--green); border-bottom-color: var(--green); }

.contact-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.9);
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  color: var(--grey-900);
  outline: none;
  transition: border-color .15s, background .15s;
}
.field input:focus,
.field textarea:focus {
  background: var(--white);
  border-color: var(--green);
}
.field textarea { min-height: 130px; resize: vertical; }
.contact-form .btn { width: 100%; justify-content: center; }
.contact-form .btn:disabled { opacity: 0.65; cursor: default; }

/* Inline submit feedback (sending / success / error). */
.form-status {
  margin: 14px 0 0;
  font-size: 0.95rem;
  min-height: 1.2em;
}
.form-status:empty { margin: 0; }
.form-status.is-pending { color: rgba(255, 255, 255, 0.75); }
.form-status.is-success { color: var(--green); }
.form-status.is-error { color: #ff9a8b; }

/* ---------- Modal / Lightbox ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 45, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.modal.is-open { display: flex; }
.modal__dialog {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(16,22,74,0.06);
  border: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--blue-900);
  cursor: pointer;
  z-index: 3;
  display: grid;
  place-items: center;
  transition: background .15s, transform .15s;
}
.modal__close:hover { background: var(--grey-300); transform: rotate(90deg); }
.modal__body { padding: 32px 32px 36px; }
.modal__eyebrow {
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 8px;
}
.modal h2 { color: var(--blue-900); margin-bottom: 14px; }
/* Short description line under the title (standard font/size, wraps naturally). */
.modal__desc {
  color: var(--grey-700);
  font-size: 1rem;
  margin: -6px 0 16px;
}
.modal__text { color: var(--grey-700); }
.modal__gallery {
  margin-top: 22px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.modal__gallery button {
  position: relative;
  padding: 0;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  background: var(--grey-300);
  aspect-ratio: 4 / 3;
}
.modal__gallery button.is-video:hover .play-overlay { background: var(--green-dark); }

/* Wider variant of the detail modal, used for the Portfolio overlay. */
.modal__dialog.modal--wide { max-width: 1100px; }
.portfolio {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.portfolio__item {
  padding: 18px 20px;
  background: var(--grey-100);
  border-radius: var(--radius);
  border: 1px solid var(--grey-300);
}
.portfolio__name {
  display: block;
  color: var(--blue-900);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.portfolio__desc { color: var(--grey-700); }
@media (min-width: 720px) {
  .portfolio { grid-template-columns: 1fr 1fr; }
}
.modal__gallery img,
.modal__gallery video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.modal__gallery button:hover img,
.modal__gallery button:hover video { transform: scale(1.05); }

/* Lightbox (single image full-view) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox__media {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.lightbox video, .lightbox img { max-width: 100%; max-height: 92vh; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */
.footer {
  background: var(--grey-900);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
  font-size: 0.92rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer a { color: rgba(255,255,255,0.85); }
.footer a:hover { color: var(--green); }
.footer__links {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0; margin: 0;
}

/* ---------- Legal (imprint / privacy) pages ---------- */
.legal {
  padding: clamp(60px, 8vw, 100px) 0;
  max-width: 820px;
}
.legal h1 { margin-bottom: 30px; }
.legal h2 {
  margin-top: 40px;
  font-size: 1.3rem;
  color: var(--blue-800);
}
.legal address {
  font-style: normal;
  color: var(--grey-700);
  line-height: 1.7;
  margin: 20px 0;
}
.legal p { color: var(--grey-700); }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 30px;
  font-weight: 500;
}
.back-link::before { content: "←"; }
