:root{
  /* MHM Grüne Farben */
  --green: #1a4d2e;
  --green-footer: #0f2416;
  --text: #ffffff;
  --accent: #4ade80;
  --accent-strong: #22c55e;

  --nav-h: 90px;
}

/* Basis */
html, body {
  height: 100%;
  overflow-x: hidden;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

main{ flex:1 0 auto; }

body{
  background: var(--green);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

main{ 
  flex: 1 0 auto; 
}

/* ===== HEADER ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #1F5E43;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-wrap{
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  min-height: var(--nav-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.brand{ display:flex; align-items:center; }
.logo-box{
  width: clamp(140px, 16vw, 200px);
  height: auto;
}
.logo-box img{
  width: 100%; height: auto;
  display: block;
  object-fit: contain;
}

/* Globale Navi-Links (Grundstyle) */
.nav-links a{
  color:#fff;
  text-decoration:none;
  opacity:1;
  font-weight:800;
  font-size: 20px;
  line-height: 1.2;
}

/* CTAs */
.nav-cta{ display:flex; justify-content:flex-end; align-items:center; gap:12px; }
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 16px; border-radius:16px; font-weight:700;
  text-decoration:none; color:white; background: var(--accent);
  box-shadow: 0 2px 8px rgba(74, 222, 128, .22);
  transition: transform .15s ease, filter .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); filter: brightness(1.05); background: var(--accent-strong); }

/* Globale Primär-Buttons */
.btn-primary{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
  border: 0;
  cursor: pointer;
}
.btn-primary:hover{ transform: translateY(-2px); filter: brightness(1.05); }

/* --- NAV: Burger mobil, Desktop klassische Leiste --- */
.burger{
  display:none;
  margin-left:auto;
  background:none;
  border:0;
  width:40px;
  height:40px;
  cursor:pointer;
  position: relative;
  z-index: 1100;
}
.burger span,
.burger::before,
.burger::after{
  content:"";
  display:block;
  height:2px;
  background:var(--text);
  margin:7px 6px;
  transition: transform .25s ease, opacity .25s ease;
}
.burger[aria-expanded="true"] span{ opacity:0; }
.burger[aria-expanded="true"]::before{ transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"]::after{ transform: translateY(-9px) rotate(-45deg); }

@media (max-width:1024px){
  .burger{ display:block; }
  .nav-cta{ display:none; }

  .nav-links{
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(78vw, 320px);
    background: #1F5E43;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 96px 20px 24px;
    gap: 6px;
    box-shadow: -6px 0 18px rgba(0,0,0,.35);
    transition: right .35s cubic-bezier(.2,.8,.2,1);
    z-index: 1000;
  }

  .nav-links.open{
    right: 0;
  }

  .nav-links a{
    display:block; width:100%; padding:12px 10px;
    color:#fff; text-decoration:none; opacity:1;
    font-weight:800; font-size:17px; line-height:1.2; border-radius:10px;
  }
  .nav-links a:hover{ background: rgba(255,255,255,.06); }
}

/* Scroll-Offset für Anker */
section[id]{ scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ===== HERO (Video) ===== */
.hero{
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 0;
  min-height: 100svh;
  overflow: hidden;
}
@supports (height: 100dvh){
  .hero{ min-height: 100dvh; }
}

.hero__bg{ position: absolute; inset: 0; height: 100%; }

.hero__video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
  -webkit-user-select: none;
  z-index: 0;
  pointer-events: none;
}

.hero__shade{
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0.25) 45%,
      rgba(0,0,0,0.55) 100%
    ),
    linear-gradient(
      to top,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0.25) 45%,
      rgba(0,0,0,0.55) 100%
    );
}

@media (max-width: 600px){
  .hero{ min-height: calc(100svh - var(--nav-h)); }
  .hero__video{ object-position: center; }
}

.hero__inner{
  position: relative; z-index: 1;
  width: min(1100px, 92%);
  text-align: center;
  color: #fff;
  place-self: center;
}

.hero__subtitle{
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.hero__title{
  font-weight: 900;
  line-height: 1.05;
  font-size: clamp(32px, 8vw, 72px);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero__subtitle{
  font-size: clamp(16px, 2.5vw, 22px);
  line-height: 1.4;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 28px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero__actions{ display:flex; justify-content:center; }

/* ===== INTRO TEXT NACH VIDEO ===== */
.intro {
  padding: 40px 16px;
  display: flex;
  justify-content: center;
}
.intro__inner { max-width: 900px; text-align: center; }
.intro__title {
  font-weight: 900;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.intro__text {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  opacity: 0.95;
}

.first-text {
  padding-top: clamp(100px, 18vw, 180px);
  padding-bottom: clamp(100px, 18vw, 180px);
  padding-left: 20px;
  padding-right: 20px;
  background: var(--green);
  display: flex;
  justify-content: center;
  text-align: center;
}

.first-text__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.first-text__intro {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.75;
  color: #f2f2f2;
  opacity: 0.96;
  max-width: 1000px;
  margin: 0 auto 80px;
  font-weight: 400;
}

.motto {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 80px auto 80px;
  padding: 60px 20px;
  border: none;
  font-style: italic;
  text-shadow: 0 4px 20px rgba(74, 222, 128, 0.4);
}

/* ===== LEISTUNGEN ===== */
.services {
  padding: clamp(56px, 8vw, 96px) 16px;
}
.services .container{
  max-width: 1200px;
  margin: 0 auto;
}
.services__header{
  text-align:center;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.services__header h2{
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  text-transform: uppercase;
}

/* Grid */
.grid{ display: grid; gap: clamp(16px, 3vw, 28px); }
.grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
}

/* Card */
.card.service{
  background: var(--green-footer);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card.service:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.30);
}

/* Card-Bild */
.card-media img{
  width: 100%;
  aspect-ratio: 4 / 3.5;
  object-fit: cover;
  display: block;
}

/* Card-Content */
.card-body{
  padding: clamp(16px, 3vw, 22px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2.3vw, 14px);
}
.card-body h3{
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  letter-spacing: .2px;
  text-transform: uppercase;
}
.card-body p{
  font-size: clamp(15px, 2.2vw, 16.5px);
  line-height: 1.6;
  opacity: .95;
}

/* CTA in Card */
.card-cta{
  display: flex;
  justify-content: center;
  margin-top: clamp(8px, 1.8vw, 12px);
}

/* ================= Kundenmeinungen ================= */
.testimonials {
  padding: 80px 20px;
  text-align: center;
}
.testimonials-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  margin-bottom: 40px;
  text-transform: uppercase;
  color: var(--text);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--green-footer);
  color: var(--text);
  padding: 28px 22px;
  border-radius: 14px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.testimonial-card.is-visible {
  display: flex;
}

.testimonials-nav {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.testimonials-nav button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .15s ease, border-color .2s ease;
}

.testimonials-nav button:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-1px);
}

.testimonial-card .stars { color: #f5c518; font-size: 1.2rem; margin-bottom: 12px; }
.testimonial-card p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 16px; }
.testimonial-card .author { font-weight: 600; font-size: 0.95rem; opacity: 0.9; align-self: flex-end; }

/* Responsive Testimonials */
@media (max-width: 980px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ===== ABOUT SECTION (Über uns) ===== */
.about-section {
  background: var(--green);
  padding: clamp(80px, 12vw, 140px) 20px;
}

.about-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.about-section__title {
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.2;
  text-align: center;
  color: #ffffff;
  margin-bottom: clamp(24px, 4vw, 40px);
  letter-spacing: 0.01em;
}

.about-section__lead {
  max-width: 850px;
  margin: 0 auto clamp(50px, 8vw, 80px);
  text-align: center;
}

.about-section__lead p {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: #f2f2f2;
  opacity: 0.96;
  font-weight: 400;
}

.about-section__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 40px);
  max-width: 1000px;
  margin: 0 auto;
}

.about-feature {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 36px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.about-feature h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.about-feature p {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.7;
  color: #f2f2f2;
  opacity: 0.92;
  margin: 0;
}

/* ===== PORTFOLIO PAGE ===== */
.portfolio-hero {
  background: var(--green);
  padding: clamp(100px, 15vw, 180px) 20px clamp(80px, 12vw, 140px);
  text-align: center;
}

.portfolio-hero__inner {
  max-width: 900px;
  margin: 0 auto;
}

.portfolio-hero__title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: clamp(20px, 3vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.portfolio-hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: #f2f2f2;
  opacity: 0.95;
  max-width: 750px;
  margin: 0 auto;
}

.portfolio-gallery {
  background: var(--green-footer);
  padding: clamp(60px, 10vw, 100px) 20px clamp(80px, 12vw, 120px);
}

.portfolio-gallery .container {
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== IMPRESSUM PAGE (Impressum, Datenschutz) ===== */
.impressum-page {
  background: var(--green);
  padding: clamp(80px, 12vw, 120px) 20px clamp(60px, 10vw, 100px);
  min-height: 60vh;
}

.impressum-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: clamp(32px, 5vw, 56px);
}

.impressum-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  color: var(--accent);
  margin-bottom: clamp(32px, 5vw, 48px);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.impressum-section {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.impressum-section h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.impressum-section p {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.8;
  color: #f2f2f2;
  opacity: 0.92;
  margin-bottom: 1em;
}

.impressum-section a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.impressum-section a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.impressum-section strong {
  color: #ffffff;
  font-weight: 700;
}

.impressum-footer {
  margin-top: clamp(40px, 6vw, 60px);
  padding-top: clamp(24px, 4vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.impressum-footer p {
  font-size: 0.9rem;
  color: #f2f2f2;
  opacity: 0.7;
  font-style: italic;
}

/* Mobile Legal Pages */
@media (max-width: 768px) {
  .impressum-container {
    padding: 24px 20px;
  }
  
  .impressum-section p {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

/* ===== SECTION: GANZ IN IHRER NÄHE ===== */
.nearby {
  background: var(--green);
  padding: 100px 20px;
  text-align: center;
  color: var(--text);
}
.nearby-inner {
  max-width: 900px;
  margin: 0 auto;
}
.nearby-title {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 24px;
}
.nearby-address {
  font-size: 18px;
  opacity: .95;
  margin-bottom: 12px;
}
.nearby-text {
  font-size: 16px;
  opacity: .9;
  margin-bottom: 38px;
}
.nearby-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 26px;
  font-size: 17px;
  border-radius: 14px;
}

/* Kontakt-Success-Message */
.contact-success {
  background: var(--green-footer);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 16px 20px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 16px;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.25);
}

/* ===== Kontakt ===== */
.contact{
  background: var(--green);
  color: var(--text);
  padding: clamp(56px, 8vw, 96px) 16px;
}
.contact .container{
  max-width: 1100px;
  margin: 0 auto;
}
.contact__title{
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(28px, 5.4vw, 48px);
  margin-bottom: 10px;
}
.contact__lead{
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(28px, 4vw, 40px);
  opacity: .92;
  line-height: 1.7;
  font-size: clamp(15.5px, 2.2vw, 17px);
}

/* Form */
.contact__form{
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.contact__form .hp{ display:none !important; }

.field input,
.field textarea{
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--text);
  border-radius: 10px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field textarea{ resize: vertical; min-height: 140px; }
.field input::placeholder,
.field textarea::placeholder{ color: rgba(234,246,234,.7); }

.field input:focus,
.field textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 222, 128,.18);
  background: rgba(255,255,255,0.06);
}

.actions{
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* Rückmeldungsbox */
.contact__message{
  max-width: 820px;
  margin: 0 auto 18px;
  text-align: center;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 12px 14px;
}
.contact__message.is-error{
  border-color: rgba(229,9,61,.45);
  background: rgba(229,9,61,.12);
}

/* ===== Footer mit runder Welle ===== */
footer {
  background: var(--green-footer);
  color: #ffffff;
  text-align: center;
  padding: 3rem 1rem 2rem;
  position: relative;
  margin-top: 5rem;
}
footer::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background: var(--green-footer);
  border-top-left-radius: 100% 80px;
  border-top-right-radius: 100% 80px;
}
.footer-inner { 
  position: relative; 
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-social a svg {
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover svg {
  opacity: 1;
  transform: scale(1.12);
}

.footer-social a svg {
  width: 50px;
  height: 50px;
}

.footer-inner .links a { 
  color: #ffffff; 
  margin: 0 12px; 
  font-size: 0.95rem; 
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.footer-inner .links a:hover { 
  opacity: 1;
  text-decoration: underline; 
}
.footer-inner .copyright { 
  margin-top: 8px; 
  font-size: 0.9rem; 
  opacity: 0.8; 
}

/* Normale Absatzabstände */
p {
  margin-bottom: 1em;
}

.map-section {
  margin-top: 60px;
}

.map-container {
  width: 100%;
}

/* Mobile Header Buttons Container */
.mobile-header-buttons {
  display: none;
}

/* Mobile: BEIDE Buttons anzeigen */
@media (max-width:1024px){
  .nav-cta {
    display: none !important;
  }
  
  .mobile-header-call {
    display: none !important;
  }
  
  .mobile-header-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }
  
  .mobile-header-buttons .btn {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 10px;
    white-space: nowrap;
  }
  
  .mobile-header-buttons .btn svg {
    width: 16px;
    height: 16px;
  }

  .nav-wrap {
    grid-template-columns: auto 1fr auto auto;
    gap: 12px;
  }
}

/* === MOBILE TWEAKS (Abstände) === */
@media (max-width: 900px){
  .hero {
    min-height: calc(100svh - var(--nav-h));
  }

  .testimonials {
    padding: 60px 20px;
  }

  .nearby {
    padding: 60px 20px;
  }
}

@media (max-width: 768px){
  .first-text {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  
  .about-section {
    padding: 70px 20px;
  }
  
  .about-section__content {
    grid-template-columns: 1fr;
  }
}

/* === MOBILE TYPO TWEAKS === */
@media (max-width: 768px){
  .hero__title{
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.15;
  }

  .intro__text{
    line-height: 1.6;
    font-size: 15px;
  }

  .testimonial-card p{
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .first-text__intro{
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 60px;
  }
  
  .motto {
    font-size: 2.2rem;
    margin: 60px auto;
    padding: 40px 15px;
  }
}

@media (max-width:1024px){
  .nav-links{
    pointer-events: none;
  }
  .nav-links.open{
    pointer-events: auto;
  }
}

body.menu-open{
  overflow: hidden;
}

/* === DESKTOP-NAVIGATION (ab 1025px) === */
@media (min-width:1025px){
  .nav-links{
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 3vw, 32px);
    padding: 0;
    width: auto;
    box-shadow: none;
    background: transparent;
  }

  .nav-links a{
    display: inline-block;
    padding: 0;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
  }
}

.hero__video{
  pointer-events: none;
  user-select: none;
}

/* Safari / iOS: Play-Overlay entfernen */
.hero__video::-webkit-media-controls,
.hero__video::-webkit-media-controls-start-playback-button,
.hero__video::-webkit-media-controls-enclosure {
  display: none !important;
  -webkit-appearance: none;
}

/* ===== PORTFOLIO GRID ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  grid-auto-flow: dense;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Masonry-Style Variationen */
.portfolio-item:nth-child(3n+1) {
  grid-row: span 2;
}

.portfolio-item:nth-child(5n+2) {
  grid-column: span 2;
}

/* Mobile Portfolio */
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }
  
  .portfolio-item:nth-child(3n+1) {
    grid-row: span 1;
  }
  
  .portfolio-item:nth-child(5n+2) {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .portfolio-hero {
    padding-top: 80px;
    padding-bottom: 60px;
  }
}

/* =========================
 PORTFOLIO PAGE
========================= */
.portfolio-hero{
  min-height: 55vh;
  display: grid;
  place-items: center;
  padding: 120px 20px 60px;
  position: relative;
  background:
    radial-gradient(900px 500px at 20% 20%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(700px 400px at 80% 30%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.95), rgba(0,0,0,.85));
}

.portfolio-hero__inner{
  width: min(1100px, 100%);
  text-align: center;
}

.portfolio-hero__title{
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  margin: 0 0 10px;
}

.portfolio-hero__subtitle{
  opacity: .85;
  font-size: clamp(16px, 1.5vw, 18px);
  margin: 0 auto 24px;
  max-width: 720px;
}

.portfolio-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.portfolio-filters{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
}

.pf-btn{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: inherit;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.pf-btn:hover{ transform: translateY(-1px); }

.pf-btn.is-active{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
}

.portfolio-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px){
  .portfolio-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .portfolio-grid{ grid-template-columns: 1fr; }
}

.pf-card{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: 18px;
  overflow: hidden;
}

.pf-media{
  width:100%;
  border:0;
  padding:0;
  background: transparent;
  cursor: zoom-in;
  display:block;
}

.pf-media img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  display:block;
  transition: transform .25s ease;
}

.pf-card:hover .pf-media img{ transform: scale(1.03); }

.pf-body{
  padding: 14px 14px 16px;
}

.pf-body h3{
  margin: 0 0 6px;
  font-size: 16px;
}

.pf-body p{
  margin: 0;
  opacity: .8;
  font-size: 14px;
}

.portfolio-cta{
  margin-top: 28px;
}

.portfolio-cta__card{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: 18px;
  padding: 18px;
}

/* =========================
 LIGHTBOX
========================= */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.lightbox.is-open{ display:block; }

.lightbox__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
}

.lightbox__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100% - 28px));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(10,10,10,.9);
  overflow: hidden;
}

.lightbox__figure{
  margin: 0;
  display: grid;
  gap: 0;
}

.lightbox__figure img{
  width: 100%;
  height: min(70vh, 680px);
  object-fit: contain;
  background: rgba(0,0,0,.55);
}

.lightbox__figure figcaption{
  padding: 12px 14px;
  font-size: 14px;
  opacity: .85;
}

.lightbox__close{
  position:absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor:pointer;
}

.lightbox__nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
}

.lightbox__prev{ left: 10px; }
.lightbox__next{ right: 10px; }


/* ===== HERO HINTERGRUNDBILD ===== */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}