:root{
  --bg:#05080d;
  --bg2:#071018;
  --blue:#1478ff;
  --white:#fff;
  --text:#111821;
  --line:rgba(255,255,255,.14);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#05080d;color:#fff;line-height:1.6}

.header{
  position:sticky;top:0;z-index:50;
  min-height:118px;background:rgba(2,5,10,.97);
  display:flex;justify-content:space-between;align-items:center;
  padding:12px 6.5%;box-shadow:0 10px 35px rgba(0,0,0,.35)
}
.brand{display:flex;align-items:center;text-decoration:none}
.brand img{height:145px;width:auto;display:block}
.nav a{
  color:#fff;text-decoration:none;text-transform:uppercase;
  font-weight:700;font-size:13px;letter-spacing:.05em;
  margin-left:34px;padding-bottom:8px;border-bottom:2px solid transparent
}
.nav a:hover{color:var(--blue);border-color:var(--blue)}

.hero{
  position:relative;min-height:900px;
  background:url('images/hero.jpg') center/cover no-repeat;
  display:flex;align-items:center;padding:7% 6.5%;
  overflow:hidden
}
.hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(0,0,0,.72) 0%,rgba(0,0,0,.50) 42%,rgba(0,0,0,.18) 78%,rgba(0,0,0,.05) 100%)
}
.hero-content{position:relative;z-index:2;max-width:1080px}
.hero h1{
  font-size:78px;line-height:1.04;text-transform:uppercase;
  margin:0 0 28px;font-weight:900;letter-spacing:.01em
}
.subline{font-size:22px;margin:0 0 14px;color:#fff}
.introline{font-size:20px;margin:0 0 38px;color:#dce6f2;max-width:850px}
.btn{
  display:inline-block;background:var(--blue);color:#fff;text-decoration:none;
  text-transform:uppercase;font-weight:800;font-size:14px;
  padding:15px 25px;border-radius:3px;
  box-shadow:0 10px 28px rgba(20,120,255,.25)
}

.welcome{background:#071018;padding:70px 6.5% 58px}
.wrap{max-width:1250px;margin:auto}
.welcome h2{color:var(--blue);text-transform:uppercase;font-size:26px;margin:0 0 18px;text-align:center}.welcome p{text-align:center;margin-left:auto;margin-right:auto}
.welcome p{max-width:820px;color:#e0e6ef}
.quick-services{display:grid;grid-template-columns:repeat(6,1fr);gap:0;margin-top:48px}
.quick-services div{text-align:center;padding:18px 22px;border-left:1px solid var(--line)}
.quick-services div:first-child{border-left:0}
.quick-services span{font-size:40px;color:var(--blue)}
.quick-services h3,.services-detail h3,.features h3{text-transform:uppercase;font-size:17px;margin:13px 0 8px}
.quick-services p{font-size:14px;color:#d8dee8;margin:0}

.claim{
  background:linear-gradient(90deg,rgba(3,10,24,.94),rgba(0,70,170,.62)),url('images/liveproduktion.jpg') center/cover no-repeat;
  padding:66px 6.5%;text-align:center
}
.claim h2{max-width:900px;margin:0 auto;font-size:30px;line-height:1.25}

.services-detail{background:#071018;padding:76px 6.5%}
.services-detail>h2{text-align:center;font-size:36px;text-transform:uppercase;margin:0 0 52px}
.services-detail>h2:after,.contact h2:after,.imprint h2:after{
  content:"";display:block;width:58px;height:3px;background:var(--blue);margin:16px 0 0
}
.services-detail>h2:after{margin:18px auto 0}
.service-row{
  display:grid;grid-template-columns:330px 86px 1fr;gap:32px;align-items:center;
  max-width:1180px;margin:0 auto;padding:20px 0;border-bottom:1px solid rgba(255,255,255,.15)
}
.service-row img{
  width:330px;height:190px;object-fit:cover;
  border:1px solid rgba(255,255,255,.25);
  box-shadow:0 14px 40px rgba(0,0,0,.32)
}
.circle{
  width:70px;height:70px;border-radius:50%;background:var(--blue);
  display:flex;align-items:center;justify-content:center;font-size:30px
}
.service-row p{color:#e2e7ef;margin:0}

.contact{
  background:#f5f7fa;color:var(--text);padding:76px 6.5%;
  display:grid;grid-template-columns:1fr 1.05fr;gap:80px
}
.contact h2,.imprint h2{font-size:30px;text-transform:uppercase;margin:0 0 30px}
.contact a{color:#126ce0;text-decoration:none}
.contact form{display:flex;flex-direction:column;gap:14px}
.contact input,.contact textarea{
  width:100%;padding:15px;border:1px solid #ccd5df;border-radius:3px;font:inherit;background:#fff
}
.contact textarea{min-height:150px}
button{
  background:var(--blue);color:#fff;border:0;border-radius:3px;
  padding:15px 24px;text-transform:uppercase;font-weight:800;cursor:pointer;width:max-content
}

.features{background:#071018;color:#fff;padding:46px 6.5%;display:grid;grid-template-columns:repeat(4,1fr);text-align:center}
.features div{padding:14px 24px;border-left:1px solid var(--line)}
.features div:first-child{border-left:0}
.features span{font-size:34px;color:var(--blue)}
.features p{color:#d7dde6;margin:0}

.imprint{background:#f5f7fa;color:var(--text);padding:72px 6.5%}
.imprint-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:34px}
.imprint h3{text-transform:uppercase;font-size:14px;margin:0 0 12px}
.imprint p{font-size:14px;color:#333e4d}

.footer{
  background:#05080d;color:#fff;padding:42px 6.5%;
  display:grid;grid-template-columns:250px 1fr 1fr;gap:44px;align-items:start
}
.footer img{width:185px}
.footer h3{color:var(--blue);text-transform:uppercase;font-size:15px;margin:0 0 8px}
.footer p{margin:0;color:#d8dee8}
.copy{grid-column:1/-1;text-align:center;margin-top:20px!important;font-size:13px;color:#b8c2cf!important}

@media(max-width:980px){
  .header{height:auto;display:block;padding:16px 5%}
  .brand img{height:86px}
  .nav{margin-top:15px}
  .nav a{display:inline-block;margin:0 20px 10px 0}
  .hero{min-height:640px;padding:12% 5%}
  .hero h1{font-size:40px}
  .subline{font-size:17px}
  .introline{font-size:16px}
  .quick-services,.contact,.features,.imprint-grid,.footer{grid-template-columns:1fr}
  .quick-services div,.features div{border-left:0;border-top:1px solid var(--line)}
  .service-row{grid-template-columns:1fr;gap:18px}
  .service-row img{width:100%;height:auto}
  .footer{gap:20px}
}

/* Anpassung: großes MDM-Logo mittig zwischen Textblock und rechtem Rand */
.hero{
  min-height:850px;
  align-items:center;
}

.hero-content{
  max-width:650px !important;
  z-index:3;
}

.hero h1{
  font-size:62px !important;
  line-height:1.08 !important;
  max-width:650px;
}

.hero-logo-big{
  position:absolute;
  left:68%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(66vw,1080px) !important;
  height:auto;
  z-index:2;
  opacity:.98;
  filter:drop-shadow(0 18px 40px rgba(0,0,0,.65));
}

.hero-overlay{
  background:linear-gradient(90deg,rgba(0,0,0,.76) 0%,rgba(0,0,0,.52) 38%,rgba(0,0,0,.23) 72%,rgba(0,0,0,.08) 100%) !important;
}

/* kleines Logo oben links: kleiner und blau wie das große Logo */
.brand img{
  height:110px !important;
  width:auto;
  display:block;
}

@media(max-width:980px){
  .header{
    height:auto;
    display:block;
    padding:16px 5%;
  }

  .brand img{
    height:80px !important;
  }

  .nav{
    margin-top:15px;
  }

  .nav a{
    display:inline-block;
    margin:0 20px 10px 0;
  }

  .hero{
    min-height:720px;
    display:block;
    padding:60px 5% 12%;
  }

  .hero h1{
    font-size:38px !important;
  }

  .subline{
    font-size:17px;
  }

  .introline{
    font-size:16px;
  }

  .hero-logo-big{
    position:relative;
    left:auto;
    top:auto;
    transform:none;
    width:82vw !important;
    max-width:560px !important;
    margin:40px auto 0;
    display:block;
  }
}


/* Finale Anpassung: Logo-Position und Farbe */
.hero{
  min-height:850px;
  align-items:center;
}

.hero-content{
  max-width:650px !important;
  position:relative;
  z-index:3;
}

.hero h1{
  font-size:62px !important;
  line-height:1.08 !important;
  max-width:650px;
}

.hero-logo-big{
  position:absolute;
  left:68%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(66vw,1080px) !important;
  height:auto;
  z-index:2;
  opacity:.98;
  filter:drop-shadow(0 18px 40px rgba(0,0,0,.65));
}

.hero-overlay{
  background:linear-gradient(90deg,rgba(0,0,0,.76) 0%,rgba(0,0,0,.52) 38%,rgba(0,0,0,.23) 72%,rgba(0,0,0,.08) 100%) !important;
}

/* kleines Logo oben links: kleiner und blau wie das große Logo */
.brand img{
  height:110px !important;
  width:auto;
  display:block;
}

.footer img{
}

@media(max-width:980px){
  .header{
    height:auto;
    min-height:auto;
    display:block;
    padding:16px 5%;
  }

  .brand img{
    height:80px !important;
  }

  .hero{
    min-height:720px;
    display:block;
    padding-top:60px;
  }

  .hero h1{
    font-size:38px !important;
  }

  .hero-logo-big{
    position:relative;
    left:auto;
    top:auto;
    transform:none;
    width:82vw !important;
    max-width:560px !important;
    margin:40px auto 0;
    display:block;
  }
}


/* Erweiterung: SEO/UX, Animationen, Mobile-Feinschliff */
:focus-visible{
  outline:3px solid var(--blue);
  outline-offset:4px;
}

.nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
}

.hero-content,
.hero-logo-big,
.quick-services div,
.service-row,
.features div{
  animation:fadeUp .7s ease both;
}

.hero-logo-big{
  animation-delay:.12s;
}

@keyframes fadeUp{
  from{opacity:0;transform:translateY(18px)}
  to{opacity:1;transform:translateY(0)}
}

.hero-logo-big{
  transform:translate(-50%,-50%) !important;
}

.website-field{
  position:absolute !important;
  left:-9999px !important;
  opacity:0 !important;
}

.privacy-check{
  display:block;
  font-size:14px;
  color:#303947;
  margin:10px 0 20px;
  line-height:1.5;
  max-width:100%;
}

.privacy-check a,
.copy a{
  color:inherit;
}

.contact-form button:hover,
.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 32px rgba(20,120,255,.35);
}

@media(max-width:1200px){
  .hero h1{
    font-size:52px !important;
  }
  .hero-logo-big{
    width:min(62vw,900px) !important;
  }
}

@media(max-width:760px){
  .header{
    position:relative;
  }
  .brand img{
    height:70px !important;
  }
  .nav{
    justify-content:flex-start;
    gap:10px 18px;
  }
  .nav a{
    margin:0;
    font-size:12px;
  }
  .hero{
    min-height:auto;
    padding:42px 5% 56px;
  }
  .hero-content{
    max-width:100% !important;
  }
  .hero h1{
    font-size:34px !important;
  }
  .hero-logo-big{
    width:92vw !important;
    max-width:620px !important;
  }
  .contact{
    gap:36px;
  }
}


.privacy-check input{
  margin-right:8px;
  vertical-align:middle;
}


/* Korrektur Kontaktformular: Datenschutztext bleibt sauber unter dem Formular */
.contact{
  grid-template-columns:minmax(280px,420px) 1fr;
  gap:60px;
}

.contact-form{
  min-width:0;
}

.contact input,
.contact textarea{
  min-width:0;
}

@media(max-width:980px){
  .contact{
    grid-template-columns:1fr;
    gap:36px;
  }
}


/* FINALER FIX iOS/Safari:
   Auf Handy wird das große Logo als normales Block-Element angezeigt.
   Diese Regeln stehen ganz am Ende und überschreiben ältere transform-Regeln. */
@media screen and (max-width: 980px){
  .hero{
    overflow: visible !important;
  }

  .hero-logo-big{
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 86vw !important;
    max-width: 420px !important;
    height: auto !important;
    margin: 34px auto 0 auto !important;
    display: block !important;
  }
}

@media screen and (max-width: 430px){
  .hero-logo-big{
    width: 82vw !important;
    max-width: 340px !important;
  }
}


/* Premium Leistungsbereich */
.premium-services{
  background:#071018;
}
.service-premium{
  max-width:1180px;
  margin:0 auto 34px;
  display:grid;
  grid-template-columns:46% 54%;
  align-items:center;
  background:linear-gradient(135deg,#0a1018,#0f1824);
  border:1px solid rgba(255,255,255,.08);
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.28);
}
.service-premium.reverse{
  grid-template-columns:54% 46%;
}
.service-premium.reverse img{order:2}
.service-premium.reverse .service-text{order:1}

.service-premium img{
  width:100%;
  height:340px;
  object-fit:cover;
  display:block;
}
.service-text{
  padding:42px;
}
.service-text h3{
  font-size:30px;
  margin:0 0 16px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.service-text p{
  color:#dce6f2;
  margin:0;
  line-height:1.8;
  font-size:17px;
}

@media(max-width:980px){
 .service-premium,
 .service-premium.reverse{
   grid-template-columns:1fr;
 }
 .service-premium.reverse img,
 .service-premium.reverse .service-text{
   order:initial;
 }
 .service-premium img{
   height:240px;
 }
 .service-text{
   padding:28px;
 }
 .service-text h3{
   font-size:24px;
 }
 .service-text p{
   font-size:16px;
 }
}


/* FINALER HERO-TEXT-FIX:
   Kompakter linker Textblock, damit der Text nicht ins große Logo läuft. */
.hero-content{
  max-width:520px !important;
}

.hero h1{
  max-width:520px !important;
}

.introline{
  max-width:460px !important;
  line-height:1.7 !important;
}

@media screen and (max-width:980px){
  .hero-content{
    max-width:100% !important;
  }

  .hero h1{
    max-width:100% !important;
  }

  .introline{
    max-width:100% !important;
  }
}
